frosty 0.0.13 → 0.0.14

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 (65) hide show
  1. package/dist/_native.js +3 -4
  2. package/dist/_native.js.map +1 -1
  3. package/dist/_native.mjs +2 -3
  4. package/dist/_native.mjs.map +1 -1
  5. package/dist/dom.js +3 -4
  6. package/dist/dom.js.map +1 -1
  7. package/dist/dom.mjs +3 -4
  8. package/dist/dom.mjs.map +1 -1
  9. package/dist/index.d.ts +307 -6
  10. package/dist/index.js +668 -27
  11. package/dist/index.js.map +1 -1
  12. package/dist/index.mjs +639 -6
  13. package/dist/index.mjs.map +1 -1
  14. package/dist/internals/{common-CEjwzc0j.js → common-FG7T3c2f.js} +2 -2
  15. package/dist/internals/{common-CEjwzc0j.js.map → common-FG7T3c2f.js.map} +1 -1
  16. package/dist/internals/{common-CQOkvSXp.mjs → common-KSKXTzR8.mjs} +2 -2
  17. package/dist/internals/{common-CQOkvSXp.mjs.map → common-KSKXTzR8.mjs.map} +1 -1
  18. package/dist/internals/{renderer-CTxeL82F.mjs → renderer-GTnF-hYa.mjs} +2 -3
  19. package/dist/internals/{renderer-CTxeL82F.mjs.map → renderer-GTnF-hYa.mjs.map} +1 -1
  20. package/dist/internals/{renderer-BL3b1IbL.js → renderer-jjw2FwKT.js} +8 -9
  21. package/dist/internals/{renderer-BL3b1IbL.js.map → renderer-jjw2FwKT.js.map} +1 -1
  22. package/dist/internals/{sync-Cq3pCYO3.mjs → sync-B9zfuWYQ.mjs} +60 -60
  23. package/dist/internals/sync-B9zfuWYQ.mjs.map +1 -0
  24. package/dist/internals/{sync-CSxmMfGm.js → sync-BIbWmXEq.js} +74 -74
  25. package/dist/internals/sync-BIbWmXEq.js.map +1 -0
  26. package/dist/internals/{state-BiYNImPF.mjs → utils-BJL3yvTI.mjs} +61 -48
  27. package/dist/internals/utils-BJL3yvTI.mjs.map +1 -0
  28. package/dist/internals/{state-DH_D-jro.js → utils-Bipfwp1R.js} +61 -47
  29. package/dist/internals/utils-Bipfwp1R.js.map +1 -0
  30. package/dist/jsx-runtime.js +29 -2
  31. package/dist/jsx-runtime.js.map +1 -1
  32. package/dist/jsx-runtime.mjs +29 -2
  33. package/dist/jsx-runtime.mjs.map +1 -1
  34. package/dist/server-dom.js +3 -4
  35. package/dist/server-dom.js.map +1 -1
  36. package/dist/server-dom.mjs +3 -4
  37. package/dist/server-dom.mjs.map +1 -1
  38. package/dist/web.d.ts +2 -2
  39. package/dist/web.js +30 -15
  40. package/dist/web.js.map +1 -1
  41. package/dist/web.mjs +26 -11
  42. package/dist/web.mjs.map +1 -1
  43. package/package.json +1 -1
  44. package/dist/hooks.d.ts +0 -301
  45. package/dist/hooks.d.ts.map +0 -1
  46. package/dist/hooks.js +0 -456
  47. package/dist/hooks.js.map +0 -1
  48. package/dist/hooks.mjs +0 -447
  49. package/dist/hooks.mjs.map +0 -1
  50. package/dist/internals/fragment-B0rB4qEp.js +0 -32
  51. package/dist/internals/fragment-B0rB4qEp.js.map +0 -1
  52. package/dist/internals/fragment-DPs1AriN.mjs +0 -30
  53. package/dist/internals/fragment-DPs1AriN.mjs.map +0 -1
  54. package/dist/internals/state-0jEjYdYV.js +0 -203
  55. package/dist/internals/state-0jEjYdYV.js.map +0 -1
  56. package/dist/internals/state-BiYNImPF.mjs.map +0 -1
  57. package/dist/internals/state-DH_D-jro.js.map +0 -1
  58. package/dist/internals/state-zydBhS8M.mjs +0 -197
  59. package/dist/internals/state-zydBhS8M.mjs.map +0 -1
  60. package/dist/internals/sync-CSxmMfGm.js.map +0 -1
  61. package/dist/internals/sync-Cq3pCYO3.mjs.map +0 -1
  62. package/dist/internals/utils-DAEKakog.mjs +0 -42
  63. package/dist/internals/utils-DAEKakog.mjs.map +0 -1
  64. package/dist/internals/utils-Dc66ARNS.js +0 -44
  65. package/dist/internals/utils-Dc66ARNS.js.map +0 -1
package/dist/_native.js CHANGED
@@ -1,12 +1,11 @@
1
1
  'use strict';
2
2
 
3
3
  var runtime = require('./internals/runtime-CHi74WKN.js');
4
- var renderer = require('./internals/renderer-BL3b1IbL.js');
5
- var state = require('./internals/state-DH_D-jro.js');
4
+ var renderer = require('./internals/renderer-jjw2FwKT.js');
5
+ var utils = require('./internals/utils-Bipfwp1R.js');
6
6
  var component = require('./internals/component-DJsXAx2C.js');
7
7
  require('lodash');
8
8
  require('nextick');
9
- require('./internals/utils-Dc66ARNS.js');
10
9
  require('myers.js');
11
10
 
12
11
  //
@@ -38,7 +37,7 @@ function _createNativeElement(type, props, key) {
38
37
  }
39
38
 
40
39
  exports._Renderer = renderer._Renderer;
41
- exports.VNode = state.VNode;
40
+ exports.VNode = utils.VNode;
42
41
  exports.NativeElementType = component.NativeElementType;
43
42
  exports._createNativeElement = _createNativeElement;
44
43
  //# sourceMappingURL=_native.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"_native.js","sources":["../../src/renderer/native.ts"],"sourcesContent":["//\n// native.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2025 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 { _createElement, PropsType } from '../core/types/runtime';\nimport { ComponentNode, NativeElementType } from '../core/types/component';\n\nexport { _Renderer } from '../core/renderer';\nexport { VNode } from '../core/reconciler/vnode';\nexport { NativeElementType } from '../core/types/component';\n\nexport function _createNativeElement(\n type: typeof NativeElementType,\n props: PropsType,\n key?: string | number\n): ComponentNode {\n return _createElement(type, { ...props, key });\n}\n"],"names":["_createElement"],"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;SASgB,oBAAoB,CAClC,IAA8B,EAC9B,KAAgB,EAChB,GAAqB,EAAA;IAErB,OAAOA,sBAAc,CAAC,IAAI,EAAE,EAAE,GAAG,KAAK,EAAE,GAAG,EAAE,CAAC;AAChD;;;;;;;"}
1
+ {"version":3,"file":"_native.js","sources":["../../src/renderer/native.ts"],"sourcesContent":["//\n// native.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2025 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 { _createElement, PropsType } from '../core/types/runtime';\nimport { ComponentNode, NativeElementType } from '../core/types/component';\n\nexport { _Renderer } from '../core/renderer';\nexport { VNode } from '../core/reconciler/vnode';\nexport { NativeElementType } from '../core/types/component';\n\nexport function _createNativeElement(\n type: typeof NativeElementType,\n props: PropsType,\n key?: string | number\n): ComponentNode {\n return _createElement(type, { ...props, key });\n}\n"],"names":["_createElement"],"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;SASgB,oBAAoB,CAClC,IAA8B,EAC9B,KAAgB,EAChB,GAAqB,EAAA;IAErB,OAAOA,sBAAc,CAAC,IAAI,EAAE,EAAE,GAAG,KAAK,EAAE,GAAG,EAAE,CAAC;AAChD;;;;;;;"}
package/dist/_native.mjs CHANGED
@@ -1,10 +1,9 @@
1
1
  import { _ as _createElement } from './internals/runtime-BN27rc51.mjs';
2
- export { _ as _Renderer } from './internals/renderer-CTxeL82F.mjs';
3
- export { V as VNode } from './internals/state-BiYNImPF.mjs';
2
+ export { _ as _Renderer } from './internals/renderer-GTnF-hYa.mjs';
3
+ export { V as VNode } from './internals/utils-BJL3yvTI.mjs';
4
4
  export { N as NativeElementType } from './internals/component-tyF62qKh.mjs';
5
5
  import 'lodash';
6
6
  import 'nextick';
7
- import './internals/utils-DAEKakog.mjs';
8
7
  import 'myers.js';
9
8
 
10
9
  //
@@ -1 +1 @@
1
- {"version":3,"file":"_native.mjs","sources":["../../src/renderer/native.ts"],"sourcesContent":["//\n// native.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2025 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 { _createElement, PropsType } from '../core/types/runtime';\nimport { ComponentNode, NativeElementType } from '../core/types/component';\n\nexport { _Renderer } from '../core/renderer';\nexport { VNode } from '../core/reconciler/vnode';\nexport { NativeElementType } from '../core/types/component';\n\nexport function _createNativeElement(\n type: typeof NativeElementType,\n props: PropsType,\n key?: string | number\n): ComponentNode {\n return _createElement(type, { ...props, key });\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;SASgB,oBAAoB,CAClC,IAA8B,EAC9B,KAAgB,EAChB,GAAqB,EAAA;IAErB,OAAO,cAAc,CAAC,IAAI,EAAE,EAAE,GAAG,KAAK,EAAE,GAAG,EAAE,CAAC;AAChD;;;;"}
1
+ {"version":3,"file":"_native.mjs","sources":["../../src/renderer/native.ts"],"sourcesContent":["//\n// native.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2025 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 { _createElement, PropsType } from '../core/types/runtime';\nimport { ComponentNode, NativeElementType } from '../core/types/component';\n\nexport { _Renderer } from '../core/renderer';\nexport { VNode } from '../core/reconciler/vnode';\nexport { NativeElementType } from '../core/types/component';\n\nexport function _createNativeElement(\n type: typeof NativeElementType,\n props: PropsType,\n key?: string | number\n): ComponentNode {\n return _createElement(type, { ...props, key });\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;SASgB,oBAAoB,CAClC,IAA8B,EAC9B,KAAgB,EAChB,GAAqB,EAAA;IAErB,OAAO,cAAc,CAAC,IAAI,EAAE,EAAE,GAAG,KAAK,EAAE,GAAG,EAAE,CAAC;AAChD;;;;"}
package/dist/dom.js CHANGED
@@ -1,13 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var common = require('./internals/common-CEjwzc0j.js');
3
+ var common = require('./internals/common-FG7T3c2f.js');
4
4
  require('lodash');
5
5
  require('myers.js');
6
- require('./internals/renderer-BL3b1IbL.js');
7
- require('./internals/state-DH_D-jro.js');
6
+ require('./internals/renderer-jjw2FwKT.js');
7
+ require('./internals/utils-Bipfwp1R.js');
8
8
  require('./internals/component-DJsXAx2C.js');
9
9
  require('nextick');
10
- require('./internals/utils-Dc66ARNS.js');
11
10
  require('postcss');
12
11
  require('postcss-js');
13
12
  require('postcss-nested');
package/dist/dom.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"dom.js","sources":["../../src/renderer/dom.ts"],"sourcesContent":["//\n// dom.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2025 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 { _DOMRenderer } from './common';\n\nexport class DOMRenderer extends _DOMRenderer {\n\n static default = new DOMRenderer();\n\n static createRoot(root: Element): ReturnType<typeof DOMRenderer.default.createRoot> {\n return this.default.createRoot(root);\n }\n\n /** @internal */\n get _server(): boolean {\n return typeof window === 'undefined';\n }\n}\n"],"names":["_DOMRenderer"],"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;AAKM,MAAO,WAAY,SAAQA,mBAAY,CAAA;AAE3C,IAAA,OAAO,OAAO,GAAG,IAAI,WAAW,EAAE;IAElC,OAAO,UAAU,CAAC,IAAa,EAAA;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC;;;AAItC,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,OAAO,MAAM,KAAK,WAAW;;;;;;"}
1
+ {"version":3,"file":"dom.js","sources":["../../src/renderer/dom.ts"],"sourcesContent":["//\n// dom.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2025 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 { _DOMRenderer } from './common';\n\nexport class DOMRenderer extends _DOMRenderer {\n\n static default = new DOMRenderer();\n\n static createRoot(root: Element): ReturnType<typeof DOMRenderer.default.createRoot> {\n return this.default.createRoot(root);\n }\n\n /** @internal */\n get _server(): boolean {\n return typeof window === 'undefined';\n }\n}\n"],"names":["_DOMRenderer"],"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;AAKM,MAAO,WAAY,SAAQA,mBAAY,CAAA;AAE3C,IAAA,OAAO,OAAO,GAAG,IAAI,WAAW,EAAE;IAElC,OAAO,UAAU,CAAC,IAAa,EAAA;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC;;;AAItC,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,OAAO,MAAM,KAAK,WAAW;;;;;;"}
package/dist/dom.mjs CHANGED
@@ -1,11 +1,10 @@
1
- import { _ as _DOMRenderer } from './internals/common-CQOkvSXp.mjs';
1
+ import { _ as _DOMRenderer } from './internals/common-KSKXTzR8.mjs';
2
2
  import 'lodash';
3
3
  import 'myers.js';
4
- import './internals/renderer-CTxeL82F.mjs';
5
- import './internals/state-BiYNImPF.mjs';
4
+ import './internals/renderer-GTnF-hYa.mjs';
5
+ import './internals/utils-BJL3yvTI.mjs';
6
6
  import './internals/component-tyF62qKh.mjs';
7
7
  import 'nextick';
8
- import './internals/utils-DAEKakog.mjs';
9
8
  import 'postcss';
10
9
  import 'postcss-js';
11
10
  import 'postcss-nested';
package/dist/dom.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"dom.mjs","sources":["../../src/renderer/dom.ts"],"sourcesContent":["//\n// dom.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2025 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 { _DOMRenderer } from './common';\n\nexport class DOMRenderer extends _DOMRenderer {\n\n static default = new DOMRenderer();\n\n static createRoot(root: Element): ReturnType<typeof DOMRenderer.default.createRoot> {\n return this.default.createRoot(root);\n }\n\n /** @internal */\n get _server(): boolean {\n return typeof window === 'undefined';\n }\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;AAKM,MAAO,WAAY,SAAQ,YAAY,CAAA;AAE3C,IAAA,OAAO,OAAO,GAAG,IAAI,WAAW,EAAE;IAElC,OAAO,UAAU,CAAC,IAAa,EAAA;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC;;;AAItC,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,OAAO,MAAM,KAAK,WAAW;;;;;;"}
1
+ {"version":3,"file":"dom.mjs","sources":["../../src/renderer/dom.ts"],"sourcesContent":["//\n// dom.ts\n//\n// The MIT License\n// Copyright (c) 2021 - 2025 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 { _DOMRenderer } from './common';\n\nexport class DOMRenderer extends _DOMRenderer {\n\n static default = new DOMRenderer();\n\n static createRoot(root: Element): ReturnType<typeof DOMRenderer.default.createRoot> {\n return this.default.createRoot(root);\n }\n\n /** @internal */\n get _server(): boolean {\n return typeof window === 'undefined';\n }\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;AAKM,MAAO,WAAY,SAAQ,YAAY,CAAA;AAE3C,IAAA,OAAO,OAAO,GAAG,IAAI,WAAW,EAAE;IAElC,OAAO,UAAU,CAAC,IAAa,EAAA;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC;;;AAItC,IAAA,IAAI,OAAO,GAAA;AACT,QAAA,OAAO,OAAO,MAAM,KAAK,WAAW;;;;;;"}
package/dist/index.d.ts CHANGED
@@ -1,9 +1,303 @@
1
- import { C as ComponentType, E as ElementNode, R as RefObject, a as Ref, S as SetStateAction, b as ComponentNode, P as PropsWithChildren, _ as _ElementType, N as NativeElementType, c as PropsType, d as ComponentProps, e as ComponentPropsWithoutRef, f as ComponentRef, g as RefAttribute, h as RefCallback, i as createElement } from './internals/common-CIXimrNw.js';
1
+ import { C as ComponentType, P as PropsWithChildren, S as SetStateAction, E as ElementNode, R as RefObject, a as Ref, b as ComponentNode, _ as _ElementType, N as NativeElementType, c as PropsType, d as ComponentProps, e as ComponentPropsWithoutRef, f as ComponentRef, g as RefAttribute, h as RefCallback, i as createElement } from './internals/common-CIXimrNw.js';
2
2
  import _ from 'lodash';
3
3
  import { Awaitable } from '@o2ter/utils-js';
4
4
  import { F as Fragment } from './internals/fragment-ukIb0ve_.js';
5
5
  import 'csstype';
6
6
 
7
+ /**
8
+ * Options for configuring the animation.
9
+ *
10
+ * @property fromValue - The starting value of the animation. Defaults to the current value.
11
+ * @property toValue - The target value of the animation.
12
+ * @property duration - The duration of the animation in milliseconds.
13
+ * @property easing - An optional easing function to control the animation's progress. Defaults to a linear function.
14
+ * @property delay - An optional delay (in milliseconds) before the animation starts. Defaults to `0`.
15
+ * @property onCompleted - An optional callback function invoked when the animation completes or is stopped.
16
+ */
17
+ type AnimateOptions = {
18
+ fromValue?: number;
19
+ toValue: number;
20
+ duration: number;
21
+ easing?: (value: number) => number;
22
+ delay?: number;
23
+ onCompleted?: (result: {
24
+ value: number;
25
+ finished: boolean;
26
+ }) => void;
27
+ };
28
+ /**
29
+ * Options for interpolating a value.
30
+ *
31
+ * @property inputRange - A tuple specifying the input range for interpolation.
32
+ * @property outputRange - A tuple specifying the output range for interpolation.
33
+ */
34
+ type InterpolateOptions = {
35
+ inputRange: [number, number];
36
+ outputRange: [number, number];
37
+ };
38
+ /**
39
+ * Represents an interpolated value and provides a method to further interpolate it.
40
+ *
41
+ * @property value - The interpolated value.
42
+ * @property interpolate - A function to interpolate the current value based on new input and output ranges.
43
+ */
44
+ type AnimatedInterpolation = {
45
+ value: number;
46
+ interpolate: ({ inputRange, outputRange }: InterpolateOptions) => AnimatedInterpolation;
47
+ };
48
+ /**
49
+ * A hook to manage animations with support for starting, stopping, and interpolating values.
50
+ *
51
+ * @param initialValue - The initial value of the animation.
52
+ *
53
+ * @returns An object containing:
54
+ * - `value`: The current animated value.
55
+ * - `stop`: A function to stop the animation.
56
+ * - `start`: A function to start the animation with specified options.
57
+ * - `interpolate`: A function to interpolate the current value based on input and output ranges.
58
+ */
59
+ declare const useAnimate: (initialValue: number) => {
60
+ value: number;
61
+ stop: () => void;
62
+ start: ({ fromValue, toValue, duration, easing, delay, onCompleted, }: AnimateOptions) => void;
63
+ interpolate: ({ inputRange, outputRange }: InterpolateOptions) => AnimatedInterpolation;
64
+ };
65
+
66
+ /**
67
+ * Represents a function to fetch asynchronous resources.
68
+ *
69
+ * @template T - The type of the resource being fetched.
70
+ * @template P - The type of the parameters passed to the fetch function.
71
+ *
72
+ * @param x - An object containing:
73
+ * - `abortSignal`: An `AbortSignal` to handle cancellation of the fetch operation.
74
+ * - `param`: Optional parameters for the fetch operation, passed by the `refresh` or `next` function.
75
+ * - `prevState`: The previous state of the resource, if applicable. This is only populated when the `next` function is called.
76
+ * - `dispatch`: A function to update the resource state during the fetch process.
77
+ *
78
+ * @returns A promise that resolves to the fetched resource or `void`.
79
+ */
80
+ type Fetch<T, P> = (x: {
81
+ abortSignal: AbortSignal;
82
+ param?: P;
83
+ prevState?: T;
84
+ dispatch: (value: T | ((prevState?: T) => T)) => void;
85
+ }) => PromiseLike<void | T>;
86
+ /**
87
+ * Represents a function to fetch asynchronous iterable resources, such as streams or paginated data.
88
+ *
89
+ * @template T - The type of the resource items being fetched.
90
+ * @template P - The type of the parameters passed to the fetch function.
91
+ *
92
+ * @param x - An object containing:
93
+ * - `abortSignal`: An `AbortSignal` to handle cancellation of the fetch operation.
94
+ * - `param`: Optional parameters for the fetch operation, passed by the `refresh` or `next` function.
95
+ *
96
+ * @returns An `AsyncIterable` that yields the fetched resource items.
97
+ */
98
+ type FetchWithIterable<T, P> = (x: {
99
+ abortSignal: AbortSignal;
100
+ param?: P;
101
+ }) => Awaitable<AsyncIterable<T>>;
102
+ /**
103
+ * Configuration object for asynchronous resource fetching.
104
+ *
105
+ * @template F - The type of the fetch function.
106
+ *
107
+ * @property fetch - The fetch function to retrieve the resource.
108
+ * @property debounce - Optional debounce settings to control the frequency of fetch calls.
109
+ * - `wait`: The number of milliseconds to delay.
110
+ * - Other settings as defined in `_.DebounceSettings`.
111
+ */
112
+ type Config<F> = {
113
+ fetch: F;
114
+ debounce?: _.DebounceSettings & {
115
+ wait?: number;
116
+ };
117
+ };
118
+
119
+ type Errors = {
120
+ token: string;
121
+ error: any;
122
+ refresh: () => Awaitable<void>;
123
+ refreshing: boolean;
124
+ loading: boolean;
125
+ }[];
126
+ /**
127
+ * A context provider component for managing asynchronous resource errors.
128
+ *
129
+ * This component provides a shared context for tracking errors encountered during
130
+ * asynchronous operations. It allows child components to access and manage these errors
131
+ * using the `useResourceErrors` hook.
132
+ *
133
+ * ### Usage:
134
+ * Wrap your application or specific parts of it with this component to enable error tracking:
135
+ *
136
+ * ```tsx
137
+ * <ResourceErrors>
138
+ * <YourComponent />
139
+ * </ResourceErrors>
140
+ * ```
141
+ *
142
+ * @param children - The child components that will have access to the error context.
143
+ *
144
+ * @returns A context provider that wraps the provided children.
145
+ */
146
+ declare const ResourceErrors: ComponentType<PropsWithChildren<{}>>;
147
+ /**
148
+ * A hook to access the list of asynchronous resource errors.
149
+ *
150
+ * This hook allows components to retrieve the current list of errors being tracked
151
+ * in the `ResourceErrors` context. It must be used within a component that is
152
+ * a descendant of the `ResourceErrors` provider.
153
+ *
154
+ * ### Usage:
155
+ * ```tsx
156
+ * const errors = useResourceErrors();
157
+ *
158
+ * errors.forEach(({ token, error, refresh }) => {
159
+ * console.error(`Error [${token}]:`, error);
160
+ * // Optionally call refresh() to retry the operation
161
+ * });
162
+ * ```
163
+ *
164
+ * @returns The list of errors currently being tracked in the context. Each error includes:
165
+ * - `token`: A unique identifier for the error.
166
+ * - `error`: The error object or message.
167
+ * - `refresh`: A function to retry the operation that caused the error.
168
+ */
169
+ declare const useResourceErrors: () => Errors;
170
+
171
+ /**
172
+ * A hook to manage asynchronous resources with support for debouncing, error handling, and state management.
173
+ *
174
+ * @template T - The type of the resource being fetched.
175
+ * @template P - The type of the parameters passed to the fetch function.
176
+ *
177
+ * @param config - The fetch function or a configuration object containing the fetch function and optional debounce settings.
178
+ * @param deps - An optional dependency array to control when the resource is refreshed.
179
+ *
180
+ * @returns An object containing:
181
+ * - `count`: The number of times the resource has been fetched.
182
+ * - `refreshing`: A boolean indicating if the resource is currently being refreshed.
183
+ * - `loading`: A boolean indicating if the resource is currently being loaded.
184
+ * - `resource`: The fetched resource.
185
+ * - `error`: Any error encountered during the fetch.
186
+ * - `cancel`: A function to cancel the current fetch operation.
187
+ * - `refresh`: A function to refresh the resource.
188
+ * - `next`: A function to fetch the next set of data (for paginated resources).
189
+ * - `setResource`: A function to manually update the resource state.
190
+ */
191
+ declare const useResource: <T, P = any>(config: Fetch<T, P> | Config<Fetch<T, P>>, deps?: any) => {
192
+ count: number;
193
+ refreshing: boolean;
194
+ loading: boolean;
195
+ resource: T | undefined;
196
+ error: any;
197
+ cancel: (reason?: any) => void;
198
+ refresh: (param?: P) => Promise<void>;
199
+ next: (param?: P) => Promise<void>;
200
+ setResource: (resource: T | ((prevState?: T) => T)) => void;
201
+ };
202
+ /**
203
+ * A hook to manage asynchronous iterable resources, such as streams or paginated data.
204
+ *
205
+ * @template T - The type of the resource items being fetched.
206
+ * @template P - The type of the parameters passed to the fetch function.
207
+ *
208
+ * @param config - The fetch function or a configuration object containing the fetch function and optional debounce settings.
209
+ * @param deps - An optional dependency array to control when the resource is refreshed.
210
+ *
211
+ * @returns An object containing the same properties as `useResource`, but optimized for iterable resources.
212
+ */
213
+ declare const useIterableResource: <T, P = any>(config: FetchWithIterable<T, P> | Config<FetchWithIterable<T, P>>, deps?: any) => {
214
+ count: number;
215
+ refreshing: boolean;
216
+ loading: boolean;
217
+ resource: T[] | undefined;
218
+ error: any;
219
+ cancel: (reason?: any) => void;
220
+ refresh: (param?: any) => Promise<void>;
221
+ setResource: (resource: T[] | ((prevState?: T[] | undefined) => T[])) => void;
222
+ };
223
+
224
+ /**
225
+ * A hook that repeatedly calls the provided callback function at the specified interval.
226
+ *
227
+ * @param callback - The function to be executed at each interval.
228
+ * @param ms - The delay in milliseconds between each call to the callback. If not provided, the interval will not be set.
229
+ * @returns void
230
+ *
231
+ * @example
232
+ * useInterval(() => {
233
+ * // Code to run every 1000ms
234
+ * }, 1000);
235
+ */
236
+ declare const useInterval: (callback: () => void, ms?: number) => void;
237
+
238
+ /**
239
+ * A class representing a store that holds a value and allows for subscription
240
+ * to changes in that value.
241
+ *
242
+ * @template T - The type of the value stored in the store.
243
+ *
244
+ * @example
245
+ * const store = createStore(0);
246
+ * store.setValue(1);
247
+ * store.subscribe((oldVal, newVal) => {
248
+ * console.log(`Value changed from ${oldVal} to ${newVal}`);
249
+ * });
250
+ */
251
+ declare class Store<T> {
252
+ #private;
253
+ /**
254
+ * Gets the current value of the store.
255
+ *
256
+ * @returns The current value of the store.
257
+ */
258
+ get value(): T;
259
+ /**
260
+ * Sets the value of the store and notifies all subscribers.
261
+ *
262
+ * @param dispatch - The new value or a function that returns the new value.
263
+ */
264
+ setValue(dispatch: SetStateAction<T>): void;
265
+ /**
266
+ * Subscribes to changes in the store's value.
267
+ *
268
+ * @param callback - The function to call when the value changes.
269
+ * @returns A function to unsubscribe from the store.
270
+ */
271
+ subscribe(callback: (oldVal: T, newVal: T) => void): () => void;
272
+ }
273
+ /**
274
+ * Creates a new store with the given initial value.
275
+ *
276
+ * @param initialValue - The initial value to be stored.
277
+ * @returns {Store<T>} A new store instance.
278
+ *
279
+ * @example
280
+ * const counterStore = createStore(0);
281
+ */
282
+ declare const createStore: <T extends unknown = any>(initialValue: T) => Store<T>;
283
+ /**
284
+ * A hook to subscribe to a store and select a slice of its state.
285
+ * The component will re-render when the selected state changes.
286
+ *
287
+ * @param store - The store instance to subscribe to.
288
+ * @param selector - A function to select a part of the store's state. Defaults to the entire state.
289
+ * @param equal - A function to compare selected values for equality. Defaults to deep equality.
290
+ * @returns The selected slice of the store's state.
291
+ *
292
+ * @example
293
+ * const count = useStore(counterStore);
294
+ *
295
+ * @example
296
+ * // Using a selector
297
+ * const userName = useStore(userStore, user => user.name);
298
+ */
299
+ declare const useStore: <T extends unknown = any, S = T>(store: Store<T>, selector?: (state: T) => S, equal?: (value: S, other: S) => boolean) => S;
300
+
7
301
  /**
8
302
  * A hook that creates a debounced version of a function.
9
303
  * The debounced function delays invoking the callback until after
@@ -50,7 +344,7 @@ declare const useAsyncDebounce: <T extends (...args: any) => PromiseLike<any>>(c
50
344
  * It can optionally return a cleanup function or a promise that resolves to a cleanup function.
51
345
  *
52
346
  * @param deps -
53
- * An optional array of dependencies that determines when the effect should be re-executed.
347
+ * An optional dependencies that determines when the effect should be re-executed.
54
348
  *
55
349
  * @example
56
350
  * useEffect((signal) => {
@@ -94,7 +388,6 @@ declare const _createContext: <Value extends unknown>(defaultValue: Value) => Co
94
388
  */
95
389
  declare function createContext<Value>(defaultValue: Value): Context<Value>;
96
390
  declare function createContext<Value = undefined>(): Context<Value | undefined>;
97
-
98
391
  /**
99
392
  * A hook that retrieves the current value of a context and optionally applies
100
393
  * a selector function to transform the context value. This hook ensures that the component
@@ -158,7 +451,7 @@ declare const useRefHandle: <T, R extends T>(ref: Ref<T> | undefined, init: () =
158
451
  *
159
452
  * @template T - The type of the callback function.
160
453
  * @param callback - The callback function to be memoized.
161
- * @param deps - An optional array of dependencies. If provided, the callback
454
+ * @param deps - An optional dependencies. If provided, the callback
162
455
  * will only be updated when one of these dependencies changes.
163
456
  * If not provided, the callback will remain stable.
164
457
  * @returns - A stable version of the callback function that will not change unless
@@ -267,25 +560,33 @@ declare const common_Ref: typeof Ref;
267
560
  declare const common_RefAttribute: typeof RefAttribute;
268
561
  declare const common_RefCallback: typeof RefCallback;
269
562
  declare const common_RefObject: typeof RefObject;
563
+ declare const common_ResourceErrors: typeof ResourceErrors;
270
564
  declare const common_SetStateAction: typeof SetStateAction;
271
565
  declare const common_createContext: typeof createContext;
272
566
  declare const common_createElement: typeof createElement;
567
+ declare const common_createStore: typeof createStore;
273
568
  declare const common_mergeRefs: typeof mergeRefs;
569
+ declare const common_useAnimate: typeof useAnimate;
274
570
  declare const common_useAsyncDebounce: typeof useAsyncDebounce;
275
571
  declare const common_useCallback: typeof useCallback;
276
572
  declare const common_useContext: typeof useContext;
277
573
  declare const common_useDebounce: typeof useDebounce;
278
574
  declare const common_useEffect: typeof useEffect;
575
+ declare const common_useInterval: typeof useInterval;
576
+ declare const common_useIterableResource: typeof useIterableResource;
279
577
  declare const common_useMemo: typeof useMemo;
280
578
  declare const common_useReducer: typeof useReducer;
281
579
  declare const common_useRef: typeof useRef;
282
580
  declare const common_useRefHandle: typeof useRefHandle;
581
+ declare const common_useResource: typeof useResource;
582
+ declare const common_useResourceErrors: typeof useResourceErrors;
283
583
  declare const common_useStack: typeof useStack;
284
584
  declare const common_useState: typeof useState;
585
+ declare const common_useStore: typeof useStore;
285
586
  declare const common_useSyncExternalStore: typeof useSyncExternalStore;
286
587
  declare namespace common {
287
- export { common_ComponentNode as ComponentNode, common_ComponentProps as ComponentProps, common_ComponentPropsWithoutRef as ComponentPropsWithoutRef, common_ComponentRef as ComponentRef, common_ComponentType as ComponentType, type common_Context as Context, type common_ContextType as ContextType, common_ElementNode as ElementNode, _ElementType as ElementType, common_ErrorBoundary as ErrorBoundary, common_Fragment as Fragment, common_PropsProvider as PropsProvider, common_PropsWithChildren as PropsWithChildren, common_Ref as Ref, common_RefAttribute as RefAttribute, common_RefCallback as RefCallback, common_RefObject as RefObject, common_SetStateAction as SetStateAction, common_createContext as createContext, common_createElement as createElement, common_mergeRefs as mergeRefs, common_useAsyncDebounce as useAsyncDebounce, common_useCallback as useCallback, common_useContext as useContext, common_useDebounce as useDebounce, common_useEffect as useEffect, common_useMemo as useMemo, common_useReducer as useReducer, common_useRef as useRef, common_useRefHandle as useRefHandle, common_useStack as useStack, common_useState as useState, common_useSyncExternalStore as useSyncExternalStore };
588
+ export { common_ComponentNode as ComponentNode, common_ComponentProps as ComponentProps, common_ComponentPropsWithoutRef as ComponentPropsWithoutRef, common_ComponentRef as ComponentRef, common_ComponentType as ComponentType, type common_Context as Context, type common_ContextType as ContextType, common_ElementNode as ElementNode, _ElementType as ElementType, common_ErrorBoundary as ErrorBoundary, common_Fragment as Fragment, common_PropsProvider as PropsProvider, common_PropsWithChildren as PropsWithChildren, common_Ref as Ref, common_RefAttribute as RefAttribute, common_RefCallback as RefCallback, common_RefObject as RefObject, common_ResourceErrors as ResourceErrors, common_SetStateAction as SetStateAction, common_createContext as createContext, common_createElement as createElement, common_createStore as createStore, common_mergeRefs as mergeRefs, common_useAnimate as useAnimate, common_useAsyncDebounce as useAsyncDebounce, common_useCallback as useCallback, common_useContext as useContext, common_useDebounce as useDebounce, common_useEffect as useEffect, common_useInterval as useInterval, common_useIterableResource as useIterableResource, common_useMemo as useMemo, common_useReducer as useReducer, common_useRef as useRef, common_useRefHandle as useRefHandle, common_useResource as useResource, common_useResourceErrors as useResourceErrors, common_useStack as useStack, common_useState as useState, common_useStore as useStore, common_useSyncExternalStore as useSyncExternalStore };
288
589
  }
289
590
 
290
- export { ComponentNode, ComponentProps, ComponentPropsWithoutRef, ComponentRef, ComponentType, type Context, type ContextType, ElementNode, _ElementType as ElementType, ErrorBoundary, Fragment, PropsProvider, PropsWithChildren, Ref, RefAttribute, RefCallback, RefObject, SetStateAction, createContext, createElement, common as default, mergeRefs, useAsyncDebounce, useCallback, useContext, useDebounce, useEffect, useMemo, useReducer, useRef, useRefHandle, useStack, useState, useSyncExternalStore };
591
+ export { ComponentNode, ComponentProps, ComponentPropsWithoutRef, ComponentRef, ComponentType, type Context, type ContextType, ElementNode, _ElementType as ElementType, ErrorBoundary, Fragment, PropsProvider, PropsWithChildren, Ref, RefAttribute, RefCallback, RefObject, ResourceErrors, SetStateAction, createContext, createElement, createStore, common as default, mergeRefs, useAnimate, useAsyncDebounce, useCallback, useContext, useDebounce, useEffect, useInterval, useIterableResource, useMemo, useReducer, useRef, useRefHandle, useResource, useResourceErrors, useStack, useState, useStore, useSyncExternalStore };
291
592
  //# sourceMappingURL=index.d.ts.map