frosty 0.0.156 → 0.0.158
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/_native.d.mts +3 -3
- package/dist/_native.d.ts +3 -3
- package/dist/dom.d.mts +3 -3
- package/dist/dom.d.ts +3 -3
- package/dist/i18n.d.mts +3 -3
- package/dist/i18n.d.mts.map +1 -1
- package/dist/i18n.d.ts +3 -3
- package/dist/i18n.d.ts.map +1 -1
- package/dist/i18n.js.map +1 -1
- package/dist/i18n.mjs.map +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/internals/{common-DU6Re-Mj.d.ts → common-BMp06ZN_.d.mts} +37 -23
- package/dist/internals/common-BMp06ZN_.d.mts.map +1 -0
- package/dist/internals/{common-DU6Re-Mj.d.mts → common-BMp06ZN_.d.ts} +37 -23
- package/dist/internals/common-BMp06ZN_.d.ts.map +1 -0
- package/dist/internals/{fragment-CrKghgmU.d.ts → fragment-C8nMwgq0.d.ts} +2 -2
- package/dist/internals/{fragment-CrKghgmU.d.ts.map → fragment-C8nMwgq0.d.ts.map} +1 -1
- package/dist/internals/{fragment-v6b3-mS6.d.mts → fragment-Dhp_GJso.d.mts} +2 -2
- package/dist/internals/{fragment-v6b3-mS6.d.mts.map → fragment-Dhp_GJso.d.mts.map} +1 -1
- package/dist/internals/{index-OvcTjmzX.d.ts → index-CUCYNdr9.d.ts} +3 -3
- package/dist/internals/{index-OvcTjmzX.d.ts.map → index-CUCYNdr9.d.ts.map} +1 -1
- package/dist/internals/{index-BzVLlTCa.d.mts → index-CgIOFVc1.d.mts} +3 -3
- package/dist/internals/{index-BzVLlTCa.d.mts.map → index-CgIOFVc1.d.mts.map} +1 -1
- package/dist/internals/{renderer-BluiQ1F-.d.mts → renderer-5Al4VWW1.d.mts} +3 -3
- package/dist/internals/{renderer-BluiQ1F-.d.mts.map → renderer-5Al4VWW1.d.mts.map} +1 -1
- package/dist/internals/{renderer-C1RBQB2f.d.ts → renderer-BFv842Qz.d.ts} +3 -3
- package/dist/internals/{renderer-C1RBQB2f.d.ts.map → renderer-BFv842Qz.d.ts.map} +1 -1
- package/dist/internals/renderer-BvM6i6Cl.mjs.map +1 -1
- package/dist/internals/renderer-C5NIsxDg.js.map +1 -1
- package/dist/internals/{utils-BNdSbzPU.d.ts → utils-BGg0L3IY.d.ts} +2 -2
- package/dist/internals/{utils-BNdSbzPU.d.ts.map → utils-BGg0L3IY.d.ts.map} +1 -1
- package/dist/internals/{utils-ukNJhgdU.d.mts → utils-qS8tRYZD.d.mts} +2 -2
- package/dist/internals/{utils-ukNJhgdU.d.mts.map → utils-qS8tRYZD.d.mts.map} +1 -1
- package/dist/jsx-dev-runtime.d.mts +2 -2
- package/dist/jsx-dev-runtime.d.ts +2 -2
- package/dist/jsx-runtime.d.mts +2 -2
- package/dist/jsx-runtime.d.ts +2 -2
- package/dist/server-dom.d.mts +3 -3
- package/dist/server-dom.d.ts +3 -3
- package/dist/web.d.mts +3 -3
- package/dist/web.d.ts +3 -3
- package/package.json +6 -6
- package/packages/frosty-cli/package.json +1 -1
- package/packages/frosty-cli/webpack.mjs +5 -1
- package/packages/frosty-cli/yarn.lock +204 -169
- package/dist/internals/common-DU6Re-Mj.d.mts.map +0 -1
- package/dist/internals/common-DU6Re-Mj.d.ts.map +0 -1
package/dist/_native.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { N as NativeElementType, c as PropsType, a as ComponentNode } from './internals/common-
|
|
2
|
-
export { V as VNode, _ as _Renderer } from './internals/index-
|
|
3
|
-
export { u as uniqueId } from './internals/utils-
|
|
1
|
+
import { N as NativeElementType, c as PropsType, a as ComponentNode } from './internals/common-BMp06ZN_.mjs';
|
|
2
|
+
export { V as VNode, _ as _Renderer } from './internals/index-CgIOFVc1.mjs';
|
|
3
|
+
export { u as uniqueId } from './internals/utils-qS8tRYZD.mjs';
|
|
4
4
|
import '@o2ter/utils-js';
|
|
5
5
|
import 'lodash';
|
|
6
6
|
import 'csstype';
|
package/dist/_native.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { N as NativeElementType, c as PropsType, a as ComponentNode } from './internals/common-
|
|
2
|
-
export { V as VNode, _ as _Renderer } from './internals/index-
|
|
3
|
-
export { u as uniqueId } from './internals/utils-
|
|
1
|
+
import { N as NativeElementType, c as PropsType, a as ComponentNode } from './internals/common-BMp06ZN_.js';
|
|
2
|
+
export { V as VNode, _ as _Renderer } from './internals/index-CUCYNdr9.js';
|
|
3
|
+
export { u as uniqueId } from './internals/utils-BGg0L3IY.js';
|
|
4
4
|
import '@o2ter/utils-js';
|
|
5
5
|
import 'lodash';
|
|
6
6
|
import 'csstype';
|
package/dist/dom.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as _DOMRenderer } from './internals/renderer-
|
|
2
|
-
import './internals/index-
|
|
3
|
-
import './internals/common-
|
|
1
|
+
import { _ as _DOMRenderer } from './internals/renderer-5Al4VWW1.mjs';
|
|
2
|
+
import './internals/index-CgIOFVc1.mjs';
|
|
3
|
+
import './internals/common-BMp06ZN_.mjs';
|
|
4
4
|
import '@o2ter/utils-js';
|
|
5
5
|
import 'lodash';
|
|
6
6
|
import 'csstype';
|
package/dist/dom.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as _DOMRenderer } from './internals/renderer-
|
|
2
|
-
import './internals/index-
|
|
3
|
-
import './internals/common-
|
|
1
|
+
import { _ as _DOMRenderer } from './internals/renderer-BFv842Qz.js';
|
|
2
|
+
import './internals/index-CUCYNdr9.js';
|
|
3
|
+
import './internals/common-BMp06ZN_.js';
|
|
4
4
|
import '@o2ter/utils-js';
|
|
5
5
|
import 'lodash';
|
|
6
6
|
import 'csstype';
|
package/dist/i18n.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _ from 'lodash';
|
|
2
2
|
import { Opts } from '@formatjs/intl-localematcher';
|
|
3
3
|
|
|
4
|
-
type
|
|
4
|
+
type I18nStateOpts = Partial<Opts> & {
|
|
5
5
|
locales: string[];
|
|
6
6
|
availableLocales: string[];
|
|
7
7
|
preferredLocale?: string;
|
|
@@ -19,7 +19,7 @@ type I18nStateOPts = Partial<Opts> & {
|
|
|
19
19
|
*
|
|
20
20
|
* @returns The matched locale string based on the provided options.
|
|
21
21
|
*/
|
|
22
|
-
declare const useI18nState: (opts:
|
|
22
|
+
declare const useI18nState: (opts: I18nStateOpts) => string;
|
|
23
23
|
/**
|
|
24
24
|
* A hook that provides a localization function based on the current i18n state.
|
|
25
25
|
*
|
|
@@ -32,7 +32,7 @@ declare const useI18nState: (opts: I18nStateOPts) => string;
|
|
|
32
32
|
*
|
|
33
33
|
* @returns A function that takes a record of localized strings and an optional selector, returning the localized string based on the current i18n state.
|
|
34
34
|
*/
|
|
35
|
-
declare const useLocalize: (opts:
|
|
35
|
+
declare const useLocalize: (opts: I18nStateOpts) => <TObject extends unknown>(strings: Record<string, TObject>, selector?: _.PropertyPath) => any;
|
|
36
36
|
|
|
37
37
|
export { useI18nState, useLocalize };
|
|
38
38
|
//# sourceMappingURL=i18n.d.mts.map
|
package/dist/i18n.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.d.mts","sources":["../src/i18n/index.ts"],"sourcesContent":["//\n// index.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2026 O2ter Limited. All rights reserved.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n//\n\nimport _ from 'lodash';\nimport { match, Opts } from '@formatjs/intl-localematcher';\nimport { useMemo } from '../core/hooks/memo';\nimport { useCallback } from '../core/hooks/callback';\n\ntype
|
|
1
|
+
{"version":3,"file":"i18n.d.mts","sources":["../src/i18n/index.ts"],"sourcesContent":["//\n// index.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2026 O2ter Limited. All rights reserved.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n//\n\nimport _ from 'lodash';\nimport { match, Opts } from '@formatjs/intl-localematcher';\nimport { useMemo } from '../core/hooks/memo';\nimport { useCallback } from '../core/hooks/callback';\n\ntype I18nStateOpts = Partial<Opts> & {\n locales: string[];\n availableLocales: string[];\n preferredLocale?: string;\n fallback: string;\n};\n\n/**\n * A hook that provides the current i18n state based on the provided options.\n *\n * @param opts - An object containing the following properties:\n * - `locales`: An array of preferred locales.\n * - `availableLocales`: An array of available locales.\n * - `preferredLocale`: An optional preferred locale to use if available.\n * - `fallback`: A fallback locale to use if no match is found.\n * - Additional options for locale matching can be provided as well.\n *\n * @returns The matched locale string based on the provided options.\n */\nexport const useI18nState = (opts: I18nStateOpts) => useMemo(() => {\n const { locales, availableLocales, preferredLocale, fallback: defaultLocale, ...options } = opts;\n if (preferredLocale && _.includes(availableLocales, preferredLocale)) {\n return preferredLocale;\n }\n return match(locales, availableLocales, defaultLocale, {\n algorithm: 'best fit',\n ...options,\n });\n}, [opts]);\n\n/**\n * A hook that provides a localization function based on the current i18n state.\n *\n * @param opts - An object containing the following properties:\n * - `locales`: An array of preferred locales.\n * - `availableLocales`: An array of available locales.\n * - `preferredLocale`: An optional preferred locale to use if available.\n * - `fallback`: A fallback locale to use if no match is found.\n * - Additional options for locale matching can be provided as well.\n * \n * @returns A function that takes a record of localized strings and an optional selector, returning the localized string based on the current i18n state.\n */\nexport const useLocalize = (opts: I18nStateOpts) => {\n const i18nState = useI18nState(opts);\n return useCallback(<TObject extends unknown>(\n strings: Record<string, TObject>,\n selector?: _.PropertyPath,\n ) => selector ? _.get(strings[i18nState], selector) : strings[i18nState]);\n};"],"names":[],"mappings":";;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;;"}
|
package/dist/i18n.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _ from 'lodash';
|
|
2
2
|
import { Opts } from '@formatjs/intl-localematcher';
|
|
3
3
|
|
|
4
|
-
type
|
|
4
|
+
type I18nStateOpts = Partial<Opts> & {
|
|
5
5
|
locales: string[];
|
|
6
6
|
availableLocales: string[];
|
|
7
7
|
preferredLocale?: string;
|
|
@@ -19,7 +19,7 @@ type I18nStateOPts = Partial<Opts> & {
|
|
|
19
19
|
*
|
|
20
20
|
* @returns The matched locale string based on the provided options.
|
|
21
21
|
*/
|
|
22
|
-
declare const useI18nState: (opts:
|
|
22
|
+
declare const useI18nState: (opts: I18nStateOpts) => string;
|
|
23
23
|
/**
|
|
24
24
|
* A hook that provides a localization function based on the current i18n state.
|
|
25
25
|
*
|
|
@@ -32,7 +32,7 @@ declare const useI18nState: (opts: I18nStateOPts) => string;
|
|
|
32
32
|
*
|
|
33
33
|
* @returns A function that takes a record of localized strings and an optional selector, returning the localized string based on the current i18n state.
|
|
34
34
|
*/
|
|
35
|
-
declare const useLocalize: (opts:
|
|
35
|
+
declare const useLocalize: (opts: I18nStateOpts) => <TObject extends unknown>(strings: Record<string, TObject>, selector?: _.PropertyPath) => any;
|
|
36
36
|
|
|
37
37
|
export { useI18nState, useLocalize };
|
|
38
38
|
//# sourceMappingURL=i18n.d.ts.map
|
package/dist/i18n.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.d.ts","sources":["../src/i18n/index.ts"],"sourcesContent":["//\n// index.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2026 O2ter Limited. All rights reserved.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n//\n\nimport _ from 'lodash';\nimport { match, Opts } from '@formatjs/intl-localematcher';\nimport { useMemo } from '../core/hooks/memo';\nimport { useCallback } from '../core/hooks/callback';\n\ntype
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sources":["../src/i18n/index.ts"],"sourcesContent":["//\n// index.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2026 O2ter Limited. All rights reserved.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n//\n\nimport _ from 'lodash';\nimport { match, Opts } from '@formatjs/intl-localematcher';\nimport { useMemo } from '../core/hooks/memo';\nimport { useCallback } from '../core/hooks/callback';\n\ntype I18nStateOpts = Partial<Opts> & {\n locales: string[];\n availableLocales: string[];\n preferredLocale?: string;\n fallback: string;\n};\n\n/**\n * A hook that provides the current i18n state based on the provided options.\n *\n * @param opts - An object containing the following properties:\n * - `locales`: An array of preferred locales.\n * - `availableLocales`: An array of available locales.\n * - `preferredLocale`: An optional preferred locale to use if available.\n * - `fallback`: A fallback locale to use if no match is found.\n * - Additional options for locale matching can be provided as well.\n *\n * @returns The matched locale string based on the provided options.\n */\nexport const useI18nState = (opts: I18nStateOpts) => useMemo(() => {\n const { locales, availableLocales, preferredLocale, fallback: defaultLocale, ...options } = opts;\n if (preferredLocale && _.includes(availableLocales, preferredLocale)) {\n return preferredLocale;\n }\n return match(locales, availableLocales, defaultLocale, {\n algorithm: 'best fit',\n ...options,\n });\n}, [opts]);\n\n/**\n * A hook that provides a localization function based on the current i18n state.\n *\n * @param opts - An object containing the following properties:\n * - `locales`: An array of preferred locales.\n * - `availableLocales`: An array of available locales.\n * - `preferredLocale`: An optional preferred locale to use if available.\n * - `fallback`: A fallback locale to use if no match is found.\n * - Additional options for locale matching can be provided as well.\n * \n * @returns A function that takes a record of localized strings and an optional selector, returning the localized string based on the current i18n state.\n */\nexport const useLocalize = (opts: I18nStateOpts) => {\n const i18nState = useI18nState(opts);\n return useCallback(<TObject extends unknown>(\n strings: Record<string, TObject>,\n selector?: _.PropertyPath,\n ) => selector ? _.get(strings[i18nState], selector) : strings[i18nState]);\n};"],"names":[],"mappings":";;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO;;"}
|
package/dist/i18n.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.js","sources":["../../src/i18n/index.ts"],"sourcesContent":["//\n// index.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2026 O2ter Limited. All rights reserved.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n//\n\nimport _ from 'lodash';\nimport { match, Opts } from '@formatjs/intl-localematcher';\nimport { useMemo } from '../core/hooks/memo';\nimport { useCallback } from '../core/hooks/callback';\n\ntype
|
|
1
|
+
{"version":3,"file":"i18n.js","sources":["../../src/i18n/index.ts"],"sourcesContent":["//\n// index.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2026 O2ter Limited. All rights reserved.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n//\n\nimport _ from 'lodash';\nimport { match, Opts } from '@formatjs/intl-localematcher';\nimport { useMemo } from '../core/hooks/memo';\nimport { useCallback } from '../core/hooks/callback';\n\ntype I18nStateOpts = Partial<Opts> & {\n locales: string[];\n availableLocales: string[];\n preferredLocale?: string;\n fallback: string;\n};\n\n/**\n * A hook that provides the current i18n state based on the provided options.\n *\n * @param opts - An object containing the following properties:\n * - `locales`: An array of preferred locales.\n * - `availableLocales`: An array of available locales.\n * - `preferredLocale`: An optional preferred locale to use if available.\n * - `fallback`: A fallback locale to use if no match is found.\n * - Additional options for locale matching can be provided as well.\n *\n * @returns The matched locale string based on the provided options.\n */\nexport const useI18nState = (opts: I18nStateOpts) => useMemo(() => {\n const { locales, availableLocales, preferredLocale, fallback: defaultLocale, ...options } = opts;\n if (preferredLocale && _.includes(availableLocales, preferredLocale)) {\n return preferredLocale;\n }\n return match(locales, availableLocales, defaultLocale, {\n algorithm: 'best fit',\n ...options,\n });\n}, [opts]);\n\n/**\n * A hook that provides a localization function based on the current i18n state.\n *\n * @param opts - An object containing the following properties:\n * - `locales`: An array of preferred locales.\n * - `availableLocales`: An array of available locales.\n * - `preferredLocale`: An optional preferred locale to use if available.\n * - `fallback`: A fallback locale to use if no match is found.\n * - Additional options for locale matching can be provided as well.\n * \n * @returns A function that takes a record of localized strings and an optional selector, returning the localized string based on the current i18n state.\n */\nexport const useLocalize = (opts: I18nStateOpts) => {\n const i18nState = useI18nState(opts);\n return useCallback(<TObject extends unknown>(\n strings: Record<string, TObject>,\n selector?: _.PropertyPath,\n ) => selector ? _.get(strings[i18nState], selector) : strings[i18nState]);\n};"],"names":["useMemo","_","match","useCallback"],"mappings":";;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAcA;;;;;;;;;;;AAWG;AACI,MAAM,YAAY,GAAG,CAAC,IAAmB,KAAKA,gBAAO,CAAC,MAAK;AAChE,IAAA,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,OAAO,EAAE,GAAG,IAAI;IAChG,IAAI,eAAe,IAAIC,kBAAC,CAAC,QAAQ,CAAC,gBAAgB,EAAE,eAAe,CAAC,EAAE;AACpE,QAAA,OAAO,eAAe;IACxB;AACA,IAAA,OAAOC,uBAAK,CAAC,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE;AACrD,QAAA,SAAS,EAAE,UAAU;AACrB,QAAA,GAAG,OAAO;AACX,KAAA,CAAC;AACJ,CAAC,EAAE,CAAC,IAAI,CAAC;AAET;;;;;;;;;;;AAWG;AACI,MAAM,WAAW,GAAG,CAAC,IAAmB,KAAI;AACjD,IAAA,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC;AACpC,IAAA,OAAOC,oBAAW,CAAC,CACjB,OAAgC,EAChC,QAAyB,KACtB,QAAQ,GAAGF,kBAAC,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AAC3E;;;;;"}
|
package/dist/i18n.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.mjs","sources":["../../src/i18n/index.ts"],"sourcesContent":["//\n// index.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2026 O2ter Limited. All rights reserved.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n//\n\nimport _ from 'lodash';\nimport { match, Opts } from '@formatjs/intl-localematcher';\nimport { useMemo } from '../core/hooks/memo';\nimport { useCallback } from '../core/hooks/callback';\n\ntype
|
|
1
|
+
{"version":3,"file":"i18n.mjs","sources":["../../src/i18n/index.ts"],"sourcesContent":["//\n// index.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2026 O2ter Limited. All rights reserved.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n//\n\nimport _ from 'lodash';\nimport { match, Opts } from '@formatjs/intl-localematcher';\nimport { useMemo } from '../core/hooks/memo';\nimport { useCallback } from '../core/hooks/callback';\n\ntype I18nStateOpts = Partial<Opts> & {\n locales: string[];\n availableLocales: string[];\n preferredLocale?: string;\n fallback: string;\n};\n\n/**\n * A hook that provides the current i18n state based on the provided options.\n *\n * @param opts - An object containing the following properties:\n * - `locales`: An array of preferred locales.\n * - `availableLocales`: An array of available locales.\n * - `preferredLocale`: An optional preferred locale to use if available.\n * - `fallback`: A fallback locale to use if no match is found.\n * - Additional options for locale matching can be provided as well.\n *\n * @returns The matched locale string based on the provided options.\n */\nexport const useI18nState = (opts: I18nStateOpts) => useMemo(() => {\n const { locales, availableLocales, preferredLocale, fallback: defaultLocale, ...options } = opts;\n if (preferredLocale && _.includes(availableLocales, preferredLocale)) {\n return preferredLocale;\n }\n return match(locales, availableLocales, defaultLocale, {\n algorithm: 'best fit',\n ...options,\n });\n}, [opts]);\n\n/**\n * A hook that provides a localization function based on the current i18n state.\n *\n * @param opts - An object containing the following properties:\n * - `locales`: An array of preferred locales.\n * - `availableLocales`: An array of available locales.\n * - `preferredLocale`: An optional preferred locale to use if available.\n * - `fallback`: A fallback locale to use if no match is found.\n * - Additional options for locale matching can be provided as well.\n * \n * @returns A function that takes a record of localized strings and an optional selector, returning the localized string based on the current i18n state.\n */\nexport const useLocalize = (opts: I18nStateOpts) => {\n const i18nState = useI18nState(opts);\n return useCallback(<TObject extends unknown>(\n strings: Record<string, TObject>,\n selector?: _.PropertyPath,\n ) => selector ? _.get(strings[i18nState], selector) : strings[i18nState]);\n};"],"names":[],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAcA;;;;;;;;;;;AAWG;AACI,MAAM,YAAY,GAAG,CAAC,IAAmB,KAAK,OAAO,CAAC,MAAK;AAChE,IAAA,MAAM,EAAE,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,OAAO,EAAE,GAAG,IAAI;IAChG,IAAI,eAAe,IAAI,CAAC,CAAC,QAAQ,CAAC,gBAAgB,EAAE,eAAe,CAAC,EAAE;AACpE,QAAA,OAAO,eAAe;IACxB;AACA,IAAA,OAAO,KAAK,CAAC,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE;AACrD,QAAA,SAAS,EAAE,UAAU;AACrB,QAAA,GAAG,OAAO;AACX,KAAA,CAAC;AACJ,CAAC,EAAE,CAAC,IAAI,CAAC;AAET;;;;;;;;;;;AAWG;AACI,MAAM,WAAW,GAAG,CAAC,IAAmB,KAAI;AACjD,IAAA,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC;AACpC,IAAA,OAAO,WAAW,CAAC,CACjB,OAAgC,EAChC,QAAyB,KACtB,QAAQ,GAAG,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AAC3E;;;;"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { C as ComponentType, E as ElementNode, _ as _ElementType, N as NativeElementType, P as PropsWithChildren, a as ComponentNode, S as SetStateAction, R as RefObject, b as Ref, c as PropsType } from './internals/common-
|
|
2
|
-
export { d as CSSProperties, e as ClassName, f as ComponentProps, g as ComponentPropsWithoutRef, h as ComponentRef, i as ExtendedCSSProperties, j as RefAttribute, k as RefCallback, l as StyleProp, m as createElement } from './internals/common-
|
|
3
|
-
export { F as Fragment } from './internals/fragment-
|
|
1
|
+
import { C as ComponentType, E as ElementNode, _ as _ElementType, N as NativeElementType, P as PropsWithChildren, a as ComponentNode, S as SetStateAction, R as RefObject, b as Ref, c as PropsType } from './internals/common-BMp06ZN_.mjs';
|
|
2
|
+
export { d as CSSProperties, e as ClassName, f as ComponentProps, g as ComponentPropsWithoutRef, h as ComponentRef, i as ExtendedCSSProperties, j as RefAttribute, k as RefCallback, l as StyleProp, m as createElement } from './internals/common-BMp06ZN_.mjs';
|
|
3
|
+
export { F as Fragment } from './internals/fragment-Dhp_GJso.mjs';
|
|
4
4
|
import { Awaitable } from '@o2ter/utils-js';
|
|
5
5
|
import _ from 'lodash';
|
|
6
|
-
export { m as mergeRefs } from './internals/utils-
|
|
6
|
+
export { m as mergeRefs } from './internals/utils-qS8tRYZD.mjs';
|
|
7
7
|
import 'csstype';
|
|
8
8
|
|
|
9
9
|
type Context<Value> = ReturnType<typeof _createContext<Value>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { C as ComponentType, E as ElementNode, _ as _ElementType, N as NativeElementType, P as PropsWithChildren, a as ComponentNode, S as SetStateAction, R as RefObject, b as Ref, c as PropsType } from './internals/common-
|
|
2
|
-
export { d as CSSProperties, e as ClassName, f as ComponentProps, g as ComponentPropsWithoutRef, h as ComponentRef, i as ExtendedCSSProperties, j as RefAttribute, k as RefCallback, l as StyleProp, m as createElement } from './internals/common-
|
|
3
|
-
export { F as Fragment } from './internals/fragment-
|
|
1
|
+
import { C as ComponentType, E as ElementNode, _ as _ElementType, N as NativeElementType, P as PropsWithChildren, a as ComponentNode, S as SetStateAction, R as RefObject, b as Ref, c as PropsType } from './internals/common-BMp06ZN_.js';
|
|
2
|
+
export { d as CSSProperties, e as ClassName, f as ComponentProps, g as ComponentPropsWithoutRef, h as ComponentRef, i as ExtendedCSSProperties, j as RefAttribute, k as RefCallback, l as StyleProp, m as createElement } from './internals/common-BMp06ZN_.js';
|
|
3
|
+
export { F as Fragment } from './internals/fragment-C8nMwgq0.js';
|
|
4
4
|
import { Awaitable } from '@o2ter/utils-js';
|
|
5
5
|
import _ from 'lodash';
|
|
6
|
-
export { m as mergeRefs } from './internals/utils-
|
|
6
|
+
export { m as mergeRefs } from './internals/utils-BGg0L3IY.js';
|
|
7
7
|
import 'csstype';
|
|
8
8
|
|
|
9
9
|
type Context<Value> = ReturnType<typeof _createContext<Value>>;
|
|
@@ -104,6 +104,7 @@ declare const globalEvents: {
|
|
|
104
104
|
|
|
105
105
|
declare namespace Frosty {
|
|
106
106
|
interface ARIAMixin {
|
|
107
|
+
ariaActiveDescendantElement?: Element;
|
|
107
108
|
ariaAtomic?: string;
|
|
108
109
|
ariaAutoComplete?: string;
|
|
109
110
|
ariaBrailleLabel?: string;
|
|
@@ -158,7 +159,7 @@ declare namespace Frosty {
|
|
|
158
159
|
}
|
|
159
160
|
interface ElementAttributes extends ARIAMixin {
|
|
160
161
|
}
|
|
161
|
-
interface
|
|
162
|
+
interface SVGAttributes extends ElementAttributes {
|
|
162
163
|
about?: string;
|
|
163
164
|
content?: string;
|
|
164
165
|
datatype?: string;
|
|
@@ -171,8 +172,6 @@ declare namespace Frosty {
|
|
|
171
172
|
tabindex?: string;
|
|
172
173
|
typeof?: string;
|
|
173
174
|
}
|
|
174
|
-
interface SVGAttributes extends ElementAttributes, SVGElementInstance {
|
|
175
|
-
}
|
|
176
175
|
interface SVGTests {
|
|
177
176
|
fill?: string;
|
|
178
177
|
}
|
|
@@ -1575,6 +1574,8 @@ declare namespace Frosty {
|
|
|
1575
1574
|
writingSuggestions?: string;
|
|
1576
1575
|
}
|
|
1577
1576
|
interface HTMLAttributes extends ElementAttributes, ElementContentEditable {
|
|
1577
|
+
commandForElement?: HTMLElement;
|
|
1578
|
+
htmlFor?: HTMLElement;
|
|
1578
1579
|
}
|
|
1579
1580
|
interface HTMLHtmlAttributes extends HTMLAttributes {
|
|
1580
1581
|
manifest?: string;
|
|
@@ -1668,8 +1669,17 @@ declare namespace Frosty {
|
|
|
1668
1669
|
interface HTMLDivAttributes extends HTMLAttributes {
|
|
1669
1670
|
align?: string;
|
|
1670
1671
|
}
|
|
1671
|
-
interface
|
|
1672
|
+
interface HyperlinkElementUtils {
|
|
1673
|
+
coords?: string;
|
|
1674
|
+
download?: string;
|
|
1675
|
+
href?: string;
|
|
1676
|
+
hreflang?: string;
|
|
1677
|
+
ping?: string;
|
|
1672
1678
|
referrerPolicy?: string;
|
|
1679
|
+
rel?: string;
|
|
1680
|
+
shape?: string;
|
|
1681
|
+
target?: string;
|
|
1682
|
+
type?: string;
|
|
1673
1683
|
}
|
|
1674
1684
|
interface HTMLHyperlinkElementUtils {
|
|
1675
1685
|
coords?: string;
|
|
@@ -1683,7 +1693,7 @@ declare namespace Frosty {
|
|
|
1683
1693
|
target?: string;
|
|
1684
1694
|
type?: string;
|
|
1685
1695
|
}
|
|
1686
|
-
interface HTMLAnchorAttributes extends HTMLAttributes,
|
|
1696
|
+
interface HTMLAnchorAttributes extends HTMLAttributes, HyperlinkElementUtils, HTMLHyperlinkElementUtils {
|
|
1687
1697
|
charset?: string;
|
|
1688
1698
|
name?: string;
|
|
1689
1699
|
rev?: string;
|
|
@@ -1714,40 +1724,46 @@ declare namespace Frosty {
|
|
|
1714
1724
|
type?: string;
|
|
1715
1725
|
width?: number;
|
|
1716
1726
|
}
|
|
1717
|
-
interface
|
|
1727
|
+
interface HTMLImageAttributes extends HTMLAttributes {
|
|
1718
1728
|
align?: string;
|
|
1719
|
-
height?: number;
|
|
1720
|
-
loading?: string;
|
|
1721
|
-
longDesc?: string;
|
|
1722
|
-
name?: string;
|
|
1723
|
-
referrerPolicy?: string;
|
|
1724
|
-
src?: string;
|
|
1725
|
-
width?: string;
|
|
1726
|
-
}
|
|
1727
|
-
interface HTMLImageAttributes extends HTMLAttributes, HTMLAttributionSrcElementUtils, HTMLSharedStorageWritableElementUtils {
|
|
1728
1729
|
alt?: string;
|
|
1729
1730
|
border?: string;
|
|
1730
1731
|
crossOrigin?: string;
|
|
1731
1732
|
decoding?: string;
|
|
1732
1733
|
fetchPriority?: string;
|
|
1734
|
+
height?: number;
|
|
1733
1735
|
hspace?: number;
|
|
1734
1736
|
isMap?: boolean;
|
|
1737
|
+
loading?: string;
|
|
1738
|
+
longDesc?: string;
|
|
1739
|
+
name?: string;
|
|
1740
|
+
referrerPolicy?: string;
|
|
1735
1741
|
sizes?: string;
|
|
1742
|
+
src?: string;
|
|
1736
1743
|
srcset?: string;
|
|
1737
1744
|
useMap?: string;
|
|
1738
1745
|
vspace?: number;
|
|
1746
|
+
width?: number;
|
|
1739
1747
|
}
|
|
1740
|
-
interface HTMLIFrameAttributes extends HTMLAttributes
|
|
1748
|
+
interface HTMLIFrameAttributes extends HTMLAttributes {
|
|
1749
|
+
align?: string;
|
|
1741
1750
|
allow?: string;
|
|
1742
1751
|
allowFullscreen?: boolean;
|
|
1743
1752
|
allowpaymentrequest?: string;
|
|
1744
1753
|
allowusermedia?: string;
|
|
1745
1754
|
frameBorder?: string;
|
|
1755
|
+
height?: string;
|
|
1756
|
+
loading?: string;
|
|
1757
|
+
longDesc?: string;
|
|
1746
1758
|
marginHeight?: string;
|
|
1747
1759
|
marginWidth?: string;
|
|
1760
|
+
name?: string;
|
|
1761
|
+
referrerPolicy?: string;
|
|
1748
1762
|
sandbox?: string;
|
|
1749
1763
|
scrolling?: string;
|
|
1764
|
+
src?: string;
|
|
1750
1765
|
srcdoc?: string;
|
|
1766
|
+
width?: string;
|
|
1751
1767
|
}
|
|
1752
1768
|
interface HTMLEmbedAttributes extends HTMLAttributes {
|
|
1753
1769
|
height?: string;
|
|
@@ -1802,7 +1818,7 @@ declare namespace Frosty {
|
|
|
1802
1818
|
interface HTMLMapAttributes extends HTMLAttributes {
|
|
1803
1819
|
name?: string;
|
|
1804
1820
|
}
|
|
1805
|
-
interface HTMLAreaAttributes extends HTMLAttributes,
|
|
1821
|
+
interface HTMLAreaAttributes extends HTMLAttributes, HyperlinkElementUtils, HTMLHyperlinkElementUtils {
|
|
1806
1822
|
alt?: string;
|
|
1807
1823
|
noHref?: boolean;
|
|
1808
1824
|
}
|
|
@@ -1869,7 +1885,6 @@ declare namespace Frosty {
|
|
|
1869
1885
|
target?: string;
|
|
1870
1886
|
}
|
|
1871
1887
|
interface HTMLLabelAttributes extends HTMLAttributes {
|
|
1872
|
-
for?: string;
|
|
1873
1888
|
form?: string;
|
|
1874
1889
|
}
|
|
1875
1890
|
interface PopoverTargetAttributes {
|
|
@@ -1915,7 +1930,6 @@ declare namespace Frosty {
|
|
|
1915
1930
|
}
|
|
1916
1931
|
interface HTMLButtonAttributes extends HTMLAttributes, PopoverTargetAttributes {
|
|
1917
1932
|
command?: string;
|
|
1918
|
-
commandfor?: string;
|
|
1919
1933
|
}
|
|
1920
1934
|
interface HTMLSelectAttributes extends HTMLAttributes {
|
|
1921
1935
|
autocomplete?: string;
|
|
@@ -1954,7 +1968,6 @@ declare namespace Frosty {
|
|
|
1954
1968
|
wrap?: string;
|
|
1955
1969
|
}
|
|
1956
1970
|
interface HTMLOutputAttributes extends HTMLAttributes {
|
|
1957
|
-
for?: string;
|
|
1958
1971
|
form?: string;
|
|
1959
1972
|
name?: string;
|
|
1960
1973
|
}
|
|
@@ -1988,7 +2001,7 @@ declare namespace Frosty {
|
|
|
1988
2001
|
closedBy?: string;
|
|
1989
2002
|
open?: boolean;
|
|
1990
2003
|
}
|
|
1991
|
-
interface HTMLScriptAttributes extends HTMLAttributes
|
|
2004
|
+
interface HTMLScriptAttributes extends HTMLAttributes {
|
|
1992
2005
|
async?: boolean;
|
|
1993
2006
|
blocking?: string;
|
|
1994
2007
|
charset?: string;
|
|
@@ -1998,6 +2011,7 @@ declare namespace Frosty {
|
|
|
1998
2011
|
integrity?: string;
|
|
1999
2012
|
language?: string;
|
|
2000
2013
|
noModule?: boolean;
|
|
2014
|
+
referrerPolicy?: string;
|
|
2001
2015
|
src?: string;
|
|
2002
2016
|
type?: string;
|
|
2003
2017
|
}
|
|
@@ -2260,7 +2274,7 @@ declare abstract class NativeElementType {
|
|
|
2260
2274
|
}
|
|
2261
2275
|
declare class ComponentNode {
|
|
2262
2276
|
#private;
|
|
2263
|
-
get type(): typeof NativeElementType
|
|
2277
|
+
get type(): _ElementType | typeof NativeElementType;
|
|
2264
2278
|
get props(): PropsType;
|
|
2265
2279
|
get key(): string | number | bigint | null | undefined;
|
|
2266
2280
|
equalType(other: ComponentNode): boolean;
|
|
@@ -2290,4 +2304,4 @@ type ComponentRef<T> = ComponentProps<T> extends RefAttribute<infer R> ? R : nev
|
|
|
2290
2304
|
|
|
2291
2305
|
export { NativeElementType as N, ComponentNode as a, createElement as m };
|
|
2292
2306
|
export type { ComponentType as C, ElementNode as E, PropsWithChildren as P, RefObject as R, SetStateAction as S, _ElementType as _, Ref as b, PropsType as c, CSSProperties as d, ClassName as e, ComponentProps as f, ComponentPropsWithoutRef as g, ComponentRef as h, ExtendedCSSProperties as i, RefAttribute as j, RefCallback as k, StyleProp as l, _IntrinsicElements as n, _IntrinsicAttributes as o };
|
|
2293
|
-
//# sourceMappingURL=common-
|
|
2307
|
+
//# sourceMappingURL=common-BMp06ZN_.d.mts.map
|