salute-developers / plasma Goto Github PK
View Code? Open in Web Editor NEWSalute Design System
License: MIT License
Salute Design System
License: MIT License
Объединить:
plasma-temple: AutoFocus
plasma-ui: WithAutoFocus
I'm having a problem with this.
Предлагаю добавить
vertical-align: top;
в const StyledImg = styled.img`
для устранения возникающего лишнего места под картинкой
это можно заметить закруглив углы у дива для Image
Describe the bug
Ошибка при использовании Header с ScreensContainer:
Uncaught Error: Assistant context is not provided
Node, NPM and package versions
"@salutejs/plasma-temple": "^1.68.2", "@salutejs/plasma-ui": "^1.104.1",
To Reproduce
Инициализировать приложение через ScreensContainer и в Screen вызвать const header = useHeaderProps({});
Expected behavior
Ошибка не появляется и Header инициализируется
Additional context
Add any other context about the problem here.
Сейчас в некоторых кейсах приходится придумывать обходной путь, если, например, нужно:
Предлагается поддержать экспорт DeviceComponent в plasma-temple и добавить соответствующее описание в документацию
Хотелось бы избежать явного каста в таких местах:
const onYearChange = React.useCallback(
({ value: y }: PickerItem) => {
setState(([, m, d]) => {
const nextMonth = getNextMonth(m, y as number);
const nextDay = getNextDay(d, nextMonth, y as number);
return [y as number, nextMonth, nextDay];
});
},
[getNextDay, getNextMonth],
);
предлагается дополнить библиотеку компонентом Sidebar и увязать работу с ним таких компонентов как Gallery и тп по аналогии с react-pro-sidebar
Это упростит разработку интерфейсов в стиле в тч sberPortal
I'm having a problem with this.
Если зависимость нужна - обновляем до latest. В противном случае - удаляем.
Для экспорта компонента H5 указан тег h3, который является некорректным.
Необходимо локализовать причину падения тестов для компонента components/Cart/[email protected]
.
Тесты падают рандомно и на первый взгляд причина не ясна.
Например названием: helpers => __helpers
ещё лучше добавить Readme
иногда появляется необходимость получить ссылку на DOM объект компонентов Cell
и Header
, надо бы добавить враппер forwardRef
some problem with cy.stub after updating to react 18: #194
cy.stub(win, 'getSelection', undefined);
could not fix:
diff --git a/packages/plasma-hope/src/utils/selectText.ts b/packages/plasma-hope/src/utils/selectText.ts
index 42d9bb1af..25d9f5090 100644
--- a/packages/plasma-hope/src/utils/selectText.ts
+++ b/packages/plasma-hope/src/utils/selectText.ts
@@ -10,7 +10,7 @@ export function selectText(node: Node) {
setTimeout(() => {
const body = document.body as Body;
- if (window.getSelection && document.createRange) {
+ if (typeof window.getSelection === 'function' && typeof document.createRange === 'function') {
const range = document.createRange();
range.selectNodeContents(node);
1) plasma-hope: Editable
onBlur and onFocus:
TypeError: The following error originated from your test code, not from Cypress.
> win.getSelection is not a function
When Cypress detects uncaught errors originating from your test code it will automatically fail the current test.
at getSelection$1 (http://localhost:43969/__cypress/src/vendors-packages_plasma-b2c_node_modules_styled-components_dist_styled-components_browser_esm-01f2cd.js:9470:25)
at constructSelectEvent (http://localhost:43969/__cypress/src/vendors-packages_plasma-b2c_node_modules_styled-components_dist_styled-components_browser_esm-01f2cd.js:9508:26)
at extractEvents$3 (http://localhost:43969/__cypress/src/vendors-packages_plasma-b2c_node_modules_styled-components_dist_styled-components_browser_esm-01f2cd.js:9591:7)
at extractEvents$5 (http://localhost:43969/__cypress/src/vendors-packages_plasma-b2c_node_modules_styled-components_dist_styled-components_browser_esm-01f2cd.js:9899:5)
at dispatchEventsForPlugins (http://localhost:43969/__cypress/src/vendors-packages_plasma-b2c_node_modules_styled-components_dist_styled-components_browser_esm-01f2cd.js:9969:3)
at http://localhost:43969/__cypress/src/vendors-packages_plasma-b2c_node_modules_styled-components_dist_styled-components_browser_esm-01f2cd.js:10161:12
at batchedUpdates$1 (http://localhost:43969/__cypress/src/vendors-packages_plasma-b2c_node_modules_styled-components_dist_styled-components_browser_esm-01f2cd.js:27008:12)
at batchedUpdates (http://localhost:43969/__cypress/src/vendors-packages_plasma-b2c_node_modules_styled-components_dist_styled-components_browser_esm-01f2cd.js:4864:12)
at dispatchEventForPluginEventSystem (http://localhost:43969/__cypress/src/vendors-packages_plasma-b2c_node_modules_styled-components_dist_styled-components_browser_esm-01f2cd.js:10160:3)
at dispatchEventWithEnableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay (http://localhost:43969/__cypress/src/vendors-packages_plasma-b2c_node_modules_styled-components_dist_styled-components_browser_esm-01f2cd.js:7338:5)
В данный момент из plasma-core идет re-export React компонента.
Затем на уровне plasma-hope создается обертка:
export const Image: FC<ImageProps> = styled(BaseImage)``;
Предлагаю вынести такую обертку на уровень plasma-core, что бы не делать ее ни на уровне plasma-hope, ни в plasma-ui
Точно ли оно нам надо??
https://stackoverflow.com/questions/21572682/createtextrange-is-not-working-in-chrome
if (window.getSelection && document.createRange) {
const range = document.createRange();
range.selectNodeContents(node);
const selection = window.getSelection();
selection?.removeAllRanges();
selection?.addRange(range);
} else if (body.createTextRange) {
const range = body.createTextRange();
range.moveToElementText(node);
range.select();
}
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
styled-components
, @types/styled-components
)semver
, @types/semver
)org.jetbrains.kotlin.jvm
, org.jetbrains.kotlin.android
, org.jetbrains.kotlin:kotlin-gradle-plugin
, org.jetbrains.kotlin:kotlin-stdlib
)@types/react
, @types/react-dom
)@storybook/addon-docs
, @storybook/addon-essentials
, @storybook/addons
, @storybook/react
, @storybook/react-vite
, @storybook/theming
, storybook
)app.cash.paparazzi
, app.cash.paparazzi:paparazzi-gradle-plugin
)@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
)color
, @types/color
)color
, @types/color
)qs
, @types/qs
)io.gitlab.arturbosch.detekt:detekt-gradle-plugin
, io.gitlab.arturbosch.detekt:detekt-test
, io.gitlab.arturbosch.detekt:detekt-formatting
, io.gitlab.arturbosch.detekt:detekt-api
)@commitlint/cli
, @commitlint/config-conventional
)com.android.application
, com.android.library
, com.android.tools.build:gradle
)@types/jest
, jest
, ts-jest
)@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
)com.android.tools.lint:lint-checks
, com.android.tools.lint:lint-api
)Warning
Renovate failed to look up the following dependencies: Failed to look up npm package @salutejs/plasma-docs-ui
.
Files affected: website/plasma-ui-docs/package.json
, website/plasma-web-docs/package.json
These updates are pending. To force PRs open, click the checkbox below.
@types/jest
, jest
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
@babel/cli
, @babel/core
, @babel/plugin-transform-react-constant-elements
, @babel/preset-env
, @babel/preset-react
, @babel/preset-typescript
)@commitlint/cli
, @commitlint/config-conventional
)These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.
styled-components
, @types/styled-components
)debug
, @types/debug
)marked
, @types/marked
).github/actions/prepare-android-env/action.yml
actions/cache v4
.github/actions/prepare-environment/action.yml
actions/setup-node v3
actions/cache v3
actions/cache v3
.github/actions/update-package-lock/action.yml
.github/workflows/android-code-quality-check.yml
actions/checkout v4
actions/upload-artifact v2
actions/checkout v4
actions/upload-artifact v4
.github/workflows/authorize-external-pr.yml
.github/workflows/change-detection.yml
actions/checkout v4
actions/github-script v6
.github/workflows/clean-pr-documentation.yml
.github/workflows/cleanup-cache-pr.yml
actions/checkout v3
.github/workflows/create-release-pr.yml
actions/checkout v4
mikepenz/release-changelog-builder-action v4.1.0
.github/workflows/cypress-common.yml
actions/checkout v3
actions/upload-artifact v2
.github/workflows/documentation-deploy-stage-dev.yml
actions/checkout v4
.github/workflows/documentation-main.yml
actions/checkout v4
.github/workflows/documentation-pr.yml
actions/checkout v4
actions/github-script v6
actions/github-script v6
.github/workflows/documentation-pull-request-dev.yml
actions/checkout v4
actions/github-script v6
.github/workflows/performance-test-base.yml
actions/checkout v3
.github/workflows/performance-test-pr.yml
actions/checkout v4
actions/checkout v4
actions/setup-node v3
actions/cache v3
actions/cache v3
actions/cache v3
actions/upload-artifact v2
.github/workflows/publish-blank-mq.yml
.github/workflows/publish-common.yml
actions/checkout v4
.github/workflows/publish-rc.yml
actions/checkout v4
actions/github-script v6
actions/github-script v6
actions/github-script v6
.github/workflows/required-primary-checks.yml
actions/checkout v4
actions/checkout v4
.github/workflows/theme-builder-pr.yml
actions/checkout v4
actions/github-script v3
.github/workflows/theme-builder.yml
actions/checkout v3
.github/workflows/typescript-coverage.yml
actions/checkout v4
actions/github-script v6
actions/upload-artifact v2
.github/workflows/versionate-docs.yml
actions/checkout v3
native/sdds-android/gradle.properties
native/sdds-android/settings.gradle.kts
native/sdds-android/build.gradle.kts
native/sdds-android/build-system/gradle.properties
native/sdds-android/build-system/settings.gradle.kts
native/sdds-android/build-system/build.gradle.kts
native/sdds-android/build-system/conventions/build.gradle.kts
native/sdds-android/build-system/conventions/src/main/kotlin/convention.android-app.gradle.kts
native/sdds-android/build-system/conventions/src/main/kotlin/convention.android-lib.gradle.kts
native/sdds-android/build-system/conventions/src/main/kotlin/convention.detekt.gradle.kts
native/sdds-android/build-system/conventions/src/main/kotlin/convention.root-project.gradle.kts
native/sdds-android/build-system/conventions/src/main/kotlin/convention.spotless.gradle.kts
native/sdds-android/build-system/detekt-rules/build.gradle.kts
native/sdds-android/gradle/libs.versions.toml
androidx.appcompat:appcompat 1.3.1
androidx.core:core-ktx 1.7.0
androidx.compose:compose-bom 2022.11.00
org.jetbrains.kotlin:kotlin-stdlib 1.7.10
com.pinterest:ktlint 0.50.0
io.gitlab.arturbosch.detekt:detekt-api 1.22.0
io.gitlab.arturbosch.detekt:detekt-formatting 1.22.0
io.gitlab.arturbosch.detekt:detekt-test 1.22.0
com.android.tools.lint:lint-api 30.4.2
com.android.tools.lint:lint-checks 30.4.2
junit:junit 4.13.2
io.mockk:mockk 1.12.2
org.robolectric:robolectric 4.9
androidx.test.ext:junit 1.1.5
androidx.test:rules 1.5.0
androidx.test:runner 1.5.2
androidx.test.espresso:espresso-core 3.4.0
com.android.tools.build:gradle 7.4.2
io.gitlab.arturbosch.detekt:detekt-gradle-plugin 1.22.0
org.jetbrains.kotlin:kotlin-gradle-plugin 1.7.10
app.cash.paparazzi:paparazzi-gradle-plugin 1.2.0
com.diffplug.spotless:spotless-plugin-gradle 6.20.0
org.gradle.android.cache-fix:org.gradle.android.cache-fix.gradle.plugin 3.0.1
com.android.library 7.4.2
com.android.application 7.4.2
org.jetbrains.kotlin.android 1.7.10
org.jetbrains.kotlin.jvm 1.7.10
app.cash.paparazzi 1.2.0
org.gradle.android.cache-fix 3.0.1
native/sdds-android/sdds-core/gradle.properties
native/sdds-android/sdds-core/settings.gradle.kts
native/sdds-android/sdds-core/build.gradle.kts
native/sdds-android/sdds-core/plugin_theme_builder/build.gradle.kts
native/sdds-android/sdds-core/sandbox/build.gradle.kts
native/sdds-android/sdds-core/uikit/build.gradle.kts
native/sdds-android/sdds-core/uikit-compose/build.gradle.kts
native/sdds-android/build-system/gradle/wrapper/gradle-wrapper.properties
gradle 7.6
native/sdds-android/gradle/wrapper/gradle-wrapper.properties
gradle 7.6
native/sdds-android/sdds-core/gradle/wrapper/gradle-wrapper.properties
gradle 7.6
actions/perftest-helpers/package.json
@actions/core 1.10.1
@actions/github 6.0.0
got 11.8.6
@types/got 9.6.12
@types/jest 29.5.5
@types/node 20.8.4
@types/semver 7.5.3
jest 29.7.0
ts-jest 29.1.1
actions/platform-test/package.json
debug ^4.3.3
invariant 2.2.4
@types/debug ^4.1.7
@types/invariant 2.2.35
@types/node ^17.0.17
ts-node ^10.5.0
actions/versionate-docs/package.json
@actions/core 1.6.0
@actions/github 5.0.0
semver 7.3.5
@types/jest ^26.0.20
@types/semver 7.3.9
jest ^26.6.3
ts-jest ^26.5.3
package.json
babel-plugin-annotate-pure-calls 0.4.0
patch-package 8.0.0
@actions/core 1.2.7
@actions/github 4.0.0
@auto-it/conventional-commits 11.1.1
@auto-it/npm 11.1.1
@auto-it/released 11.1.1
@auto-it/upload-assets 11.1.1
@babel/plugin-proposal-class-properties 7.18.6
@babel/plugin-transform-react-constant-elements 7.22.5
@commitlint/cli 17.4.4
@commitlint/config-conventional 17.4.4
@cypress/code-coverage 3.9.11
@cypress/react 5.9.2
@cypress/webpack-dev-server 1.4.0
@cypress/webpack-preprocessor 5.9.1
@salutejs/eslint-config 1.2.0
@salutejs/eslint-config-base 0.4.0
@salutejs/perftool 0.25.0
@salutejs/prettier-config 0.3.0
@testing-library/cypress 7.0.7
@types/cypress-image-snapshot 3.1.6
@types/mocha 9.0.0
@types/node 16.11.6
@types/react-native 0.69.6
@typescript-eslint/eslint-plugin 5.48.2
@typescript-eslint/parser 5.48.2
auto 11.1.1
axe-core 4.3.4
babel-eslint 10.1.0
babel-loader 9.1.3
babel-plugin-const-enum 1.2.0
babel-plugin-inline-svg 1.2.0
babel-plugin-istanbul 6.1.1
babel-plugin-styled-components 1.13.2
chalk 4.1.2
commander 10.0.0
cypress-axe 0.13.0
cypress-image-snapshot 4.0.1
cypress-plugin-tab 1.0.5
cypress-react-unit-test 4.17.2
endent 2.1.0
eslint-config-airbnb 18.1.0
eslint-config-prettier 6.11.0
eslint-plugin-cypress 2.11.1
eslint-plugin-flowtype 4.7.0
eslint-plugin-import >= 2.27.4
eslint-plugin-jest 23.8.2
eslint-plugin-jsx-a11y 6.2.3
eslint-plugin-prettier 3.1.3
eslint-plugin-react 7.19.0
eslint-plugin-react-hooks 3.0.0
fast-glob 3.2.12
file-loader 6.2.0
fs-extra 10.0.0
html-webpack-plugin 5.3.2
http-server 0.12.3
husky ^8.0.0
image-loader 0.0.1
io-ts 2.2.20
lint-staged 13.1.2
nyc 15.1.0
prettier 2.0.5
required-path 1.0.1
semver 7.3.7
stylelint 13.3.3
stylelint-config-recommended 3.0.0
stylelint-config-styled-components 0.1.1
stylelint-order 4.0.0
stylelint-prettier 1.1.2
stylelint-processor-styled-components 1.10.0
terminal-link 3.0.0
ts-loader 9.2.3
url-loader 4.1.1
webpack 5.76.0
webpack-dev-server 3.11.2
chokidar ^3.3.1
packages/caldera-online/package.json
@salutejs/plasma-new-hope 0.52.0-dev.0
@salutejs/plasma-tokens 1.74.0-dev.0
@salutejs/plasma-typo 0.40.0
@babel/cli 7.15.4
@babel/core 7.15.5
@babel/plugin-transform-react-constant-elements 7.17.12
@babel/preset-env 7.15.4
@babel/preset-react 7.14.5
@babel/preset-typescript 7.15.0
@microsoft/api-extractor 7.38.3
@salutejs/plasma-colors 0.12.0
@salutejs/plasma-core 1.151.0-dev.0
@salutejs/plasma-cy-utils 0.83.0-dev.0
@salutejs/plasma-sb-utils 0.149.0-dev.0
@storybook/addon-docs 7.5.3
@storybook/addon-essentials 7.5.3
@storybook/addons 7.5.3
@storybook/react 7.5.3
@storybook/react-vite 7.5.3
@storybook/theming 7.5.3
@types/node 16.7.13
@types/react 18.0.28
@types/react-dom 18.0.11
@types/styled-components 5.1.0
@vitejs/plugin-react 3.1.0
babel-loader 8.2.2
babel-plugin-annotate-pure-calls 0.4.0
babel-plugin-styled-components 1.13.2
babel-plugin-transform-class-properties 6.24.1
default-browser-id 2.0.0
storybook 7.5.3
styled-components 5.3.1
typescript-coverage-report 0.7.0
vite 4.5.1
styled-components ^5.1.1
packages/caldera/package.json
@salutejs/plasma-new-hope 0.52.0-dev.0
@salutejs/plasma-tokens 1.74.0-dev.0
@salutejs/plasma-typo 0.40.0
@babel/cli 7.15.4
@babel/core 7.15.5
@babel/plugin-transform-react-constant-elements 7.17.12
@babel/preset-env 7.15.4
@babel/preset-react 7.14.5
@babel/preset-typescript 7.15.0
@microsoft/api-extractor 7.38.3
@salutejs/plasma-colors 0.12.0
@salutejs/plasma-core 1.151.0-dev.0
@salutejs/plasma-cy-utils 0.83.0-dev.0
@salutejs/plasma-sb-utils 0.149.0-dev.0
@storybook/addon-docs 7.5.3
@storybook/addon-essentials 7.5.3
@storybook/addons 7.5.3
@storybook/react 7.5.3
@storybook/react-vite 7.5.3
@storybook/theming 7.5.3
@types/node 16.7.13
@types/react 18.0.28
@types/react-dom 18.0.11
@types/styled-components 5.1.0
@vitejs/plugin-react 3.1.0
babel-loader 8.2.2
babel-plugin-annotate-pure-calls 0.4.0
babel-plugin-styled-components 1.13.2
babel-plugin-transform-class-properties 6.24.1
default-browser-id 2.0.0
storybook 7.5.3
styled-components 5.3.1
typescript-coverage-report 0.7.0
vite 4.5.1
styled-components ^5.1.1
packages/plasma-asdk/package.json
@salutejs/plasma-new-hope 0.52.0-dev.0
@salutejs/plasma-tokens 1.74.0-dev.0
@salutejs/plasma-tokens-b2b 1.33.0
@salutejs/plasma-typo 0.40.0
@babel/cli 7.15.4
@babel/core 7.15.5
@babel/plugin-transform-react-constant-elements 7.17.12
@babel/preset-env 7.15.4
@babel/preset-react 7.14.5
@babel/preset-typescript 7.15.0
@microsoft/api-extractor 7.38.3
@salutejs/plasma-colors 0.12.0
@salutejs/plasma-core 1.151.0-dev.0
@salutejs/plasma-cy-utils 0.83.0-dev.0
@salutejs/plasma-icons 1.184.0-dev.0
@salutejs/plasma-sb-utils 0.149.0-dev.0
@storybook/addon-docs 7.5.3
@storybook/addon-essentials 7.5.3
@storybook/addons 7.5.3
@storybook/react 7.5.3
@storybook/react-vite 7.5.3
@storybook/theming 7.5.3
@types/node 16.7.13
@types/react 18.0.28
@types/react-dom 18.0.11
@types/styled-components 5.1.0
@vitejs/plugin-react 3.1.0
babel-loader 8.2.2
babel-plugin-annotate-pure-calls 0.4.0
babel-plugin-styled-components 1.13.2
babel-plugin-transform-class-properties 6.24.1
default-browser-id 2.0.0
storybook 7.5.3
styled-components 5.3.1
typescript-coverage-report 0.7.0
vite 4.5.1
styled-components ^5.1.1
packages/plasma-b2c/package.json
@salutejs/plasma-core 1.151.0-dev.0
@salutejs/plasma-hope 1.265.0-dev.0
@salutejs/plasma-new-hope 0.52.0-dev.0
@salutejs/plasma-tokens-b2c 0.43.0
@salutejs/plasma-tokens-web 1.48.0
@salutejs/plasma-typo 0.40.0
@babel/cli 7.15.4
@babel/core 7.15.5
@babel/plugin-transform-react-constant-elements 7.17.12
@babel/preset-env 7.15.4
@babel/preset-react 7.14.5
@babel/preset-typescript 7.15.0
@ironkinoko/rollup-plugin-styles 4.0.3
@linaria/rollup 5.0.4
@microsoft/api-extractor 7.38.3
@rollup/plugin-babel 6.0.4
@rollup/plugin-commonjs 25.0.7
@rollup/plugin-node-resolve 15.2.3
@salutejs/plasma-colors 0.12.0
@salutejs/plasma-cy-utils 0.83.0-dev.0
@salutejs/plasma-icons 1.184.0-dev.0
@salutejs/plasma-sb-utils 0.149.0-dev.0
@storybook/addon-docs 7.5.3
@storybook/addon-essentials 7.5.3
@storybook/addon-knobs 7.0.2
@storybook/addons 7.5.3
@storybook/react 7.5.3
@storybook/react-vite 7.5.3
@storybook/theming 7.5.3
@types/node 16.7.13
@types/react 18.0.28
@types/react-dom 18.0.11
@types/resize-observer-browser 0.1.6
@types/styled-components 5.1.0
@vitejs/plugin-react 3.1.0
babel-loader 8.2.2
babel-plugin-annotate-pure-calls 0.4.0
babel-plugin-styled-components 1.13.2
babel-plugin-transform-class-properties 6.24.1
default-browser-id 2.0.0
rollup 3.29.4
storybook 7.5.3
styled-components 5.3.1
ts-node 10.3.0
typescript-coverage-report 0.7.0
vite 4.5.1
@salutejs/plasma-icons ^1.0.0
styled-components ^5.1.1
packages/plasma-colors/package.json
packages/plasma-core/package.json
@popperjs/core 2.9.2
@salutejs/plasma-typo 0.40.0
focus-visible 5.2.0
lodash.throttle 4.1.1
react-draggable 4.4.3
react-popper 2.3.0
@babel/cli 7.15.4
@babel/core 7.15.5
@babel/plugin-transform-react-constant-elements 7.17.12
@babel/preset-env 7.15.4
@babel/preset-react 7.14.5
@babel/preset-typescript 7.15.0
@microsoft/api-extractor 7.38.3
@salutejs/plasma-cy-utils 0.83.0-dev.0
@types/jest 27.0.1
@types/lodash.throttle 4.1.6
@types/node 15.14.9
@types/react 18.0.28
@types/react-dom 18.0.11
@types/resize-observer-browser 0.1.7
@types/styled-components 5.1.0
babel-loader 8.2.2
babel-plugin-annotate-pure-calls 0.4.0
babel-plugin-styled-components 1.13.2
babel-plugin-transform-class-properties 6.24.1
full-icu 1.3.4
jest 27.1.0
styled-components 5.3.1
ts-jest 27.0.5
ts-node 10.2.1
typescript-coverage-report 0.7.0
styled-components ^5.1.1
packages/plasma-hope/package.json
@popperjs/core 2.9.2
@salutejs/plasma-core 1.151.0-dev.0
@salutejs/plasma-typo 0.40.0
react-file-drop 3.1.6
react-popper 2.3.0
react-sortable-hoc 2.0.0
storeon 3.1.4
@babel/cli 7.15.4
@babel/core 7.15.5
@babel/plugin-transform-react-constant-elements 7.17.12
@babel/preset-env 7.15.4
@babel/preset-react 7.14.5
@babel/preset-typescript 7.15.0
@microsoft/api-extractor 7.38.3
@salutejs/plasma-colors 0.12.0
@salutejs/plasma-cy-utils 0.83.0-dev.0
@salutejs/plasma-icons 1.184.0-dev.0
@salutejs/plasma-sb-utils 0.149.0-dev.0
@salutejs/plasma-tokens-b2b 1.33.0
@salutejs/plasma-tokens-b2c 0.43.0
@salutejs/plasma-tokens-web 1.48.0
@testing-library/react-hooks 8.0.1
@types/jest 27.0.2
@types/node 16.7.13
@types/react 18.0.28
@types/react-dom 18.0.11
@types/resize-observer-browser 0.1.7
@types/styled-components 5.1.0
babel-loader 8.2.2
babel-plugin-annotate-pure-calls 0.4.0
babel-plugin-styled-components 1.13.2
babel-plugin-transform-class-properties 6.24.1
jest 27.2.5
styled-components 5.3.1
ts-jest 27.0.6
typescript-coverage-report 0.7.0
@salutejs/plasma-icons ^1.0.0
styled-components ^5.1.1
packages/plasma-icons/package.json
@babel/cli ^7.15.4
@babel/core ^7.15.5
@babel/plugin-transform-react-constant-elements ^7.17.12
@babel/preset-env ^7.15.4
@babel/preset-react ^7.14.5
@babel/preset-typescript ^7.15.0
@salutejs/plasma-core 1.151.0-dev.0
@types/node ^16.7.13
@types/react ^18.0.28
@types/react-dom ^18.0.11
@types/styled-components ^5.1.14
babel-loader ^8.2.2
babel-plugin-annotate-pure-calls 0.4.0
babel-plugin-styled-components ^1.13.2
babel-plugin-transform-class-properties 6.24.1
styled-components ^5.3.1
@salutejs/plasma-core ^1.0.0
styled-components ^5.1.1
packages/plasma-new-hope/package.json
@linaria/core 5.0.2
@linaria/react 5.0.3
@popperjs/core 2.11.8
@salutejs/plasma-core 1.151.0-dev.0
@salutejs/plasma-tokens 1.74.0-dev.0
focus-visible 5.2.0
react-popper 2.3.0
storeon 3.1.5
@babel/cli 7.15.4
@babel/core 7.15.5
@babel/plugin-transform-react-constant-elements 7.17.12
@babel/preset-env 7.15.4
@babel/preset-react 7.14.5
@babel/preset-typescript 7.15.0
@ironkinoko/rollup-plugin-styles ^4.0.3
@linaria/rollup 5.0.4
@linaria/vite 5.0.4
@rollup/plugin-babel ^6.0.3
@rollup/plugin-commonjs ^25.0.4
@rollup/plugin-node-resolve ^15.1.0
@salutejs/plasma-sb-utils 0.149.0-dev.0
@storybook/addon-docs ^7.5.3
@storybook/addon-essentials ^7.5.3
@storybook/addons ^7.5.3
@storybook/react ^7.5.3
@storybook/react-vite 7.5.3
@storybook/theming ^7.5.3
@types/lodash ^4.14.191
@types/node 15.14.9
@types/react 18.0.28
@types/react-dom 18.0.11
@types/styled-components 5.1.0
@vitejs/plugin-react ^3.1.0
babel-loader 8.2.2
babel-plugin-annotate-pure-calls 0.4.0
babel-plugin-styled-components 1.13.2
babel-plugin-transform-class-properties 6.24.1
default-browser-id 2.0.0
rollup ^3.28.0
storybook 7.5.3
styled-components 5.3.1
vite 4.5.1
packages/plasma-tokens-b2b/design-language/package.json
@diez/engine ^10.6.0
@diez/prefabs ^10.6.0
color ^3.1.2
@diez/compiler-core ^10.6.0
@diez/extractors ^10.6.0
@diez/start ^10.6.0
@diez/stdlib ^10.6.0
diez ^10.6.0
packages/plasma-tokens-b2b/package.json
@salutejs/plasma-colors 0.12.0
@salutejs/plasma-tokens-core 0.6.0
@salutejs/plasma-tokens-utils 0.37.0
@types/node 16.7.13
deepmerge 4.2.2
jsdom 17.0.0
jsdom-global 3.0.2
ts-node 10.2.1
packages/plasma-tokens-b2c/design-language/package.json
@diez/engine ^10.6.0
@diez/prefabs ^10.6.0
color ^3.1.2
@diez/compiler-core ^10.6.0
@diez/extractors ^10.6.0
@diez/start ^10.6.0
@diez/stdlib ^10.6.0
diez ^10.6.0
packages/plasma-tokens-b2c/package.json
@salutejs/plasma-colors 0.12.0
@salutejs/plasma-tokens-core 0.6.0
@salutejs/plasma-tokens-utils 0.37.0
@types/node 16.7.13
deepmerge 4.2.2
jsdom 17.0.0
jsdom-global 3.0.2
ts-node 10.2.1
packages/plasma-tokens-core/package.json
@types/styled-components ^5.1.0
packages/plasma-tokens-web/design-language/package.json
@diez/engine ^10.6.0
@diez/prefabs ^10.6.0
color ^3.1.2
@diez/compiler-core ^10.6.0
@diez/extractors ^10.6.0
@diez/start ^10.6.0
@diez/stdlib ^10.6.0
diez ^10.6.0
packages/plasma-tokens-web/package.json
@salutejs/plasma-colors 0.12.0
@salutejs/plasma-tokens-core 0.6.0
@salutejs/plasma-tokens-utils 0.37.0
@types/node 16.7.13
deepmerge 4.2.2
jsdom 17.0.0
jsdom-global 3.0.2
ts-node 10.2.1
packages/plasma-tokens/package.json
@diez/web-sdk-common 10.6.0
@salutejs/plasma-colors 0.12.0
@salutejs/plasma-tokens-utils 0.37.0
@salutejs/plasma-typo 0.40.0
@types/node 16.7.13
jsdom 17.0.0
jsdom-global 3.0.2
styled-components 5.3.6
ts-node 10.2.1
styled-components ^5.1.1
packages/plasma-typo/package.json
@types/node 16.7.13
@types/react 18.0.28
@types/react-dom 18.0.11
@types/styled-components 5.1.0
styled-components 5.3.1
styled-components ^5.1.1
packages/plasma-ui/package.json
@salutejs/plasma-core 1.151.0-dev.0
@salutejs/plasma-typo 0.40.0
color 3.1.2
lodash.throttle 4.1.1
react-draggable 4.4.3
@babel/cli 7.15.4
@babel/core 7.15.5
@babel/plugin-transform-react-constant-elements 7.17.12
@babel/preset-env 7.15.4
@babel/preset-react 7.14.5
@babel/preset-typescript 7.15.0
@salutejs/plasma-cy-utils 0.83.0-dev.0
@salutejs/plasma-icons 1.184.0-dev.0
@salutejs/plasma-sb-utils 0.149.0-dev.0
@salutejs/plasma-tokens 1.74.0-dev.0
@salutejs/use-virtual 2.0.0
@storybook/addon-docs 7.5.3
@storybook/addon-essentials 7.5.3
@storybook/addons 7.5.3
@storybook/react 7.5.3
@storybook/react-vite 7.5.3
@storybook/theming 7.5.3
@testing-library/react 12.0.0
@types/color 3.0.2
@types/jest 26.0.24
@types/lodash.throttle 4.1.6
@types/node 16.7.13
@types/react 18.0.28
@types/react-dom 18.0.11
@types/resize-observer-browser 0.1.7
@types/styled-components 5.1.0
@vitejs/plugin-react 3.1.0
babel-loader 8.2.2
babel-plugin-annotate-pure-calls 0.4.0
babel-plugin-styled-components 1.13.2
babel-plugin-transform-class-properties 6.24.1
default-browser-id 2.0.0
http-server 14.1.1
jest 27.1.0
jest-styled-components 7.0.5
storybook 7.5.3
styled-components 5.3.1
ts-jest 27.0.5
typescript-coverage-report 0.7.0
vite 4.5.1
@salutejs/plasma-icons ^1.0.0
@salutejs/plasma-tokens ^1.0.0
styled-components ^5.1.1
packages/plasma-web/package.json
@salutejs/plasma-core 1.151.0-dev.0
@salutejs/plasma-hope 1.265.0-dev.0
@salutejs/plasma-new-hope 0.52.0-dev.0
@salutejs/plasma-tokens-b2b 1.33.0
@salutejs/plasma-tokens-b2c 0.43.0
@salutejs/plasma-tokens-web 1.48.0
@salutejs/plasma-typo 0.40.0
@babel/cli 7.15.4
@babel/core 7.15.5
@babel/plugin-transform-react-constant-elements 7.17.12
@babel/preset-env 7.15.4
@babel/preset-react 7.14.5
@babel/preset-typescript 7.15.0
@ironkinoko/rollup-plugin-styles 4.0.3
@linaria/rollup 5.0.4
@microsoft/api-extractor 7.38.3
@rollup/plugin-babel 6.0.4
@rollup/plugin-commonjs 25.0.7
@rollup/plugin-node-resolve 15.2.3
@salutejs/plasma-colors 0.12.0
@salutejs/plasma-cy-utils 0.83.0-dev.0
@salutejs/plasma-icons 1.184.0-dev.0
@salutejs/plasma-sb-utils 0.149.0-dev.0
@storybook/addon-docs 7.5.3
@storybook/addon-essentials 7.5.3
@storybook/addons 7.5.3
@storybook/react 7.5.3
@storybook/react-vite 7.5.3
@storybook/theming 7.5.3
@types/node 16.7.13
@types/react 18.0.28
@types/react-dom 18.0.11
@types/styled-components 5.1.0
@vitejs/plugin-react 3.1.0
babel-loader 8.2.2
babel-plugin-annotate-pure-calls 0.4.0
babel-plugin-styled-components 1.13.2
babel-plugin-transform-class-properties 6.24.1
default-browser-id 2.0.0
rollup 3.28.0
storybook 7.5.3
styled-components 5.3.1
typescript-coverage-report 0.7.0
vite 4.5.1
@salutejs/plasma-icons ^1.0.0
styled-components ^5.1.1
packages/sdds-serv/package.json
@salutejs/plasma-new-hope 0.52.0-dev.0
@salutejs/plasma-tokens 1.74.0-dev.0
@salutejs/plasma-typo 0.40.0
@babel/cli 7.15.4
@babel/core 7.15.5
@babel/plugin-transform-react-constant-elements 7.17.12
@babel/preset-env 7.15.4
@babel/preset-react 7.14.5
@babel/preset-typescript 7.15.0
@microsoft/api-extractor 7.38.3
@salutejs/plasma-colors 0.12.0
@salutejs/plasma-core 1.151.0-dev.0
@salutejs/plasma-cy-utils 0.83.0-dev.0
@salutejs/plasma-sb-utils 0.149.0-dev.0
@storybook/addon-docs 7.5.3
@storybook/addon-essentials 7.5.3
@storybook/addons 7.5.3
@storybook/react 7.5.3
@storybook/react-vite 7.5.3
@storybook/theming 7.5.3
@types/node 16.7.13
@types/react 18.0.28
@types/react-dom 18.0.11
@types/styled-components 5.1.0
@vitejs/plugin-react 3.1.0
babel-loader 8.2.2
babel-plugin-annotate-pure-calls 0.4.0
babel-plugin-styled-components 1.13.2
babel-plugin-transform-class-properties 6.24.1
default-browser-id 2.0.0
storybook 7.5.3
styled-components 5.3.1
typescript-coverage-report 0.7.0
vite 4.5.1
styled-components ^5.1.1
utils/plasma-cy-utils/package.json
@cypress/react 5.10.1
@salutejs/plasma-tokens 1.74.0-dev.0
@salutejs/plasma-tokens-b2b 1.33.0
@salutejs/plasma-tokens-b2c 0.43.0
@salutejs/plasma-tokens-web 1.48.0
@salutejs/plasma-typo 0.40.0
@types/react 18.0.28
@types/react-dom 18.0.11
@types/styled-components 5.1.0
styled-components 5.3.1
typescript-coverage-report 0.7.0
styled-components ^5.1.1
utils/plasma-docs-ui/package.json
@salutejs/plasma-core 1.151.0-dev.0
@salutejs/plasma-tokens-b2b 1.33.0
@salutejs/plasma-web 1.288.0-dev.0
@types/marked 3.0.1
codesandbox 2.2.3
marked 3.0.7
qs 6.10.1
react-docgen-typescript 2.1.1
@types/qs 6.9.9
@types/react 18.0.28
@types/react-dom 18.0.11
@types/styled-components 5.1.14
styled-components 5.3.1
styled-components ^5.3.1
utils/plasma-sb-utils/package.json
param-case ^3.0.4
@salutejs/plasma-colors 0.12.0
@salutejs/plasma-core 1.151.0-dev.0
@storybook/react 6.3.8
@types/react 18.0.28
@types/react-dom 18.0.11
@types/styled-components ^5.1.0
styled-components ^5.1.1
@salutejs/plasma-colors >=0.1.2
@salutejs/plasma-core ^1.12.1
styled-components ^5.1.1
utils/plasma-tokens-native/package.json
@salutejs/plasma-tokens 1.74.0-dev.0
@salutejs/plasma-tokens-utils 0.37.0
@salutejs/plasma-typo 0.40.0
style-dictionary ^3.7.2
styled-components ^5.3.10
ts-node ^10.9.1
utils/plasma-tokens-utils/package.json
@salutejs/plasma-colors 0.12.0
@salutejs/plasma-typo 0.40.0
@theme-ui/css 0.3.1
color ^4.2.3
csstype 3.0.3
param-case 3.0.3
@types/color ^3.0.3
@types/jest ^26.0.20
@types/node ^14.11.1
jest ^26.6.3
ts-jest ^26.5.3
ts-node ^9.1.1
website/plasma-theme-builder/package.json
@salutejs/plasma-b2c 1.288.0-dev.0
@salutejs/plasma-colors 0.12.0
@salutejs/plasma-icons 1.184.0-dev.0
@salutejs/plasma-tokens-b2b 1.33.0
@salutejs/plasma-tokens-b2c 0.43.0
@salutejs/plasma-tokens-utils 0.37.0
@salutejs/plasma-tokens-web 1.48.0
@salutejs/plasma-typo 0.40.0
octokit ^1.7.1
prettier ^2.6.2
react-scripts 4.0.0
styled-components ^5.3.3
@types/react ^18.2.0
@types/react-dom ^18.2.0
@types/styled-components ^5.1.26
react-error-overlay 6.0.9
react-error-overlay 6.0.9
website/plasma-ui-docs/package.json
@docusaurus/core 3.1.1
@docusaurus/preset-classic 3.1.1
@docusaurus/theme-live-codeblock 3.1.1
@mdx-js/react 3.0.0
@salutejs/plasma-core 1.151.0-dev.0
@salutejs/plasma-docs-ui 0.199.0-dev.0
@salutejs/plasma-icons 1.184.0-dev.0
@salutejs/plasma-tokens 1.74.0-dev.0
@salutejs/plasma-tokens-web 1.48.0
@salutejs/plasma-ui 1.235.0-dev.0
@salutejs/plasma-web 1.288.0-dev.0
@salutejs/use-virtual 2.0.0
@svgr/webpack 8.1.0
clsx ^1.1.1
file-loader ^6.2.0
prism-react-renderer 2.3.1
styled-components ^5.3.0
url-loader ^4.1.1
@docusaurus/module-type-aliases 3.1.1
@tsconfig/docusaurus 2.0.2
@types/react 18.0.28
@types/react-router-dom ^5.1.8
@types/styled-components ^5.1.12
fast-glob 3.2.12
react-docgen-typescript 2.2.2
website/plasma-web-docs/package.json
@docusaurus/core 3.1.1
@docusaurus/preset-classic 3.1.1
@docusaurus/theme-live-codeblock 3.1.1
@mdx-js/react 3.0.0
@salutejs/plasma-docs-ui 0.199.0-dev.0
@salutejs/plasma-icons 1.184.0-dev.0
@salutejs/plasma-tokens-b2b 1.33.0
@salutejs/plasma-tokens-b2c 0.43.0
@salutejs/plasma-tokens-web 1.48.0
@salutejs/plasma-typo 0.40.0
@salutejs/plasma-web 1.288.0-dev.0
@svgr/webpack 8.1.0
clsx ^1.1.1
file-loader ^6.2.0
prism-react-renderer 2.3.1
styled-components ^5.3.1
url-loader ^4.1.1
@docusaurus/module-type-aliases 3.1.1
@docusaurus/types 3.1.1
@tsconfig/docusaurus 2.0.2
@types/react 18.0.28
@types/react-dom 18.0.11
@types/react-router-dom ^5.1.8
@types/styled-components ^5.1.14
fast-glob 3.2.12
react-docgen-typescript 2.2.2
website/plasma-website/package.json
@salutejs/plasma-b2c 1.288.0-dev.0
@salutejs/plasma-icons 1.184.0-dev.0
@salutejs/plasma-tokens-b2c 0.43.0
@salutejs/plasma-typo 0.40.0
next ^12.3.4
styled-components ^5.3.0
@types/react ^18.0.28
@types/react-dom ^18.0.11
@types/styled-components ^5.1.0
eslint-config-next 11.0.1
.nvmrc
Describe the bug
function App() {
return (
<TextSkeleton size="paragraph1" lines={4} width="50px" />
);
}
в свойствах указано:
width?: string | number;
Заданная ширина линий в процентах; по умолчанию подбирается случайная для заданного кол-ва линий
в случае строки компонент только растягивается на всю ширину
I'm having a problem with this.
check this pr: react-grid-layout/react-draggable#648
Необходимо исправить поведение и отображение компонента.
Правильным поведением считается следующее:
Данная логика уже реализована в #244.
В идеале необходимо перенести новую логику описанную в #244 в текущей компонент plasma-web и сделать re-export данного компонента в библиотеке plasma-b2c.
Нужно исправить тест связанный с примером "clearTimeout on hide".
Нужно найти способ программно из cypress закрыть toast
.
Текущий пример некорректен в плане того, что text: string
и не может быть React.Element
надо разобраться с типизацией
Для компонента "Image" необходимо корректно указать тип.
Вот так выглядит обертка:
export const Image: FC<ImageProps> = styled(ImageBase)``;
Обратите внимание на FC<ImageProps>
и из-за этого мы уже не можем сделать
styled.div`
${Image} {
display: none
}
`
Нужно что бы было явно указано что это styled component.
Наличие таких мест говорит о кривом проектировании компонента, нужно зарефатчить:
packages/plasma-core/src/components/Toast/ToastController.tsx
5:import { safeFlushSync } from '../../utils';
101: safeFlushSync(() => {
packages/plasma-ui/src/components/Pickers/Picker.tsx
9:import { safeFlushSync, IS_REACT_18 } from '../../utils';
420: safeFlushSync(() => {
431: safeFlushSync(() => {
434: safeFlushSync(() => {
438: safeFlushSync(() => {
444: safeFlushSync(() => {
465: safeFlushSync(() => {
468: safeFlushSync(() => {
473: safeFlushSync(() => {
480: safeFlushSync(() => {
Перед тем как будет переход Plasma на версию 2.0 нужно удалить ShowToastCallSignatureLegacy
в Toast.types.ts
Price.component-test.tsx
Разобраться почему в этих тестах нужно использовать глобальные стили.
визуально:
Учесть Button_size_* / Button_view_*
Button_progress => влечет за собой disabled скорее всего, но нужно уточнить по доступности;
предлагается 1) параметризовать вызов onStart, передаваемый в ScreensContainer, обеспечить возможность не ждать готовности Assistant (ждать/ не ждать) и 2) сделать возможным использование Screens Provider отдельно от ScreensContainer, для этого
пробрасывать onStart из AssistantProvider в ScreensProvider (если ждать) или сразу вызывать в ScreensProvider - это позволит отдельно делать приложения без ScreensContainer, начиная с ScreensProvider. В ScreensProvider добавить onStart в атрибуты
Describe the bug
При сборке @salutejs/plasma-theme-builder через CI после использования npx lerna bootstrap
сервис не запускается, т.к. в main чанк попадает много лишних компонентов библиотеки.
To Reproduce
Вернуть в шаг Setup packages вернуть npx lerna bootstrap
и вернуть шаг Lint.
Expected behavior
Сборка через лёрну в CI и запуск не будет ломаться
documentation about Toast from plasma-web:
https://plasma.sberdevices.ru/web/components/toast/
uses plasma-ui:
import { useToast, Button } from '@salutejs/plasma-ui'
sandbox с ошибочным повиденением: https://codesandbox.io/s/heuristic-kirch-j4cdn1?file=/src/App.tsx
видео с проблемой: https://user-images.githubusercontent.com/33093997/205976322-be20119d-2bbc-4cf1-b3f5-c29838fdbd01.mov
default=false
Удалить и проверить после обновления jest и typescript. Проблема в том, что в пакетах plasma-ui, plasma-temple и plasma-b2c присутствует зависимость jest@27, которая не поддерживается текущей версией сборщика Vite в сторибуке:
При клике на буквы таба рендер контента происходит со второго раза.
Пример: https://codesandbox.io/s/plasma-web-example-forked-030dlc?file=/src/App.js
remove comment: #161
and fix all occurrences
Сейчас в NVDA после изменения слайда не зачитывается порядковый номер слайда пока не переключишься на внешний контейнер. Для JAWS всё работает корректно.
I'm having a problem with this.
I'm having a problem with this.
В текущей реализации фокус выключен для обоих состояний.
Нужно сделать следующее:
Примечание: readonly - это когда в барабане только одно значение.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.