@meonode/ui 0.1.30 → 0.1.31
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.
- package/dist/core.node.d.ts +26 -26
- package/dist/core.node.d.ts.map +1 -1
- package/dist/core.node.js +38 -20
- package/dist/json/css-properties.json +1 -0
- package/dist/node.type.d.ts +29 -0
- package/dist/node.type.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/core.node.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ComponentNode, NodeElement, NodeInstance, NodeProps } from './node.type.js';
|
|
3
|
-
import { type Root as ReactDOMRoot } from 'react-dom/client';
|
|
2
|
+
import type { ComponentNode, NodeElement, NodeInstance, NodeProps, PortalLauncher, PortalLauncherWithFixedProviders, PortalProps } from './node.type.js';
|
|
4
3
|
/**
|
|
5
4
|
* Factory function to create a BaseNode instance.
|
|
6
5
|
* @param element The React element type.
|
|
@@ -34,32 +33,33 @@ export declare function Component<P extends Record<string, any>>(component: (pro
|
|
|
34
33
|
children?: NodeElement;
|
|
35
34
|
}) => ComponentNode): (props?: any) => React.ReactNode;
|
|
36
35
|
/**
|
|
37
|
-
* Creates a portal
|
|
38
|
-
*
|
|
39
|
-
* of their parent container's DOM structure while maintaining React context and event bubbling.
|
|
36
|
+
* Creates a portal component that renders its content outside the normal DOM hierarchy.
|
|
37
|
+
* Supports wrapping the portal content with provider components for context/theme inheritance.
|
|
40
38
|
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* @
|
|
48
|
-
* @returns Function that creates and manages the portal instance
|
|
39
|
+
* A portal creates a new DOM element and renders React content into it, useful for modals,
|
|
40
|
+
* popovers, and other overlays that need to break out of their parent container's DOM hierarchy.
|
|
41
|
+
*
|
|
42
|
+
* The portal content can be wrapped with provider components to maintain context/theme inheritance:
|
|
43
|
+
* 1. Fixed providers specified when creating the portal via Portal(providers, component)
|
|
44
|
+
* 2. Dynamic providers passed as props when launching the portal
|
|
45
|
+
* @template P_Content - Props type for the portal's content component
|
|
49
46
|
* @example
|
|
50
|
-
*
|
|
51
|
-
* const Modal = Portal(({
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* })
|
|
47
|
+
* // Basic portal with no providers
|
|
48
|
+
* const Modal = Portal((props) => Div({ children: props.children }));
|
|
49
|
+
*
|
|
50
|
+
* // Portal with fixed theme provider
|
|
51
|
+
* const ThemedModal = Portal(
|
|
52
|
+
* ThemeProvider({ theme }),
|
|
53
|
+
* (props) => Div({ children: props.children })
|
|
54
|
+
* )
|
|
55
|
+
*
|
|
56
|
+
* // Usage with dynamic providers
|
|
57
|
+
* const modal = Modal({
|
|
58
|
+
* providers: [ThemeProvider({ theme })],
|
|
59
|
+
* children: "Modal content"
|
|
56
60
|
* })
|
|
57
|
-
*
|
|
61
|
+
* modal.unmount(); // Clean up when done
|
|
58
62
|
*/
|
|
59
|
-
export declare function Portal<
|
|
60
|
-
|
|
61
|
-
portal: {
|
|
62
|
-
unmount: () => void;
|
|
63
|
-
};
|
|
64
|
-
}) => ComponentNode): (props?: any) => ReactDOMRoot | null;
|
|
63
|
+
export declare function Portal<P_Content extends Record<string, any>>(providers: NodeInstance<any> | NodeInstance<any>[], component: (props: PortalProps<P_Content>) => ComponentNode): PortalLauncherWithFixedProviders<P_Content>;
|
|
64
|
+
export declare function Portal<P_Content extends Record<string, any>>(component: (props: PortalProps<P_Content>) => ComponentNode): PortalLauncher<P_Content>;
|
|
65
65
|
//# sourceMappingURL=core.node.d.ts.map
|
package/dist/core.node.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.node.d.ts","sourceRoot":"","sources":["../src/core.node.ts"],"names":[],"mappings":"AACA,OAAO,KAAyG,MAAM,OAAO,CAAA;AAC7H,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"core.node.d.ts","sourceRoot":"","sources":["../src/core.node.ts"],"names":[],"mappings":"AACA,OAAO,KAAyG,MAAM,OAAO,CAAA;AAC7H,OAAO,KAAK,EACV,aAAa,EAGb,WAAW,EACX,YAAY,EACZ,SAAS,EACT,cAAc,EACd,gCAAgC,EAChC,WAAW,EAGZ,MAAM,mBAAmB,CAAA;AA0e1B;;;;;GAKG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,WAAW,EAAE,OAAO,EAAE,CAAC,EAAE,KAAK,GAAE,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAM,GAAG,YAAY,CAAC,CAAC,CAAC,CAU1G;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACrD,SAAS,EAAE,CACT,KAAK,EAAE,CAAC,GAAG;IACT,QAAQ,CAAC,EAAE,WAAW,CAAA;CACvB,KACE,aAAa,IAkBV,QAAO,GAAQ,qBACxB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,MAAM,CAAC,SAAS,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1D,SAAS,EAAE,YAAY,CAAC,GAAG,CAAC,GAAG,YAAY,CAAC,GAAG,CAAC,EAAE,EAClD,SAAS,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,SAAS,CAAC,KAAK,aAAa,GAC1D,gCAAgC,CAAC,SAAS,CAAC,CAAA;AAC9C,wBAAgB,MAAM,CAAC,SAAS,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,SAAS,CAAC,KAAK,aAAa,GAAG,cAAc,CAAC,SAAS,CAAC,CAAA"}
|
package/dist/core.node.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var _excluded=["children","nodetheme","theme"],_excluded2=["style"],_excluded3=["children","key"];function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}function _objectWithoutProperties(a,b){if(null==a)return{};var c,d,e=_objectWithoutPropertiesLoose(a,b);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(d=0;d<f.length;d++)c=f[d],-1===b.indexOf(c)&&{}.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e}function _objectWithoutPropertiesLoose(a,b){if(null==a)return{};var c={};for(var d in a)if({}.hasOwnProperty.call(a,d)){if(-1!==b.indexOf(d))continue;c[d]=a[d]}return c}function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}function _classCallCheck(b,a){if(!(b instanceof a))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,_toPropertyKey(c.key),c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),Object.defineProperty(a,"prototype",{writable:!1}),a}function _defineProperty(a,b,c){return(b=_toPropertyKey(b))in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function _toPropertyKey(a){var b=_toPrimitive(a,"string");return"symbol"==_typeof(b)?b:b+""}function _toPrimitive(a,b){if("object"!=_typeof(a)||!a)return a;var c=a[Symbol.toPrimitive];if(void 0!==c){var d=c.call(a,b||"default");if("object"!=_typeof(d))return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(a)}import React,{createElement,isValidElement}from"react";import{getComponentType,getCSSProps,getDOMProps,getElementTypeName,getValueByPath}from"./node.helper.js";import{isForwardRef,isMemo,isReactClassComponent,isValidElementType}from"./react-is.helper.js";import{createRoot}from"react-dom/client";/**
|
|
1
|
+
"use strict";var _excluded=["children","nodetheme","theme"],_excluded2=["style"],_excluded3=["children","key"],_excluded4=["nodetheme"],_excluded5=["providers","nodetheme"];function _typeof(a){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},_typeof(a)}function _objectWithoutProperties(a,b){if(null==a)return{};var c,d,e=_objectWithoutPropertiesLoose(a,b);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(a);for(d=0;d<f.length;d++)c=f[d],-1===b.indexOf(c)&&{}.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}return e}function _objectWithoutPropertiesLoose(a,b){if(null==a)return{};var c={};for(var d in a)if({}.hasOwnProperty.call(a,d)){if(-1!==b.indexOf(d))continue;c[d]=a[d]}return c}function ownKeys(a,b){var c=Object.keys(a);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(a);b&&(d=d.filter(function(b){return Object.getOwnPropertyDescriptor(a,b).enumerable})),c.push.apply(c,d)}return c}function _objectSpread(a){for(var b,c=1;c<arguments.length;c++)b=null==arguments[c]?{}:arguments[c],c%2?ownKeys(Object(b),!0).forEach(function(c){_defineProperty(a,c,b[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(b)):ownKeys(Object(b)).forEach(function(c){Object.defineProperty(a,c,Object.getOwnPropertyDescriptor(b,c))});return a}function _classCallCheck(b,a){if(!(b instanceof a))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,_toPropertyKey(c.key),c)}function _createClass(a,b,c){return b&&_defineProperties(a.prototype,b),c&&_defineProperties(a,c),Object.defineProperty(a,"prototype",{writable:!1}),a}function _defineProperty(a,b,c){return(b=_toPropertyKey(b))in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function _toPropertyKey(a){var b=_toPrimitive(a,"string");return"symbol"==_typeof(b)?b:b+""}function _toPrimitive(a,b){if("object"!=_typeof(a)||!a)return a;var c=a[Symbol.toPrimitive];if(void 0!==c){var d=c.call(a,b||"default");if("object"!=_typeof(d))return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===b?String:Number)(a)}import React,{createElement,isValidElement}from"react";import{getComponentType,getCSSProps,getDOMProps,getElementTypeName,getValueByPath}from"./node.helper.js";import{isForwardRef,isMemo,isReactClassComponent,isValidElementType}from"./react-is.helper.js";import{createRoot}from"react-dom/client";/**
|
|
2
2
|
* Represents a node in a React component tree with theme and styling capabilities.
|
|
3
3
|
* This class wraps React elements and handles:
|
|
4
4
|
* - Props processing and normalization
|
|
@@ -179,25 +179,43 @@ return c.theme&&!c.nodetheme&&(c.nodetheme=c.theme),new BaseNode(a,c)}/**
|
|
|
179
179
|
var b=function renderer(){var b=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},c=a(b);// Execute wrapped component
|
|
180
180
|
// Handle BaseNode results - requires special processing
|
|
181
181
|
if(c instanceof BaseNode){var d,e,f=(null===(d=c.rawProps)||void 0===d?void 0:d.nodetheme)||(null===(e=c.rawProps)||void 0===e?void 0:e.theme)||b.nodetheme||b.theme;return Node(c.element,_objectSpread(_objectSpread({},c.rawProps),{},{nodetheme:f})).render()}return c};return function(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};return Node(b,a).render()}}/**
|
|
182
|
-
* Creates a portal
|
|
183
|
-
*
|
|
184
|
-
* of their parent container's DOM structure while maintaining React context and event bubbling.
|
|
182
|
+
* Creates a portal component that renders its content outside the normal DOM hierarchy.
|
|
183
|
+
* Supports wrapping the portal content with provider components for context/theme inheritance.
|
|
185
184
|
*
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
* @
|
|
193
|
-
* @returns Function that creates and manages the portal instance
|
|
185
|
+
* A portal creates a new DOM element and renders React content into it, useful for modals,
|
|
186
|
+
* popovers, and other overlays that need to break out of their parent container's DOM hierarchy.
|
|
187
|
+
*
|
|
188
|
+
* The portal content can be wrapped with provider components to maintain context/theme inheritance:
|
|
189
|
+
* 1. Fixed providers specified when creating the portal via Portal(providers, component)
|
|
190
|
+
* 2. Dynamic providers passed as props when launching the portal
|
|
191
|
+
* @template P_Content - Props type for the portal's content component
|
|
194
192
|
* @example
|
|
195
|
-
*
|
|
196
|
-
* const Modal = Portal(({
|
|
197
|
-
*
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
* })
|
|
193
|
+
* // Basic portal with no providers
|
|
194
|
+
* const Modal = Portal((props) => Div({ children: props.children }));
|
|
195
|
+
*
|
|
196
|
+
* // Portal with fixed theme provider
|
|
197
|
+
* const ThemedModal = Portal(
|
|
198
|
+
* ThemeProvider({ theme }),
|
|
199
|
+
* (props) => Div({ children: props.children })
|
|
200
|
+
* )
|
|
201
|
+
*
|
|
202
|
+
* // Usage with dynamic providers
|
|
203
|
+
* const modal = Modal({
|
|
204
|
+
* providers: [ThemeProvider({ theme })],
|
|
205
|
+
* children: "Modal content"
|
|
201
206
|
* })
|
|
202
|
-
*
|
|
203
|
-
*/export function Portal(a
|
|
207
|
+
* modal.unmount(); // Clean up when done
|
|
208
|
+
*/export function Portal(a,b){// Track fixed providers passed during portal creation
|
|
209
|
+
var c,d=void 0,e=null;// Parse arguments to determine which overload is being used
|
|
210
|
+
if("function"==typeof b&&(a instanceof BaseNode||Array.isArray(a)&&a.every(function(a){return a instanceof BaseNode})))// Overload 1: Portal(providers, component) - Fixed providers
|
|
211
|
+
d=Array.isArray(a)?a:[a],c=b;else if("function"==typeof a&&b===void 0)// Overload 2: Portal(component) - Dynamic providers via props
|
|
212
|
+
c=a;else throw new Error("Invalid arguments for Portal HOC. Use Portal(component) or Portal(providersArrayOrNodeInstance, component).");// Control object passed to portal content for cleanup
|
|
213
|
+
var f={unmount:function unmount(){e&&(e.unmount(),e=null)}},g=function renderer(){var a=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},b=a.nodetheme,d=_objectWithoutProperties(a,_excluded4),e=c(_objectSpread(_objectSpread({},d),{},{portal:f}));// Handle BaseNode results by properly applying the theme
|
|
214
|
+
if(e instanceof BaseNode){var g,h,i=(null===(g=e.rawProps)||void 0===g?void 0:g.nodetheme)||(null===(h=e.rawProps)||void 0===h?void 0:h.theme)||a.nodetheme;return Node(e.element,_objectSpread(_objectSpread({},e.rawProps),{},{nodetheme:i})).render()}return e};// Renderer function that executes portal content with control object
|
|
215
|
+
// Return launcher function that creates and manages the portal instance
|
|
216
|
+
return function(a){var b,c=void 0;// Combine fixed and dynamic providers in the correct order
|
|
217
|
+
d?c=d:a.providers&&(c=Array.isArray(a.providers)?a.providers:[a.providers]);// Extract props needed for portal setup vs content
|
|
218
|
+
var f=a.providers,h=a.nodetheme,i=_objectWithoutProperties(a,_excluded5),j=_objectSpread(_objectSpread({},i),{},{nodetheme:h}),k=Node(g,j);// Create node for portal content with renderer
|
|
219
|
+
// Wrap content with providers if any exist
|
|
220
|
+
return b=c&&0<c.length?c.reduceRight(function(a,b){var c,d;// Validate each provider is a proper NodeInstance
|
|
221
|
+
return b instanceof BaseNode?Node(b.element,_objectSpread(_objectSpread({},b.rawProps),{},{children:a,nodetheme:(null===(c=b.rawProps)||void 0===c?void 0:c.nodetheme)||(null===(d=b.rawProps)||void 0===d?void 0:d.theme)||h})):(console.warn("Portal: Item in providers array is not a valid NodeInstance. Skipping.",b),a)},k):k,e=b.toPortal(),e}}
|
package/dist/node.type.d.ts
CHANGED
|
@@ -103,5 +103,34 @@ export interface FunctionRendererProps<E extends NodeElement> {
|
|
|
103
103
|
processRawNode: (node: NodeElement, parentTheme?: Theme, childIndex?: number) => NodeInstance<E>;
|
|
104
104
|
}
|
|
105
105
|
export type ComponentNode = (NodeInstance<any> | ReactNode) | (() => NodeInstance<any> | ReactNode);
|
|
106
|
+
/**
|
|
107
|
+
* Props type for components rendered through the Portal HOC.
|
|
108
|
+
* Extends the component's own props with portal-specific functionality.
|
|
109
|
+
* @template T The component's own prop types
|
|
110
|
+
*/
|
|
111
|
+
export type PortalProps<T extends Record<string, any>> = T & {
|
|
112
|
+
/** Content to render within the portal */
|
|
113
|
+
children?: NodeElement | NodeElement[];
|
|
114
|
+
/** Portal control object containing lifecycle methods */
|
|
115
|
+
portal: {
|
|
116
|
+
/** Unmounts and cleans up the portal */
|
|
117
|
+
unmount: () => void;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* Function type for creating portal instances when Portal is called with just a component.
|
|
122
|
+
* Allows passing providers through props at portal creation time.
|
|
123
|
+
* @template P_Content The portal content component's prop types
|
|
124
|
+
*/
|
|
125
|
+
export type PortalLauncher<P_Content extends Record<string, any>> = (props: P_Content & {
|
|
126
|
+
/** Optional provider components to wrap the portal content */
|
|
127
|
+
providers?: NodeInstance<any> | NodeInstance<any>[];
|
|
128
|
+
} & PortalProps<P_Content>) => ReactDOMRoot | null;
|
|
129
|
+
/**
|
|
130
|
+
* Function type for creating portal instances when Portal is called with providers and component.
|
|
131
|
+
* Uses fixed providers specified at HOC creation time.
|
|
132
|
+
* @template P_Content The portal content component's prop types
|
|
133
|
+
*/
|
|
134
|
+
export type PortalLauncherWithFixedProviders<P_Content extends Record<string, any>> = (props: P_Content & Omit<PortalProps<P_Content>, 'portal'>) => ReactDOMRoot | null;
|
|
106
135
|
export {};
|
|
107
136
|
//# sourceMappingURL=node.type.d.ts.map
|
package/dist/node.type.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.type.d.ts","sourceRoot":"","sources":["../src/node.type.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,IAAI,eAAe,EAC7B,cAAc,EACd,aAAa,EACb,SAAS,EACT,GAAG,EACH,WAAW,EACX,aAAa,EACb,qBAAqB,EACrB,SAAS,EACV,MAAM,OAAO,CAAA;AACd,OAAO,KAAK,EAAE,IAAI,IAAI,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE5D,MAAM,MAAM,WAAW,GACnB,SAAS,GACT,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,GACnB,WAAW,GACX,aAAa,CAAC,GAAG,CAAC,GAClB,YAAY,CAAC,GAAG,CAAC,GACjB,CAAC,CAAC,KAAK,CAAC,EAAE,GAAG,KAAK,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,GAAG,CAAC,GAAG,YAAY,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC,CAAA;AAE1G;;;;;;GAMG;AACH,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC,GAAG,CAAC,GAAG,WAAW,GAAG,YAAY,CAAC,GAAG,CAAC,GAAG,aAAa,CAAA;AAEnG;;;;GAIG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW;IAC/D,gFAAgF;IAChF,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAA;IAEnB,uFAAuF;IACvF,QAAQ,CAAC,QAAQ,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAA;IAEnC,uEAAuE;IACvE,MAAM,IA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AAQ,CAAC,KACtD,YAAY,GAAG,IAAI,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meonode/ui",
|
|
3
3
|
"description": "A structured approach to component composition with built-in theming, prop separation, and dynamic children handling.",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.31",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/main.js",
|
|
7
7
|
"types": "./dist/main.d.ts",
|