frosty 0.0.35 → 0.0.37

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 (77) hide show
  1. package/dist/_native.d.ts +3 -3
  2. package/dist/_native.js +5 -4
  3. package/dist/_native.js.map +1 -1
  4. package/dist/_native.mjs +4 -4
  5. package/dist/dom.d.ts +3 -3
  6. package/dist/dom.js +4 -6
  7. package/dist/dom.js.map +1 -1
  8. package/dist/dom.mjs +4 -6
  9. package/dist/dom.mjs.map +1 -1
  10. package/dist/index.d.ts +5 -50
  11. package/dist/index.js +109 -77
  12. package/dist/index.js.map +1 -1
  13. package/dist/index.mjs +99 -62
  14. package/dist/index.mjs.map +1 -1
  15. package/dist/internals/{common-CpyVZMmY.mjs → common-BoxPKJqo.mjs} +12 -6
  16. package/dist/internals/{common-CpyVZMmY.mjs.map → common-BoxPKJqo.mjs.map} +1 -1
  17. package/dist/internals/{common-CpemFzvV.js → common-CRYEvU6P.js} +13 -7
  18. package/dist/internals/{common-CpemFzvV.js.map → common-CRYEvU6P.js.map} +1 -1
  19. package/dist/internals/{common-oNHXt-X6.d.ts → common-CUIKizze.d.ts} +6 -6
  20. package/dist/internals/common-CUIKizze.d.ts.map +1 -0
  21. package/dist/internals/{common-CltTZzud.d.ts → common-D44KuOmi.d.ts} +7 -4
  22. package/dist/internals/common-D44KuOmi.d.ts.map +1 -0
  23. package/dist/internals/{runtime-PKOt40BM.js → component-BiP3XIPe.js} +1 -33
  24. package/dist/internals/component-BiP3XIPe.js.map +1 -0
  25. package/dist/internals/{runtime-DrGYUphO.mjs → component-BzurKp_J.mjs} +2 -32
  26. package/dist/internals/component-BzurKp_J.mjs.map +1 -0
  27. package/dist/internals/{fragment-BkyAEmoa.d.ts → fragment-50WCFjrW.d.ts} +2 -2
  28. package/dist/internals/fragment-50WCFjrW.d.ts.map +1 -0
  29. package/dist/internals/{renderer-BIGBfQIc.mjs → renderer-ClDlweEF.mjs} +3 -3
  30. package/dist/internals/{renderer-BIGBfQIc.mjs.map → renderer-ClDlweEF.mjs.map} +1 -1
  31. package/dist/internals/{renderer-Bmw8wKAf.d.ts → renderer-DPoACdip.d.ts} +2 -2
  32. package/dist/internals/renderer-DPoACdip.d.ts.map +1 -0
  33. package/dist/internals/{renderer-Ds5Glygc.js → renderer-a9zN1_RB.js} +12 -12
  34. package/dist/internals/{renderer-Ds5Glygc.js.map → renderer-a9zN1_RB.js.map} +1 -1
  35. package/dist/internals/runtime-DCKT7fd6.js +37 -0
  36. package/dist/internals/runtime-DCKT7fd6.js.map +1 -0
  37. package/dist/internals/runtime-DK28Kyy2.mjs +34 -0
  38. package/dist/internals/runtime-DK28Kyy2.mjs.map +1 -0
  39. package/dist/internals/{state-CK2bzUOk.mjs → state-5PNx91ec.mjs} +3 -3
  40. package/dist/internals/{state-CK2bzUOk.mjs.map → state-5PNx91ec.mjs.map} +1 -1
  41. package/dist/internals/{state-CKAt_mTM.js → state-Lf_tbWNd.js} +4 -4
  42. package/dist/internals/{state-CKAt_mTM.js.map → state-Lf_tbWNd.js.map} +1 -1
  43. package/dist/internals/{sync-CyAho2g-.mjs → sync-C4RmxDzS.mjs} +99 -4
  44. package/dist/internals/sync-C4RmxDzS.mjs.map +1 -0
  45. package/dist/internals/{sync-w9XkAX8E.js → sync-e3464vDv.js} +105 -7
  46. package/dist/internals/sync-e3464vDv.js.map +1 -0
  47. package/dist/internals/{utils--X3fYqdu.d.ts → utils-DWp2-G3N.d.ts} +2 -2
  48. package/dist/internals/utils-DWp2-G3N.d.ts.map +1 -0
  49. package/dist/jsx-runtime.d.ts +2 -2
  50. package/dist/jsx-runtime.js +3 -2
  51. package/dist/jsx-runtime.js.map +1 -1
  52. package/dist/jsx-runtime.mjs +2 -1
  53. package/dist/jsx-runtime.mjs.map +1 -1
  54. package/dist/server-dom.d.ts +3 -3
  55. package/dist/server-dom.js +4 -6
  56. package/dist/server-dom.js.map +1 -1
  57. package/dist/server-dom.mjs +4 -6
  58. package/dist/server-dom.mjs.map +1 -1
  59. package/dist/web.d.ts +3 -3
  60. package/dist/web.js +6 -8
  61. package/dist/web.js.map +1 -1
  62. package/dist/web.mjs +6 -8
  63. package/dist/web.mjs.map +1 -1
  64. package/package.json +3 -5
  65. package/dist/internals/common-CltTZzud.d.ts.map +0 -1
  66. package/dist/internals/common-oNHXt-X6.d.ts.map +0 -1
  67. package/dist/internals/error-BT7hiUUR.mjs +0 -193
  68. package/dist/internals/error-BT7hiUUR.mjs.map +0 -1
  69. package/dist/internals/error-Cbb2rheX.js +0 -201
  70. package/dist/internals/error-Cbb2rheX.js.map +0 -1
  71. package/dist/internals/fragment-BkyAEmoa.d.ts.map +0 -1
  72. package/dist/internals/renderer-Bmw8wKAf.d.ts.map +0 -1
  73. package/dist/internals/runtime-DrGYUphO.mjs.map +0 -1
  74. package/dist/internals/runtime-PKOt40BM.js.map +0 -1
  75. package/dist/internals/sync-CyAho2g-.mjs.map +0 -1
  76. package/dist/internals/sync-w9XkAX8E.js.map +0 -1
  77. package/dist/internals/utils--X3fYqdu.d.ts.map +0 -1
package/dist/_native.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { N as NativeElementType, c as PropsType, b as ComponentNode } from './internals/common-oNHXt-X6.js';
2
- export { V as VNode, _ as _Renderer } from './internals/renderer-Bmw8wKAf.js';
3
- export { u as uniqueId } from './internals/utils--X3fYqdu.js';
1
+ import { N as NativeElementType, c as PropsType, b as ComponentNode } from './internals/common-CUIKizze.js';
2
+ export { V as VNode, _ as _Renderer } from './internals/renderer-DPoACdip.js';
3
+ export { u as uniqueId } from './internals/utils-DWp2-G3N.js';
4
4
  import '@o2ter/utils-js';
5
5
  import 'lodash';
6
6
  import 'csstype';
package/dist/_native.js CHANGED
@@ -1,8 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var runtime = require('./internals/runtime-PKOt40BM.js');
4
- var renderer = require('./internals/renderer-Ds5Glygc.js');
5
- var state = require('./internals/state-CKAt_mTM.js');
3
+ var runtime = require('./internals/runtime-DCKT7fd6.js');
4
+ var renderer = require('./internals/renderer-a9zN1_RB.js');
5
+ var state = require('./internals/state-Lf_tbWNd.js');
6
+ var component = require('./internals/component-BiP3XIPe.js');
6
7
  require('lodash');
7
8
  require('nextick');
8
9
  require('myers.js');
@@ -35,10 +36,10 @@ function _createNativeElement(type, props, key) {
35
36
  return runtime._createElement(type, { ...props, key });
36
37
  }
37
38
 
38
- exports.NativeElementType = runtime.NativeElementType;
39
39
  exports._Renderer = renderer._Renderer;
40
40
  exports.EventEmitter = state.EventEmitter;
41
41
  exports.VNode = state.VNode;
42
42
  exports.uniqueId = state.uniqueId;
43
+ exports.NativeElementType = component.NativeElementType;
43
44
  exports._createNativeElement = _createNativeElement;
44
45
  //# 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 { uniqueId } from '../core/utils';\nexport { EventEmitter } from '../core/reconciler/events';\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;SAWgB,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 { uniqueId } from '../core/utils';\nexport { EventEmitter } from '../core/reconciler/events';\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;SAWgB,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,7 +1,7 @@
1
- import { _ as _createElement } from './internals/runtime-DrGYUphO.mjs';
2
- export { N as NativeElementType } from './internals/runtime-DrGYUphO.mjs';
3
- export { _ as _Renderer } from './internals/renderer-BIGBfQIc.mjs';
4
- export { b as EventEmitter, V as VNode, u as uniqueId } from './internals/state-CK2bzUOk.mjs';
1
+ import { _ as _createElement } from './internals/runtime-DK28Kyy2.mjs';
2
+ export { _ as _Renderer } from './internals/renderer-ClDlweEF.mjs';
3
+ export { b as EventEmitter, V as VNode, a as uniqueId } from './internals/state-5PNx91ec.mjs';
4
+ export { N as NativeElementType } from './internals/component-BzurKp_J.mjs';
5
5
  import 'lodash';
6
6
  import 'nextick';
7
7
  import 'myers.js';
package/dist/dom.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { _ as _DOMRenderer } from './internals/common-CltTZzud.js';
2
- import './internals/common-oNHXt-X6.js';
1
+ import { _ as _DOMRenderer } from './internals/common-D44KuOmi.js';
2
+ import './internals/common-CUIKizze.js';
3
3
  import '@o2ter/utils-js';
4
4
  import 'lodash';
5
5
  import 'csstype';
6
- import './internals/renderer-Bmw8wKAf.js';
6
+ import './internals/renderer-DPoACdip.js';
7
7
 
8
8
  declare class DOMRenderer extends _DOMRenderer {
9
9
  static default: DOMRenderer;
package/dist/dom.js CHANGED
@@ -1,18 +1,16 @@
1
1
  'use strict';
2
2
 
3
- var common = require('./internals/common-CpemFzvV.js');
3
+ var common = require('./internals/common-CRYEvU6P.js');
4
4
  require('lodash');
5
5
  require('myers.js');
6
- require('./internals/runtime-PKOt40BM.js');
7
- require('./internals/renderer-Ds5Glygc.js');
8
- require('./internals/state-CKAt_mTM.js');
6
+ require('./internals/component-BiP3XIPe.js');
7
+ require('./internals/renderer-a9zN1_RB.js');
8
+ require('./internals/state-Lf_tbWNd.js');
9
9
  require('nextick');
10
10
  require('postcss');
11
11
  require('postcss-js');
12
12
  require('postcss-nested');
13
13
  require('autoprefixer');
14
- require('./internals/error-Cbb2rheX.js');
15
- require('./jsx-runtime.js');
16
14
 
17
15
  //
18
16
  // dom.ts
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,16 +1,14 @@
1
- import { _ as _DOMRenderer } from './internals/common-CpyVZMmY.mjs';
1
+ import { _ as _DOMRenderer } from './internals/common-BoxPKJqo.mjs';
2
2
  import 'lodash';
3
3
  import 'myers.js';
4
- import './internals/runtime-DrGYUphO.mjs';
5
- import './internals/renderer-BIGBfQIc.mjs';
6
- import './internals/state-CK2bzUOk.mjs';
4
+ import './internals/component-BzurKp_J.mjs';
5
+ import './internals/renderer-ClDlweEF.mjs';
6
+ import './internals/state-5PNx91ec.mjs';
7
7
  import 'nextick';
8
8
  import 'postcss';
9
9
  import 'postcss-js';
10
10
  import 'postcss-nested';
11
11
  import 'autoprefixer';
12
- import './internals/error-BT7hiUUR.mjs';
13
- import './jsx-runtime.mjs';
14
12
 
15
13
  //
16
14
  // dom.ts
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,8 +1,9 @@
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 ClassName, e as ComponentProps, f as ComponentPropsWithoutRef, g as ComponentRef, h as RefAttribute, i as RefCallback, j as StyleProp, k as createElement } from './internals/common-oNHXt-X6.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 } from './internals/common-CUIKizze.js';
2
+ export { h as CSSProperties, e as ClassName, j as ComponentProps, k as ComponentPropsWithoutRef, m as ComponentRef, g as ExtendedCSSProperties, i as RefAttribute, l as RefCallback, f as StyleProp, d as createElement } from './internals/common-CUIKizze.js';
2
3
  import _ from 'lodash';
3
4
  import { Awaitable } from '@o2ter/utils-js';
4
- import { F as Fragment } from './internals/fragment-BkyAEmoa.js';
5
- import { m as mergeRefs } from './internals/utils--X3fYqdu.js';
5
+ export { F as Fragment } from './internals/fragment-50WCFjrW.js';
6
+ export { m as mergeRefs } from './internals/utils-DWp2-G3N.js';
6
7
  import 'csstype';
7
8
 
8
9
  /**
@@ -543,51 +544,5 @@ type PropsProviderProps = PropsWithChildren<{
543
544
  }>;
544
545
  declare const PropsProvider: ComponentType<PropsProviderProps>;
545
546
 
546
- declare const common_ClassName: typeof ClassName;
547
- declare const common_ComponentNode: typeof ComponentNode;
548
- declare const common_ComponentProps: typeof ComponentProps;
549
- declare const common_ComponentPropsWithoutRef: typeof ComponentPropsWithoutRef;
550
- declare const common_ComponentRef: typeof ComponentRef;
551
- declare const common_ComponentType: typeof ComponentType;
552
- type common_Context<Value> = Context<Value>;
553
- type common_ContextType<C extends Context<any>> = ContextType<C>;
554
- declare const common_ElementNode: typeof ElementNode;
555
- declare const common_ErrorBoundary: typeof ErrorBoundary;
556
- declare const common_Fragment: typeof Fragment;
557
- declare const common_PropsProvider: typeof PropsProvider;
558
- declare const common_PropsWithChildren: typeof PropsWithChildren;
559
- declare const common_Ref: typeof Ref;
560
- declare const common_RefAttribute: typeof RefAttribute;
561
- declare const common_RefCallback: typeof RefCallback;
562
- declare const common_RefObject: typeof RefObject;
563
- declare const common_ResourceErrors: typeof ResourceErrors;
564
- declare const common_SetStateAction: typeof SetStateAction;
565
- declare const common_StyleProp: typeof StyleProp;
566
- declare const common_createContext: typeof createContext;
567
- declare const common_createElement: typeof createElement;
568
- declare const common_createStore: typeof createStore;
569
- declare const common_mergeRefs: typeof mergeRefs;
570
- declare const common_useAnimate: typeof useAnimate;
571
- declare const common_useAsyncDebounce: typeof useAsyncDebounce;
572
- declare const common_useCallback: typeof useCallback;
573
- declare const common_useContext: typeof useContext;
574
- declare const common_useDebounce: typeof useDebounce;
575
- declare const common_useEffect: typeof useEffect;
576
- declare const common_useInterval: typeof useInterval;
577
- declare const common_useIterableResource: typeof useIterableResource;
578
- declare const common_useMemo: typeof useMemo;
579
- declare const common_useReducer: typeof useReducer;
580
- declare const common_useRef: typeof useRef;
581
- declare const common_useRefHandle: typeof useRefHandle;
582
- declare const common_useResource: typeof useResource;
583
- declare const common_useResourceErrors: typeof useResourceErrors;
584
- declare const common_useStack: typeof useStack;
585
- declare const common_useState: typeof useState;
586
- declare const common_useStore: typeof useStore;
587
- declare const common_useSyncExternalStore: typeof useSyncExternalStore;
588
- declare namespace common {
589
- export { common_ClassName as ClassName, 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_StyleProp as StyleProp, 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 };
590
- }
591
-
592
- export { ClassName, ComponentNode, ComponentProps, ComponentPropsWithoutRef, ComponentRef, ComponentType, type Context, type ContextType, ElementNode, _ElementType as ElementType, ErrorBoundary, Fragment, PropsProvider, PropsWithChildren, Ref, RefAttribute, RefCallback, RefObject, ResourceErrors, SetStateAction, StyleProp, 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 };
547
+ export { ComponentNode, ComponentType, type Context, type ContextType, ElementNode, _ElementType as ElementType, ErrorBoundary, PropsProvider, PropsWithChildren, Ref, RefObject, ResourceErrors, SetStateAction, createContext, createStore, useAnimate, useAsyncDebounce, useCallback, useContext, useDebounce, useEffect, useInterval, useIterableResource, useMemo, useReducer, useRef, useRefHandle, useResource, useResourceErrors, useStack, useState, useStore, useSyncExternalStore };
593
548
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -1,13 +1,11 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var _ = require('lodash');
6
- var error = require('./internals/error-Cbb2rheX.js');
7
- var sync = require('./internals/sync-w9XkAX8E.js');
8
- var state = require('./internals/state-CKAt_mTM.js');
9
- var runtime = require('./internals/runtime-PKOt40BM.js');
4
+ var sync = require('./internals/sync-e3464vDv.js');
5
+ var state = require('./internals/state-Lf_tbWNd.js');
10
6
  var jsxRuntime = require('./jsx-runtime.js');
7
+ var component = require('./internals/component-BiP3XIPe.js');
8
+ var runtime = require('./internals/runtime-DCKT7fd6.js');
11
9
  require('myers.js');
12
10
 
13
11
  //
@@ -35,7 +33,7 @@ require('myers.js');
35
33
  // THE SOFTWARE.
36
34
  //
37
35
  function useRef(initialValue) {
38
- return error._useMemo('useRef', () => ({ current: initialValue }), null);
36
+ return sync._useMemo('useRef', () => ({ current: initialValue }), null);
39
37
  }
40
38
  /**
41
39
  * Associates a reference with a value created by an initializer function.
@@ -46,7 +44,7 @@ function useRef(initialValue) {
46
44
  * @param init A function that initializes and returns the value to associate with the reference.
47
45
  * @param deps An optional dependency array. The initializer function is re-executed when the dependencies change.
48
46
  */
49
- const useRefHandle = (ref, init, deps) => error._useEffect('useRefHandle', () => {
47
+ const useRefHandle = (ref, init, deps) => sync._useEffect('useRefHandle', () => {
50
48
  try {
51
49
  if (ref) {
52
50
  const _ref = init();
@@ -63,6 +61,44 @@ const useRefHandle = (ref, init, deps) => error._useEffect('useRefHandle', () =>
63
61
  }
64
62
  }, deps);
65
63
 
64
+ //
65
+ // memo.ts
66
+ //
67
+ // The MIT License
68
+ // Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
69
+ //
70
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
71
+ // of this software and associated documentation files (the "Software"), to deal
72
+ // in the Software without restriction, including without limitation the rights
73
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
74
+ // copies of the Software, and to permit persons to whom the Software is
75
+ // furnished to do so, subject to the following conditions:
76
+ //
77
+ // The above copyright notice and this permission notice shall be included in
78
+ // all copies or substantial portions of the Software.
79
+ //
80
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
81
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
82
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
83
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
84
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
85
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
86
+ // THE SOFTWARE.
87
+ //
88
+ function useState(initialState) {
89
+ const { value, setValue } = sync._useMemo('useState', ({ node }) => {
90
+ const state = {
91
+ value: _.isFunction(initialState) ? initialState() : initialState,
92
+ setValue: (dispatch) => {
93
+ state.value = _.isFunction(dispatch) ? dispatch(state.value) : dispatch;
94
+ node?._setDirty();
95
+ },
96
+ };
97
+ return state;
98
+ }, null);
99
+ return [value, setValue];
100
+ }
101
+
66
102
  //
67
103
  // animate.ts
68
104
  //
@@ -113,7 +149,7 @@ const interpolate = (value) => ({ inputRange, outputRange }) => {
113
149
  * - `interpolate`: A function to interpolate the current value based on input and output ranges.
114
150
  */
115
151
  const useAnimate = (initialValue) => {
116
- const [value, setValue] = error.useState(initialValue);
152
+ const [value, setValue] = useState(initialValue);
117
153
  const ref = useRef();
118
154
  const _stop = () => {
119
155
  const { interval, callback } = ref.current ?? {};
@@ -221,7 +257,7 @@ const asyncDebounce = (func, settings) => {
221
257
  * @returns A debounced version of the callback function.
222
258
  */
223
259
  const useDebounce = (callback, settings) => {
224
- const store = error._useMemo('useDebounce', () => {
260
+ const store = sync._useMemo('useDebounce', () => {
225
261
  const store = {
226
262
  current: callback,
227
263
  stable: debounce(((...args) => store.current(...args)), settings),
@@ -247,7 +283,7 @@ const useDebounce = (callback, settings) => {
247
283
  * @returns A debounced version of the asynchronous callback function.
248
284
  */
249
285
  const useAsyncDebounce = (callback, settings) => {
250
- const store = error._useMemo('useAsyncDebounce', () => {
286
+ const store = sync._useMemo('useAsyncDebounce', () => {
251
287
  const store = {
252
288
  current: callback,
253
289
  stable: asyncDebounce(((...args) => store.current(...args)), settings),
@@ -258,6 +294,59 @@ const useAsyncDebounce = (callback, settings) => {
258
294
  return store.stable;
259
295
  };
260
296
 
297
+ const Context = state.createContext({
298
+ errors: [],
299
+ setErrors: () => { },
300
+ });
301
+ /**
302
+ * A context provider component for managing asynchronous resource errors.
303
+ *
304
+ * This component provides a shared context for tracking errors encountered during
305
+ * asynchronous operations. It allows child components to access and manage these errors
306
+ * using the `useResourceErrors` hook.
307
+ *
308
+ * ### Usage:
309
+ * Wrap your application or specific parts of it with this component to enable error tracking:
310
+ *
311
+ * ```tsx
312
+ * <ResourceErrors>
313
+ * <YourComponent />
314
+ * </ResourceErrors>
315
+ * ```
316
+ *
317
+ * @param children - The child components that will have access to the error context.
318
+ *
319
+ * @returns A context provider that wraps the provided children.
320
+ */
321
+ const ResourceErrors = ({ children }) => {
322
+ const [errors, setErrors] = useState([]);
323
+ const value = sync.useMemo(() => ({ errors, setErrors }), [errors, setErrors]);
324
+ return (jsxRuntime.jsx(Context, { value: value, children: children }));
325
+ };
326
+ /**
327
+ * A hook to access the list of asynchronous resource errors.
328
+ *
329
+ * This hook allows components to retrieve the current list of errors being tracked
330
+ * in the `ResourceErrors` context. It must be used within a component that is
331
+ * a descendant of the `ResourceErrors` provider.
332
+ *
333
+ * ### Usage:
334
+ * ```tsx
335
+ * const errors = useResourceErrors();
336
+ *
337
+ * errors.forEach(({ token, error, refresh }) => {
338
+ * console.error(`Error [${token}]:`, error);
339
+ * // Optionally call refresh() to retry the operation
340
+ * });
341
+ * ```
342
+ *
343
+ * @returns The list of errors currently being tracked in the context. Each error includes:
344
+ * - `token`: A unique identifier for the error.
345
+ * - `error`: The error object or message.
346
+ * - `refresh`: A function to retry the operation that caused the error.
347
+ */
348
+ const useResourceErrors = () => state.useContext(Context).errors;
349
+
261
350
  //
262
351
  // index.ts
263
352
  //
@@ -305,7 +394,7 @@ const useAsyncDebounce = (callback, settings) => {
305
394
  const useResource = (config, deps) => {
306
395
  const fetch = _.isFunction(config) ? config : config.fetch;
307
396
  const debounce = _.isFunction(config) ? {} : config.debounce;
308
- const [state$1, setState] = error.useState({});
397
+ const [state$1, setState] = useState({});
309
398
  const _dispatch = (token, next) => setState(state => state.token === token ? ({
310
399
  ...(_.isFunction(next) ? next(state.flag ? state : _.omit(state, 'resource', 'error')) : next),
311
400
  count: state.flag ? state.count : (state.count ?? 0) + 1,
@@ -347,7 +436,7 @@ const useResource = (config, deps) => {
347
436
  ..._.omit(state, 'resource', 'error'),
348
437
  resource: _.isFunction(resource) ? resource(state.resource) : resource,
349
438
  })));
350
- const { setErrors } = state.useContext(error.Context);
439
+ const { setErrors } = state.useContext(Context);
351
440
  sync.useEffect(() => {
352
441
  const { type, abort, token = state.uniqueId(), error } = state$1;
353
442
  if (!error)
@@ -612,7 +701,7 @@ const useStack = () => {
612
701
  // THE SOFTWARE.
613
702
  //
614
703
  function useReducer(reducer, initialState) {
615
- const { value, dispatch } = error._useMemo('useReducer', ({ node }) => {
704
+ const { value, dispatch } = sync._useMemo('useReducer', ({ node }) => {
616
705
  const state = {
617
706
  value: _.isFunction(initialState) ? initialState() : initialState,
618
707
  dispatch: (action) => {
@@ -625,79 +714,20 @@ function useReducer(reducer, initialState) {
625
714
  return [value, dispatch];
626
715
  }
627
716
 
628
- //
629
- // common.ts
630
- //
631
- // The MIT License
632
- // Copyright (c) 2021 - 2025 O2ter Limited. All rights reserved.
633
- //
634
- // Permission is hereby granted, free of charge, to any person obtaining a copy
635
- // of this software and associated documentation files (the "Software"), to deal
636
- // in the Software without restriction, including without limitation the rights
637
- // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
638
- // copies of the Software, and to permit persons to whom the Software is
639
- // furnished to do so, subject to the following conditions:
640
- //
641
- // The above copyright notice and this permission notice shall be included in
642
- // all copies or substantial portions of the Software.
643
- //
644
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
645
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
646
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
647
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
648
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
649
- // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
650
- // THE SOFTWARE.
651
- //
652
-
653
- var common = /*#__PURE__*/Object.freeze({
654
- __proto__: null,
655
- ComponentNode: runtime.ComponentNode,
656
- ErrorBoundary: state.ErrorBoundary,
657
- Fragment: jsxRuntime.Fragment,
658
- PropsProvider: state.PropsProvider,
659
- ResourceErrors: error.ResourceErrors,
660
- createContext: state.createContext,
661
- createElement: runtime.createElement,
662
- createStore: createStore,
663
- mergeRefs: state.mergeRefs,
664
- useAnimate: useAnimate,
665
- useAsyncDebounce: useAsyncDebounce,
666
- useCallback: sync.useCallback,
667
- useContext: state.useContext,
668
- useDebounce: useDebounce,
669
- useEffect: sync.useEffect,
670
- useInterval: useInterval,
671
- useIterableResource: useIterableResource,
672
- useMemo: error.useMemo,
673
- useReducer: useReducer,
674
- useRef: useRef,
675
- useRefHandle: useRefHandle,
676
- useResource: useResource,
677
- useResourceErrors: error.useResourceErrors,
678
- useStack: useStack,
679
- useState: error.useState,
680
- useStore: useStore,
681
- useSyncExternalStore: sync.useSyncExternalStore
682
- });
683
-
684
- exports.ResourceErrors = error.ResourceErrors;
685
- exports.useMemo = error.useMemo;
686
- exports.useResourceErrors = error.useResourceErrors;
687
- exports.useState = error.useState;
688
717
  exports.useCallback = sync.useCallback;
689
718
  exports.useEffect = sync.useEffect;
719
+ exports.useMemo = sync.useMemo;
690
720
  exports.useSyncExternalStore = sync.useSyncExternalStore;
691
721
  exports.ErrorBoundary = state.ErrorBoundary;
692
722
  exports.PropsProvider = state.PropsProvider;
693
723
  exports.createContext = state.createContext;
694
724
  exports.mergeRefs = state.mergeRefs;
695
725
  exports.useContext = state.useContext;
696
- exports.ComponentNode = runtime.ComponentNode;
697
- exports.createElement = runtime.createElement;
698
726
  exports.Fragment = jsxRuntime.Fragment;
727
+ exports.ComponentNode = component.ComponentNode;
728
+ exports.createElement = runtime.createElement;
729
+ exports.ResourceErrors = ResourceErrors;
699
730
  exports.createStore = createStore;
700
- exports.default = common;
701
731
  exports.useAnimate = useAnimate;
702
732
  exports.useAsyncDebounce = useAsyncDebounce;
703
733
  exports.useDebounce = useDebounce;
@@ -707,6 +737,8 @@ exports.useReducer = useReducer;
707
737
  exports.useRef = useRef;
708
738
  exports.useRefHandle = useRefHandle;
709
739
  exports.useResource = useResource;
740
+ exports.useResourceErrors = useResourceErrors;
710
741
  exports.useStack = useStack;
742
+ exports.useState = useState;
711
743
  exports.useStore = useStore;
712
744
  //# sourceMappingURL=index.js.map