@workday/canvas-kit-docs 12.5.0-1058-next.0 → 12.5.1

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.
@@ -160995,6 +160995,46 @@ export const docs = (typeof window !== 'undefined' && window.__docs) ||
160995
160995
  }
160996
160996
  }
160997
160997
  },
160998
+ {
160999
+ "name": "base64Encoded",
161000
+ "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/icon/lib/Graphic.tsx",
161001
+ "description": "Account for nodejs environments. We use `btoa` which is a web api for encoding data and `Buffer` for nodejs environments.\n[`btoa` docs](https://developer.mozilla.org/en-US/docs/Web/API/Window/btoa)\n[`Buffer` docs](https://nodejs.org/api/buffer.html#buffers-and-character-encodings)",
161002
+ "declarations": [
161003
+ {
161004
+ "name": "base64Encoded",
161005
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/icon/lib/Graphic.tsx"
161006
+ }
161007
+ ],
161008
+ "tags": {},
161009
+ "type": {
161010
+ "kind": "function",
161011
+ "parameters": [
161012
+ {
161013
+ "kind": "parameter",
161014
+ "name": "str",
161015
+ "type": {
161016
+ "kind": "primitive",
161017
+ "value": "string"
161018
+ },
161019
+ "required": true,
161020
+ "rest": false,
161021
+ "description": "",
161022
+ "declarations": [
161023
+ {
161024
+ "name": "str",
161025
+ "filePath": "/home/runner/work/canvas-kit/canvas-kit/modules/react/icon/lib/Graphic.tsx"
161026
+ }
161027
+ ],
161028
+ "tags": {}
161029
+ }
161030
+ ],
161031
+ "members": [],
161032
+ "returnType": {
161033
+ "kind": "primitive",
161034
+ "value": "string"
161035
+ }
161036
+ }
161037
+ },
160998
161038
  {
160999
161039
  "name": "Graphic",
161000
161040
  "fileName": "/home/runner/work/canvas-kit/canvas-kit/modules/react/icon/lib/Graphic.tsx",
@@ -1,5 +1,5 @@
1
1
  // @ts-ignore: Cannot find module error
2
- import { version } from '../../../../lerna.json';
2
+
3
3
  export const packageJSONFile = `{
4
4
  "name": "vite-react-typescript-starter",
5
5
  "private": true,
@@ -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": "${version}",
22
- "@workday/canvas-kit-preview-react": "${version}",
23
- "@workday/canvas-kit-react": "${version}",
24
- "@workday/canvas-kit-react-fonts": "^${version}",
25
- "@workday/canvas-kit-styling": "${version}",
21
+ "@workday/canvas-kit-labs-react": "12.5.1",
22
+ "@workday/canvas-kit-preview-react": "12.5.1",
23
+ "@workday/canvas-kit-react": "12.5.1",
24
+ "@workday/canvas-kit-react-fonts": "^12.5.1",
25
+ "@workday/canvas-kit-styling": "12.5.1",
26
26
  "@workday/canvas-system-icons-web": "3.0.22",
27
27
  "@workday/canvas-tokens-web": "2.0.0"
28
28
  },
@@ -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.19",
22
- "@workday/canvas-kit-preview-react": "12.4.19",
23
- "@workday/canvas-kit-react": "12.4.19",
24
- "@workday/canvas-kit-react-fonts": "^12.4.19",
25
- "@workday/canvas-kit-styling": "12.4.19",
21
+ "@workday/canvas-kit-labs-react": "12.5.1",
22
+ "@workday/canvas-kit-preview-react": "12.5.1",
23
+ "@workday/canvas-kit-react": "12.5.1",
24
+ "@workday/canvas-kit-react-fonts": "^12.5.1",
25
+ "@workday/canvas-kit-styling": "12.5.1",
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.5.0-1058-next.0",
3
+ "version": "12.5.1",
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.5.0-1058-next.0",
49
- "@workday/canvas-kit-preview-react": "^12.5.0-1058-next.0",
50
- "@workday/canvas-kit-react": "^12.5.0-1058-next.0",
51
- "@workday/canvas-kit-styling": "^12.5.0-1058-next.0",
48
+ "@workday/canvas-kit-labs-react": "^12.5.1",
49
+ "@workday/canvas-kit-preview-react": "^12.5.1",
50
+ "@workday/canvas-kit-react": "^12.5.1",
51
+ "@workday/canvas-kit-styling": "^12.5.1",
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": "30f682a818360ecfabf0543529b0d1e7c7b6d1ff"
64
+ "gitHead": "bfc393bafb81d9e458434f09bb9b5b9f230bf2c2"
65
65
  }