@workday/canvas-kit-mcp 14.1.4 → 14.1.6
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 +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/upgrade-guides/14.0-UPGRADE-GUIDE.md +35 -0
- package/package.json +2 -2
|
@@ -35,6 +35,7 @@ visual reference of what's changed.**
|
|
|
35
35
|
- [Expandable](#expandable)
|
|
36
36
|
- [Hyperlink and External Hyperlink](#hyperlink-and-external-hyperlink)
|
|
37
37
|
- [Loading Dots](#loading-dots)
|
|
38
|
+
- [Modals and Dialogs](#modals-and-dialogs)
|
|
38
39
|
- [Pill (Preview)](#pill-preview)
|
|
39
40
|
- [Search Form (Labs)](#search-form-labs-)
|
|
40
41
|
- [Status Indicator (Preview)](#status-indicator-preview-)
|
|
@@ -646,6 +647,40 @@ instead.
|
|
|
646
647
|
</Pill>
|
|
647
648
|
```
|
|
648
649
|
|
|
650
|
+
### Modals and Dialogs
|
|
651
|
+
|
|
652
|
+
Previously, the `usePopupStack` hook created a CSS class name that was passed to our Popups. We
|
|
653
|
+
attached those theme styles to that class name. This allowed the theme to be available in our
|
|
654
|
+
Popups. But it also created a cascade barrier that blocked the global theme from being applied to
|
|
655
|
+
our Popup components. Because we now use global CSS variables, we no longer need this class name to
|
|
656
|
+
provide the global theme to Popups. But we have to remove this generated class name to allow the
|
|
657
|
+
global theme to be applied to Popups.
|
|
658
|
+
|
|
659
|
+
> **Important:** Passing a `theme` to the `CanvasProvider` **will not** theme components in Modals
|
|
660
|
+
> and Dialogs. You can either pass a `className` or define CSS variables at the root.
|
|
661
|
+
|
|
662
|
+
**Before in v13**
|
|
663
|
+
|
|
664
|
+
```tsx
|
|
665
|
+
// When passing a theme to the Canvas Provider, the `usePopupStack` would grab the theme and generate a class to forward the theme to Modals and Dialogs. This would create a cascade barrier for any CSS variables deinfed at the root.
|
|
666
|
+
<CanvasProvider theme={{canvas: {palette: {primary: {main: 'blue'}}}}}>
|
|
667
|
+
<Modal>//... rest of modal code</Modal>
|
|
668
|
+
</CanvasProvider>
|
|
669
|
+
```
|
|
670
|
+
|
|
671
|
+
**After in v14**
|
|
672
|
+
|
|
673
|
+
```tsx
|
|
674
|
+
// If you wish to still theme you application and Modals, you can either define the CSS variables at the root level of your application or define a className and pass it to the CanvasProvider.
|
|
675
|
+
:root {
|
|
676
|
+
--cnvs-brand-primary-base: blue;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
<CanvasProvider>
|
|
680
|
+
<Modal>//... rest of modal code</Modal>
|
|
681
|
+
</CanvasProvider>
|
|
682
|
+
```
|
|
683
|
+
|
|
649
684
|
### Search Form (Labs) 🚨
|
|
650
685
|
|
|
651
686
|
**PR:** [#3303](https://github.com/Workday/canvas-kit/pull/3303)
|
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.6",
|
|
4
4
|
"description": "MCP package for Canvas Kit",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"tsx": "^4.7.0",
|
|
54
54
|
"typescript": "5.0"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "74a7a93b6735770faecf184e4d74a4d0b1f04d86"
|
|
57
57
|
}
|