@pushwoosh/brand-book 0.2.0 → 0.2.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useRef, useState } from 'react';
|
|
2
|
+
import { useLayoutEffect, useRef, useState } from 'react';
|
|
3
3
|
import { Button } from '@pushwoosh/dumb-components';
|
|
4
4
|
import { Color } from '@pushwoosh/kit-constants';
|
|
5
5
|
import { useLang } from './polyglot';
|
|
@@ -142,7 +142,9 @@ export function DeriveThemeSection({
|
|
|
142
142
|
const [note, setNote] = useState(null);
|
|
143
143
|
const logoAtRequest = useRef(logoSrc);
|
|
144
144
|
const liveLogoSrc = useRef(logoSrc);
|
|
145
|
-
|
|
145
|
+
useLayoutEffect(() => {
|
|
146
|
+
liveLogoSrc.current = logoSrc;
|
|
147
|
+
}, [logoSrc]);
|
|
146
148
|
const voiceValue = voice ?? localVoice;
|
|
147
149
|
const setVoice = onVoice ?? setLocalVoice;
|
|
148
150
|
const busy = disabled || extracting;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pushwoosh/brand-book",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Project brand record of the ai-builder: model, templates-service store and the brand derivation UI",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -9,15 +9,15 @@
|
|
|
9
9
|
"directory": "dist"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@pushwoosh/dumb-components": "^
|
|
13
|
-
"@pushwoosh/kit-constants": "^
|
|
12
|
+
"@pushwoosh/dumb-components": "^4.7.0",
|
|
13
|
+
"@pushwoosh/kit-constants": "^3.0.0"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@pushwoosh/rpc-gateway-ai-assistant": "^0.1.477",
|
|
17
17
|
"react": "^19.0.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@pushwoosh/frontend-builder-engine": "^
|
|
20
|
+
"@pushwoosh/frontend-builder-engine": "^4.0.0",
|
|
21
21
|
"@pushwoosh/rpc-gateway-ai-assistant": "^0.1.477",
|
|
22
22
|
"@types/node": "^24.19.1",
|
|
23
23
|
"@types/react": "^19.3.0",
|