scoobie 14.4.0 → 14.5.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.
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"version": "14.
|
|
7
|
+
"version": "14.5.0",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@capsizecss/core": "^3.0.0",
|
|
10
10
|
"@mdx-js/loader": "^1.6.22",
|
|
@@ -30,18 +30,18 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@mermaid-js/mermaid-cli": "10.0.2",
|
|
33
|
-
"@storybook/addon-essentials": "
|
|
33
|
+
"@storybook/addon-essentials": "7.0.22",
|
|
34
34
|
"@storybook/storybook-deployer": "2.8.16",
|
|
35
35
|
"@types/react": "18.2.8",
|
|
36
36
|
"@types/react-dom": "18.2.4",
|
|
37
|
-
"braid-design-system": "32.
|
|
37
|
+
"braid-design-system": "32.7.0",
|
|
38
38
|
"loki": "0.31.1",
|
|
39
39
|
"react": "18.2.0",
|
|
40
40
|
"react-dom": "18.2.0",
|
|
41
41
|
"react-helmet-async": "1.3.0",
|
|
42
42
|
"react-router-dom": "6.9.0",
|
|
43
43
|
"semantic-release": "21.0.0",
|
|
44
|
-
"sku": "
|
|
44
|
+
"sku": "12.0.5",
|
|
45
45
|
"webpack": "5.76.3"
|
|
46
46
|
},
|
|
47
47
|
"files": [
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"braid-design-system": ">= 31.21.0",
|
|
58
58
|
"react": ">= 17 < 19",
|
|
59
59
|
"react-router-dom": ">= 5.3.0",
|
|
60
|
-
"sku": ">= 10.13.4 <
|
|
60
|
+
"sku": ">= 10.13.4 < 13"
|
|
61
61
|
},
|
|
62
62
|
"peerDependenciesMeta": {
|
|
63
63
|
"@mermaid-js/mermaid-cli": {
|
|
@@ -22,8 +22,8 @@ interface ScoobieLinkProviderProps {
|
|
|
22
22
|
export const ScoobieLinkProvider = ({
|
|
23
23
|
children,
|
|
24
24
|
...value
|
|
25
|
-
}: ScoobieLinkProviderProps) =>
|
|
26
|
-
<ctx.Provider value={value}>{children}</ctx.Provider
|
|
27
|
-
|
|
25
|
+
}: ScoobieLinkProviderProps) => (
|
|
26
|
+
<ctx.Provider value={value}>{children}</ctx.Provider>
|
|
27
|
+
);
|
|
28
28
|
|
|
29
29
|
export const useScoobieLink = () => useContext(ctx);
|
|
@@ -4,7 +4,7 @@ const LIST_TYPES = ['number', 'alpha', 'roman'] as const;
|
|
|
4
4
|
|
|
5
5
|
const DEFAULT_LIST_TYPE = LIST_TYPES[0];
|
|
6
6
|
|
|
7
|
-
type ListType = typeof LIST_TYPES[number];
|
|
7
|
+
type ListType = (typeof LIST_TYPES)[number];
|
|
8
8
|
|
|
9
9
|
const nextListType = (type: ListType): ListType =>
|
|
10
10
|
LIST_TYPES[LIST_TYPES.indexOf(type) + 1] ?? DEFAULT_LIST_TYPE;
|
package/src/private/size.ts
CHANGED
|
@@ -8,9 +8,9 @@ export const SIZES = ['standard', 'large'] as const;
|
|
|
8
8
|
|
|
9
9
|
export const SMALLER_SIZES = ['small', 'standard'] as const;
|
|
10
10
|
|
|
11
|
-
export type SmallerSize = typeof SMALLER_SIZES[number];
|
|
11
|
+
export type SmallerSize = (typeof SMALLER_SIZES)[number];
|
|
12
12
|
|
|
13
|
-
export type Size = typeof SIZES[number];
|
|
13
|
+
export type Size = (typeof SIZES)[number];
|
|
14
14
|
|
|
15
15
|
export const SIZE_TO_SMALLER: Record<Size, SmallerSize> = {
|
|
16
16
|
standard: 'small',
|