@workday/canvas-kit-mcp 14.1.10 → 15.0.0-alpha.1326-next.0
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.
|
@@ -54,8 +54,8 @@ visual reference of what's changed.**
|
|
|
54
54
|
- [Input Provider](#input-provider)
|
|
55
55
|
- [Menu (Preview)](#menu-preview)
|
|
56
56
|
- [readOnlyPillStencil and removeablePillStencil](#readonlypillstencil-and-removeablepillstencil)
|
|
57
|
-
- [Text Area (
|
|
58
|
-
- [Text Input (
|
|
57
|
+
- [Text Area (Labs)](#text-area)
|
|
58
|
+
- [Text Input (Labs)](#text-input)
|
|
59
59
|
- [Troubleshooting](#troubleshooting)
|
|
60
60
|
- [Glossary](#glossary)
|
|
61
61
|
- [Main](#main)
|
|
@@ -117,10 +117,9 @@ our team. We'd be very happy to walk you through the process to set you up for s
|
|
|
117
117
|
|
|
118
118
|
### Instructions
|
|
119
119
|
|
|
120
|
-
The easiest way to run our codemod is to use `npx` in your terminal.```sh
|
|
121
|
-
@workday/canvas-kit-codemod v14 [path]
|
|
122
|
-
|
|
123
|
-
````
|
|
120
|
+
The easiest way to run our codemod is to use `npx` in your terminal.```sh
|
|
121
|
+
npx @workday/canvas-kit-codemod v14 [path]
|
|
122
|
+
```
|
|
124
123
|
|
|
125
124
|
Be sure to provide specific directories that need to be updated via the `[path]` argument. This
|
|
126
125
|
decreases the amount of AST the codemod needs to traverse and reduces the chances of the script
|
|
@@ -136,7 +135,7 @@ finished.
|
|
|
136
135
|
yarn add @workday/canvas-kit-codemod --dev
|
|
137
136
|
yarn canvas-kit-codemod v14 [path]
|
|
138
137
|
yarn remove @workday/canvas-kit-codemod
|
|
139
|
-
|
|
138
|
+
```
|
|
140
139
|
|
|
141
140
|
> **Note:** The codemod only works on `.js`, `.jsx`, `.ts`, and `.tsx` files. You'll need to
|
|
142
141
|
> manually edit other file types (`.json`, `.mdx`, `.md`, etc.). You may need to run your linter
|
|
@@ -329,7 +328,7 @@ specificity.
|
|
|
329
328
|
|
|
330
329
|
### useIsRTL
|
|
331
330
|
|
|
332
|
-
**PR:** [#
|
|
331
|
+
**PR:** [#3480](https://github.com/Workday/canvas-kit/pull/3477)
|
|
333
332
|
|
|
334
333
|
The `useIsRTL` hook has been deprecated. Please use
|
|
335
334
|
[CSS logical properties](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties)
|
|
@@ -649,12 +648,8 @@ instead.
|
|
|
649
648
|
|
|
650
649
|
### Modals and Dialogs
|
|
651
650
|
|
|
652
|
-
Previously, the `usePopupStack` hook created a CSS class name that was passed to our Popups. We
|
|
653
|
-
|
|
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.
|
|
651
|
+
Previously, the `usePopupStack` hook created a CSS class name that was passed to our Popups. We attached those theme styles to that class name. This allowed the theme to be available in our Popups. But it also created a cascade barrier that blocked the global theme from being applied to our Popup components.
|
|
652
|
+
Because we now use global CSS variables, we no longer need this class name to provide the global theme to Popups. But we have to remove this generated class name to allow the global theme to be applied to Popups.
|
|
658
653
|
|
|
659
654
|
> **Important:** Passing a `theme` to the `CanvasProvider` **will not** theme components in Modals
|
|
660
655
|
> and Dialogs. You can either pass a `className` or define CSS variables at the root.
|
|
@@ -680,7 +675,6 @@ global theme to be applied to Popups.
|
|
|
680
675
|
<Modal>//... rest of modal code</Modal>
|
|
681
676
|
</CanvasProvider>
|
|
682
677
|
```
|
|
683
|
-
|
|
684
678
|
### Search Form (Labs) 🚨
|
|
685
679
|
|
|
686
680
|
**PR:** [#3303](https://github.com/Workday/canvas-kit/pull/3303)
|
|
@@ -894,7 +888,7 @@ replaced the removed component or utility.
|
|
|
894
888
|
|
|
895
889
|
### Deprecated Buttons
|
|
896
890
|
|
|
897
|
-
**PR:** [#
|
|
891
|
+
**PR:** [#3429](https://github.com/Workday/canvas-kit/pull/3439)
|
|
898
892
|
|
|
899
893
|
Long overdue, but a sign of moving forward, we've removed our `DeprecatedButton`. Our design system
|
|
900
894
|
supported this for quite some time, but with the advancement in theming, our components API and our
|
|
@@ -1076,7 +1070,7 @@ things you'll want to keep in mind.
|
|
|
1076
1070
|
dependencies on your own.
|
|
1077
1071
|
- We recommend upgrading dependencies before running the codemod.
|
|
1078
1072
|
- Always review your `package.json` files to make sure your dependency versions look correct.
|
|
1079
|
-
- The codemod will not handle every breaking change in
|
|
1073
|
+
- The codemod will not handle every breaking change in v13. You will likely need to make some manual
|
|
1080
1074
|
changes to be compatible. Use our Upgrade Guide as a checklist.
|
|
1081
1075
|
- Codemods are not bulletproof.
|
|
1082
1076
|
- Conduct a thorough PR and QA review of all changes to ensure no regressions were introduced.
|
|
@@ -1090,10 +1084,9 @@ our team. We'd be very happy to walk you through the process to set you up for s
|
|
|
1090
1084
|
|
|
1091
1085
|
### Instructions
|
|
1092
1086
|
|
|
1093
|
-
The easiest way to run our codemod is to use `npx` in your terminal.```sh
|
|
1094
|
-
@workday/canvas-kit-codemod v${canvasKitMajorVersionNumber} [path]
|
|
1095
|
-
|
|
1096
|
-
````
|
|
1087
|
+
The easiest way to run our codemod is to use `npx` in your terminal.```sh
|
|
1088
|
+
npx @workday/canvas-kit-codemod v${canvasKitMajorVersionNumber} [path]
|
|
1089
|
+
```
|
|
1097
1090
|
|
|
1098
1091
|
Be sure to provide specific directories that need to be updated via the `[path]` argument. This
|
|
1099
1092
|
decreases the amount of AST the codemod needs to traverse and reduces the chances of the script
|
|
@@ -1109,7 +1102,7 @@ finished.
|
|
|
1109
1102
|
yarn add @workday/canvas-kit-codemod --dev
|
|
1110
1103
|
yarn canvas-kit-codemod v${canvasKitMajorVersion} [path]
|
|
1111
1104
|
yarn remove @workday/canvas-kit-codemod
|
|
1112
|
-
|
|
1105
|
+
```
|
|
1113
1106
|
|
|
1114
1107
|
> **Note**: The codemod only works on `.js`, `.jsx`, `.ts`, and `.tsx` files. You'll need to
|
|
1115
1108
|
> manually edit other file types (`.json`, `.mdx`, `.md`, etc.). You may need to run your linter
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-mcp",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.0-alpha.1326-next.0",
|
|
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": "9cdfd5792eab2f74d194662da6b9957fdf573654"
|
|
57
57
|
}
|