@sps-woodland/core 8.53.7 → 8.53.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/action-bar/action-bar/ActionBar.ve.js +1 -1
- package/lib/action-bar/index.js +1 -1
- package/lib/action-bar/index.umd.cjs +1 -1
- package/lib/action-bar/style.css +1 -1
- package/lib/add-to-list/add-to-list/AddToList.ve.js +1 -1
- package/lib/add-to-list/index.js +1 -1
- package/lib/add-to-list/index.umd.cjs +1 -1
- package/lib/add-to-list/style.css +1 -1
- package/lib/buttons/button/Button.css.d.ts.map +1 -1
- package/lib/buttons/button/Button.ve.js +1 -1
- package/lib/buttons/index.js +1 -1
- package/lib/buttons/index.umd.cjs +1 -1
- package/lib/buttons/style.css +1 -1
- package/lib/cards/card/Card.ve.js +1 -1
- package/lib/cards/card-footer/CardFooter.ve.js +1 -1
- package/lib/cards/card-header/CardHeader.ve.js +1 -1
- package/lib/cards/card-title/CardTitle.ve.js +1 -1
- package/lib/cards/index.js +4 -4
- package/lib/cards/index.umd.cjs +1 -1
- package/lib/cards/style.css +1 -1
- package/lib/content-row/content-row/ContentRow.ve.js +1 -1
- package/lib/content-row/content-row-col/ContentRowCol.ve.js +1 -1
- package/lib/content-row/index.js +3 -3
- package/lib/content-row/index.umd.cjs +1 -1
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.ve.js +1 -1
- package/lib/content-row/style.css +1 -1
- package/lib/content-tiles/content-tile/ContentTile.ve.js +1 -1
- package/lib/content-tiles/content-tile-list/ContentTileList.ve.js +1 -1
- package/lib/content-tiles/index.js +2 -2
- package/lib/content-tiles/index.umd.cjs +1 -1
- package/lib/content-tiles/style.css +1 -1
- package/lib/core.css +1 -1
- package/lib/dropdowns/dropdown/Dropdown.ve.js +1 -1
- package/lib/dropdowns/index.js +3 -3
- package/lib/dropdowns/index.umd.cjs +1 -1
- package/lib/dropdowns/option-list/Option.ve.js +1 -1
- package/lib/dropdowns/option-list/OptionList.ve.js +1 -1
- package/lib/dropdowns/style.css +1 -1
- package/lib/feedback-block/FeedbackBlock.ve.js +1 -1
- package/lib/feedback-block/index.js +1 -1
- package/lib/feedback-block/index.umd.cjs +1 -1
- package/lib/feedback-block/style.css +1 -1
- package/lib/file-upload/file-upload/FileUpload.ve.js +1 -1
- package/lib/file-upload/index.js +1 -1
- package/lib/file-upload/index.umd.cjs +1 -1
- package/lib/file-upload/style.css +1 -1
- package/lib/filter-tiles/filter-tile/FilterTile.ve.js +1 -1
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.ve.js +1 -1
- package/lib/filter-tiles/index.js +2 -2
- package/lib/filter-tiles/index.umd.cjs +1 -1
- package/lib/filter-tiles/style.css +1 -1
- package/lib/focused-task/focused-task/FocusedTask.ve.js +1 -1
- package/lib/focused-task/index.js +1 -1
- package/lib/focused-task/index.umd.cjs +1 -1
- package/lib/focused-task/style.css +1 -1
- package/lib/growler/Growler.ve.js +1 -1
- package/lib/growler/Sonner.ve.js +1 -1
- package/lib/growler/index.js +2 -2
- package/lib/growler/index.umd.cjs +1 -1
- package/lib/growler/style.css +1 -1
- package/lib/index.js +8 -8
- package/lib/index.umd.cjs +1 -1
- package/lib/insight-card/InsightCard.ve.js +1 -1
- package/lib/insight-card/index.js +1 -1
- package/lib/insight-card/index.umd.cjs +1 -1
- package/lib/insight-card/style.css +1 -1
- package/lib/key-value-set/index.js +2 -2
- package/lib/key-value-set/index.umd.cjs +1 -1
- package/lib/key-value-set/key-value-set/KeyValueSet.ve.js +1 -1
- package/lib/key-value-set/key-value-set-item/KeyValueSetItem.ve.js +1 -1
- package/lib/key-value-set/style.css +1 -1
- package/lib/list-bar/advanced-search/AdvancedSearch.ve.js +1 -1
- package/lib/list-bar/index.js +3 -3
- package/lib/list-bar/index.umd.cjs +1 -1
- package/lib/list-bar/list-bar/ListBar.ve.js +1 -1
- package/lib/list-bar/search-results-bar/SearchResultsBar.ve.js +1 -1
- package/lib/list-bar/style.css +1 -1
- package/lib/matrix/index.js +1 -1
- package/lib/matrix/index.umd.cjs +1 -1
- package/lib/matrix/matrix/Matrix.ve.js +1 -1
- package/lib/matrix/style.css +1 -1
- package/lib/modal/index.js +1 -1
- package/lib/modal/index.umd.cjs +1 -1
- package/lib/modal/modal/Modal.ve.js +1 -1
- package/lib/modal/style.css +1 -1
- package/lib/page-title/index.js +2 -2
- package/lib/page-title/index.umd.cjs +1 -1
- package/lib/page-title/page-subtitle/PageSubtitle.ve.js +1 -1
- package/lib/page-title/page-title/PageTitle.ve.js +1 -1
- package/lib/page-title/style.css +1 -1
- package/lib/photo/index.js +2 -2
- package/lib/photo/index.umd.cjs +1 -1
- package/lib/photo/photo/Photo.ve.js +1 -1
- package/lib/photo/photo-carousel/PhotoCarousel.ve.js +1 -1
- package/lib/photo/style.css +1 -1
- package/lib/product-bar/index.js +3 -3
- package/lib/product-bar/index.umd.cjs +1 -1
- package/lib/product-bar/product-bar/ProductBar.ve.js +1 -1
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.ve.js +1 -1
- package/lib/product-bar/slack-link/SlackLink.ve.js +1 -1
- package/lib/product-bar/style.css +1 -1
- package/lib/product-bar-vertical/index.js +1 -1
- package/lib/product-bar-vertical/index.umd.cjs +1 -1
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.ve.js +1 -1
- package/lib/product-bar-vertical/style.css +1 -1
- package/lib/progress-indicators/index.js +1 -1
- package/lib/progress-indicators/index.umd.cjs +1 -1
- package/lib/progress-indicators/progress-bar/ProgressBar.ve.js +1 -1
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.ve.js +1 -1
- package/lib/progress-indicators/style.css +1 -1
- package/lib/rich-text-editor/index.js +2 -2
- package/lib/rich-text-editor/index.umd.cjs +1 -1
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.ve.js +1 -1
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.ve.js +1 -1
- package/lib/rich-text-editor/style.css +1 -1
- package/lib/scrollable-container/ScrollableContainer.ve.js +1 -1
- package/lib/scrollable-container/index.js +1 -1
- package/lib/scrollable-container/index.umd.cjs +1 -1
- package/lib/scrollable-container/style.css +1 -1
- package/lib/side-nav/index.js +1 -1
- package/lib/side-nav/index.umd.cjs +1 -1
- package/lib/side-nav/side-nav/SideNav.ve.js +1 -1
- package/lib/side-nav/style.css +1 -1
- package/lib/sorting-header/caret/caret.ve.js +1 -1
- package/lib/sorting-header/index.js +2 -2
- package/lib/sorting-header/index.umd.cjs +1 -1
- package/lib/sorting-header/sorting-header/SortingHeader.ve.js +1 -1
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.ve.js +1 -1
- package/lib/sorting-header/style.css +1 -1
- package/lib/style.css +1 -1
- package/lib/tabs/index.js +2 -2
- package/lib/tabs/index.umd.cjs +1 -1
- package/lib/tabs/style.css +1 -1
- package/lib/tabs/tab/Tab.ve.js +1 -1
- package/lib/tabs/tabs/Tabs.ve.js +1 -1
- package/lib/tags/clickable-tag/ClickableTag.ve.js +1 -1
- package/lib/tags/index.js +3 -3
- package/lib/tags/index.umd.cjs +1 -1
- package/lib/tags/split-tag/SplitTag.ve.js +1 -1
- package/lib/tags/style.css +1 -1
- package/lib/tags/tag/Tag.ve.js +1 -1
- package/lib/zero-state/ZeroState.ve.js +1 -1
- package/lib/zero-state/index.js +1 -1
- package/lib/zero-state/index.umd.cjs +1 -1
- package/lib/zero-state/style.css +1 -1
- package/package.json +11 -11
- package/scripts/watch-all.mjs +186 -0
- package/vite.action-bar.config.mjs +31 -28
- package/vite.add-to-list.config.mjs +31 -28
- package/vite.buttons.config.mjs +32 -29
- package/vite.cards.config.mjs +31 -28
- package/vite.config.mjs +26 -23
- package/vite.content-row.config.mjs +31 -28
- package/vite.content-tiles.config.mjs +31 -28
- package/vite.dropdowns.config.mjs +32 -29
- package/vite.editable-table.config.mjs +44 -41
- package/vite.feedback-block.config.mjs +31 -28
- package/vite.file-upload.config.mjs +31 -28
- package/vite.filter-tiles.config.mjs +31 -28
- package/vite.focused-task.config.mjs +31 -28
- package/vite.growler.config.mjs +32 -29
- package/vite.insight-card.config.mjs +31 -28
- package/vite.key-value-set.config.mjs +31 -28
- package/vite.list-bar.config.mjs +31 -28
- package/vite.matrix.config.mjs +31 -28
- package/vite.modal.config.mjs +31 -28
- package/vite.page-title.config.mjs +31 -28
- package/vite.photo.config.mjs +31 -28
- package/vite.product-bar-vertical.config.mjs +31 -28
- package/vite.product-bar.config.mjs +33 -30
- package/vite.progress-indicators.config.mjs +31 -28
- package/vite.rich-text-editor.config.mjs +35 -32
- package/vite.scrollable-container.config.mjs +31 -28
- package/vite.side-nav.config.mjs +31 -28
- package/vite.sorting-header.config.mjs +31 -28
- package/vite.subpaths.config.mjs +57 -54
- package/vite.tabs.config.mjs +34 -31
- package/vite.tags.config.mjs +31 -28
- package/vite.zero-state.config.mjs +31 -28
|
@@ -6,35 +6,38 @@ import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
|
|
|
6
6
|
import { defineConfig } from "vite";
|
|
7
7
|
import pkg from "./package.json" with { type: "json" };
|
|
8
8
|
import { getVanillaExtractPluginProps } from "../../../scripts/vanilla-extract-plugin-props.mjs";
|
|
9
|
+
import { withOutputGlobals } from "../../../scripts/with-output-globals.mjs";
|
|
9
10
|
|
|
10
11
|
const packageVersion = process.env.PREDICTED_VERSION || pkg.version;
|
|
11
12
|
|
|
12
|
-
export default defineConfig(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
13
|
+
export default defineConfig(
|
|
14
|
+
withOutputGlobals({
|
|
15
|
+
plugins: [
|
|
16
|
+
vanillaExtractPlugin(
|
|
17
|
+
getVanillaExtractPluginProps({
|
|
18
|
+
packageName: pkg.name,
|
|
19
|
+
packageVersion,
|
|
20
|
+
})
|
|
21
|
+
),
|
|
22
|
+
],
|
|
23
|
+
build: {
|
|
24
|
+
lib: {
|
|
25
|
+
entry: path.resolve(__dirname, "src/add-to-list/index.ts"),
|
|
26
|
+
name: "AddToList",
|
|
27
|
+
fileName: "index",
|
|
28
|
+
cssFileName: "style",
|
|
29
|
+
},
|
|
30
|
+
outDir: path.resolve(__dirname, "./lib/add-to-list"),
|
|
31
|
+
emptyOutDir: false,
|
|
32
|
+
rollupOptions: {
|
|
33
|
+
external: [
|
|
34
|
+
...Object.keys(pkg.peerDependencies || {}),
|
|
35
|
+
/^@sps-woodland\//,
|
|
36
|
+
/^@spscommerce\//,
|
|
37
|
+
/^react/,
|
|
38
|
+
/^react-dom/,
|
|
39
|
+
],
|
|
40
|
+
},
|
|
27
41
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
rollupOptions: {
|
|
31
|
-
external: [
|
|
32
|
-
...Object.keys(pkg.peerDependencies || {}),
|
|
33
|
-
/^@sps-woodland\//,
|
|
34
|
-
/^@spscommerce\//,
|
|
35
|
-
/^react/,
|
|
36
|
-
/^react-dom/,
|
|
37
|
-
],
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
});
|
|
42
|
+
})
|
|
43
|
+
);
|
package/vite.buttons.config.mjs
CHANGED
|
@@ -6,36 +6,39 @@ import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
|
|
|
6
6
|
import { defineConfig } from "vite";
|
|
7
7
|
import pkg from "./package.json" with { type: "json" };
|
|
8
8
|
import { getVanillaExtractPluginProps } from "../../../scripts/vanilla-extract-plugin-props.mjs";
|
|
9
|
+
import { withOutputGlobals } from "../../../scripts/with-output-globals.mjs";
|
|
9
10
|
|
|
10
11
|
const packageVersion = process.env.PREDICTED_VERSION || pkg.version;
|
|
11
12
|
|
|
12
|
-
export default defineConfig(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
13
|
+
export default defineConfig(
|
|
14
|
+
withOutputGlobals({
|
|
15
|
+
plugins: [
|
|
16
|
+
vanillaExtractPlugin(
|
|
17
|
+
getVanillaExtractPluginProps({
|
|
18
|
+
packageName: pkg.name,
|
|
19
|
+
packageVersion,
|
|
20
|
+
})
|
|
21
|
+
),
|
|
22
|
+
],
|
|
23
|
+
build: {
|
|
24
|
+
lib: {
|
|
25
|
+
entry: path.resolve(__dirname, "src/buttons/index.ts"),
|
|
26
|
+
name: "Buttons",
|
|
27
|
+
fileName: "index",
|
|
28
|
+
cssFileName: "style",
|
|
29
|
+
},
|
|
30
|
+
outDir: path.resolve(__dirname, "./lib/buttons"),
|
|
31
|
+
emptyOutDir: false,
|
|
32
|
+
rollupOptions: {
|
|
33
|
+
external: [
|
|
34
|
+
...Object.keys(pkg.peerDependencies || {}),
|
|
35
|
+
/^@sps-woodland\//,
|
|
36
|
+
/^@spscommerce\//,
|
|
37
|
+
/^@react-aria\//,
|
|
38
|
+
/^react/,
|
|
39
|
+
/^react-dom/,
|
|
40
|
+
],
|
|
41
|
+
},
|
|
27
42
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
rollupOptions: {
|
|
31
|
-
external: [
|
|
32
|
-
...Object.keys(pkg.peerDependencies || {}),
|
|
33
|
-
/^@sps-woodland\//,
|
|
34
|
-
/^@spscommerce\//,
|
|
35
|
-
/^@react-aria\//,
|
|
36
|
-
/^react/,
|
|
37
|
-
/^react-dom/,
|
|
38
|
-
],
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
});
|
|
43
|
+
})
|
|
44
|
+
);
|
package/vite.cards.config.mjs
CHANGED
|
@@ -6,35 +6,38 @@ import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
|
|
|
6
6
|
import { defineConfig } from "vite";
|
|
7
7
|
import pkg from "./package.json" with { type: "json" };
|
|
8
8
|
import { getVanillaExtractPluginProps } from "../../../scripts/vanilla-extract-plugin-props.mjs";
|
|
9
|
+
import { withOutputGlobals } from "../../../scripts/with-output-globals.mjs";
|
|
9
10
|
|
|
10
11
|
const packageVersion = process.env.PREDICTED_VERSION || pkg.version;
|
|
11
12
|
|
|
12
|
-
export default defineConfig(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
13
|
+
export default defineConfig(
|
|
14
|
+
withOutputGlobals({
|
|
15
|
+
plugins: [
|
|
16
|
+
vanillaExtractPlugin(
|
|
17
|
+
getVanillaExtractPluginProps({
|
|
18
|
+
packageName: pkg.name,
|
|
19
|
+
packageVersion,
|
|
20
|
+
})
|
|
21
|
+
),
|
|
22
|
+
],
|
|
23
|
+
build: {
|
|
24
|
+
lib: {
|
|
25
|
+
entry: path.resolve(__dirname, "src/cards/index.ts"),
|
|
26
|
+
name: "Cards",
|
|
27
|
+
fileName: "index",
|
|
28
|
+
cssFileName: "style",
|
|
29
|
+
},
|
|
30
|
+
outDir: path.resolve(__dirname, "./lib/cards"),
|
|
31
|
+
emptyOutDir: false,
|
|
32
|
+
rollupOptions: {
|
|
33
|
+
external: [
|
|
34
|
+
...Object.keys(pkg.peerDependencies || {}),
|
|
35
|
+
/^@sps-woodland\//,
|
|
36
|
+
/^@spscommerce\//,
|
|
37
|
+
/^react/,
|
|
38
|
+
/^react-dom/,
|
|
39
|
+
],
|
|
40
|
+
},
|
|
27
41
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
rollupOptions: {
|
|
31
|
-
external: [
|
|
32
|
-
...Object.keys(pkg.peerDependencies || {}),
|
|
33
|
-
/^@sps-woodland\//,
|
|
34
|
-
/^@spscommerce\//,
|
|
35
|
-
/^react/,
|
|
36
|
-
/^react-dom/,
|
|
37
|
-
],
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
});
|
|
42
|
+
})
|
|
43
|
+
);
|
package/vite.config.mjs
CHANGED
|
@@ -4,30 +4,33 @@ import { defineConfig } from "vite";
|
|
|
4
4
|
import { getVanillaExtractPluginProps } from "../../../scripts/vanilla-extract-plugin-props.mjs";
|
|
5
5
|
import pkg from "./package.json";
|
|
6
6
|
import { getPeerDepsExternal } from "../../../scripts/get-peer-deps-external.mjs";
|
|
7
|
+
import { withOutputGlobals } from "../../../scripts/with-output-globals.mjs";
|
|
7
8
|
|
|
8
9
|
const packageVersion = process.env.PREDICTED_VERSION || pkg.version;
|
|
9
10
|
|
|
10
|
-
export default defineConfig(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
11
|
+
export default defineConfig(
|
|
12
|
+
withOutputGlobals({
|
|
13
|
+
plugins: [
|
|
14
|
+
vanillaExtractPlugin(
|
|
15
|
+
getVanillaExtractPluginProps({
|
|
16
|
+
packageName: pkg.name,
|
|
17
|
+
packageVersion,
|
|
18
|
+
})
|
|
19
|
+
),
|
|
20
|
+
],
|
|
21
|
+
build: {
|
|
22
|
+
lib: {
|
|
23
|
+
entry: path.resolve(__dirname, "src/index.ts"),
|
|
24
|
+
name: "Core",
|
|
25
|
+
fileName: "index",
|
|
26
|
+
cssFileName: "style",
|
|
27
|
+
},
|
|
28
|
+
outDir: path.resolve(__dirname, "./lib"),
|
|
29
|
+
emptyOutDir: false,
|
|
30
|
+
rollupOptions: {
|
|
31
|
+
// External must match subpath imports like @sps-woodland/core/button
|
|
32
|
+
external: getPeerDepsExternal(pkg),
|
|
33
|
+
},
|
|
25
34
|
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
rollupOptions: {
|
|
29
|
-
// External must match subpath imports like @sps-woodland/core/button
|
|
30
|
-
external: getPeerDepsExternal(pkg),
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
});
|
|
35
|
+
})
|
|
36
|
+
);
|
|
@@ -6,35 +6,38 @@ import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
|
|
|
6
6
|
import { defineConfig } from "vite";
|
|
7
7
|
import pkg from "./package.json" with { type: "json" };
|
|
8
8
|
import { getVanillaExtractPluginProps } from "../../../scripts/vanilla-extract-plugin-props.mjs";
|
|
9
|
+
import { withOutputGlobals } from "../../../scripts/with-output-globals.mjs";
|
|
9
10
|
|
|
10
11
|
const packageVersion = process.env.PREDICTED_VERSION || pkg.version;
|
|
11
12
|
|
|
12
|
-
export default defineConfig(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
13
|
+
export default defineConfig(
|
|
14
|
+
withOutputGlobals({
|
|
15
|
+
plugins: [
|
|
16
|
+
vanillaExtractPlugin(
|
|
17
|
+
getVanillaExtractPluginProps({
|
|
18
|
+
packageName: pkg.name,
|
|
19
|
+
packageVersion,
|
|
20
|
+
})
|
|
21
|
+
),
|
|
22
|
+
],
|
|
23
|
+
build: {
|
|
24
|
+
lib: {
|
|
25
|
+
entry: path.resolve(__dirname, "src/content-row/index.ts"),
|
|
26
|
+
name: "ContentRow",
|
|
27
|
+
fileName: "index",
|
|
28
|
+
cssFileName: "style",
|
|
29
|
+
},
|
|
30
|
+
outDir: path.resolve(__dirname, "./lib/content-row"),
|
|
31
|
+
emptyOutDir: false,
|
|
32
|
+
rollupOptions: {
|
|
33
|
+
external: [
|
|
34
|
+
...Object.keys(pkg.peerDependencies || {}),
|
|
35
|
+
/^@sps-woodland\//,
|
|
36
|
+
/^@spscommerce\//,
|
|
37
|
+
/^react/,
|
|
38
|
+
/^react-dom/,
|
|
39
|
+
],
|
|
40
|
+
},
|
|
27
41
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
rollupOptions: {
|
|
31
|
-
external: [
|
|
32
|
-
...Object.keys(pkg.peerDependencies || {}),
|
|
33
|
-
/^@sps-woodland\//,
|
|
34
|
-
/^@spscommerce\//,
|
|
35
|
-
/^react/,
|
|
36
|
-
/^react-dom/,
|
|
37
|
-
],
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
});
|
|
42
|
+
})
|
|
43
|
+
);
|
|
@@ -6,35 +6,38 @@ import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
|
|
|
6
6
|
import { defineConfig } from "vite";
|
|
7
7
|
import pkg from "./package.json" with { type: "json" };
|
|
8
8
|
import { getVanillaExtractPluginProps } from "../../../scripts/vanilla-extract-plugin-props.mjs";
|
|
9
|
+
import { withOutputGlobals } from "../../../scripts/with-output-globals.mjs";
|
|
9
10
|
|
|
10
11
|
const packageVersion = process.env.PREDICTED_VERSION || pkg.version;
|
|
11
12
|
|
|
12
|
-
export default defineConfig(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
13
|
+
export default defineConfig(
|
|
14
|
+
withOutputGlobals({
|
|
15
|
+
plugins: [
|
|
16
|
+
vanillaExtractPlugin(
|
|
17
|
+
getVanillaExtractPluginProps({
|
|
18
|
+
packageName: pkg.name,
|
|
19
|
+
packageVersion,
|
|
20
|
+
})
|
|
21
|
+
),
|
|
22
|
+
],
|
|
23
|
+
build: {
|
|
24
|
+
lib: {
|
|
25
|
+
entry: path.resolve(__dirname, "src/content-tiles/index.ts"),
|
|
26
|
+
name: "ContentTiles",
|
|
27
|
+
fileName: "index",
|
|
28
|
+
cssFileName: "style",
|
|
29
|
+
},
|
|
30
|
+
outDir: path.resolve(__dirname, "./lib/content-tiles"),
|
|
31
|
+
emptyOutDir: false,
|
|
32
|
+
rollupOptions: {
|
|
33
|
+
external: [
|
|
34
|
+
...Object.keys(pkg.peerDependencies || {}),
|
|
35
|
+
/^@sps-woodland\//,
|
|
36
|
+
/^@spscommerce\//,
|
|
37
|
+
/^react/,
|
|
38
|
+
/^react-dom/,
|
|
39
|
+
],
|
|
40
|
+
},
|
|
27
41
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
rollupOptions: {
|
|
31
|
-
external: [
|
|
32
|
-
...Object.keys(pkg.peerDependencies || {}),
|
|
33
|
-
/^@sps-woodland\//,
|
|
34
|
-
/^@spscommerce\//,
|
|
35
|
-
/^react/,
|
|
36
|
-
/^react-dom/,
|
|
37
|
-
],
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
});
|
|
42
|
+
})
|
|
43
|
+
);
|
|
@@ -6,36 +6,39 @@ import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
|
|
|
6
6
|
import { defineConfig } from "vite";
|
|
7
7
|
import pkg from "./package.json" with { type: "json" };
|
|
8
8
|
import { getVanillaExtractPluginProps } from "../../../scripts/vanilla-extract-plugin-props.mjs";
|
|
9
|
+
import { withOutputGlobals } from "../../../scripts/with-output-globals.mjs";
|
|
9
10
|
|
|
10
11
|
const packageVersion = process.env.PREDICTED_VERSION || pkg.version;
|
|
11
12
|
|
|
12
|
-
export default defineConfig(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
13
|
+
export default defineConfig(
|
|
14
|
+
withOutputGlobals({
|
|
15
|
+
plugins: [
|
|
16
|
+
vanillaExtractPlugin(
|
|
17
|
+
getVanillaExtractPluginProps({
|
|
18
|
+
packageName: pkg.name,
|
|
19
|
+
packageVersion,
|
|
20
|
+
})
|
|
21
|
+
),
|
|
22
|
+
],
|
|
23
|
+
build: {
|
|
24
|
+
lib: {
|
|
25
|
+
entry: path.resolve(__dirname, "src/dropdowns/index.ts"),
|
|
26
|
+
name: "Dropdowns",
|
|
27
|
+
fileName: "index",
|
|
28
|
+
cssFileName: "style",
|
|
29
|
+
},
|
|
30
|
+
outDir: path.resolve(__dirname, "./lib/dropdowns"),
|
|
31
|
+
emptyOutDir: false,
|
|
32
|
+
rollupOptions: {
|
|
33
|
+
external: [
|
|
34
|
+
...Object.keys(pkg.peerDependencies || {}),
|
|
35
|
+
/^@sps-woodland\//,
|
|
36
|
+
/^@spscommerce\//,
|
|
37
|
+
/^@ariakit\//,
|
|
38
|
+
/^react/,
|
|
39
|
+
/^react-dom/,
|
|
40
|
+
],
|
|
41
|
+
},
|
|
27
42
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
rollupOptions: {
|
|
31
|
-
external: [
|
|
32
|
-
...Object.keys(pkg.peerDependencies || {}),
|
|
33
|
-
/^@sps-woodland\//,
|
|
34
|
-
/^@spscommerce\//,
|
|
35
|
-
/^@ariakit\//,
|
|
36
|
-
/^react/,
|
|
37
|
-
/^react-dom/,
|
|
38
|
-
],
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
});
|
|
43
|
+
})
|
|
44
|
+
);
|
|
@@ -15,54 +15,57 @@ import path from "node:path";
|
|
|
15
15
|
import fs from "node:fs";
|
|
16
16
|
import { defineConfig } from "vite";
|
|
17
17
|
import pkg from "./package.json" with { type: "json" };
|
|
18
|
+
import { withOutputGlobals } from "../../../scripts/with-output-globals.mjs";
|
|
18
19
|
|
|
19
20
|
const SRC_CSS = path.resolve(__dirname, "src/editable-table/EditableTable.css");
|
|
20
21
|
const OUT_DIR = path.resolve(__dirname, "lib/editable-table");
|
|
21
22
|
const OUT_CSS = path.join(OUT_DIR, "style.css");
|
|
22
23
|
const NOOP_OUT = path.resolve(__dirname, "lib/_editable-table-css-driver");
|
|
23
24
|
|
|
24
|
-
export default defineConfig(
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
export default defineConfig(
|
|
26
|
+
withOutputGlobals({
|
|
27
|
+
plugins: [
|
|
28
|
+
{
|
|
29
|
+
name: "process-editable-table-css",
|
|
30
|
+
async writeBundle() {
|
|
31
|
+
const postcss = (await import("postcss")).default;
|
|
32
|
+
const postcssImport = (await import("postcss-import")).default;
|
|
31
33
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
const css = await fs.promises.readFile(SRC_CSS, "utf8");
|
|
35
|
+
const result = await postcss([postcssImport()]).process(css, {
|
|
36
|
+
from: SRC_CSS,
|
|
37
|
+
to: OUT_CSS,
|
|
38
|
+
});
|
|
37
39
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
await fs.promises.mkdir(OUT_DIR, { recursive: true });
|
|
41
|
+
await fs.promises.writeFile(OUT_CSS, result.css);
|
|
42
|
+
await fs.promises.rm(NOOP_OUT, { recursive: true, force: true });
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
build: {
|
|
47
|
+
// Vite requires a JS build target; we drive the writeBundle plugin via a
|
|
48
|
+
// throwaway entry pointed at the barrel. The emitted JS is deleted after
|
|
49
|
+
// the CSS is written above — the real JS comes from vite.subpaths.config.mjs.
|
|
50
|
+
lib: {
|
|
51
|
+
entry: path.resolve(__dirname, "src/editable-table/index.ts"),
|
|
52
|
+
name: "EditableTableCssDriver",
|
|
53
|
+
fileName: "_driver",
|
|
54
|
+
formats: ["es"],
|
|
55
|
+
},
|
|
56
|
+
outDir: NOOP_OUT,
|
|
57
|
+
emptyOutDir: true,
|
|
58
|
+
rollupOptions: {
|
|
59
|
+
external: [
|
|
60
|
+
...Object.keys(pkg.peerDependencies || {}),
|
|
61
|
+
/^@sps-woodland\//,
|
|
62
|
+
/^@spscommerce\//,
|
|
63
|
+
/^@handsontable\//,
|
|
64
|
+
/^handsontable/,
|
|
65
|
+
/^react/,
|
|
66
|
+
/^react-dom/,
|
|
67
|
+
],
|
|
41
68
|
},
|
|
42
69
|
},
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
// Vite requires a JS build target; we drive the writeBundle plugin via a
|
|
46
|
-
// throwaway entry pointed at the barrel. The emitted JS is deleted after
|
|
47
|
-
// the CSS is written above — the real JS comes from vite.subpaths.config.mjs.
|
|
48
|
-
lib: {
|
|
49
|
-
entry: path.resolve(__dirname, "src/editable-table/index.ts"),
|
|
50
|
-
name: "EditableTableCssDriver",
|
|
51
|
-
fileName: "_driver",
|
|
52
|
-
formats: ["es"],
|
|
53
|
-
},
|
|
54
|
-
outDir: NOOP_OUT,
|
|
55
|
-
emptyOutDir: true,
|
|
56
|
-
rollupOptions: {
|
|
57
|
-
external: [
|
|
58
|
-
...Object.keys(pkg.peerDependencies || {}),
|
|
59
|
-
/^@sps-woodland\//,
|
|
60
|
-
/^@spscommerce\//,
|
|
61
|
-
/^@handsontable\//,
|
|
62
|
-
/^handsontable/,
|
|
63
|
-
/^react/,
|
|
64
|
-
/^react-dom/,
|
|
65
|
-
],
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
});
|
|
70
|
+
})
|
|
71
|
+
);
|
|
@@ -6,35 +6,38 @@ import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
|
|
|
6
6
|
import { defineConfig } from "vite";
|
|
7
7
|
import pkg from "./package.json" with { type: "json" };
|
|
8
8
|
import { getVanillaExtractPluginProps } from "../../../scripts/vanilla-extract-plugin-props.mjs";
|
|
9
|
+
import { withOutputGlobals } from "../../../scripts/with-output-globals.mjs";
|
|
9
10
|
|
|
10
11
|
const packageVersion = process.env.PREDICTED_VERSION || pkg.version;
|
|
11
12
|
|
|
12
|
-
export default defineConfig(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
13
|
+
export default defineConfig(
|
|
14
|
+
withOutputGlobals({
|
|
15
|
+
plugins: [
|
|
16
|
+
vanillaExtractPlugin(
|
|
17
|
+
getVanillaExtractPluginProps({
|
|
18
|
+
packageName: pkg.name,
|
|
19
|
+
packageVersion,
|
|
20
|
+
})
|
|
21
|
+
),
|
|
22
|
+
],
|
|
23
|
+
build: {
|
|
24
|
+
lib: {
|
|
25
|
+
entry: path.resolve(__dirname, "src/feedback-block/index.ts"),
|
|
26
|
+
name: "FeedbackBlock",
|
|
27
|
+
fileName: "index",
|
|
28
|
+
cssFileName: "style",
|
|
29
|
+
},
|
|
30
|
+
outDir: path.resolve(__dirname, "./lib/feedback-block"),
|
|
31
|
+
emptyOutDir: false,
|
|
32
|
+
rollupOptions: {
|
|
33
|
+
external: [
|
|
34
|
+
...Object.keys(pkg.peerDependencies || {}),
|
|
35
|
+
/^@sps-woodland\//,
|
|
36
|
+
/^@spscommerce\//,
|
|
37
|
+
/^react/,
|
|
38
|
+
/^react-dom/,
|
|
39
|
+
],
|
|
40
|
+
},
|
|
27
41
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
rollupOptions: {
|
|
31
|
-
external: [
|
|
32
|
-
...Object.keys(pkg.peerDependencies || {}),
|
|
33
|
-
/^@sps-woodland\//,
|
|
34
|
-
/^@spscommerce\//,
|
|
35
|
-
/^react/,
|
|
36
|
-
/^react-dom/,
|
|
37
|
-
],
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
});
|
|
42
|
+
})
|
|
43
|
+
);
|