diff --git a/.changeset/nervous-ants-learn.md b/.changeset/nervous-ants-learn.md new file mode 100644 index 0000000000..14795869f3 --- /dev/null +++ b/.changeset/nervous-ants-learn.md @@ -0,0 +1,33 @@ +--- +'@alfalab/core-components-drawer': patch +'@alfalab/core-components-form-control': patch +'@alfalab/core-components-notification': patch +'@alfalab/core-components-notification-manager': patch +'@alfalab/core-components-number-input': patch +'@alfalab/core-components-pagination': patch +'@alfalab/core-components-pass-code': patch +'@alfalab/core-components-pass-code-v1': patch +'@alfalab/core-components-password-input': patch +'@alfalab/core-components-pattern-lock': patch +'@alfalab/core-components-pattern-lock-v1': patch +'@alfalab/core-components-popover': patch +'@alfalab/core-components-popup-sheet': patch +'@alfalab/core-components-portal': patch +'@alfalab/core-components-product-cover': patch +'@alfalab/core-components-pure-cell': patch +'@alfalab/core-components-radio': patch +'@alfalab/core-components-radio-group': patch +'@alfalab/core-components-segmented-control': patch +'@alfalab/core-components-shared': patch +'@alfalab/core-components-skeleton': patch +'@alfalab/core-components-slider-input': patch +'@alfalab/core-components-status-badge': patch +'@alfalab/core-components-stepped-progress-bar': patch +'@alfalab/core-components-switch': patch +'@alfalab/core-components-system-message': patch +'@alfalab/core-components-time-input': patch +'@alfalab/core-components-with-suffix': patch +--- + +- Добавлено "sideEffects": false, чтобы бандлер лучше делал тришейк. +- В SideEffect пакета base-modal добавлена зависимость от полифила. diff --git a/bin/build.sh b/bin/build.sh index 05c0159095..dfd2e40d64 100755 --- a/bin/build.sh +++ b/bin/build.sh @@ -26,7 +26,7 @@ lerna exec --scope @alfalab/core-components-themes -- node $(pwd)/bin/build-them lerna exec --scope @alfalab/core-components-vars -- node $(pwd)/bin/export-css-custom-properties-as-js-vars.js # собираю все подпакеты с компонентами -lerna exec --concurrency $CONCURRENCY \ +lerna exec --scope @alfalab/core-components-base-modal \ --ignore @alfalab/core-components-codemod \ -- $(pwd)/bin/rollup.sh diff --git a/packages/base-modal/package.json b/packages/base-modal/package.json index b1c6d7c9bf..634e2e12d3 100644 --- a/packages/base-modal/package.json +++ b/packages/base-modal/package.json @@ -10,7 +10,9 @@ "access": "public", "directory": "dist" }, - "sideEffects": false, + "sideEffects": [ + "matches-polyfill.*" + ], "dependencies": { "@alfalab/core-components-backdrop": "^3.4.3", "@alfalab/core-components-global-store": "^2.1.0", diff --git a/packages/drawer/package.json b/packages/drawer/package.json index 94a5de42f0..9046ac14e5 100644 --- a/packages/drawer/package.json +++ b/packages/drawer/package.json @@ -10,6 +10,7 @@ "access": "public", "directory": "dist" }, + "sideEffects": false, "peerDependencies": { "react": "^16.9.0 || ^17.0.1 || ^18.0.0", "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0" diff --git a/packages/form-control/package.json b/packages/form-control/package.json index 14de9999fd..0f8c289b7a 100644 --- a/packages/form-control/package.json +++ b/packages/form-control/package.json @@ -10,6 +10,7 @@ "access": "public", "directory": "dist" }, + "sideEffects": false, "peerDependencies": { "react": "^16.9.0 || ^17.0.1 || ^18.0.0", "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0" diff --git a/packages/notification-manager/package.json b/packages/notification-manager/package.json index 0a3a4f4153..29b3b2f203 100644 --- a/packages/notification-manager/package.json +++ b/packages/notification-manager/package.json @@ -10,6 +10,7 @@ "access": "public", "directory": "dist" }, + "sideEffects": false, "peerDependencies": { "react": "^16.9.0 || ^17.0.1 || ^18.0.0" }, diff --git a/packages/notification/package.json b/packages/notification/package.json index 4e44e40541..75029dc83f 100644 --- a/packages/notification/package.json +++ b/packages/notification/package.json @@ -10,6 +10,7 @@ "access": "public", "directory": "dist" }, + "sideEffects": false, "peerDependencies": { "react": "^16.9.0 || ^17.0.1 || ^18.0.0" }, diff --git a/packages/number-input/package.json b/packages/number-input/package.json index 7d99bafd19..77eea639fa 100644 --- a/packages/number-input/package.json +++ b/packages/number-input/package.json @@ -10,6 +10,7 @@ "access": "public", "directory": "dist" }, + "sideEffects": false, "peerDependencies": { "react": "^16.9.0 || ^17.0.1 || ^18.0.0" }, diff --git a/packages/pagination/package.json b/packages/pagination/package.json index 25706f03dd..a94f0bea9a 100644 --- a/packages/pagination/package.json +++ b/packages/pagination/package.json @@ -10,6 +10,7 @@ "access": "public", "directory": "dist" }, + "sideEffects": false, "peerDependencies": { "react": "^16.9.0 || ^17.0.1 || ^18.0.0", "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0" diff --git a/packages/pass-code-v1/package.json b/packages/pass-code-v1/package.json index 0b67f2a0c3..a2ca60babb 100644 --- a/packages/pass-code-v1/package.json +++ b/packages/pass-code-v1/package.json @@ -10,6 +10,7 @@ "access": "public", "directory": "dist" }, + "sideEffects": false, "peerDependencies": { "react": "^16.9.0 || ^17.0.1 || ^18.0.0", "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0" diff --git a/packages/pass-code/package.json b/packages/pass-code/package.json index 334dbec0b3..5dad207e06 100644 --- a/packages/pass-code/package.json +++ b/packages/pass-code/package.json @@ -10,6 +10,7 @@ "access": "public", "directory": "dist" }, + "sideEffects": false, "peerDependencies": { "react": "^16.9.0 || ^17.0.1 || ^18.0.0", "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0" diff --git a/packages/password-input/package.json b/packages/password-input/package.json index 7f974f8925..668cabfbad 100644 --- a/packages/password-input/package.json +++ b/packages/password-input/package.json @@ -10,6 +10,7 @@ "access": "public", "directory": "dist" }, + "sideEffects": false, "peerDependencies": { "react": "^16.9.0 || ^17.0.1 || ^18.0.0", "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0" diff --git a/packages/pattern-lock-v1/package.json b/packages/pattern-lock-v1/package.json index 4f9c61fda1..b770b9dfea 100644 --- a/packages/pattern-lock-v1/package.json +++ b/packages/pattern-lock-v1/package.json @@ -10,6 +10,7 @@ "access": "public", "directory": "dist" }, + "sideEffects": false, "peerDependencies": { "react": "^16.9.0 || ^17.0.1 || ^18.0.0", "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0" diff --git a/packages/pattern-lock/package.json b/packages/pattern-lock/package.json index fe5f7fed77..5390ca392e 100644 --- a/packages/pattern-lock/package.json +++ b/packages/pattern-lock/package.json @@ -10,6 +10,7 @@ "access": "public", "directory": "dist" }, + "sideEffects": false, "peerDependencies": { "react": "^16.9.0 || ^17.0.1 || ^18.0.0", "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0" diff --git a/packages/popover/package.json b/packages/popover/package.json index b9c169e3c4..c45f68e92b 100644 --- a/packages/popover/package.json +++ b/packages/popover/package.json @@ -10,6 +10,7 @@ "access": "public", "directory": "dist" }, + "sideEffects": false, "peerDependencies": { "react": "^16.9.0 || ^17.0.1 || ^18.0.0", "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0" diff --git a/packages/popup-sheet/package.json b/packages/popup-sheet/package.json index c8519a40a8..f3c8e6646a 100644 --- a/packages/popup-sheet/package.json +++ b/packages/popup-sheet/package.json @@ -10,6 +10,7 @@ "access": "public", "directory": "dist" }, + "sideEffects": false, "peerDependencies": { "react": "^16.9.0 || ^17.0.1 || ^18.0.0", "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0" diff --git a/packages/portal/package.json b/packages/portal/package.json index 75e43c1c04..9069bdc518 100644 --- a/packages/portal/package.json +++ b/packages/portal/package.json @@ -10,6 +10,7 @@ "access": "public", "directory": "dist" }, + "sideEffects": false, "peerDependencies": { "react": "^16.9.0 || ^17.0.1 || ^18.0.0", "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0" diff --git a/packages/product-cover/package.json b/packages/product-cover/package.json index 8fcdb0bc53..db33b9fece 100644 --- a/packages/product-cover/package.json +++ b/packages/product-cover/package.json @@ -10,6 +10,7 @@ "access": "public", "directory": "dist" }, + "sideEffects": false, "peerDependencies": { "react": "^16.9.0 || ^17.0.1 || ^18.0.0", "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0" diff --git a/packages/pure-cell/package.json b/packages/pure-cell/package.json index d30b26e13e..8067dce96f 100644 --- a/packages/pure-cell/package.json +++ b/packages/pure-cell/package.json @@ -10,6 +10,7 @@ "access": "public", "directory": "dist" }, + "sideEffects": false, "peerDependencies": { "react": "^16.9.0 || ^17.0.1 || ^18.0.0", "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0" diff --git a/packages/radio-group/package.json b/packages/radio-group/package.json index efeeccfb2e..1715157ecd 100644 --- a/packages/radio-group/package.json +++ b/packages/radio-group/package.json @@ -10,6 +10,7 @@ "access": "public", "directory": "dist" }, + "sideEffects": false, "peerDependencies": { "react": "^16.9.0 || ^17.0.1 || ^18.0.0", "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0" diff --git a/packages/radio/package.json b/packages/radio/package.json index 8696655b42..88508233f0 100644 --- a/packages/radio/package.json +++ b/packages/radio/package.json @@ -10,6 +10,7 @@ "access": "public", "directory": "dist" }, + "sideEffects": false, "peerDependencies": { "react": "^16.9.0 || ^17.0.1 || ^18.0.0", "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0" diff --git a/packages/segmented-control/package.json b/packages/segmented-control/package.json index f1f8872b9c..e59ab0f4d0 100644 --- a/packages/segmented-control/package.json +++ b/packages/segmented-control/package.json @@ -10,6 +10,7 @@ "access": "public", "directory": "dist" }, + "sideEffects": false, "peerDependencies": { "react": "^16.9.0 || ^17.0.1 || ^18.0.0", "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0" diff --git a/packages/shared/package.json b/packages/shared/package.json index fbd2d7cd3a..9b50ea9b19 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -10,6 +10,7 @@ "access": "public", "directory": "dist" }, + "sideEffects": false, "peerDependencies": { "react": ">=16.8.0" }, diff --git a/packages/skeleton/package.json b/packages/skeleton/package.json index 6e29f5d997..56dec35373 100644 --- a/packages/skeleton/package.json +++ b/packages/skeleton/package.json @@ -10,6 +10,7 @@ "access": "public", "directory": "dist" }, + "sideEffects": false, "peerDependencies": { "react": "^16.9.0 || ^17.0.1 || ^18.0.0", "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0" diff --git a/packages/slider-input/package.json b/packages/slider-input/package.json index 2469d15d48..1293cd8f3a 100644 --- a/packages/slider-input/package.json +++ b/packages/slider-input/package.json @@ -10,6 +10,7 @@ "access": "public", "directory": "dist" }, + "sideEffects": false, "peerDependencies": { "react": "^16.9.0 || ^17.0.1 || ^18.0.0", "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0" diff --git a/packages/status-badge/package.json b/packages/status-badge/package.json index 2d89b06965..a1efc9d016 100644 --- a/packages/status-badge/package.json +++ b/packages/status-badge/package.json @@ -10,6 +10,7 @@ "access": "public", "directory": "dist" }, + "sideEffects": false, "peerDependencies": { "react": ">=16.8.0" }, diff --git a/packages/stepped-progress-bar/package.json b/packages/stepped-progress-bar/package.json index 1677d534da..e2f5a0694d 100644 --- a/packages/stepped-progress-bar/package.json +++ b/packages/stepped-progress-bar/package.json @@ -10,6 +10,7 @@ "access": "public", "directory": "dist" }, + "sideEffects": false, "peerDependencies": { "react": "^16.9.0 || ^17.0.1 || ^18.0.0" }, diff --git a/packages/switch/package.json b/packages/switch/package.json index 8600288461..54a70ae015 100644 --- a/packages/switch/package.json +++ b/packages/switch/package.json @@ -11,6 +11,7 @@ "access": "public", "directory": "dist" }, + "sideEffects": false, "peerDependencies": { "react": "^16.9.0 || ^17.0.1 || ^18.0.0" }, diff --git a/packages/system-message/package.json b/packages/system-message/package.json index 7d9313900b..4608ab866c 100644 --- a/packages/system-message/package.json +++ b/packages/system-message/package.json @@ -10,6 +10,7 @@ "access": "public", "directory": "dist" }, + "sideEffects": false, "peerDependencies": { "react": ">=16.8.0" }, diff --git a/packages/time-input/package.json b/packages/time-input/package.json index 36dbafc852..710b699681 100644 --- a/packages/time-input/package.json +++ b/packages/time-input/package.json @@ -10,6 +10,7 @@ "access": "public", "directory": "dist" }, + "sideEffects": false, "peerDependencies": { "react": "^16.9.0 || ^17.0.1 || ^18.0.0", "react-dom": "^16.9.0 || ^17.0.1 || ^18.0.0" diff --git a/packages/with-suffix/package.json b/packages/with-suffix/package.json index c47c13cbde..471688c5ef 100644 --- a/packages/with-suffix/package.json +++ b/packages/with-suffix/package.json @@ -10,6 +10,7 @@ "access": "public", "directory": "dist" }, + "sideEffects": false, "peerDependencies": { "react": "^16.9.0 || ^17.0.1 || ^18.0.0" },