frosty 0.0.155 → 0.0.157

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.
Files changed (79) hide show
  1. package/dist/_native.d.mts +3 -3
  2. package/dist/_native.d.ts +3 -3
  3. package/dist/_native.js +3 -3
  4. package/dist/dom.d.mts +3 -3
  5. package/dist/dom.d.ts +3 -3
  6. package/dist/dom.js +3 -3
  7. package/dist/i18n.d.mts +38 -0
  8. package/dist/i18n.d.mts.map +1 -0
  9. package/dist/i18n.d.ts +38 -0
  10. package/dist/i18n.d.ts.map +1 -0
  11. package/dist/i18n.js +79 -0
  12. package/dist/i18n.js.map +1 -0
  13. package/dist/i18n.mjs +72 -0
  14. package/dist/i18n.mjs.map +1 -0
  15. package/dist/index.d.mts +4 -4
  16. package/dist/index.d.ts +4 -4
  17. package/dist/index.js +47 -42
  18. package/dist/index.js.map +1 -1
  19. package/dist/index.mjs +4 -2
  20. package/dist/index.mjs.map +1 -1
  21. package/dist/internals/callback-DEKCuARB.mjs +170 -0
  22. package/dist/internals/callback-DEKCuARB.mjs.map +1 -0
  23. package/dist/internals/callback-DVD1MTA9.js +180 -0
  24. package/dist/internals/callback-DVD1MTA9.js.map +1 -0
  25. package/dist/internals/{common-DU6Re-Mj.d.ts → common-uQrs1G5-.d.mts} +36 -22
  26. package/dist/internals/common-uQrs1G5-.d.mts.map +1 -0
  27. package/dist/internals/{common-DU6Re-Mj.d.mts → common-uQrs1G5-.d.ts} +36 -22
  28. package/dist/internals/common-uQrs1G5-.d.ts.map +1 -0
  29. package/dist/internals/{events-BgboMOG9.js → events-CcBnpWOF.js} +7 -3
  30. package/dist/internals/{events-BgboMOG9.js.map → events-CcBnpWOF.js.map} +1 -1
  31. package/dist/internals/{form-BGe5OdHZ.js → form-CC8A5nkh.js} +40 -205
  32. package/dist/internals/form-CC8A5nkh.js.map +1 -0
  33. package/dist/internals/{form-RKmiM_eK.mjs → form-Cee86QUZ.mjs} +4 -168
  34. package/dist/internals/form-Cee86QUZ.mjs.map +1 -0
  35. package/dist/internals/{fragment-v6b3-mS6.d.mts → fragment-DuyNMgL3.d.mts} +2 -2
  36. package/dist/internals/{fragment-v6b3-mS6.d.mts.map → fragment-DuyNMgL3.d.mts.map} +1 -1
  37. package/dist/internals/{fragment-CrKghgmU.d.ts → fragment-HkiF2xeJ.d.ts} +2 -2
  38. package/dist/internals/{fragment-CrKghgmU.d.ts.map → fragment-HkiF2xeJ.d.ts.map} +1 -1
  39. package/dist/internals/{index-CHID44Lo.js → index-Bvwj3lIq.js} +39 -35
  40. package/dist/internals/{index-CHID44Lo.js.map → index-Bvwj3lIq.js.map} +1 -1
  41. package/dist/internals/{index-OvcTjmzX.d.ts → index-CdMvWgIS.d.ts} +2 -2
  42. package/dist/internals/{index-OvcTjmzX.d.ts.map → index-CdMvWgIS.d.ts.map} +1 -1
  43. package/dist/internals/{index-BzVLlTCa.d.mts → index-D_01nFU0.d.mts} +2 -2
  44. package/dist/internals/{index-BzVLlTCa.d.mts.map → index-D_01nFU0.d.mts.map} +1 -1
  45. package/dist/internals/renderer-BvM6i6Cl.mjs.map +1 -1
  46. package/dist/internals/{renderer-CFxFx-Ik.js → renderer-C5NIsxDg.js} +67 -61
  47. package/dist/internals/renderer-C5NIsxDg.js.map +1 -0
  48. package/dist/internals/{renderer-ijDmCUMe.js → renderer-DR_CVQzd.js} +16 -11
  49. package/dist/internals/{renderer-ijDmCUMe.js.map → renderer-DR_CVQzd.js.map} +1 -1
  50. package/dist/internals/{renderer-C1RBQB2f.d.ts → renderer-DWRFEffh.d.ts} +3 -3
  51. package/dist/internals/{renderer-C1RBQB2f.d.ts.map → renderer-DWRFEffh.d.ts.map} +1 -1
  52. package/dist/internals/{renderer-BluiQ1F-.d.mts → renderer-Qq2yni7e.d.mts} +3 -3
  53. package/dist/internals/{renderer-BluiQ1F-.d.mts.map → renderer-Qq2yni7e.d.mts.map} +1 -1
  54. package/dist/internals/{utils-BNdSbzPU.d.ts → utils-DeZcxzm0.d.ts} +2 -2
  55. package/dist/internals/{utils-BNdSbzPU.d.ts.map → utils-DeZcxzm0.d.ts.map} +1 -1
  56. package/dist/internals/{utils-ukNJhgdU.d.mts → utils-LlN8w8CJ.d.mts} +2 -2
  57. package/dist/internals/{utils-ukNJhgdU.d.mts.map → utils-LlN8w8CJ.d.mts.map} +1 -1
  58. package/dist/jsx-dev-runtime.d.mts +2 -2
  59. package/dist/jsx-dev-runtime.d.ts +2 -2
  60. package/dist/jsx-runtime.d.mts +2 -2
  61. package/dist/jsx-runtime.d.ts +2 -2
  62. package/dist/server-dom.d.mts +3 -3
  63. package/dist/server-dom.d.ts +3 -3
  64. package/dist/server-dom.js +3 -3
  65. package/dist/web.d.mts +3 -3
  66. package/dist/web.d.ts +3 -3
  67. package/dist/web.js +31 -26
  68. package/dist/web.js.map +1 -1
  69. package/dist/web.mjs +2 -1
  70. package/dist/web.mjs.map +1 -1
  71. package/package.json +7 -6
  72. package/packages/frosty-cli/package.json +1 -1
  73. package/packages/frosty-cli/webpack.mjs +7 -3
  74. package/packages/frosty-cli/yarn.lock +58 -174
  75. package/dist/internals/common-DU6Re-Mj.d.mts.map +0 -1
  76. package/dist/internals/common-DU6Re-Mj.d.ts.map +0 -1
  77. package/dist/internals/form-BGe5OdHZ.js.map +0 -1
  78. package/dist/internals/form-RKmiM_eK.mjs.map +0 -1
  79. package/dist/internals/renderer-CFxFx-Ik.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callback-DEKCuARB.mjs","sources":["../../../src/core/reconciler/hooks.ts","../../../src/core/hooks/memo.ts","../../../src/core/hooks/callback.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 { reconciler } from '.';\nimport { equalDeps } from './utils';\n\nconst _useHookState = (hook: string) => {\n const state = reconciler.currentHookState;\n if (!state) throw Error(`${hook} must be used within a render function.`);\n const { prevState, state: newState } = state;\n if (prevState && prevState[newState.length]?.hook !== hook) {\n console.warn([\n `Hook \"${hook}\" is called conditionally.`,\n 'Hooks must be called in the exact same order in every component render.',\n 'Did you accidentally call a hook after an early return?'\n ].join(' '));\n }\n return state;\n};\n\nexport const _useEffect = (\n hook: string,\n effect: (state: ReturnType<typeof _useHookState>) => () => void,\n deps?: any\n) => {\n const state = _useHookState(hook);\n const { state: newState } = state;\n newState.push({\n mount: () => effect(state),\n deps,\n hook,\n });\n};\n\nexport const _useMemo = <T>(\n hook: string,\n factory: (state: ReturnType<typeof _useHookState>) => T,\n deps?: any\n): T => {\n const state = _useHookState(hook);\n const { prevState, state: newState } = state;\n const idx = newState.length;\n const changed = prevState?.[idx]?.hook !== hook || !equalDeps(prevState[idx].deps, deps);\n const data = changed ? factory(state) : prevState[idx].data;\n newState.push({\n deps,\n hook,\n data\n });\n return data;\n};\n","//\n// memo.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 { _useMemo } from '../reconciler/hooks';\n\n/**\n * A utility function that memoizes the result of a factory function.\n * \n * @template T The type of the value returned by the factory function.\n * @param factory A function that produces a value to be memoized.\n * @param deps An optional dependency array. The memoized value is recalculated \n * only when the dependencies change.\n * @returns The memoized value produced by the factory function.\n */\nexport const useMemo = <T>(\n factory: () => T,\n deps?: any,\n) => _useMemo('useMemo', () => factory(), deps);\n","//\n// memo.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 { _useMemo } from '../reconciler/hooks';\n\nexport const _useCallbacks = <T extends { [x: string]: ((...args: any) => any) | _.Falsey }>(\n callbacks: T,\n deps?: any\n) => {\n if (!_.isUndefined(deps)) return _useMemo('_useCallbacks', () => callbacks, deps);\n const store = _useMemo('_useCallbacks', () => {\n const store = {\n current: callbacks,\n stable: _.mapValues(callbacks, (v, k) => v && (function (this: any, ...args: any) {\n const callback = store.current[k];\n if (_.isFunction(callback))\n return callback.call(this, ...args);\n })),\n };\n return store;\n }, null);\n store.current = callbacks;\n store.stable = _.mapValues(callbacks, (v, k) => v && (store.stable[k] || (function (this: any, ...args: any) {\n const callback = store.current[k];\n if (_.isFunction(callback))\n return callback.call(this, ...args);\n })));\n return store.stable as T;\n};\n\n/**\n * A hook that memoizes a callback function, ensuring that it only changes\n * if its dependencies change. This is useful for optimizing performance by preventing\n * unnecessary re-creations of functions.\n *\n * @template T - The type of the callback function.\n * @param callback - The callback function to be memoized.\n * @param deps - An optional dependencies. If provided, the callback\n * will only be updated when one of these dependencies changes.\n * If not provided, the callback will remain stable.\n * @returns - A stable version of the callback function that will not change unless\n * its dependencies change.\n *\n * @example\n * const memoizedCallback = useCallback(() => {\n * console.log('This function is memoized!');\n * }, [dependency]);\n */\nexport const useCallback = <T extends ((...args: any) => any) | _.Falsey>(\n callback: T,\n deps?: any\n) => {\n const { callback: stable } = _useCallbacks({ callback }, deps);\n return stable;\n}\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;AAMA,MAAM,aAAa,GAAG,CAAC,IAAY,KAAI;AACrC,IAAA,MAAM,KAAK,GAAG,UAAU,CAAC,gBAAgB;AACzC,IAAA,IAAI,CAAC,KAAK;AAAE,QAAA,MAAM,KAAK,CAAC,CAAA,EAAG,IAAI,CAAA,uCAAA,CAAyC,CAAC;IACzE,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK;AAC5C,IAAA,IAAI,SAAS,IAAI,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,IAAI,KAAK,IAAI,EAAE;QAC1D,OAAO,CAAC,IAAI,CAAC;AACX,YAAA,CAAA,MAAA,EAAS,IAAI,CAAA,0BAAA,CAA4B;YACzC,yEAAyE;YACzE;AACD,SAAA,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACd;AACA,IAAA,OAAO,KAAK;AACd,CAAC;AAEM,MAAM,UAAU,GAAG,CACxB,IAAY,EACZ,MAA+D,EAC/D,IAAU,KACR;AACF,IAAA,MAAM,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC;AACjC,IAAA,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK;IACjC,QAAQ,CAAC,IAAI,CAAC;AACZ,QAAA,KAAK,EAAE,MAAM,MAAM,CAAC,KAAK,CAAC;QAC1B,IAAI;QACJ,IAAI;AACL,KAAA,CAAC;AACJ;AAEO,MAAM,QAAQ,GAAG,CACtB,IAAY,EACZ,OAAuD,EACvD,IAAU,KACL;AACL,IAAA,MAAM,KAAK,GAAG,aAAa,CAAC,IAAI,CAAC;IACjC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ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MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AACjC,gBAAA,IAAI,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC;oBACxB,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC;AACvC,YAAA,CAAC,CAAC,CAAC;SACJ;AACD,QAAA,OAAO,KAAK;IACd,CAAC,EAAE,IAAI,CAAC;AACR,IAAA,KAAK,CAAC,OAAO,GAAG,SAAS;AACzB,IAAA,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,UAAqB,GAAG,IAAS,EAAA;QACzG,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AACjC,QAAA,IAAI,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC;YACxB,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC;IACvC,CAAC,CAAC,CAAC,CAAC;IACJ,OAAO,KAAK,CAAC,MAAW;AAC1B;AAEA;;;;;;;;;;;;;;;;;AAiBG;MACU,WAAW,GAAG,CACzB,QAAW,EACX,IAAU,KACR;AACF,IAAA,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC,EAAE,QAAQ,EAAE,EAAE,IAAI,CAAC;AAC9D,IAAA,OAAO,MAAM;AACf;;;;"}
@@ -0,0 +1,180 @@
1
+ 'use strict';
2
+
3
+ var _ = require('lodash');
4
+ var index = require('./index-Bvwj3lIq.js');
5
+
6
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
7
+
8
+ var ___default = /*#__PURE__*/_interopDefault(_);
9
+
10
+ //
11
+ // index.ts
12
+ //
13
+ // The MIT License
14
+ // Copyright (c) 2021 - 2026 O2ter Limited. All rights reserved.
15
+ //
16
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
17
+ // of this software and associated documentation files (the "Software"), to deal
18
+ // in the Software without restriction, including without limitation the rights
19
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20
+ // copies of the Software, and to permit persons to whom the Software is
21
+ // furnished to do so, subject to the following conditions:
22
+ //
23
+ // The above copyright notice and this permission notice shall be included in
24
+ // all copies or substantial portions of the Software.
25
+ //
26
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
32
+ // THE SOFTWARE.
33
+ //
34
+ const _useHookState = (hook) => {
35
+ const state = index.reconciler.currentHookState;
36
+ if (!state)
37
+ throw Error(`${hook} must be used within a render function.`);
38
+ const { prevState, state: newState } = state;
39
+ if (prevState && prevState[newState.length]?.hook !== hook) {
40
+ console.warn([
41
+ `Hook "${hook}" is called conditionally.`,
42
+ 'Hooks must be called in the exact same order in every component render.',
43
+ 'Did you accidentally call a hook after an early return?'
44
+ ].join(' '));
45
+ }
46
+ return state;
47
+ };
48
+ const _useEffect = (hook, effect, deps) => {
49
+ const state = _useHookState(hook);
50
+ const { state: newState } = state;
51
+ newState.push({
52
+ mount: () => effect(state),
53
+ deps,
54
+ hook,
55
+ });
56
+ };
57
+ const _useMemo = (hook, factory, deps) => {
58
+ const state = _useHookState(hook);
59
+ const { prevState, state: newState } = state;
60
+ const idx = newState.length;
61
+ const changed = prevState?.[idx]?.hook !== hook || !index.equalDeps(prevState[idx].deps, deps);
62
+ const data = changed ? factory(state) : prevState[idx].data;
63
+ newState.push({
64
+ deps,
65
+ hook,
66
+ data
67
+ });
68
+ return data;
69
+ };
70
+
71
+ //
72
+ // memo.ts
73
+ //
74
+ // The MIT License
75
+ // Copyright (c) 2021 - 2026 O2ter Limited. All rights reserved.
76
+ //
77
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
78
+ // of this software and associated documentation files (the "Software"), to deal
79
+ // in the Software without restriction, including without limitation the rights
80
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
81
+ // copies of the Software, and to permit persons to whom the Software is
82
+ // furnished to do so, subject to the following conditions:
83
+ //
84
+ // The above copyright notice and this permission notice shall be included in
85
+ // all copies or substantial portions of the Software.
86
+ //
87
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
88
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
89
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
90
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
91
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
92
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
93
+ // THE SOFTWARE.
94
+ //
95
+ /**
96
+ * A utility function that memoizes the result of a factory function.
97
+ *
98
+ * @template T The type of the value returned by the factory function.
99
+ * @param factory A function that produces a value to be memoized.
100
+ * @param deps An optional dependency array. The memoized value is recalculated
101
+ * only when the dependencies change.
102
+ * @returns The memoized value produced by the factory function.
103
+ */
104
+ const useMemo = (factory, deps) => _useMemo('useMemo', () => factory(), deps);
105
+
106
+ //
107
+ // memo.ts
108
+ //
109
+ // The MIT License
110
+ // Copyright (c) 2021 - 2026 O2ter Limited. All rights reserved.
111
+ //
112
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
113
+ // of this software and associated documentation files (the "Software"), to deal
114
+ // in the Software without restriction, including without limitation the rights
115
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
116
+ // copies of the Software, and to permit persons to whom the Software is
117
+ // furnished to do so, subject to the following conditions:
118
+ //
119
+ // The above copyright notice and this permission notice shall be included in
120
+ // all copies or substantial portions of the Software.
121
+ //
122
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
123
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
124
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
125
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
126
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
127
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
128
+ // THE SOFTWARE.
129
+ //
130
+ const _useCallbacks = (callbacks, deps) => {
131
+ if (!___default.default.isUndefined(deps))
132
+ return _useMemo('_useCallbacks', () => callbacks, deps);
133
+ const store = _useMemo('_useCallbacks', () => {
134
+ const store = {
135
+ current: callbacks,
136
+ stable: ___default.default.mapValues(callbacks, (v, k) => v && (function (...args) {
137
+ const callback = store.current[k];
138
+ if (___default.default.isFunction(callback))
139
+ return callback.call(this, ...args);
140
+ })),
141
+ };
142
+ return store;
143
+ }, null);
144
+ store.current = callbacks;
145
+ store.stable = ___default.default.mapValues(callbacks, (v, k) => v && (store.stable[k] || (function (...args) {
146
+ const callback = store.current[k];
147
+ if (___default.default.isFunction(callback))
148
+ return callback.call(this, ...args);
149
+ })));
150
+ return store.stable;
151
+ };
152
+ /**
153
+ * A hook that memoizes a callback function, ensuring that it only changes
154
+ * if its dependencies change. This is useful for optimizing performance by preventing
155
+ * unnecessary re-creations of functions.
156
+ *
157
+ * @template T - The type of the callback function.
158
+ * @param callback - The callback function to be memoized.
159
+ * @param deps - An optional dependencies. If provided, the callback
160
+ * will only be updated when one of these dependencies changes.
161
+ * If not provided, the callback will remain stable.
162
+ * @returns - A stable version of the callback function that will not change unless
163
+ * its dependencies change.
164
+ *
165
+ * @example
166
+ * const memoizedCallback = useCallback(() => {
167
+ * console.log('This function is memoized!');
168
+ * }, [dependency]);
169
+ */
170
+ const useCallback = (callback, deps) => {
171
+ const { callback: stable } = _useCallbacks({ callback }, deps);
172
+ return stable;
173
+ };
174
+
175
+ exports._useCallbacks = _useCallbacks;
176
+ exports._useEffect = _useEffect;
177
+ exports._useMemo = _useMemo;
178
+ exports.useCallback = useCallback;
179
+ exports.useMemo = useMemo;
180
+ //# sourceMappingURL=callback-DVD1MTA9.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callback-DVD1MTA9.js","sources":["../../../src/core/reconciler/hooks.ts","../../../src/core/hooks/memo.ts","../../../src/core/hooks/callback.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 { reconciler } from '.';\nimport { equalDeps } from './utils';\n\nconst _useHookState = (hook: string) => {\n const state = reconciler.currentHookState;\n if (!state) throw Error(`${hook} must be used within a render function.`);\n const { prevState, state: newState } = state;\n if (prevState && prevState[newState.length]?.hook !== hook) {\n console.warn([\n `Hook \"${hook}\" is called conditionally.`,\n 'Hooks must be called in the exact same order in every component render.',\n 'Did you accidentally call a hook after an early return?'\n ].join(' '));\n }\n return state;\n};\n\nexport const _useEffect = (\n hook: string,\n effect: (state: ReturnType<typeof _useHookState>) => () => void,\n deps?: any\n) => {\n const state = _useHookState(hook);\n const { state: newState } = state;\n newState.push({\n mount: () => effect(state),\n deps,\n hook,\n });\n};\n\nexport const _useMemo = <T>(\n hook: string,\n factory: (state: ReturnType<typeof _useHookState>) => T,\n deps?: any\n): T => {\n const state = _useHookState(hook);\n const { prevState, state: newState } = state;\n const idx = newState.length;\n const changed = prevState?.[idx]?.hook !== hook || !equalDeps(prevState[idx].deps, deps);\n const data = changed ? factory(state) : prevState[idx].data;\n newState.push({\n deps,\n hook,\n data\n });\n return data;\n};\n","//\n// memo.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 { _useMemo } from '../reconciler/hooks';\n\n/**\n * A utility function that memoizes the result of a factory function.\n * \n * @template T The type of the value returned by the factory function.\n * @param factory A function that produces a value to be memoized.\n * @param deps An optional dependency array. The memoized value is recalculated \n * only when the dependencies change.\n * @returns The memoized value produced by the factory function.\n */\nexport const useMemo = <T>(\n factory: () => T,\n deps?: any,\n) => _useMemo('useMemo', () => factory(), deps);\n","//\n// memo.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 { _useMemo } from '../reconciler/hooks';\n\nexport const _useCallbacks = <T extends { [x: string]: ((...args: any) => any) | _.Falsey }>(\n callbacks: T,\n deps?: any\n) => {\n if (!_.isUndefined(deps)) return _useMemo('_useCallbacks', () => callbacks, deps);\n const store = _useMemo('_useCallbacks', () => {\n const store = {\n current: callbacks,\n stable: _.mapValues(callbacks, (v, k) => v && (function (this: any, ...args: any) {\n const callback = store.current[k];\n if (_.isFunction(callback))\n return callback.call(this, ...args);\n })),\n };\n return store;\n }, null);\n store.current = callbacks;\n store.stable = _.mapValues(callbacks, (v, k) => v && (store.stable[k] || (function (this: any, ...args: any) {\n const callback = store.current[k];\n if (_.isFunction(callback))\n return callback.call(this, ...args);\n })));\n return store.stable as T;\n};\n\n/**\n * A hook that memoizes a callback function, ensuring that it only changes\n * if its dependencies change. This is useful for optimizing performance by preventing\n * unnecessary re-creations of functions.\n *\n * @template T - The type of the callback function.\n * @param callback - The callback function to be memoized.\n * @param deps - An optional dependencies. If provided, the callback\n * will only be updated when one of these dependencies changes.\n * If not provided, the callback will remain stable.\n * @returns - A stable version of the callback function that will not change unless\n * its dependencies change.\n *\n * @example\n * const memoizedCallback = useCallback(() => {\n * console.log('This function is memoized!');\n * }, [dependency]);\n */\nexport const useCallback = <T extends ((...args: any) => any) | _.Falsey>(\n callback: T,\n deps?: any\n) => {\n const { callback: stable } = _useCallbacks({ callback }, deps);\n return stable;\n}\n"],"names":["reconciler","equalDeps","_"],"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;AAMA,MAAM,aAAa,GAAG,CAAC,IAAY,KAAI;AACrC,IAAA,MAAM,KAAK,GAAGA,gBAAU,CAAC,gBAAgB;AACzC,IAAA,IAAI,CAAC,KAAK;AAAE,QA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AA,KAAK,CAAC,MAAM,GAAGA,kBAAC,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,UAAqB,GAAG,IAAS,EAAA;QACzG,MAAM,QAAQ,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AACjC,QAAA,IAAIA,kBAAC,CAAC,UAAU,CAAC,QAAQ,CAAC;YACxB,OAAO,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC;IACvC,CAAC,CAAC,CAAC,CAAC;IACJ,OAAO,KAAK,CAAC,MAAW;AAC1B;AAEA;;;;;;;;;;;;;;;;;AAiBG;MACU,WAAW,GAAG,CACzB,QAAW,EACX,IAAU,KACR;AACF,IAAA,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC,EAAE,QAAQ,EAAE,EAAE,IAAI,CAAC;AAC9D,IAAA,OAAO,MAAM;AACf;;;;;;;;"}
@@ -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 SVGElementInstance {
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 HTMLAttributionSrcElementUtils {
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, HTMLAttributionSrcElementUtils, HTMLHyperlinkElementUtils {
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 HTMLSharedStorageWritableElementUtils {
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, HTMLSharedStorageWritableElementUtils {
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, HTMLAttributionSrcElementUtils, HTMLHyperlinkElementUtils {
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, HTMLAttributionSrcElementUtils {
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
  }
@@ -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-DU6Re-Mj.d.ts.map
2307
+ //# sourceMappingURL=common-uQrs1G5-.d.mts.map