@workday/canvas-kit-mcp 14.1.22 → 14.1.24
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/dist/cli.js +72 -56966
- package/dist/cli.js.map +4 -4
- package/dist/index.js +68 -56871
- package/dist/index.js.map +4 -4
- package/dist/lib/upgrade-guides/14.0-UPGRADE-GUIDE.md +24 -13
- package/package.json +3 -3
|
@@ -656,29 +656,40 @@ our Popup components. Because we now use global CSS variables, we no longer need
|
|
|
656
656
|
provide the global theme to Popups. But we have to remove this generated class name to allow the
|
|
657
657
|
global theme to be applied to Popups.
|
|
658
658
|
|
|
659
|
-
|
|
660
|
-
|
|
659
|
+
If you want to have scoped theming where a part of your application needs different theming, you can
|
|
660
|
+
still do this via the `theme` prop.
|
|
661
661
|
|
|
662
|
-
**
|
|
662
|
+
> **Note:** Only the properties of the theme object that are changed will be forward to popups and
|
|
663
|
+
> modals. IE, if you change theme.palette.primary.main, only those tokens will change for popups and
|
|
664
|
+
> modals.
|
|
665
|
+
|
|
666
|
+
#### Scoped Theming vs Global Theming
|
|
667
|
+
|
|
668
|
+
**Only** use the `theme` prop on the `CanvasProvider` if you intentionally want to theme part of
|
|
669
|
+
your application that is different from global theming.
|
|
670
|
+
|
|
671
|
+
**Scoped Theming**
|
|
663
672
|
|
|
664
673
|
```tsx
|
|
665
|
-
|
|
666
|
-
<CanvasProvider theme={{canvas: {palette: {primary: {main: '
|
|
667
|
-
|
|
674
|
+
|
|
675
|
+
<CanvasProvider theme={{canvas: {palette: {primary: {main: 'teal'}}}}}>
|
|
676
|
+
{//part of your app to have different theme from the rest of your application}
|
|
668
677
|
</CanvasProvider>
|
|
669
678
|
```
|
|
670
679
|
|
|
671
|
-
**
|
|
680
|
+
> **Important:** Use the `theme` prop on the `CanvasProvider` if you intentionally want to theme
|
|
681
|
+
> part of your application that is different from global theming.
|
|
682
|
+
|
|
683
|
+
**Global Theming**
|
|
672
684
|
|
|
673
685
|
```tsx
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
}
|
|
686
|
+
import '@workday/canvas-tokens-web/css/base/_variables.css';
|
|
687
|
+
import '@workday/canvas-tokens-web/css/brand/_variables.css';
|
|
688
|
+
import '@workday/canvas-tokens-web/css/system/_variables.css';
|
|
678
689
|
|
|
679
690
|
<CanvasProvider>
|
|
680
|
-
<
|
|
681
|
-
</CanvasProvider
|
|
691
|
+
<App />
|
|
692
|
+
</CanvasProvider>;
|
|
682
693
|
```
|
|
683
694
|
|
|
684
695
|
### Search Form (Labs) 🚨
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-mcp",
|
|
3
|
-
"version": "14.1.
|
|
3
|
+
"version": "14.1.24",
|
|
4
4
|
"description": "MCP package for Canvas Kit",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build:copy": "tsx ./build/index.ts",
|
|
34
34
|
"build:types": "tsc --project tsconfig.build.json -d true --declarationDir dist/types --emitDeclarationOnly --pretty",
|
|
35
|
-
"build:mcp": "esbuild lib/index.ts --bundle --platform=node --outfile=dist/index.js --format=esm --sourcemap && esbuild lib/cli.ts --bundle --platform=node --outfile=dist/cli.js --format=esm --sourcemap",
|
|
35
|
+
"build:mcp": "esbuild lib/index.ts --bundle --platform=node --packages=external --outfile=dist/index.js --format=esm --sourcemap && esbuild lib/cli.ts --bundle --platform=node --packages=external --outfile=dist/cli.js --format=esm --sourcemap",
|
|
36
36
|
"build": "npm-run-all build:copy build:types build:mcp",
|
|
37
37
|
"clean": "rimraf dist && rimraf .build-info && mkdirp dist"
|
|
38
38
|
},
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"tsx": "^4.7.0",
|
|
54
54
|
"typescript": "5.0"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "35bb7034fcd217a0f9afae7aa95aaf95853381fc"
|
|
57
57
|
}
|