frosty 0.0.15 → 0.0.16

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 (40) hide show
  1. package/dist/_native.d.ts +10 -2
  2. package/dist/_native.js +5 -4
  3. package/dist/_native.js.map +1 -1
  4. package/dist/_native.mjs +3 -3
  5. package/dist/_native.mjs.map +1 -1
  6. package/dist/dom.d.ts +2 -2
  7. package/dist/dom.js +3 -3
  8. package/dist/dom.mjs +3 -3
  9. package/dist/index.js +2 -2
  10. package/dist/index.mjs +2 -2
  11. package/dist/internals/{common-Comag6Is.mjs → common-CRF1VO9v.mjs} +3 -3
  12. package/dist/internals/{common-Comag6Is.mjs.map → common-CRF1VO9v.mjs.map} +1 -1
  13. package/dist/internals/{common-D9JltoM0.d.ts → common-NuNKCH7T.d.ts} +2 -2
  14. package/dist/internals/common-NuNKCH7T.d.ts.map +1 -0
  15. package/dist/internals/{common-CuY4PQF6.js → common-rYjSnIG8.js} +3 -3
  16. package/dist/internals/{common-CuY4PQF6.js.map → common-rYjSnIG8.js.map} +1 -1
  17. package/dist/internals/{renderer-DeoTMWfn.d.ts → renderer-CK3kYTg6.d.ts} +3 -1
  18. package/dist/internals/renderer-CK3kYTg6.d.ts.map +1 -0
  19. package/dist/internals/{renderer-CXN_wamO.js → renderer-COSKAgmt.js} +2 -2
  20. package/dist/internals/{renderer-CXN_wamO.js.map → renderer-COSKAgmt.js.map} +1 -1
  21. package/dist/internals/{renderer-ovOliXPW.mjs → renderer-DcXiSvRx.mjs} +2 -2
  22. package/dist/internals/{renderer-ovOliXPW.mjs.map → renderer-DcXiSvRx.mjs.map} +1 -1
  23. package/dist/internals/{state-BRZQ4OPf.mjs → state-D54t8ETv.mjs} +5 -1
  24. package/dist/internals/state-D54t8ETv.mjs.map +1 -0
  25. package/dist/internals/{state-BzHki2Zn.js → state-Dq9CkYWl.js} +5 -1
  26. package/dist/internals/state-Dq9CkYWl.js.map +1 -0
  27. package/dist/internals/{sync-BM8lmLVc.mjs → sync-CaZ7G1AD.mjs} +2 -2
  28. package/dist/internals/{sync-BM8lmLVc.mjs.map → sync-CaZ7G1AD.mjs.map} +1 -1
  29. package/dist/internals/{sync-wiDTr4Cf.js → sync-Duy-XWTQ.js} +2 -2
  30. package/dist/internals/{sync-wiDTr4Cf.js.map → sync-Duy-XWTQ.js.map} +1 -1
  31. package/dist/server-dom.d.ts +2 -2
  32. package/dist/server-dom.js +3 -3
  33. package/dist/server-dom.mjs +3 -3
  34. package/dist/web.js +4 -4
  35. package/dist/web.mjs +4 -4
  36. package/package.json +1 -1
  37. package/dist/internals/common-D9JltoM0.d.ts.map +0 -1
  38. package/dist/internals/renderer-DeoTMWfn.d.ts.map +0 -1
  39. package/dist/internals/state-BRZQ4OPf.mjs.map +0 -1
  40. package/dist/internals/state-BzHki2Zn.js.map +0 -1
package/dist/_native.d.ts CHANGED
@@ -1,11 +1,19 @@
1
1
  import { N as NativeElementType, c as PropsType, b as ComponentNode } from './internals/common-CIXimrNw.js';
2
+ export { V as VNode, _ as _Renderer } from './internals/renderer-CK3kYTg6.js';
2
3
  export { u as uniqueId } from './internals/utils-aV0DDGsD.js';
3
- export { V as VNode, _ as _Renderer } from './internals/renderer-DeoTMWfn.js';
4
4
  import '@o2ter/utils-js';
5
5
  import 'lodash';
6
6
  import 'csstype';
7
7
 
8
+ declare class EventEmitter {
9
+ private _listeners;
10
+ register(event: string, callback: (event: string, ...args: any[]) => void): {
11
+ remove: () => void;
12
+ };
13
+ emit(event: string, ...args: any[]): void;
14
+ }
15
+
8
16
  declare function _createNativeElement(type: typeof NativeElementType, props: PropsType, key?: string | number): ComponentNode;
9
17
 
10
- export { NativeElementType, _createNativeElement };
18
+ export { EventEmitter, NativeElementType, _createNativeElement };
11
19
  //# sourceMappingURL=_native.d.ts.map
package/dist/_native.js CHANGED
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
3
  var runtime = require('./internals/runtime-CHi74WKN.js');
4
- var state = require('./internals/state-BzHki2Zn.js');
5
- var renderer = require('./internals/renderer-CXN_wamO.js');
4
+ var renderer = require('./internals/renderer-COSKAgmt.js');
5
+ var state = require('./internals/state-Dq9CkYWl.js');
6
6
  var component = require('./internals/component-DJsXAx2C.js');
7
7
  require('lodash');
8
- require('myers.js');
9
8
  require('nextick');
9
+ require('myers.js');
10
10
 
11
11
  //
12
12
  // native.ts
@@ -36,9 +36,10 @@ function _createNativeElement(type, props, key) {
36
36
  return runtime._createElement(type, { ...props, key });
37
37
  }
38
38
 
39
+ exports._Renderer = renderer._Renderer;
40
+ exports.EventEmitter = state.EventEmitter;
39
41
  exports.VNode = state.VNode;
40
42
  exports.uniqueId = state.uniqueId;
41
- exports._Renderer = renderer._Renderer;
42
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 { uniqueId } from '../core/utils';\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;SAUgB,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,10 +1,10 @@
1
1
  import { _ as _createElement } from './internals/runtime-BN27rc51.mjs';
2
- export { V as VNode, a as uniqueId } from './internals/state-BRZQ4OPf.mjs';
3
- export { _ as _Renderer } from './internals/renderer-ovOliXPW.mjs';
2
+ export { _ as _Renderer } from './internals/renderer-DcXiSvRx.mjs';
3
+ export { b as EventEmitter, V as VNode, a as uniqueId } from './internals/state-D54t8ETv.mjs';
4
4
  export { N as NativeElementType } from './internals/component-tyF62qKh.mjs';
5
5
  import 'lodash';
6
- import 'myers.js';
7
6
  import 'nextick';
7
+ import 'myers.js';
8
8
 
9
9
  //
10
10
  // native.ts
@@ -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 { uniqueId } from '../core/utils';\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;SAUgB,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 { 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":[],"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,OAAO,cAAc,CAAC,IAAI,EAAE,EAAE,GAAG,KAAK,EAAE,GAAG,EAAE,CAAC;AAChD;;;;"}
package/dist/dom.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { _ as _DOMRenderer } from './internals/common-D9JltoM0.js';
1
+ import { _ as _DOMRenderer } from './internals/common-NuNKCH7T.js';
2
2
  import './internals/common-CIXimrNw.js';
3
3
  import '@o2ter/utils-js';
4
4
  import 'lodash';
5
5
  import 'csstype';
6
- import './internals/renderer-DeoTMWfn.js';
6
+ import './internals/renderer-CK3kYTg6.js';
7
7
 
8
8
  declare class DOMRenderer extends _DOMRenderer {
9
9
  static default: DOMRenderer;
package/dist/dom.js CHANGED
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var common = require('./internals/common-CuY4PQF6.js');
3
+ var common = require('./internals/common-rYjSnIG8.js');
4
4
  require('lodash');
5
5
  require('myers.js');
6
- require('./internals/renderer-CXN_wamO.js');
7
- require('./internals/state-BzHki2Zn.js');
6
+ require('./internals/renderer-COSKAgmt.js');
7
+ require('./internals/state-Dq9CkYWl.js');
8
8
  require('./internals/component-DJsXAx2C.js');
9
9
  require('nextick');
10
10
  require('postcss');
package/dist/dom.mjs CHANGED
@@ -1,8 +1,8 @@
1
- import { _ as _DOMRenderer } from './internals/common-Comag6Is.mjs';
1
+ import { _ as _DOMRenderer } from './internals/common-CRF1VO9v.mjs';
2
2
  import 'lodash';
3
3
  import 'myers.js';
4
- import './internals/renderer-ovOliXPW.mjs';
5
- import './internals/state-BRZQ4OPf.mjs';
4
+ import './internals/renderer-DcXiSvRx.mjs';
5
+ import './internals/state-D54t8ETv.mjs';
6
6
  import './internals/component-tyF62qKh.mjs';
7
7
  import 'nextick';
8
8
  import 'postcss';
package/dist/index.js CHANGED
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var _ = require('lodash');
6
- var sync = require('./internals/sync-wiDTr4Cf.js');
7
- var state = require('./internals/state-BzHki2Zn.js');
6
+ var sync = require('./internals/sync-Duy-XWTQ.js');
7
+ var state = require('./internals/state-Dq9CkYWl.js');
8
8
  var jsxRuntime = require('./jsx-runtime.js');
9
9
  var component = require('./internals/component-DJsXAx2C.js');
10
10
  var runtime = require('./internals/runtime-CHi74WKN.js');
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import _ from 'lodash';
2
- import { _ as _useEffect, a as _useMemo, u as useCallback, b as useMemo, c as useEffect, d as useSyncExternalStore } from './internals/sync-BM8lmLVc.mjs';
3
- import { c as createContext, u as useContext, a as uniqueId, r as reconciler, E as ErrorBoundary, P as PropsProvider, m as mergeRefs } from './internals/state-BRZQ4OPf.mjs';
2
+ import { _ as _useEffect, a as _useMemo, u as useCallback, b as useMemo, c as useEffect, d as useSyncExternalStore } from './internals/sync-CaZ7G1AD.mjs';
3
+ import { c as createContext, u as useContext, a as uniqueId, r as reconciler, E as ErrorBoundary, P as PropsProvider, m as mergeRefs } from './internals/state-D54t8ETv.mjs';
4
4
  import { jsx, Fragment } from './jsx-runtime.mjs';
5
5
  import { C as ComponentNode } from './internals/component-tyF62qKh.mjs';
6
6
  import { c as createElement } from './internals/runtime-BN27rc51.mjs';
@@ -1,11 +1,11 @@
1
1
  import _ from 'lodash';
2
2
  import { myersSync } from 'myers.js';
3
- import { _ as _Renderer } from './renderer-ovOliXPW.mjs';
3
+ import { _ as _Renderer } from './renderer-DcXiSvRx.mjs';
4
4
  import postcss from 'postcss';
5
5
  import { parse } from 'postcss-js';
6
6
  import nested from 'postcss-nested';
7
7
  import autoprefixer from 'autoprefixer';
8
- import { a as uniqueId } from './state-BRZQ4OPf.mjs';
8
+ import { a as uniqueId } from './state-D54t8ETv.mjs';
9
9
 
10
10
  //
11
11
  // event.ts
@@ -4096,4 +4096,4 @@ class _DOMRenderer extends _Renderer {
4096
4096
  }
4097
4097
 
4098
4098
  export { _DOMRenderer as _ };
4099
- //# sourceMappingURL=common-Comag6Is.mjs.map
4099
+ //# sourceMappingURL=common-CRF1VO9v.mjs.map