@meonode/ui 1.2.0 → 1.3.0-beta.1

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 (31) hide show
  1. package/dist/cjs/core.node.cjs +1 -1
  2. package/dist/cjs/util/node.util.cjs +1 -1
  3. package/dist/esm/components/html.node.d.ts +262 -262
  4. package/dist/esm/components/portal-host.client.d.ts +1 -15
  5. package/dist/esm/components/portal-host.client.d.ts.map +1 -1
  6. package/dist/esm/components/portal-host.d.ts +1 -1
  7. package/dist/esm/components/portal-provider.d.ts +1 -1
  8. package/dist/esm/components/react.node.d.ts +3 -3
  9. package/dist/esm/components/style-registry.client.d.ts.map +1 -1
  10. package/dist/esm/components/styled-renderer.client.d.ts +1 -1
  11. package/dist/esm/components/styled-renderer.client.d.ts.map +1 -1
  12. package/dist/esm/components/theme-provider.d.ts +1 -1
  13. package/dist/esm/constant/common.const.d.ts +1 -1
  14. package/dist/esm/core.node.d.ts.map +1 -1
  15. package/dist/esm/core.node.js +1 -1
  16. package/dist/esm/helper/common.helper.d.ts +1 -1
  17. package/dist/esm/helper/common.helper.d.ts.map +1 -1
  18. package/dist/esm/helper/react-is.helper.d.ts +1 -1
  19. package/dist/esm/helper/react-is.helper.d.ts.map +1 -1
  20. package/dist/esm/hook/usePortal.d.ts +2 -2
  21. package/dist/esm/hook/usePortal.d.ts.map +1 -1
  22. package/dist/esm/nextjs-registry/index.d.ts +1 -1
  23. package/dist/esm/util/mount-tracker.util.d.ts.map +1 -1
  24. package/dist/esm/util/navigation-cache-manager.util.d.ts.map +1 -1
  25. package/dist/esm/util/node.util.d.ts +13 -2
  26. package/dist/esm/util/node.util.d.ts.map +1 -1
  27. package/dist/esm/util/node.util.js +1 -1
  28. package/dist/esm/util/theme.util.d.ts +2 -2
  29. package/dist/esm/util/theme.util.d.ts.map +1 -1
  30. package/package.json +25 -19
  31. package/CHANGELOG.md +0 -1378
@@ -1,26 +1,12 @@
1
1
  import { type ReactNode } from 'react';
2
- import type { PortalStackEntry } from '../types/node.type.js';
3
- /**
4
- * Renders a single portal layer, subscribing to its data channel.
5
- * Passes `{ data, depth, close }` props to the user's component.
6
- * @internal
7
- */
8
- declare function PortalLayerRenderer({ layer, index, onClose }: {
9
- layer: PortalStackEntry;
10
- index: number;
11
- onClose: () => void;
12
- }): ReactNode;
13
- declare namespace PortalLayerRenderer {
14
- var displayName: string;
15
- }
16
2
  /**
17
3
  * Renders the portal stack. Place this component where portal layers should appear in the DOM.
18
4
  * Renders nothing when the stack is empty.
19
5
  * Must be used within a `PortalProvider`.
20
6
  */
21
7
  declare function PortalHost(): ReactNode;
22
- export default PortalHost;
23
8
  declare namespace PortalHost {
24
9
  var displayName: string;
25
10
  }
11
+ export default PortalHost;
26
12
  //# sourceMappingURL=portal-host.client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"portal-host.client.d.ts","sourceRoot":"","sources":["../../../src/components/portal-host.client.ts"],"names":[],"mappings":"AACA,OAAO,EAAuC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAG3E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAE/D;;;;GAIG;AACH,iBAAS,mBAAmB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;IAAE,KAAK,EAAE,gBAAgB,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,GAAG,SAAS,CAMlI;;;;AAGD;;;;GAIG;AACH,iBAAwB,UAAU,IAAI,SAAS,CAuB9C"}
1
+ {"version":3,"file":"portal-host.client.d.ts","sourceRoot":"","sources":["../../../src/components/portal-host.client.ts"],"names":[],"mappings":"AACA,OAAO,EAAuC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAmB3E;;;;GAIG;AACH,iBAAwB,UAAU,IAAI,SAAS,CAuB9C;kBAvBuB,UAAU;;;eAAV,UAAU"}
@@ -3,7 +3,7 @@ import _PortalHost from '../components/portal-host.client.js';
3
3
  * Renders the portal stack. Place this where portal layers should appear in the DOM.
4
4
  * Must be used within a `PortalProvider`.
5
5
  */
6
- export declare const PortalHost: (<AdditionalProps, ExactProps extends object = object>(props?: import("../main").MergedProps<typeof _PortalHost, AdditionalProps, ExactProps> | undefined, deps?: import("../main").DependencyList | undefined) => import("../main").NodeInstance<typeof _PortalHost>) & {
6
+ export declare const PortalHost: (<AdditionalProps, ExactProps extends object = object>(props?: import("../main").MergedProps<typeof _PortalHost, AdditionalProps, ExactProps> | undefined, deps?: import("../main").DependencyList) => import("../main").NodeInstance<typeof _PortalHost>) & {
7
7
  element: typeof _PortalHost;
8
8
  };
9
9
  //# sourceMappingURL=portal-host.d.ts.map
@@ -3,7 +3,7 @@ import _PortalProvider from '../components/portal-provider.client.js';
3
3
  * A component that provides portal context to its children.
4
4
  * Must wrap any components that use `usePortal()` or `PortalHost`.
5
5
  */
6
- export declare const PortalProvider: (<AdditionalProps, ExactProps extends object = object>(props?: import("../main").MergedProps<typeof _PortalProvider, AdditionalProps, ExactProps> | undefined, deps?: import("../main").DependencyList | undefined) => import("../main").NodeInstance<typeof _PortalProvider>) & {
6
+ export declare const PortalProvider: (<AdditionalProps, ExactProps extends object = object>(props?: import("../main").MergedProps<typeof _PortalProvider, AdditionalProps, ExactProps> | undefined, deps?: import("../main").DependencyList) => import("../main").NodeInstance<typeof _PortalProvider>) & {
7
7
  element: typeof _PortalProvider;
8
8
  };
9
9
  //# sourceMappingURL=portal-provider.d.ts.map
@@ -15,7 +15,7 @@
15
15
  * })
16
16
  * ```
17
17
  */
18
- export declare const Fragment: (<AdditionalProps, ExactProps extends object = object>(props?: import("../main").MergedProps<import("react").ExoticComponent<import("react").FragmentProps>, AdditionalProps, ExactProps> | undefined, deps?: import("../main").DependencyList | undefined) => import("../main").NodeInstance<import("react").ExoticComponent<import("react").FragmentProps>>) & {
18
+ export declare const Fragment: (<AdditionalProps, ExactProps extends object = object>(props?: import("../main").MergedProps<import("react").ExoticComponent<import("react").FragmentProps>, AdditionalProps, ExactProps> | undefined, deps?: import("../main").DependencyList) => import("../main").NodeInstance<import("react").ExoticComponent<import("react").FragmentProps>>) & {
19
19
  element: import("react").ExoticComponent<import("react").FragmentProps>;
20
20
  };
21
21
  /**
@@ -32,7 +32,7 @@ export declare const Fragment: (<AdditionalProps, ExactProps extends object = ob
32
32
  * })
33
33
  * ```
34
34
  */
35
- export declare const Activity: (<AdditionalProps, ExactProps extends object = object>(props: import("../main").MergedProps<import("react").ExoticComponent<import("react").ActivityProps>, AdditionalProps, ExactProps>, deps?: import("../main").DependencyList | undefined) => import("../main").NodeInstance<import("react").ExoticComponent<import("react").ActivityProps>>) & {
35
+ export declare const Activity: (<AdditionalProps, ExactProps extends object = object>(props: import("../main").MergedProps<import("react").ExoticComponent<import("react").ActivityProps>, AdditionalProps, ExactProps>, deps?: import("../main").DependencyList) => import("../main").NodeInstance<import("react").ExoticComponent<import("react").ActivityProps>>) & {
36
36
  element: import("react").ExoticComponent<import("react").ActivityProps>;
37
37
  };
38
38
  /**
@@ -49,7 +49,7 @@ export declare const Activity: (<AdditionalProps, ExactProps extends object = ob
49
49
  * })
50
50
  * ```
51
51
  */
52
- export declare const Suspense: (<AdditionalProps, ExactProps extends object = object>(props?: import("../main").MergedProps<import("react").ExoticComponent<import("react").SuspenseProps>, AdditionalProps, ExactProps> | undefined, deps?: import("../main").DependencyList | undefined) => import("../main").NodeInstance<import("react").ExoticComponent<import("react").SuspenseProps>>) & {
52
+ export declare const Suspense: (<AdditionalProps, ExactProps extends object = object>(props?: import("../main").MergedProps<import("react").ExoticComponent<import("react").SuspenseProps>, AdditionalProps, ExactProps> | undefined, deps?: import("../main").DependencyList) => import("../main").NodeInstance<import("react").ExoticComponent<import("react").SuspenseProps>>) & {
53
53
  element: import("react").ExoticComponent<import("react").SuspenseProps>;
54
54
  };
55
55
  //# sourceMappingURL=react.node.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"style-registry.client.d.ts","sourceRoot":"","sources":["../../../src/components/style-registry.client.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,KAAK,YAAY,EAAY,MAAM,OAAO,CAAA;AAWlE;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,YAAY,CAAA;CAAE,yGAqC7E"}
1
+ {"version":3,"file":"style-registry.client.d.ts","sourceRoot":"","sources":["../../../src/components/style-registry.client.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,KAAK,YAAY,EAAY,MAAM,OAAO,CAAA;AAWlE;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,YAAY,CAAA;CAAE,uGAqC7E"}
@@ -16,8 +16,8 @@ export interface StyledRendererProps<E extends NodeElement> {
16
16
  * @returns {JSX.Element} The rendered JSX element.
17
17
  */
18
18
  declare function StyledRenderer<E extends NodeElement, TProps extends Record<string, any>>({ element, children, ...props }: StyledRendererProps<E> & TProps): JSX.Element;
19
- export default StyledRenderer;
20
19
  declare namespace StyledRenderer {
21
20
  var displayName: string;
22
21
  }
22
+ export default StyledRenderer;
23
23
  //# sourceMappingURL=styled-renderer.client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled-renderer.client.d.ts","sourceRoot":"","sources":["../../../src/components/styled-renderer.client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,SAAS,EAAc,MAAM,OAAO,CAAA;AAE5D,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAInE,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,WAAW;IACxD,OAAO,EAAE,CAAC,CAAA;IACV,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,GAAG,EAAE,OAAO,CAAA;CACb;AAED;;;;;;;;;GASG;AACH,iBAAwB,cAAc,CAAC,CAAC,SAAS,WAAW,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,EAChG,OAAO,EACP,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,MAAM,GAAG,GAAG,CAAC,OAAO,CAoB/C"}
1
+ {"version":3,"file":"styled-renderer.client.d.ts","sourceRoot":"","sources":["../../../src/components/styled-renderer.client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,SAAS,EAAc,MAAM,OAAO,CAAA;AAE5D,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAInE,MAAM,WAAW,mBAAmB,CAAC,CAAC,SAAS,WAAW;IACxD,OAAO,EAAE,CAAC,CAAA;IACV,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,GAAG,EAAE,OAAO,CAAA;CACb;AAED;;;;;;;;;GASG;AACH,iBAAwB,cAAc,CAAC,CAAC,SAAS,WAAW,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,EAChG,OAAO,EACP,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,MAAM,GAAG,GAAG,CAAC,OAAO,CAoB/C;kBAxBuB,cAAc;;;eAAd,cAAc"}
@@ -2,7 +2,7 @@ import _ThemeProvider from '../components/theme-provider.client.js';
2
2
  /**
3
3
  * A component that provides a theme to its children.
4
4
  */
5
- export declare const ThemeProvider: (<AdditionalProps, ExactProps extends object = object>(props: import("../main").MergedProps<typeof _ThemeProvider, AdditionalProps, ExactProps>, deps?: import("../main").DependencyList | undefined) => import("../main").NodeInstance<typeof _ThemeProvider>) & {
5
+ export declare const ThemeProvider: (<AdditionalProps, ExactProps extends object = object>(props: import("../main").MergedProps<typeof _ThemeProvider, AdditionalProps, ExactProps>, deps?: import("../main").DependencyList) => import("../main").NodeInstance<typeof _ThemeProvider>) & {
6
6
  element: typeof _ThemeProvider;
7
7
  };
8
8
  //# sourceMappingURL=theme-provider.d.ts.map
@@ -1,5 +1,5 @@
1
1
  export declare const NO_STYLE_TAGS: readonly ["html", "head", "meta", "link", "script", "style", "noscript", "template", "slot", "base", "param", "source", "track", "wbr", "embed", "object", "iframe", "frame", "frameset", "applet", "bgsound", "noembed", "noframes"];
2
- export declare const noStyleTagsSet: Set<"applet" | "base" | "bgsound" | "embed" | "frame" | "frameset" | "head" | "html" | "iframe" | "link" | "meta" | "noembed" | "noframes" | "noscript" | "object" | "param" | "script" | "slot" | "source" | "style" | "template" | "track" | "wbr">;
2
+ export declare const noStyleTagsSet: Set<"object" | "html" | "head" | "meta" | "link" | "script" | "style" | "noscript" | "template" | "slot" | "base" | "param" | "source" | "track" | "wbr" | "embed" | "iframe" | "frame" | "frameset" | "applet" | "bgsound" | "noembed" | "noframes">;
3
3
  export type NO_STYLE_TAGS = typeof NO_STYLE_TAGS;
4
4
  export declare let __DEBUG__: boolean;
5
5
  export declare function setDebugMode(enabled: boolean): void;
@@ -1 +1 @@
1
- {"version":3,"file":"core.node.d.ts","sourceRoot":"","sources":["../../src/core.node.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,YAAY,EAElB,MAAM,OAAO,CAAA;AACd,OAAO,KAAK,EACV,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,YAAY,EACZ,SAAS,EACT,OAAO,EAER,MAAM,yBAAyB,CAAA;AAehC;;;;;;GAMG;AACH,qBAAa,QAAQ,CAAC,CAAC,SAAS,eAAe,GAAG,eAAe;IAC/D,OAAO,CAAC,MAAM,CAAC,UAAU,CAAI;IACtB,UAAU,EAAE,MAAM,CAA8B;IAEhD,OAAO,EAAE,CAAC,CAAA;IACV,QAAQ,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CA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AAC,GAAG;IAAE,OAAO,EAAE,CAAC,CAAA;CAAE,GACtC,CAAC,CAAC,eAAe,GAAG,SAAS,EAAE,UAAU,SAAS,MAAM,GAAG,MAAM,EAC/D,QAAQ,CAAC,EAAE,QAAQ,EACnB,KAAK,CAAC,EAAE,WAAW,CAAC,CAAC,EAAE,eAAe,EAAE,UAAU,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAA;CAAE,EAC1E,IAAI,CAAC,EAAE,cAAc,KAClB,YAAY,CAAC,CAAC,CAAC,CAAC,GAAG;IACtB,OAAO,EAAE,CAAC,CAAA;CACX,CAQJ"}
@@ -1 +1 @@
1
- import{Fragment as e,createElement as t}from"react";import{isValidElementType as n,isFragment as s}from"./helper/react-is.helper.js";import{getGlobalState as r,getComponentType as o,hasNoStyleTag as i,getElementTypeName as a}from"./helper/common.helper.js";import l from"./components/styled-renderer.client.js";import{__DEBUG__ as c}from"./constant/common.const.js";import{MountTrackerUtil as d}from"./util/mount-tracker.util.js";import h from"./components/meonode-unmounter.client.js";import{NavigationCacheManagerUtil as m}from"./util/navigation-cache-manager.util.js";import{NodeUtil as p}from"./util/node.util.js";const u=Symbol.for("@meonode/ui/BaseNode/elementCache"),g=Symbol.for("@meonode/ui/BaseNode/navigationStarted"),f=Symbol.for("@meonode/ui/BaseNode/renderContextPool"),y=Symbol.for("@meonode/ui/BaseNode/cacheCleanupRegistry");class C{static _idCounter=0;instanceId="m"+ ++C._idCounter;element;rawProps={};isBaseNode=!0;_props;_deps;stableKey;lastPropsObj;lastSignature;static get elementCache(){return r(u,()=>new Map)}static get _navigationStarted(){return r(g,()=>({value:!1})).value}static set _navigationStarted(e){r(g,()=>({value:!1})).value=e}static get renderContextPool(){return r(f,()=>[])}static acquireRenderContext(){const e=C.renderContextPool;return e.length>0?e.pop():{workStack:new Array(512),renderedElements:new Map}}static releaseRenderContext(e){C.renderContextPool.length<50&&e.workStack.length<2048&&(e.workStack.length=0,e.renderedElements.clear(),C.renderContextPool.push(e))}constructor(e,t={},s){if(!n(e)){const t=o(e);if(p.isNodeInstance(e))throw new Error("Invalid element type: MeoNode UI instance provided!");throw new Error(`Invalid element type: ${t} provided!`)}this.element=e,this.rawProps=t,this._deps=s;const{ref:r,children:i,...a}=t;this.stableKey=this._getStableKey(a),p.isServer||C._navigationStarted||(m.getInstance().start(),C._navigationStarted=!0)}get props(){return this._props||(this._props=p.processProps(this.rawProps,this.stableKey)),this._props}get dependencies(){return this._deps}_getStableKey({key:e,...t}){if(p.isServer)return;if(this.lastPropsObj===t)return this.lastSignature;this.lastPropsObj=t;const n=Object.keys(t),s=n.length;if(s>100){const e=p.extractCriticalProps(t,n);this.lastSignature=p.createPropSignature(this.element,e),c&&s>200&&console.warn(`MeoNode: Large props (${s} keys) on "${a(this.element)}". Consider splitting.`)}else this.lastSignature=p.createPropSignature(this.element,t);return null!=e?`${String(e)}:${this.lastSignature}`:this.lastSignature}static get cacheCleanupRegistry(){return r(y,()=>new FinalizationRegistry(e=>{const{cacheKey:t,instanceId:n}=e,s=C.elementCache.get(t);s?.instanceId===n&&C.elementCache.delete(t),d.isMounted(t)&&d.untrackMount(t)}))}render(n=!1){const r=p.shouldCacheElement(this)?C.elementCache.get(this.stableKey):void 0,o=p.shouldNodeUpdate(r?.prevDeps,this._deps,n);if(!o&&r?.renderedElement)return r.accessCount+=1,r.renderedElement;const a=!o,c=C.acquireRenderContext();let{workStack:d}=c;const{renderedElements:m}=c;let u=0;try{const n=e=>{if(e>d.length){const t=Math.max(e,d.length<<1),n=new Array(t);for(let e=0;e<u;e++)n[e]=d[e];d=n}};for(d[u++]={node:this,isProcessed:!1,blocked:a};u>0;){const r=d[u-1];if(!r){u--;continue}const{node:o,isProcessed:a,blocked:c}=r;if(a){u--;const{children:n,key:r,css:a,nativeProps:c,disableEmotion:d,...h}=o.props;let g=[];if(n){const e=Array.isArray(n)?n:[n],t=e.length;g=new Array(t);for(let n=0;n<t;n++){const t=e[n];if(p.isNodeInstance(t)){const e=m.get(t);if(!e)throw new Error(`[MeoNode] Missing rendered element for child node: ${t.stableKey}`);g[n]=e}else g[n]=t}}const f={...h,key:r,...c};let y;if(o.element===e||s(o.element))y=t(o.element,{key:r},...g);else{y=!d&&(a||!i(o.element))?t(l,{element:o.element,...f,css:a,suppressHydrationWarning:!0},...g):t(o.element,f,...g)}if(o!==this&&p.shouldCacheElement(o)){const e=C.elementCache.get(o.stableKey);if(e)e.prevDeps=o._deps,e.renderedElement=y,e.accessCount+=1;else{const e={prevDeps:o._deps,renderedElement:y,nodeRef:new WeakRef(o),createdAt:Date.now(),accessCount:1,instanceId:o.instanceId};C.elementCache.set(o.stableKey,e),C.cacheCleanupRegistry.register(o,{cacheKey:o.stableKey,instanceId:o.instanceId},o)}}m.set(o,y)}else{r.isProcessed=!0;const e=o.props.children;if(e){const t=Array.isArray(e)?e:[e];let s=0;for(let e=0;e<t.length;e++)p.isNodeInstance(t[e])&&s++;n(u+s);for(let e=t.length-1;e>=0;e--){const n=t[e];if(!p.isNodeInstance(n))continue;const s=p.shouldCacheElement(n)?C.elementCache.get(n.stableKey):void 0,r=p.shouldNodeUpdate(s?.prevDeps,n._deps,c);if(!r&&s?.renderedElement){m.set(n,s.renderedElement);continue}const o=c||!r;d[u++]={node:n,isProcessed:!1,blocked:o}}}}}let r=m.get(this);if(!p.isServer&&this.stableKey&&(r=t(h,{node:this},r)),p.shouldCacheElement(this)){const e=C.elementCache.get(this.stableKey);if(e)e.prevDeps=this._deps,e.renderedElement=r,e.accessCount+=1;else{const e={prevDeps:this._deps,renderedElement:r,nodeRef:new WeakRef(this),createdAt:Date.now(),accessCount:1,instanceId:this.instanceId};C.elementCache.set(this.stableKey,e),C.cacheCleanupRegistry.register(this,{cacheKey:this.stableKey,instanceId:this.instanceId},this)}}return r}finally{for(let e=0;e<u;e++)d[e]=null;C.releaseRenderContext({workStack:d,renderedElements:m})}}static clearCaches(){const e=Array.from(C.elementCache.keys());c&&console.log(`[MeoNode] clearCaches: Clearing ${e.length} entries`);for(const t of e){const e=C.elementCache.get(t);if(e){const n=e.nodeRef?.deref();if(n)try{C.cacheCleanupRegistry.unregister(n),n.lastSignature=void 0,n.lastPropsObj=void 0}catch{c&&console.warn(`[MeoNode] Could not unregister ${t} from FinalizationRegistry`)}}}C.elementCache.clear(),d.cleanup(),c&&console.log("[MeoNode] All caches cleared")}}function S(e,t={},n){return new C(e,t,n)}function b(e,t){const n=(n,s)=>S(e,{...t,...n},s);return n.element=e,n}function v(e,t){const n=(n,s,r)=>S(e,{...t,...s,children:n},r);return n.element=e,n}S.clearCaches=C.clearCaches;export{C as BaseNode,S as Node,v as createChildrenFirstNode,b as createNode};
1
+ import{Fragment as e,createElement as t}from"react";import{isValidElementType as n,isFragment as s}from"./helper/react-is.helper.js";import{getGlobalState as r,getComponentType as o,hasNoStyleTag as i,getElementTypeName as a}from"./helper/common.helper.js";import l from"./components/styled-renderer.client.js";import{__DEBUG__ as c}from"./constant/common.const.js";import{MountTrackerUtil as d}from"./util/mount-tracker.util.js";import h from"./components/meonode-unmounter.client.js";import{NavigationCacheManagerUtil as m}from"./util/navigation-cache-manager.util.js";import{NodeUtil as p}from"./util/node.util.js";const u=Symbol.for("@meonode/ui/BaseNode/elementCache"),g=Symbol.for("@meonode/ui/BaseNode/navigationStarted"),f=Symbol.for("@meonode/ui/BaseNode/renderContextPool"),y=Symbol.for("@meonode/ui/BaseNode/cacheCleanupRegistry");class C{static _idCounter=0;instanceId="m"+ ++C._idCounter;element;rawProps={};isBaseNode=!0;_props;_deps;stableKey;lastPropsObj;lastSignature;static get elementCache(){return r(u,()=>new Map)}static get _navigationStarted(){return r(g,()=>({value:!1})).value}static set _navigationStarted(e){r(g,()=>({value:!1})).value=e}static get renderContextPool(){return r(f,()=>[])}static acquireRenderContext(){const e=C.renderContextPool;return e.length>0?e.pop():{workStack:new Array(512),renderedElements:new Map}}static releaseRenderContext(e){C.renderContextPool.length<50&&e.workStack.length<2048&&(e.workStack.length=0,e.renderedElements.clear(),C.renderContextPool.push(e))}constructor(e,t={},s){if(!n(e)){const t=o(e);if(p.isNodeInstance(e))throw new Error("Invalid element type: MeoNode UI instance provided!");throw new Error(`Invalid element type: ${t} provided!`)}this.element=e,this.rawProps=t,this._deps=s;const{ref:r,children:i,...a}=t;this.stableKey=this._getStableKey(a),p.isServer||C._navigationStarted||(m.getInstance().start(),C._navigationStarted=!0)}get props(){return this._props||(this._props=p.processProps(this.rawProps,this.stableKey)),this._props}get dependencies(){return this._deps}_getStableKey({key:e,...t}){if(p.isServer)return;if(this.lastPropsObj===t)return this.lastSignature;this.lastPropsObj=t;const n=Object.keys(t),s=n.length;if(s>100){const e=p.extractCriticalProps(t,n);this.lastSignature=p.createPropSignature(this.element,e),c&&s>200&&console.warn(`MeoNode: Large props (${s} keys) on "${a(this.element)}". Consider splitting.`)}else this.lastSignature=p.createPropSignature(this.element,t);return null!=e?`${String(e)}:${this.lastSignature}`:this.lastSignature}static get cacheCleanupRegistry(){return r(y,()=>new FinalizationRegistry(e=>{const{cacheKey:t,instanceId:n}=e,s=C.elementCache.get(t);s?.instanceId===n&&C.elementCache.delete(t),d.isMounted(t)&&d.untrackMount(t)}))}render(n=!1){const r=p.shouldCacheElement(this)?C.elementCache.get(this.stableKey):void 0,o=p.shouldNodeUpdate(r?.prevDeps,this._deps,n);if(!o&&r?.renderedElement)return r.accessCount+=1,r.renderedElement;const a=!o,c=C.acquireRenderContext();let{workStack:d}=c;const{renderedElements:m}=c;let u=0;try{const n=e=>{if(e>d.length){const t=Math.max(e,d.length<<1),n=new Array(t);for(let e=0;e<u;e++)n[e]=d[e];d=n}};for(d[u++]={node:this,isProcessed:!1,blocked:a};u>0;){const r=d[u-1];if(!r){u--;continue}const{node:o,isProcessed:a,blocked:c}=r;if(a){u--;const{children:n,key:r,css:a,nativeProps:c,disableEmotion:d,...h}=o.props;let g=[];if(n){const e=Array.isArray(n)?n:[n],t=e.length;g=new Array(t);for(let n=0;n<t;n++){const t=e[n];if(p.isNodeInstance(t)){const e=m.get(t);if(!e)throw new Error(`[MeoNode] Missing rendered element for child node: ${t.stableKey}`);g[n]=e}else g[n]=t}}const f={...h,key:r,...c};let y;if(o.element===e||s(o.element))y=t(o.element,{key:r},...g);else{if(p.isServer&&"function"==typeof o.element&&!p.isClientReference(o.element)){const n=0===g.length?void 0:1===g.length?g[0]:g,s=void 0===n?f:{...f,children:n},i=o.element(s);y=p.isPromiseLike(i)?t(e,{key:r},i):p.isNodeInstance(i)?i.render():t(e,{key:r},i),m.set(o,y);continue}y=!d&&(a||!i(o.element))?t(l,{element:o.element,...f,css:a,suppressHydrationWarning:!0},...g):t(o.element,f,...g)}if(o!==this&&p.shouldCacheElement(o)){const e=C.elementCache.get(o.stableKey);if(e)e.prevDeps=o._deps,e.renderedElement=y,e.accessCount+=1;else{const e={prevDeps:o._deps,renderedElement:y,nodeRef:new WeakRef(o),createdAt:Date.now(),accessCount:1,instanceId:o.instanceId};C.elementCache.set(o.stableKey,e),C.cacheCleanupRegistry.register(o,{cacheKey:o.stableKey,instanceId:o.instanceId},o)}}m.set(o,y)}else{r.isProcessed=!0;const e=o.props.children;if(e){const t=Array.isArray(e)?e:[e];let s=0;for(let e=0;e<t.length;e++)p.isNodeInstance(t[e])&&s++;n(u+s);for(let e=t.length-1;e>=0;e--){const n=t[e];if(!p.isNodeInstance(n))continue;const s=p.shouldCacheElement(n)?C.elementCache.get(n.stableKey):void 0,r=p.shouldNodeUpdate(s?.prevDeps,n._deps,c);if(!r&&s?.renderedElement){m.set(n,s.renderedElement);continue}const o=c||!r;d[u++]={node:n,isProcessed:!1,blocked:o}}}}}let r=m.get(this);if(!p.isServer&&this.stableKey&&(r=t(h,{node:this},r)),p.shouldCacheElement(this)){const e=C.elementCache.get(this.stableKey);if(e)e.prevDeps=this._deps,e.renderedElement=r,e.accessCount+=1;else{const e={prevDeps:this._deps,renderedElement:r,nodeRef:new WeakRef(this),createdAt:Date.now(),accessCount:1,instanceId:this.instanceId};C.elementCache.set(this.stableKey,e),C.cacheCleanupRegistry.register(this,{cacheKey:this.stableKey,instanceId:this.instanceId},this)}}return r}finally{for(let e=0;e<u;e++)d[e]=null;C.releaseRenderContext({workStack:d,renderedElements:m})}}static clearCaches(){const e=Array.from(C.elementCache.keys());c&&console.log(`[MeoNode] clearCaches: Clearing ${e.length} entries`);for(const t of e){const e=C.elementCache.get(t);if(e){const n=e.nodeRef?.deref();if(n)try{C.cacheCleanupRegistry.unregister(n),n.lastSignature=void 0,n.lastPropsObj=void 0}catch{c&&console.warn(`[MeoNode] Could not unregister ${t} from FinalizationRegistry`)}}}C.elementCache.clear(),d.cleanup(),c&&console.log("[MeoNode] All caches cleared")}}function v(e,t={},n){return new C(e,t,n)}function S(e,t){const n=(n,s)=>v(e,{...t,...n},s);return n.element=e,n}function b(e,t){const n=(n,s,r)=>v(e,{...t,...s,children:n},r);return n.element=e,n}v.clearCaches=C.clearCaches;export{C as BaseNode,v as Node,b as createChildrenFirstNode,S as createNode};
@@ -35,7 +35,7 @@ export declare const getValueByPath: (obj: any, path: string) => any;
35
35
  * getComponentType(React.memo(() => <div/>)) // 'memo'
36
36
  * getComponentType(() => <div/>) // 'function'
37
37
  */
38
- export declare const getComponentType: (component?: NodeInstance | NodeElement) => string;
38
+ export declare const getComponentType: (component?: NodeElement | NodeInstance) => "class" | "forwardRef" | "memo" | "object" | "function" | "fragment" | "portal" | "profiler" | "strict-mode" | "suspense" | "suspense-list" | "context-consumer" | "context-provider" | "lazy" | "element" | "unknown" | string;
39
39
  /**
40
40
  * Generates a string name for an ElementType or ReactElement.
41
41
  *
@@ -1 +1 @@
1
- {"version":3,"file":"common.helper.d.ts","sourceRoot":"","sources":["../../../src/helper/common.helper.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAExF,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AAcvE;;;;;;;G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EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,GAAG,CAAC,CAMlE;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,GAAI,KAAK,GAAG,EAAE,MAAM,MAAM,QAEpD,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,GAC3B,YAAY,WAAW,GAAG,YAAY,KAEpC,OAAO,GACP,YAAY,GACZ,MAAM,GACN,QAAQ,GACR,UAAU,GACV,UAAU,GACV,QAAQ,GACR,UAAU,GACV,aAAa,GACb,UAAU,GACV,eAAe,GACf,kBAAkB,GAClB,kBAAkB,GAClB,MAAM,GACN,SAAS,GACT,SAAS,GACT,MAgBH,CAAA;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAsFxD;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,GAAG,CAAC,MAAM,CAA0B,CAAA;AAEjE;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,aAAa,CAAC,CAU3F;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,WAAW,EAAE,CAAC,SAAS,cAAc,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,cAAc,CAAC,CAUjH;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,GAAG,CAAC,EAAE,WAAW,GAAG,OAAO,CAGxD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAQlE"}
@@ -133,5 +133,5 @@ export declare const isValidElementType: <T>(type: T) => boolean;
133
133
  * @param {unknown} component Component to check
134
134
  * @returns {boolean} - True if component is a React class component
135
135
  */
136
- export declare const isReactClassComponent: (component: unknown) => component is React.ComponentType<{}>;
136
+ export declare const isReactClassComponent: (component: unknown) => component is React.ComponentType;
137
137
  //# sourceMappingURL=react-is.helper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-is.helper.d.ts","sourceRoot":"","sources":["../../../src/helper/react-is.helper.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB;;;GAGG;AACH,eAAO,MAAM,kBAAkB,eAA2C,CAAA;AAC1E,eAAO,MAAM,iBAAiB,eAA6B,CAAA;AAC3D,eAAO,MAAM,mBAAmB,eAA+B,CAAA;AAC/D,eAAO,MAAM,sBAAsB,eAAkC,CAAA;AACrE,eAAO,MAAM,mBAAmB,eAA+B,CAAA;AAC/D,eAAO,MAAM,mBAAmB,eAA+B,CAAA;AAC/D,eAAO,MAAM,mBAAmB,eAA+B,CAAA;AAC/D,eAAO,MAAM,kBAAkB,eAA8B,CAAA;AAC7D,eAAO,MAAM,sBAAsB,eAAkC,CAAA;AACrE,eAAO,MAAM,mBAAmB,eAA+B,CAAA;AAC/D,eAAO,MAAM,wBAAwB,eAAoC,CAAA;AACzE,eAAO,MAAM,eAAe,eAA2B,CAAA;AACvD,eAAO,MAAM,eAAe,eAA2B,CAAA;AACvD,eAAO,MAAM,0BAA0B,eAAsC,CAAA;AAC7E,eAAO,MAAM,sBAAsB,eAAuC,CAAA;AAC1E,eAAO,MAAM,mBAAmB,eAA+B,CAAA;AAE/D;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GACxB,OAAO,kBAAkB,GACzB,OAAO,iBAAiB,GACxB,OAAO,mBAAmB,GAC1B,OAAO,sBAAsB,GAC7B,OAAO,mBAAmB,GAC1B,OAAO,mBAAmB,GAC1B,OAAO,mBAAmB,GAC1B,OAAO,kBAAkB,GACzB,OAAO,sBAAsB,GAC7B,OAAO,mBAAmB,GAC1B,OAAO,wBAAwB,GAC/B,OAA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,CAAC,aAQ7E,CAAA"}
@@ -26,8 +26,8 @@ import type { PortalHandle, PortalLayerProps } from '../types/node.type.js';
26
26
  * ```
27
27
  */
28
28
  export declare function usePortal<T = any>(data?: T): {
29
- open: <P = T>(Component: import("react").ComponentType<PortalLayerProps<P>>, initialData?: P | undefined) => PortalHandle<P>;
30
- updateData: <T>(next: T) => void;
29
+ open: <P = T>(Component: React.ComponentType<PortalLayerProps<P>>, initialData?: P) => PortalHandle<P>;
30
+ updateData: <T_1>(next: T_1) => void;
31
31
  close: () => void;
32
32
  handle: import("react").RefObject<PortalHandle<any> | null>;
33
33
  };
@@ -1 +1 @@
1
- {"version":3,"file":"usePortal.d.ts","sourceRoot":"","sources":["../../../src/hook/usePortal.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAE7E;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,SAAS,CAAC,CAAC,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC;WAiBtC,CAAC;iBAQ4B,CAAC;;;EAUlC"}
1
+ {"version":3,"file":"usePortal.d.ts","sourceRoot":"","sources":["../../../src/hook/usePortal.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAE7E;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,SAAS,CAAC,CAAC,GAAG,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC;WAiBtC,CAAC,iBAAiB,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,KAAG,YAAY,CAAC,CAAC,CAAC;4BAQvD,GAAC;;;EAU3C"}
@@ -1,5 +1,5 @@
1
1
  import _StyleRegistry from '../components/style-registry.client';
2
- export declare const StyleRegistry: (<AdditionalProps, ExactProps extends object = object>(props: import("../main").MergedProps<typeof _StyleRegistry, AdditionalProps, ExactProps>, deps?: import("../main").DependencyList | undefined) => import("../main").NodeInstance<typeof _StyleRegistry>) & {
2
+ export declare const StyleRegistry: (<AdditionalProps, ExactProps extends object = object>(props: import("../main").MergedProps<typeof _StyleRegistry, AdditionalProps, ExactProps>, deps?: import("../main").DependencyList) => import("../main").NodeInstance<typeof _StyleRegistry>) & {
3
3
  element: typeof _StyleRegistry;
4
4
  };
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mount-tracker.util.d.ts","sourceRoot":"","sources":["../../../src/util/mount-tracker.util.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,eAAiB;IAExB,OAAO,CAAC,MAAM,CAAC,cAAc,CAA4B;IACzD,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAA4B;IAE5D;;OAEG;IACH,OAAc,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAE5C;IAED;;OAEG;IACH,OAAc,UAAU,CAAC,GAAG,EAAE,MAAM,QAOnC;IAED;;;;OAIG;IACH,OAAc,YAAY,CAAC,GAAG,EAAE,MAAM,WAsBrC;IAED;;;OAGG;IACH,OAAc,OAAO,SAMpB;CACF"}
1
+ {"version":3,"file":"mount-tracker.util.d.ts","sourceRoot":"","sources":["../../../src/util/mount-tracker.util.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,qBAAa,gBAAgB;IAC3B,OAAO;IAEP,OAAO,CAAC,MAAM,CAAC,cAAc,CAA4B;IACzD,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAA4B;IAE5D;;OAEG;WACW,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO;IAI7C;;OAEG;WACW,UAAU,CAAC,GAAG,EAAE,MAAM;IASpC;;;;OAIG;WACW,YAAY,CAAC,GAAG,EAAE,MAAM;IAwBtC;;;OAGG;WACW,OAAO;CAOtB"}
@@ -1 +1 @@
1
- {"version":3,"file":"navigation-cache-manager.util.d.ts","sourceRoot":"","sources":["../../../src/util/navigation-cache-manager.util.ts"],"names":[],"mappings":"AAIA,OAAO,CAAC,MAAM,CAAC,CAAC;IACd,UAAU,MAAM;QACd,4BAA4B,CAAC,EAAE,OAAO,CAAA;KACvC;CACF;AAED;;GAEG;AACH,qBAAa,0BAA0B;IACrC,OAAO,eAAiB;IAExB,OAAO,CAAC,MAAM,CAAC,SAAS,CAA0C;IAClE,OAAO,CAAC,MAAM,CAAC,kBAAkB,CAAwC;IACzE,OAAO,CAAC,MAAM,CAAC,qBAAqB,CAA2C;IAC/E,OAAO,CAAC,MAAM,CAAC,UAAU,CAAQ;IAEjC,OAAO,CAAC,YAAY,CAAQ;IAC5B,OAAO,CAAC,eAAe,CAA8B;IAErD,OAAc,WAAW,IAAI,0BAA0B,CAKtD;IAED;;OAEG;IACI,KAAK,SAaX;IAED;;;OAGG;IACH,OAAO,CAAC,KAAK;IAkBb;;OAEG;IACH,OAAO,CAAC,iBAAiB,CAsBxB;IAED;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAmB5B;;;OAGG;IACH,OAAO,CAAC,iBAAiB;CAW1B"}
1
+ {"version":3,"file":"navigation-cache-manager.util.d.ts","sourceRoot":"","sources":["../../../src/util/navigation-cache-manager.util.ts"],"names":[],"mappings":"AAIA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,4BAA4B,CAAC,EAAE,OAAO,CAAA;KACvC;CACF;AAED;;GAEG;AACH,qBAAa,0BAA0B;IACrC,OAAO;IAEP,OAAO,CAAC,MAAM,CAAC,SAAS,CAA0C;IAClE,OAAO,CAAC,MAAM,CAAC,kBAAkB,CAAwC;IACzE,OAAO,CAAC,MAAM,CAAC,qBAAqB,CAA2C;IAC/E,OAAO,CAAC,MAAM,CAAC,UAAU,CAAQ;IAEjC,OAAO,CAAC,YAAY,CAAQ;IAC5B,OAAO,CAAC,eAAe,CAA8B;WAEvC,WAAW,IAAI,0BAA0B;IAOvD;;OAEG;IACI,KAAK;IAeZ;;;OAGG;IACH,OAAO,CAAC,KAAK;IAkBb;;OAEG;IACH,OAAO,CAAC,iBAAiB,CAsBxB;IAED;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAmB5B;;;OAGG;IACH,OAAO,CAAC,iBAAiB;CAW1B"}
@@ -12,6 +12,17 @@ export declare class NodeUtil {
12
12
  private static get _functionSignatureCache();
13
13
  private static readonly CRITICAL_PROPS;
14
14
  private static _propFuncCache;
15
+ /**
16
+ * Runtime type guard for Promise-like values.
17
+ * Useful for server-side component invocation paths where a function
18
+ * may return either a sync node/element or an async result.
19
+ */
20
+ static isPromiseLike<T = unknown>(value: unknown): value is PromiseLike<T>;
21
+ /**
22
+ * Detects React/Next client reference functions used by RSC.
23
+ * These must not be invoked on the server.
24
+ */
25
+ static isClientReference(value: unknown): boolean;
15
26
  /**
16
27
  * Type guard to check if an object is a NodeInstance.
17
28
  *
@@ -160,10 +171,10 @@ export declare class NodeUtil {
160
171
  * @param disableEmotion Flag to disable emotion styling if needed.
161
172
  * @returns The rendered ReactNode.
162
173
  */
163
- static renderProcessedNode({ processedElement, passedKey, disableEmotion }: {
174
+ static renderProcessedNode({ processedElement, passedKey, disableEmotion, }: {
164
175
  processedElement: NodeElement;
165
176
  passedKey?: string;
166
177
  disableEmotion?: boolean;
167
- }): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | React.ReactPortal | null | undefined> | React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined;
178
+ }): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.ReactElement<any, string | React.JSXElementConstructor<any>> | null | undefined;
168
179
  }
169
180
  //# sourceMappingURL=node.util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file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,CAAC,MAAM,CAAC,gBAAgB;IAkB/B;;;;;;;OAOG;WACW,kBAAkB,CAAC,CAAC,SAAS,YAAY,EAAE,IAAI,EAAE,CAAC,GAAG,IAAI,IAAI,CAAC,GAAG;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,cAAc,CAAA;KAAE;IAIlI;;;;;;;;OAQG;WACW,gBAAgB,CAAC,QAAQ,EAAE,cAAc,GAAG,SAAS,EAAE,OAAO,EAAE,cAAc,GAAG,SAAS,EAAE,aAAa,EAAE,OAAO,GAAG,OAAO;IA8B1I;;;;;;;;;;OAUG;WACW,cAAc,CAAC,IAAI,EAAE,WAAW,EAAE,cAAc,CAAC,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,WAAW;IAuE1G;;;;;;OAMG;WACW,eAAe,CAAC,CAAC,SAAS,eAAe,EAAE,IAAI,EAAE,WAAW,GAAG,IAAI,IAAI,YAAY,CAAC,CAAC,CAAC;IAYpG;;;;;;;;;;;OAWG;WACW,gBAAgB,CAAC,CAAC,SAAS,eAAe,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,EAAE,qBAAqB,CAAC,CAAC,CAAC,GAAG,SAAS,GAAG,IAAI,GAAG,SAAS;IA6D7I;;;;;;;;;;;;OAYG;WACW,mBAAmB,CAAC,EAChC,gBAAgB,EAChB,SAAS,EACT,cAAc,GACf,EAAE;QACD,gBAAgB,EAAE,WAAW,CAAA;QAC7B,SAAS,CAAC,EAAE,MAAM,CAAA;QAClB,cAAc,CAAC,EAAE,OAAO,CAAA;KACzB;CA+BF"}
@@ -1 +1 @@
1
- import e,{isValidElement as t,createElement as r}from"react";import{isReactClassComponent as o,isMemo as n,isForwardRef as s}from"../helper/react-is.helper.js";import{getGlobalState as i,getElementTypeName as c,omitUndefined as a,getCSSProps as d,getDOMProps as l}from"../helper/common.helper.js";import{__DEBUG__ as p}from"../constant/common.const.js";import{BaseNode as f}from"../core.node.js";const u=Symbol.for("@meonode/ui/NodeUtil/functionSignatureCache");class h{constructor(){}static isServer="undefined"==typeof window;static get _functionSignatureCache(){return i(u,()=>new WeakMap)}static CRITICAL_PROPS=new Set(["css","className","disableEmotion","props"]);static _propFuncCache=new WeakMap;static isNodeInstance=e=>e instanceof f;static isStyleProp=h.isServer||"undefined"==typeof document?()=>!1:e=>e in document.body.style;static hashString(e){let t=2166136261,r=5381;for(let o=0;o<e.length;o++){const n=e.charCodeAt(o);t^=n,t=Math.imul(t,16777619),r=Math.imul(r,33)^n}return`${(t>>>0).toString(36)}_${(r>>>0).toString(36)}`}static hashCSS(e){const t=Object.keys(e);let r=t.length;for(let o=0;o<Math.min(t.length,10);o++){const n=t[o],s=e[n];r=(r<<5)-r+n.charCodeAt(0),r&=r,"string"==typeof s&&(r=(r<<5)-r+s.length)}return r.toString(36)}static createPropSignature(e,t){if(h.isServer)return;const r=c(e),o=Object.keys(t);o.length>1&&o.sort();const n=[`${r}:`];if("function"==typeof e){let t=h._functionSignatureCache.get(e);t||(t=h.hashString(e.toString()),h._functionSignatureCache.set(e,t)),n.push(t)}for(const e of o){const r=t[e];let o;const s=typeof r;if("string"===s||"number"===s||"boolean"===s)o=`${e}:${r};`;else if(null===r)o=`${e}:null;`;else if(void 0===r)o=`${e}:undefined;`;else if("css"===e&&"object"==typeof r)o=`css:${this.hashCSS(r)};`;else if(Array.isArray(r)){const t=r.filter(e=>{const t=typeof e;return"string"===t||"number"===t||"boolean"===t||null===e});o=t.length===r.length?`${e}:[${t.join(",")}];`:`${e}:[${r.length}];`}else if(r&&r.isBaseNode)o=`${e}:${r.stableKey};`;else if("function"===s){let t=h._propFuncCache.get(r);t||(t=h.hashString(r.toString()),h._propFuncCache.set(r,t)),o=`${e}:${t};`}else{o=`${e}:{${Object.keys(r).sort().join(",")}};`}n.push(o)}return h.hashString(n.join(","))}static extractCriticalProps(e,t){const r={_keyCount:t.length};let o=0;for(const n of t){if(o>=50)break;if(h.CRITICAL_PROPS.has(n)){r[n]=e[n],o++;continue}const s=n.charCodeAt(0);111!==s||110!==n.charCodeAt(1)?!(97===s&&114===n.charCodeAt(1)&&105===n.charCodeAt(2)&&97===n.charCodeAt(3)||100===s&&97===n.charCodeAt(1)&&116===n.charCodeAt(2)&&97===n.charCodeAt(3))?t.length<=100&&h.isStyleProp(n)&&(r[n]=e[n],o++):(r[n]=e[n],o++):(r[n]=e[n],o++)}return r}static processProps(e={},t){const{ref:r,key:o,children:n,css:s,props:i={},disableEmotion:c,...p}=e;if(0===Object.keys(p).length&&!s)return a({ref:r,key:o,disableEmotion:c,nativeProps:a(i),children:h._processChildren(n,c)});const f={},u={},y=Object.keys(p);for(let e=0;e<y.length;e++){const t=y[e],r=p[t],o=typeof r;"string"===o||"number"===o||"boolean"===o?f[t]=r:u[t]=r}const m=d(f),b=d(u),g=l(p),C={...m,...b,...s},w=h._processChildren(n,c,t);return a({ref:r,key:o,css:C,...g,disableEmotion:c,nativeProps:a(i),children:w})}static _processChildren(e,t,r){if(e)return"function"==typeof e?e:Array.isArray(e)?1===e.length?h.processRawNode(e[0],t,`${r}_0`):e.map((e,o)=>h.processRawNode(e,t,`${r}_${o}`)):h.processRawNode(e,t,r)}static shouldCacheElement(e){return!h.isServer&&!!e.stableKey&&!!e.dependencies}static shouldNodeUpdate(e,t,r){if(h.isServer)return!0;if(r)return!1;if(void 0===t)return!0;if(void 0===e)return!0;if(t.length!==e.length)return!0;for(let r=0;r<t.length;r++)if(!Object.is(t[r],e[r]))return!0;return!1}static processRawNode(r,i,c){if(null==r||"string"==typeof r||"number"==typeof r||"boolean"==typeof r)return r;if(h.isNodeInstance(r)){if(c||i&&!r.rawProps.disableEmotion){const e=new f(r.element,r.rawProps,r.dependencies);return e.stableKey=`${c}:${e.stableKey}`,i&&!e.rawProps.disableEmotion&&(e.rawProps.disableEmotion=!0),e}return r}if(h.isFunctionChild(r))return new f(h.functionRenderer,{props:{render:r,disableEmotion:i}},void 0);if(t(r)){if("string"==typeof r.type){const{style:e,...t}=r.props,o={...t,...e||{}};return new f(r.type,{...o,...null!==r.key&&void 0!==r.key?{key:r.key}:{},disableEmotion:i},void 0)}return new f(r.type,{...r.props,...null!==r.key&&void 0!==r.key?{key:r.key}:{},disableEmotion:i},void 0)}return o(r)||n(r)||s(r)?new f(r,{disableEmotion:i},void 0):r instanceof e.Component?h.processRawNode(r.render(),i,c):r}static isFunctionChild(e){if("function"!=typeof e||o(e)||n(e)||s(e))return!1;try{return!(e.prototype&&"function"==typeof e.prototype.render)}catch(e){return p&&console.error("MeoNode: Error checking if a node is a function child.",e),!0}}static functionRenderer({render:t,disableEmotion:r}){let o;try{o=t()}catch(e){p&&console.error("MeoNode: Error executing function-as-a-child.",e),o=null}if(null==o||"string"==typeof o||"number"==typeof o||"boolean"==typeof o)return o;if(h.isNodeInstance(o))return r&&!o.rawProps.disableEmotion?new f(o.element,{...o.rawProps,disableEmotion:!0}).render():o.render();if(Array.isArray(o)){const e=(e,t)=>{try{return`${c(e)}-${t}`}catch(e){return p&&console.error("MeoNode: Could not determine element type name for key in function-as-a-child.",e),`item-${t}`}};return o.map((t,o)=>h.renderProcessedNode({processedElement:h.processRawNode(t,r),passedKey:e(t,o),disableEmotion:r}))}if(o instanceof e.Component)return h.renderProcessedNode({processedElement:h.processRawNode(o.render(),r),disableEmotion:r});const n=h.processRawNode(o,r);return n?h.renderProcessedNode({processedElement:n,disableEmotion:r}):o}static renderProcessedNode({processedElement:t,passedKey:n,disableEmotion:s}){const i={};if(void 0!==n&&(i.key=n),h.isNodeInstance(t)){const e=t.rawProps?.key;return t.rawProps.disableEmotion=s,e===n?t.render():new f(t.element,{...t.rawProps,...i}).render()}return o(t)?new f(t,{...i,disableEmotion:s}).render():t instanceof e.Component?t.render():"function"==typeof t?r(t,{key:n}):t}}export{h as NodeUtil};
1
+ import e,{isValidElement as t,createElement as o}from"react";import{isReactClassComponent as r,isMemo as n,isForwardRef as s}from"../helper/react-is.helper.js";import{getGlobalState as i,getElementTypeName as c,omitUndefined as a,getCSSProps as l,getDOMProps as d}from"../helper/common.helper.js";import{__DEBUG__ as p}from"../constant/common.const.js";import{BaseNode as f}from"../core.node.js";const u=Symbol.for("@meonode/ui/NodeUtil/functionSignatureCache");class h{constructor(){}static isServer="undefined"==typeof window;static get _functionSignatureCache(){return i(u,()=>new WeakMap)}static CRITICAL_PROPS=new Set(["css","className","disableEmotion","props"]);static _propFuncCache=new WeakMap;static isPromiseLike(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}static isClientReference(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&e.$$typeof===Symbol.for("react.client.reference")}static isNodeInstance=e=>e instanceof f;static isStyleProp=h.isServer||"undefined"==typeof document?()=>!1:e=>e in document.body.style;static hashString(e){let t=2166136261,o=5381;for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);t^=n,t=Math.imul(t,16777619),o=Math.imul(o,33)^n}return`${(t>>>0).toString(36)}_${(o>>>0).toString(36)}`}static hashCSS(e){const t=Object.keys(e);let o=t.length;for(let r=0;r<Math.min(t.length,10);r++){const n=t[r],s=e[n];o=(o<<5)-o+n.charCodeAt(0),o&=o,"string"==typeof s&&(o=(o<<5)-o+s.length)}return o.toString(36)}static createPropSignature(e,t){if(h.isServer)return;const o=c(e),r=Object.keys(t);r.length>1&&r.sort();const n=[`${o}:`];if("function"==typeof e){let t=h._functionSignatureCache.get(e);t||(t=h.hashString(e.toString()),h._functionSignatureCache.set(e,t)),n.push(t)}for(const e of r){const o=t[e];let r;const s=typeof o;if("string"===s||"number"===s||"boolean"===s)r=`${e}:${o};`;else if(null===o)r=`${e}:null;`;else if(void 0===o)r=`${e}:undefined;`;else if("css"===e&&"object"==typeof o)r=`css:${this.hashCSS(o)};`;else if(Array.isArray(o)){const t=o.filter(e=>{const t=typeof e;return"string"===t||"number"===t||"boolean"===t||null===e});r=t.length===o.length?`${e}:[${t.join(",")}];`:`${e}:[${o.length}];`}else if(o&&o.isBaseNode)r=`${e}:${o.stableKey};`;else if("function"===s){let t=h._propFuncCache.get(o);t||(t=h.hashString(o.toString()),h._propFuncCache.set(o,t)),r=`${e}:${t};`}else{r=`${e}:{${Object.keys(o).sort().join(",")}};`}n.push(r)}return h.hashString(n.join(","))}static extractCriticalProps(e,t){const o={_keyCount:t.length};let r=0;for(const n of t){if(r>=50)break;if(h.CRITICAL_PROPS.has(n)){o[n]=e[n],r++;continue}const s=n.charCodeAt(0);111!==s||110!==n.charCodeAt(1)?!(97===s&&114===n.charCodeAt(1)&&105===n.charCodeAt(2)&&97===n.charCodeAt(3)||100===s&&97===n.charCodeAt(1)&&116===n.charCodeAt(2)&&97===n.charCodeAt(3))?t.length<=100&&h.isStyleProp(n)&&(o[n]=e[n],r++):(o[n]=e[n],r++):(o[n]=e[n],r++)}return o}static processProps(e={},t){const{ref:o,key:r,children:n,css:s,props:i={},disableEmotion:c,...p}=e;if(0===Object.keys(p).length&&!s)return a({ref:o,key:r,disableEmotion:c,nativeProps:a(i),children:h._processChildren(n,c)});const f={},u={},y=Object.keys(p);for(let e=0;e<y.length;e++){const t=y[e],o=p[t],r=typeof o;"string"===r||"number"===r||"boolean"===r?f[t]=o:u[t]=o}const m=l(f),b=l(u),g=d(p),C={...m,...b,...s},w=h._processChildren(n,c,t);return a({ref:o,key:r,css:C,...g,disableEmotion:c,nativeProps:a(i),children:w})}static _processChildren(e,t,o){if(e)return"function"==typeof e?e:Array.isArray(e)?1===e.length?h.processRawNode(e[0],t,`${o}_0`):e.map((e,r)=>h.processRawNode(e,t,`${o}_${r}`)):h.processRawNode(e,t,o)}static shouldCacheElement(e){return!h.isServer&&!!e.stableKey&&!!e.dependencies}static shouldNodeUpdate(e,t,o){if(h.isServer)return!0;if(o)return!1;if(void 0===t)return!0;if(void 0===e)return!0;if(t.length!==e.length)return!0;for(let o=0;o<t.length;o++)if(!Object.is(t[o],e[o]))return!0;return!1}static processRawNode(o,i,c){if(null==o||"string"==typeof o||"number"==typeof o||"boolean"==typeof o)return o;if(h.isNodeInstance(o)){if(c||i&&!o.rawProps.disableEmotion){const e=new f(o.element,o.rawProps,o.dependencies);return e.stableKey=`${c}:${e.stableKey}`,i&&!e.rawProps.disableEmotion&&(e.rawProps.disableEmotion=!0),e}return o}if(h.isFunctionChild(o))return new f(h.functionRenderer,{props:{render:o,disableEmotion:i}},void 0);if(t(o)){if("string"==typeof o.type){const{style:e,...t}=o.props,r={...t,...e||{}};return new f(o.type,{...r,...null!==o.key&&void 0!==o.key?{key:o.key}:{},disableEmotion:i},void 0)}return new f(o.type,{...o.props,...null!==o.key&&void 0!==o.key?{key:o.key}:{},disableEmotion:i},void 0)}return r(o)||n(o)||s(o)?new f(o,{disableEmotion:i},void 0):o instanceof e.Component?h.processRawNode(o.render(),i,c):o}static isFunctionChild(e){if("function"!=typeof e||r(e)||n(e)||s(e))return!1;try{return!(e.prototype&&"function"==typeof e.prototype.render)}catch(e){return p&&console.error("MeoNode: Error checking if a node is a function child.",e),!0}}static functionRenderer({render:t,disableEmotion:o}){let r;try{r=t()}catch(e){p&&console.error("MeoNode: Error executing function-as-a-child.",e),r=null}if(null==r||"string"==typeof r||"number"==typeof r||"boolean"==typeof r)return r;if(h.isNodeInstance(r))return o&&!r.rawProps.disableEmotion?new f(r.element,{...r.rawProps,disableEmotion:!0}).render():r.render();if(Array.isArray(r)){const e=(e,t)=>{try{return`${c(e)}-${t}`}catch(e){return p&&console.error("MeoNode: Could not determine element type name for key in function-as-a-child.",e),`item-${t}`}};return r.map((t,r)=>h.renderProcessedNode({processedElement:h.processRawNode(t,o),passedKey:e(t,r),disableEmotion:o}))}if(r instanceof e.Component)return h.renderProcessedNode({processedElement:h.processRawNode(r.render(),o),disableEmotion:o});const n=h.processRawNode(r,o);return n?h.renderProcessedNode({processedElement:n,disableEmotion:o}):r}static renderProcessedNode({processedElement:t,passedKey:n,disableEmotion:s}){const i={};if(void 0!==n&&(i.key=n),h.isNodeInstance(t)){const e=t.rawProps?.key;return t.rawProps.disableEmotion=s,e===n?t.render():new f(t.element,{...t.rawProps,...i}).render()}return r(t)?new f(t,{...i,disableEmotion:s}).render():t instanceof e.Component?t.render():"function"==typeof t?o(t,{key:n}):t}}export{h as NodeUtil};
@@ -36,8 +36,8 @@ export declare class ThemeUtil {
36
36
  * object references for unchanged parts of the tree, which is critical for
37
37
  * React's reconciliation and memoization.
38
38
  */
39
- static resolveObjWithTheme: <O extends Record<string, unknown>>(obj: O, theme?: Theme | undefined, options?: {
40
- processFunctions?: boolean | undefined;
39
+ static resolveObjWithTheme: <O extends Record<string, unknown>>(obj: O, theme?: Theme, options?: {
40
+ processFunctions?: boolean;
41
41
  }) => O;
42
42
  /**
43
43
  * Resolves default CSS styles to fix common flexbox layout issues.
@@ -1 +1 @@
1
- {"version":3,"file":"theme.util.d.ts","sourceRoot":"","sources":["../../../src/util/theme.util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAG7D,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CACvB;AAED,qBAAa,SAAS;IACpB,OAAO,eAAiB;IAExB;;;;;;;;;;;;;;;;;OAiBG;IACH,OAAc,kBAAkB,CAAC,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,cAAc,GAAG,IAAI,CA2BnF;IAED,OAAc,aAAa,uDAM1B;IAED;;;;;;;;OAQG;IACH,OAAc,mBAAmB,GAAI,CAAC;;YAsHrC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqDG;IACH,OAAc,mBAAmB,yBAmEhC;CACF"}
1
+ {"version":3,"file":"theme.util.d.ts","sourceRoot":"","sources":["../../../src/util/theme.util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAG7D,UAAU,cAAc;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CACvB;AAED,qBAAa,SAAS;IACpB,OAAO;IAEP;;;;;;;;;;;;;;;;;OAiBG;WACW,kBAAkB,CAAC,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,cAAc,GAAG,IAAI;IA6BpF,OAAc,aAAa,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAM/E;IAED;;;;;;;;OAQG;IACH,OAAc,mBAAmB,GAAI,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,CAAC,EAAE,QAAQ,KAAK,EAAE,UAAS;QAAE,gBAAgB,CAAC,EAAE,OAAO,CAAA;KAAO,KAAG,CAAC,CAsH9I;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqDG;IACH,OAAc,mBAAmB,GAAI,OAAO,OAAO,QAmElD;CACF"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@meonode/ui",
3
3
  "description": "A structured approach to component composition, direct CSS-first prop styling, built-in theming, smart prop handling (including raw property pass-through), and dynamic children.",
4
- "version": "1.2.0",
4
+ "version": "1.3.0-beta.1",
5
5
  "type": "module",
6
6
  "main": "./dist/main.js",
7
7
  "types": "./dist/main.d.ts",
@@ -29,19 +29,18 @@
29
29
  "README.md"
30
30
  ],
31
31
  "scripts": {
32
- "watch:build": "npx nodemon --watch src --ext ts,tsx,js,json --exec \"yarn build\"",
33
- "lint": "eslint --fix",
34
- "test": "NODE_OPTIONS='--expose-gc' node --stack-size=10000 --max-old-space-size=8192 --experimental-vm-modules $(yarn bin jest) --ci --verbose --testPathIgnorePatterns=\"tests/performance.test.ts\" --testPathIgnorePatterns=\"tests/react-createelement-comparison.test.ts\"",
35
- "test:perf": "NODE_OPTIONS='--expose-gc' node --stack-size=10000 --max-old-space-size=8192 --experimental-vm-modules $(yarn bin jest) --ci --verbose tests/performance.test.ts tests/react-createelement-comparison.test.ts",
36
- "test:all": "NODE_OPTIONS='--expose-gc' node --stack-size=10000 --max-old-space-size=8192 --experimental-vm-modules $(yarn bin jest) --ci --verbose",
37
- "prebuild": "yarn lint && yarn tsgo --noEmit && yarn test",
38
- "build": "yarn prebuild && rm -rf ./dist && rollup -c rollup.config.ts && tsgo -p tsconfig.build.json --diagnostics && tsc-alias -p tsconfig.build.json",
39
- "publish:prerelease": "./prepublish.sh && yarn build && yarn version -i prerelease && yarn npm publish --tag next",
40
- "publish:patch": "./prepublish.sh && yarn build && yarn version -i patch && yarn npm publish --tag latest",
41
- "publish:preminor": "./prepublish.sh && yarn build && yarn version -i preminor && yarn npm publish --tag next",
42
- "publish:minor": "./prepublish.sh && yarn build && yarn version -i minor && yarn npm publish --tag latest",
43
- "publish:premajor": "./prepublish.sh && yarn build && yarn version -i premajor && yarn npm publish --tag next",
44
- "publish:major": "./prepublish.sh && yarn build && yarn version -i major && yarn npm publish --tag latest",
32
+ "watch:build": "npx nodemon --watch src --ext ts,tsx,js,json --exec \"bun run build\"",
33
+ "lint": "eslint --fix && tsc --noEmit",
34
+ "test": "NODE_OPTIONS='--expose-gc' node --stack-size=10000 --max-old-space-size=8192 --experimental-vm-modules $(bun pm bin)/jest --ci --verbose --testPathIgnorePatterns=\"tests/performance.test.ts\" --testPathIgnorePatterns=\"tests/react-createelement-comparison.test.ts\" --testPathIgnorePatterns=\"tests/rsc-integration.test.ts\" --testPathIgnorePatterns=\"tests/build-output.test.ts\"",
35
+ "test:perf": "NODE_OPTIONS='--expose-gc' node --stack-size=10000 --max-old-space-size=8192 --experimental-vm-modules $(bun pm bin)/jest --ci --verbose tests/performance.test.ts tests/react-createelement-comparison.test.ts",
36
+ "test:all": "NODE_OPTIONS='--expose-gc' node --stack-size=10000 --max-old-space-size=8192 --experimental-vm-modules $(bun pm bin)/jest --ci --verbose --testPathIgnorePatterns=\"tests/rsc-integration.test.ts\" --testPathIgnorePatterns=\"tests/build-output.test.ts\"",
37
+ "test:rsc": "NODE_OPTIONS='--experimental-vm-modules' node $(bun pm bin)/jest --config jest.integration.config.ts --ci --verbose --runInBand",
38
+ "prepare:rsc-fixture": "cd tests/rsc-fixtures/next-app && bun install",
39
+ "verify": "bun run lint && bun run tsc --noEmit && bun run test && bun run prepare:rsc-fixture && bun run test:rsc",
40
+ "build": "rm -rf ./dist && rollup -c rollup.config.ts --configPlugin typescript && tsc -p tsconfig.build.json --diagnostics && tsc-alias -p tsconfig.build.json",
41
+ "semantic-release": "semantic-release",
42
+ "release": "semantic-release",
43
+ "release:dry": "semantic-release --dry-run",
45
44
  "prepare": "husky"
46
45
  },
47
46
  "dependencies": {
@@ -61,6 +60,10 @@
61
60
  "@rollup/plugin-node-resolve": "^16.0.3",
62
61
  "@rollup/plugin-terser": "^0.4.4",
63
62
  "@rollup/plugin-typescript": "^12.3.0",
63
+ "@semantic-release/commit-analyzer": "^13.0.1",
64
+ "@semantic-release/github": "^12.0.6",
65
+ "@semantic-release/npm": "^13.1.5",
66
+ "@semantic-release/release-notes-generator": "^14.1.0",
64
67
  "@testing-library/dom": "^10.4.1",
65
68
  "@testing-library/jest-dom": "^6.9.1",
66
69
  "@testing-library/react": "^16.3.2",
@@ -70,7 +73,6 @@
70
73
  "@types/react-router-dom": "^5.3.3",
71
74
  "@typescript-eslint/eslint-plugin": "^8.55.0",
72
75
  "@typescript-eslint/parser": "^8.55.0",
73
- "@typescript/native-preview": "^7.0.0-dev.20260214.1",
74
76
  "cli-table3": "^0.6.5",
75
77
  "eslint": "^9.39.2",
76
78
  "eslint-plugin-jsdoc": "^61.7.1",
@@ -87,19 +89,22 @@
87
89
  "rollup": "^4.57.1",
88
90
  "rollup-plugin-preserve-directives": "^0.4.0",
89
91
  "rollup-plugin-tsconfig-paths": "^1.5.2",
92
+ "semantic-release": "^25.0.3",
90
93
  "ts-jest": "^29.4.6",
91
94
  "tsc-alias": "^1.8.16",
92
95
  "tslib": "^2.8.1",
93
- "typescript": "^5.9.3",
96
+ "typescript": "^6",
94
97
  "typescript-eslint": "^8.55.0",
95
98
  "whatwg-fetch": "^3.6.20"
96
99
  },
97
- "packageManager": "yarn@4.12.0",
98
100
  "peerDependencies": {
99
101
  "@emotion/cache": ">=11.14.0",
100
102
  "react": ">=19.2.0",
101
103
  "react-dom": ">=19.2.0"
102
104
  },
105
+ "overrides": {
106
+ "parse-json": "5.2.0"
107
+ },
103
108
  "repository": {
104
109
  "type": "git",
105
110
  "url": "git+https://github.com/l7aromeo/meonode-ui.git"
@@ -109,7 +114,8 @@
109
114
  "url": "https://github.com/l7aromeo/meonode-ui/issues"
110
115
  },
111
116
  "publishConfig": {
112
- "access": "public"
117
+ "access": "public",
118
+ "provenance": true
113
119
  },
114
120
  "license": "MIT",
115
121
  "keywords": [
@@ -132,4 +138,4 @@
132
138
  "meonode-ui",
133
139
  "meonode"
134
140
  ]
135
- }
141
+ }