generator-white-label 5.0.0 → 5.0.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.
- package/README.md +1 -1
- package/app/assets/script/types.d.ts +5 -15
- package/app/assets/script/view/toolkit/youtube-player-1.ts +4 -2
- package/dist/app/assets/script/model/singletons/countries.d.ts +3 -19
- package/dist/app/assets/script/model/singletons/global.d.ts +3 -19
- package/dist/app/assets/script/model/singletons/states.d.ts +3 -19
- package/dist/app/assets/script/view/toolkit/youtube-player-1.d.ts +4 -4
- package/dist/app/assets/script/view/toolkit/youtube-player-1.js +4 -2
- package/dist/app/assets/script/view/toolkit/youtube-player-1.js.map +1 -1
- package/dist/generators/app/index.js +4 -4
- package/dist/generators/app/index.js.map +1 -1
- package/generators/app/index.ts +4 -4
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -158,7 +158,7 @@ console.log(profile.get().name);
|
|
|
158
158
|
|
|
159
159
|
Write implementation files as `.ts`, or `.tsx` for React markup. Keep `.js` extensions on relative imports: TypeScript resolves them to source files and emits imports usable by Node. Every top-level script entry is bundled, except declaration-only `.d.ts` files. The build checks all sample modules, including modules not imported by an entry point.
|
|
160
160
|
|
|
161
|
-
The
|
|
161
|
+
The generated project uses the current typed releases of `white-label-model` and `white-label-view`. The `types.d.ts` file declares only the optional SDK callbacks placed on `window`; package API types come directly from those dependencies.
|
|
162
162
|
|
|
163
163
|
Version 5 is a major release because generated projects now contain TypeScript and use a two-stage TypeScript/esbuild pipeline. Use Node.js 24 for development and CI. Existing generated sites are not changed automatically: migrate their script files, copy the new build configuration, and resolve strict type errors before deploying. The small `generators/app/index.js` file is only Yeoman's discovery bridge to compiled TypeScript.
|
|
164
164
|
|
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const api: {Model: typeof Model; Collection: typeof Collection};
|
|
7
|
-
export default api;
|
|
1
|
+
/** Browser SDK callbacks used by the optional sample adapters. */
|
|
2
|
+
interface Window {
|
|
3
|
+
onYouTubeIframeAPIReady?: (event?: Event) => void;
|
|
4
|
+
fbAsyncInit?: (event?: Event) => void;
|
|
5
|
+
FB: {init(options: {appId: unknown; autoLogAppEvents: boolean; xfbml: boolean; version: string}): void; AppEvents: {logPageView(): void}};
|
|
8
6
|
}
|
|
9
|
-
declare module 'white-label-view' {
|
|
10
|
-
export default class View {parentElement?: Element; initialize(): unknown; addListeners(): unknown}
|
|
11
|
-
}
|
|
12
|
-
interface Window {
|
|
13
|
-
onYouTubeIframeAPIReady?: (event?: Event) => void;
|
|
14
|
-
fbAsyncInit?: (event?: Event) => void;
|
|
15
|
-
FB: {init(options: {appId: unknown; autoLogAppEvents: boolean; xfbml: boolean; version: string}): void; AppEvents: {logPageView(): void}};
|
|
16
|
-
}
|
|
@@ -12,15 +12,17 @@ import View from 'white-label-view';
|
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* Extension hook for initializing a concrete YouTube player implementation.
|
|
15
|
-
* @returns
|
|
15
|
+
* @returns This view instance for lifecycle chaining.
|
|
16
16
|
*/
|
|
17
17
|
initialize() {
|
|
18
|
+
return this;
|
|
18
19
|
}
|
|
19
20
|
/**
|
|
20
21
|
* Lifecycle hook for attaching listeners owned by a subclass.
|
|
21
|
-
* @returns
|
|
22
|
+
* @returns This view instance for lifecycle chaining.
|
|
22
23
|
*/
|
|
23
24
|
addListeners() {
|
|
25
|
+
return this;
|
|
24
26
|
}
|
|
25
27
|
/**
|
|
26
28
|
* Legacy misspelled extension hook retained for compatibility with existing sample subclasses.
|
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
addListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
5
|
-
on<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
6
|
-
once<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
7
|
-
removeListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
8
|
-
off<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
9
|
-
removeAllListeners(eventName?: string | symbol | undefined): /*elided*/ any;
|
|
10
|
-
setMaxListeners(n: number): /*elided*/ any;
|
|
11
|
-
getMaxListeners(): number;
|
|
12
|
-
listeners<K>(eventName: string | symbol): Function[];
|
|
13
|
-
rawListeners<K>(eventName: string | symbol): Function[];
|
|
14
|
-
emit<K>(eventName: string | symbol, ...args: any[]): boolean;
|
|
15
|
-
listenerCount<K>(eventName: string | symbol, listener?: Function | undefined): number;
|
|
16
|
-
prependListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
17
|
-
prependOnceListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
18
|
-
eventNames(): (string | symbol)[];
|
|
19
|
-
};
|
|
1
|
+
/** @module app/assets/script/model/singletons/countries */
|
|
2
|
+
import WLModel from 'white-label-model';
|
|
3
|
+
declare const _default: WLModel.Collection;
|
|
20
4
|
export default _default;
|
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
addListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
5
|
-
on<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
6
|
-
once<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
7
|
-
removeListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
8
|
-
off<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
9
|
-
removeAllListeners(eventName?: string | symbol | undefined): /*elided*/ any;
|
|
10
|
-
setMaxListeners(n: number): /*elided*/ any;
|
|
11
|
-
getMaxListeners(): number;
|
|
12
|
-
listeners<K>(eventName: string | symbol): Function[];
|
|
13
|
-
rawListeners<K>(eventName: string | symbol): Function[];
|
|
14
|
-
emit<K>(eventName: string | symbol, ...args: any[]): boolean;
|
|
15
|
-
listenerCount<K>(eventName: string | symbol, listener?: Function | undefined): number;
|
|
16
|
-
prependListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
17
|
-
prependOnceListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
18
|
-
eventNames(): (string | symbol)[];
|
|
19
|
-
};
|
|
1
|
+
/** @module app/assets/script/model/singletons/global */
|
|
2
|
+
import WLModel from 'white-label-model';
|
|
3
|
+
declare const _default: WLModel.Model<Record<string, unknown>>;
|
|
20
4
|
export default _default;
|
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
addListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
5
|
-
on<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
6
|
-
once<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
7
|
-
removeListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
8
|
-
off<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
9
|
-
removeAllListeners(eventName?: string | symbol | undefined): /*elided*/ any;
|
|
10
|
-
setMaxListeners(n: number): /*elided*/ any;
|
|
11
|
-
getMaxListeners(): number;
|
|
12
|
-
listeners<K>(eventName: string | symbol): Function[];
|
|
13
|
-
rawListeners<K>(eventName: string | symbol): Function[];
|
|
14
|
-
emit<K>(eventName: string | symbol, ...args: any[]): boolean;
|
|
15
|
-
listenerCount<K>(eventName: string | symbol, listener?: Function | undefined): number;
|
|
16
|
-
prependListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
17
|
-
prependOnceListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): /*elided*/ any;
|
|
18
|
-
eventNames(): (string | symbol)[];
|
|
19
|
-
};
|
|
1
|
+
/** @module app/assets/script/model/singletons/states */
|
|
2
|
+
import WLModel from 'white-label-model';
|
|
3
|
+
declare const _default: WLModel.Collection;
|
|
20
4
|
export default _default;
|
|
@@ -7,14 +7,14 @@ export default class extends View {
|
|
|
7
7
|
constructor();
|
|
8
8
|
/**
|
|
9
9
|
* Extension hook for initializing a concrete YouTube player implementation.
|
|
10
|
-
* @returns
|
|
10
|
+
* @returns This view instance for lifecycle chaining.
|
|
11
11
|
*/
|
|
12
|
-
initialize():
|
|
12
|
+
initialize(): this;
|
|
13
13
|
/**
|
|
14
14
|
* Lifecycle hook for attaching listeners owned by a subclass.
|
|
15
|
-
* @returns
|
|
15
|
+
* @returns This view instance for lifecycle chaining.
|
|
16
16
|
*/
|
|
17
|
-
addListeners():
|
|
17
|
+
addListeners(): this;
|
|
18
18
|
/**
|
|
19
19
|
* Legacy misspelled extension hook retained for compatibility with existing sample subclasses.
|
|
20
20
|
* @returns No value.
|
|
@@ -11,15 +11,17 @@ export default class extends View {
|
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* Extension hook for initializing a concrete YouTube player implementation.
|
|
14
|
-
* @returns
|
|
14
|
+
* @returns This view instance for lifecycle chaining.
|
|
15
15
|
*/
|
|
16
16
|
initialize() {
|
|
17
|
+
return this;
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
19
20
|
* Lifecycle hook for attaching listeners owned by a subclass.
|
|
20
|
-
* @returns
|
|
21
|
+
* @returns This view instance for lifecycle chaining.
|
|
21
22
|
*/
|
|
22
23
|
addListeners() {
|
|
24
|
+
return this;
|
|
23
25
|
}
|
|
24
26
|
/**
|
|
25
27
|
* Legacy misspelled extension hook retained for compatibility with existing sample subclasses.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"youtube-player-1.js","sourceRoot":"","sources":["../../../../../../app/assets/script/view/toolkit/youtube-player-1.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,OAAO,IAAI,MAAM,kBAAkB,CAAC;AAEpC,YAAY,CAAC;AACT,MAAM,CAAC,OAAO,MAAO,SAAQ,IAAI;IAC7B;;OAEG;IACH;QACI,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,aAAa,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,SAAS,CAAC;IACrE,CAAC;IACD;;;OAGG;IACH,UAAU;
|
|
1
|
+
{"version":3,"file":"youtube-player-1.js","sourceRoot":"","sources":["../../../../../../app/assets/script/view/toolkit/youtube-player-1.ts"],"names":[],"mappings":"AAAA,8DAA8D;AAC9D,OAAO,IAAI,MAAM,kBAAkB,CAAC;AAEpC,YAAY,CAAC;AACT,MAAM,CAAC,OAAO,MAAO,SAAQ,IAAI;IAC7B;;OAEG;IACH;QACI,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,aAAa,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,SAAS,CAAC;IACrE,CAAC;IACD;;;OAGG;IACH,UAAU;QACN,OAAO,IAAI,CAAC;IAChB,CAAC;IACD;;;OAGG;IACH,YAAY;QACR,OAAO,IAAI,CAAC;IAChB,CAAC;IACD;;;OAGG;IACH,cAAc;IACd,CAAC;CACJ;AAAA,CAAC","sourcesContent":["/** @module app/assets/script/view/toolkit/youtube-player-1 */\nimport View from 'white-label-view';\n\n'use strict';\n export default class extends View {\n /**\n * Create an instance with its own state and listener references.\n */\n constructor() {\n super();\n this.parentElement = document.querySelector('body') || undefined;\n }\n /**\n * Extension hook for initializing a concrete YouTube player implementation.\n * @returns This view instance for lifecycle chaining.\n */\n initialize() {\n return this;\n }\n /**\n * Lifecycle hook for attaching listeners owned by a subclass.\n * @returns This view instance for lifecycle chaining.\n */\n addListeners() {\n return this;\n }\n /**\n * Legacy misspelled extension hook retained for compatibility with existing sample subclasses.\n * @returns No value.\n */\n removeListners() {\n }\n };\n"]}
|
|
@@ -27,14 +27,14 @@ export default class extends Generator {
|
|
|
27
27
|
version: '1.0.0',
|
|
28
28
|
private: true,
|
|
29
29
|
type: 'module',
|
|
30
|
-
engines: { node: '>=
|
|
30
|
+
engines: { node: '^22.18.0 || >=24.11.0', npm: '>=10.0' },
|
|
31
31
|
scripts: {
|
|
32
32
|
build: 'tsc -p tsconfig.json && node dist/scripts/build.js',
|
|
33
33
|
typecheck: 'tsc -p tsconfig.json --noEmit',
|
|
34
34
|
test: 'npm run build',
|
|
35
35
|
audit: 'npm audit --audit-level=low'
|
|
36
36
|
},
|
|
37
|
-
devDependencies: { typescript: '7.0.2', '@types/node': '24.13.3', '@types/react': '
|
|
37
|
+
devDependencies: { typescript: '7.0.2', '@types/node': '24.13.3', '@types/react': '19.2.18' },
|
|
38
38
|
dependencies: {
|
|
39
39
|
esbuild: '0.28.2',
|
|
40
40
|
events: '3.3.0',
|
|
@@ -43,8 +43,8 @@ export default class extends Generator {
|
|
|
43
43
|
react: '19.2.8',
|
|
44
44
|
'react-dom': '19.2.8',
|
|
45
45
|
sass: '1.104.0',
|
|
46
|
-
'white-label-model': '
|
|
47
|
-
'white-label-view': '
|
|
46
|
+
'white-label-model': '3.0.0',
|
|
47
|
+
'white-label-view': '4.0.0'
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../generators/app/index.ts"],"names":[],"mappings":"AAAA,mCAAmC;AACnC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAC,aAAa,EAAC,MAAM,UAAU,CAAC;AACvC,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;AACpF,OAAO,SAAS,MAAM,kBAAkB,CAAC;AACzC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,O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AO,EAAE,EAAC,IAAI,EAAE,uBAAuB,EAAE,GAAG,EAAE,QAAQ,EAAC;YACvD,OAAO,EAAE;gBACL,KAAK,EAAE,oDAAoD;gBAC3D,SAAS,EAAE,+BAA+B;gBAC1C,IAAI,EAAE,eAAe;gBACrB,KAAK,EAAE,6BAA6B;aACvC;YACD,eAAe,EAAE,EAAC,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAAC;YAC3F,YAAY,EAAE;gBACV,OAAO,EAAE,QAAQ;gBACjB,MAAM,EAAE,OAAO;gBACf,WAAW,EAAE,OAAO;gBACpB,UAAU,EAAE,OAAO;gBACnB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE,SAAS;gBACf,mBAAmB,EAAE,OAAO;gBAC5B,kBAAkB,EAAE,OAAO;aAC9B;SACJ,CAAC,CAAC;IACP,CAAC;IAED;;;OAGG;IACH,GAAG;QACC,IAAI,CAAC,GAAG,CAAC,6DAA6D,CAAC,CAAC;IAC5E,CAAC;CACJ","sourcesContent":["/** @module generators/app/index */\nimport path from 'node:path';\nimport {fileURLToPath} from 'node:url';\nconst root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../..');\nimport Generator from 'yeoman-generator';\nimport chalk from 'chalk';\nimport yosay from 'yosay';\n\nexport default class extends Generator {\n /**\n * Describe the scaffold operation through Yeoman's output adapter.\n * @returns No value.\n */\n prompting() {\n this.log(yosay(`Setting up the ${chalk.red('white-label')} project.`));\n }\n\n /**\n * Copy the site sources and write a strict TypeScript build manifest into the destination.\n * @returns No value; Yeoman stages the generated files.\n */\n writing() {\n this.fs.copy(path.join(root, 'app'), this.destinationPath('app'));\n this.fs.copy(path.join(root, 'app/README.md'), this.destinationPath('README.md'));\n this.fs.copy(path.join(root, 'scripts'), this.destinationPath('scripts'));\n this.fs.copy(path.join(root, 'tsconfig.site.json'), this.destinationPath('tsconfig.json'));\n this.fs.writeJSON(this.destinationPath('package.json'), {\n name: 'white-label-site',\n version: '1.0.0',\n private: true,\n type: 'module',\n engines: {node: '^22.18.0 || >=24.11.0', npm: '>=10.0'},\n scripts: {\n build: 'tsc -p tsconfig.json && node dist/scripts/build.js',\n typecheck: 'tsc -p tsconfig.json --noEmit',\n test: 'npm run build',\n audit: 'npm audit --audit-level=low'\n },\n devDependencies: {typescript: '7.0.2', '@types/node': '24.13.3', '@types/react': '19.2.18'},\n dependencies: {\n esbuild: '0.28.2',\n events: '3.3.0',\n 'bootstrap': '5.3.8',\n handlebars: '4.7.9',\n react: '19.2.8',\n 'react-dom': '19.2.8',\n sass: '1.104.0',\n 'white-label-model': '3.0.0',\n 'white-label-view': '4.0.0'\n }\n });\n }\n\n /**\n * Explain the dependency-install step after Yeoman commits the scaffold.\n * @returns No value.\n */\n end() {\n this.log('Project created. Review package.json, then run npm install.');\n }\n}\n"]}
|
package/generators/app/index.ts
CHANGED
|
@@ -29,14 +29,14 @@ export default class extends Generator {
|
|
|
29
29
|
version: '1.0.0',
|
|
30
30
|
private: true,
|
|
31
31
|
type: 'module',
|
|
32
|
-
engines: {node: '>=
|
|
32
|
+
engines: {node: '^22.18.0 || >=24.11.0', npm: '>=10.0'},
|
|
33
33
|
scripts: {
|
|
34
34
|
build: 'tsc -p tsconfig.json && node dist/scripts/build.js',
|
|
35
35
|
typecheck: 'tsc -p tsconfig.json --noEmit',
|
|
36
36
|
test: 'npm run build',
|
|
37
37
|
audit: 'npm audit --audit-level=low'
|
|
38
38
|
},
|
|
39
|
-
devDependencies: {typescript: '7.0.2', '@types/node': '24.13.3', '@types/react': '
|
|
39
|
+
devDependencies: {typescript: '7.0.2', '@types/node': '24.13.3', '@types/react': '19.2.18'},
|
|
40
40
|
dependencies: {
|
|
41
41
|
esbuild: '0.28.2',
|
|
42
42
|
events: '3.3.0',
|
|
@@ -45,8 +45,8 @@ export default class extends Generator {
|
|
|
45
45
|
react: '19.2.8',
|
|
46
46
|
'react-dom': '19.2.8',
|
|
47
47
|
sass: '1.104.0',
|
|
48
|
-
'white-label-model': '
|
|
49
|
-
'white-label-view': '
|
|
48
|
+
'white-label-model': '3.0.0',
|
|
49
|
+
'white-label-view': '4.0.0'
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "generator-white-label",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"description": "Scaffolding for developing and building static sites.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/generators/app/index.js",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": ">=
|
|
8
|
+
"node": "^22.18.0 || >=24.11.0",
|
|
9
9
|
"npm": ">=10.0"
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
@@ -44,6 +44,8 @@
|
|
|
44
44
|
},
|
|
45
45
|
"homepage": "https://github.com/bshack/white-label",
|
|
46
46
|
"dependencies": {
|
|
47
|
+
"@types/node": "24.13.3",
|
|
48
|
+
"@yeoman/adapter": "5.0.0",
|
|
47
49
|
"bootstrap": "5.3.8",
|
|
48
50
|
"chalk": "6.0.0",
|
|
49
51
|
"esbuild": "0.28.2",
|
|
@@ -52,12 +54,10 @@
|
|
|
52
54
|
"react": "19.2.8",
|
|
53
55
|
"react-dom": "19.2.8",
|
|
54
56
|
"sass": "1.104.0",
|
|
55
|
-
"white-label-model": "
|
|
56
|
-
"white-label-view": "
|
|
57
|
+
"white-label-model": "3.0.0",
|
|
58
|
+
"white-label-view": "4.0.0",
|
|
57
59
|
"yeoman-generator": "8.3.1",
|
|
58
|
-
"yosay": "3.0.0"
|
|
59
|
-
"@types/node": "24.13.3",
|
|
60
|
-
"@yeoman/adapter": "5.0.0"
|
|
60
|
+
"yosay": "3.0.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@types/react": "19.2.18",
|