@smart-cloud/ai-kit-ui 1.5.1 → 1.5.2
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/index.cjs +6 -6
- package/dist/index.js +6 -6
- package/package.json +9 -9
- package/src/withAiKitShell.tsx +20 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smart-cloud/ai-kit-ui",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"@emotion/cache": "^11.14.0",
|
|
23
23
|
"@emotion/react": "^11.14.0",
|
|
24
24
|
"@mantine/colors-generator": "^8.3.18",
|
|
25
|
-
"@smart-cloud/ai-kit-core": "^1.5.
|
|
26
|
-
"@smart-cloud/wpsuite-core": "^2.3.
|
|
25
|
+
"@smart-cloud/ai-kit-core": "^1.5.1",
|
|
26
|
+
"@smart-cloud/wpsuite-core": "^2.3.1",
|
|
27
27
|
"@tabler/icons-react": "^3.44.0",
|
|
28
28
|
"chroma-js": "^3.2.0",
|
|
29
29
|
"country-flag-icons": "^1.6.17",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@mantine/core": "^8.3.18",
|
|
44
44
|
"@mantine/hooks": "^8.3.18",
|
|
45
45
|
"@mantine/modals": "^8.3.18",
|
|
46
|
-
"@wordpress/data": "^10.
|
|
46
|
+
"@wordpress/data": "^10.47.0",
|
|
47
47
|
"aws-amplify": "^6.17.0",
|
|
48
48
|
"react": "^18.3.1",
|
|
49
49
|
"react-dom": "^18.3.1"
|
|
@@ -57,19 +57,19 @@
|
|
|
57
57
|
"@types/jquery": "^4.0.0",
|
|
58
58
|
"@types/react": "^18.3.23",
|
|
59
59
|
"@types/react-dom": "^18.3.7",
|
|
60
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
61
|
-
"@typescript-eslint/parser": "^8.
|
|
62
|
-
"@wordpress/data": "^10.
|
|
60
|
+
"@typescript-eslint/eslint-plugin": "^8.60.0",
|
|
61
|
+
"@typescript-eslint/parser": "^8.60.0",
|
|
62
|
+
"@wordpress/data": "^10.47.0",
|
|
63
63
|
"ajv": "^8.20.0",
|
|
64
64
|
"aws-amplify": "^6.17.0",
|
|
65
|
-
"eslint": "^10.4.
|
|
65
|
+
"eslint": "^10.4.1",
|
|
66
66
|
"globals": "^17.6.0",
|
|
67
67
|
"jquery": "^4.0.0",
|
|
68
68
|
"react": "^18.3.1",
|
|
69
69
|
"react-dom": "^18.3.1",
|
|
70
70
|
"tsup": "^8.5.1",
|
|
71
71
|
"typescript": "^6.0.3",
|
|
72
|
-
"typescript-eslint": "^8.
|
|
72
|
+
"typescript-eslint": "^8.60.0"
|
|
73
73
|
},
|
|
74
74
|
"exports": {
|
|
75
75
|
".": {
|
package/src/withAiKitShell.tsx
CHANGED
|
@@ -96,18 +96,26 @@ export function withAiKitShell<P extends object>(
|
|
|
96
96
|
}, [currentLanguage, direction, directionInStore, directionOverride]);
|
|
97
97
|
|
|
98
98
|
const stylesheets = useMemo(
|
|
99
|
-
() =>
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
99
|
+
() =>
|
|
100
|
+
[
|
|
101
|
+
(
|
|
102
|
+
WpSuite as never as {
|
|
103
|
+
constants: { aiKit: { mantineCssHref: string } };
|
|
104
|
+
}
|
|
105
|
+
)?.constants?.aiKit?.mantineCssHref,
|
|
106
|
+
(
|
|
107
|
+
WpSuite as never as {
|
|
108
|
+
constants: { aiKit: { aiKitUiCssHref: string } };
|
|
109
|
+
}
|
|
110
|
+
)?.constants?.aiKit?.aiKitUiCssHref,
|
|
111
|
+
(
|
|
112
|
+
WpSuite as never as {
|
|
113
|
+
constants: { aiKit: { wpsuiteThemeCssHref?: string } };
|
|
114
|
+
}
|
|
115
|
+
)?.constants?.aiKit?.wpsuiteThemeCssHref,
|
|
116
|
+
].filter(
|
|
117
|
+
(href): href is string => typeof href === "string" && href.length > 0,
|
|
118
|
+
),
|
|
111
119
|
[WpSuite],
|
|
112
120
|
);
|
|
113
121
|
|