@workday/canvas-kit-docs 12.4.20 → 12.4.21

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.
@@ -18,11 +18,11 @@ export const packageJSONFile = `{
18
18
  "@emotion/react": "11.11.4",
19
19
  "@types/react": "18.2.60",
20
20
  "@types/react-dom": "18.2.19",
21
- "@workday/canvas-kit-labs-react": "12.4.20",
22
- "@workday/canvas-kit-preview-react": "12.4.20",
23
- "@workday/canvas-kit-react": "12.4.20",
24
- "@workday/canvas-kit-react-fonts": "^12.4.20",
25
- "@workday/canvas-kit-styling": "12.4.20",
21
+ "@workday/canvas-kit-labs-react": "12.4.21",
22
+ "@workday/canvas-kit-preview-react": "12.4.21",
23
+ "@workday/canvas-kit-react": "12.4.21",
24
+ "@workday/canvas-kit-react-fonts": "^12.4.21",
25
+ "@workday/canvas-kit-styling": "12.4.21",
26
26
  "@workday/canvas-system-icons-web": "3.0.22",
27
27
  "@workday/canvas-tokens-web": "2.0.0"
28
28
  },
@@ -175,8 +175,17 @@ expect.addSnapshotSerializer({
175
175
  },
176
176
  });
177
177
 
178
+ // Handle `m{hash}` class names
179
+ const emotionModifierClassnameRegex = /^m[a-zA-Z0-9]{5,7}/g;
180
+ expect.addSnapshotSerializer({
181
+ test: (val) => typeof val === "string" && emotionModifierClassnameRegex.test(val),
182
+ print: (val) => {
183
+ return `"${val.replaceAll(emotionModifierClassnameRegex, "m-xxxxx")}"`;
184
+ },
185
+ });
186
+
178
187
  // Handle `--myVariableName-{hash}` CSS variables used by Stencils
179
- const cssVariableRegex = /(--([a-zA-Z-]+)-[a-zA-Z0-9]{1,7})/g;
188
+ const cssVariableRegex = /(^--([a-zA-Z-]+)-[a-zA-Z0-9]{1,7})/g;
180
189
  expect.addSnapshotSerializer({
181
190
  test: (val) => typeof val === "string" && cssVariableRegex.test(val),
182
191
  print: (val) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-docs",
3
- "version": "12.4.20",
3
+ "version": "12.4.21",
4
4
  "description": "Documentation components of Canvas Kit components",
5
5
  "author": "Workday, Inc. (https://www.workday.com)",
6
6
  "license": "Apache-2.0",
@@ -45,10 +45,10 @@
45
45
  "@emotion/styled": "^11.6.0",
46
46
  "@stackblitz/sdk": "^1.11.0",
47
47
  "@storybook/csf": "0.0.1",
48
- "@workday/canvas-kit-labs-react": "^12.4.20",
49
- "@workday/canvas-kit-preview-react": "^12.4.20",
50
- "@workday/canvas-kit-react": "^12.4.20",
51
- "@workday/canvas-kit-styling": "^12.4.20",
48
+ "@workday/canvas-kit-labs-react": "^12.4.21",
49
+ "@workday/canvas-kit-preview-react": "^12.4.21",
50
+ "@workday/canvas-kit-react": "^12.4.21",
51
+ "@workday/canvas-kit-styling": "^12.4.21",
52
52
  "@workday/canvas-system-icons-web": "^3.0.0",
53
53
  "@workday/canvas-tokens-web": "^2.1.1",
54
54
  "markdown-to-jsx": "^7.2.0",
@@ -61,5 +61,5 @@
61
61
  "mkdirp": "^1.0.3",
62
62
  "typescript": "5.0"
63
63
  },
64
- "gitHead": "b1f6112c144fa67981c57a3c18f6056edf300518"
64
+ "gitHead": "984a648c0eaca7bd7a25bc129302965a4b1b1d37"
65
65
  }