@meonode/ui 0.2.9 → 0.2.11
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/CHANGELOG.md +43 -1
- package/README.md +0 -37
- package/dist/client.d.ts +9 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +6 -0
- package/dist/constants/common.const.d.ts +3 -0
- package/dist/constants/common.const.d.ts.map +1 -0
- package/dist/constants/common.const.js +1 -0
- package/dist/constants/css-properties.const.d.ts +3 -0
- package/dist/constants/css-properties.const.d.ts.map +1 -0
- package/dist/core.node.d.ts +154 -53
- package/dist/core.node.d.ts.map +1 -1
- package/dist/core.node.js +167 -80
- package/dist/helper/common.helper.d.ts +8 -0
- package/dist/helper/common.helper.d.ts.map +1 -1
- package/dist/helper/common.helper.js +7 -2
- package/dist/helper/node.helper.d.ts +22 -16
- package/dist/helper/node.helper.d.ts.map +1 -1
- package/dist/helper/node.helper.js +22 -30
- package/dist/helper/obj.helper.d.ts +6 -0
- package/dist/helper/obj.helper.d.ts.map +1 -0
- package/dist/helper/obj.helper.js +1 -0
- package/dist/helper/theme.helper.d.ts +79 -0
- package/dist/helper/theme.helper.d.ts.map +1 -0
- package/dist/helper/theme.helper.js +59 -0
- package/dist/main.d.ts +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +1 -1
- package/dist/node.type.d.ts +12 -2
- package/dist/node.type.d.ts.map +1 -1
- package/package.json +14 -10
- package/dist/data/css-properties.d.ts +0 -3
- package/dist/data/css-properties.d.ts.map +0 -1
- /package/dist/{data/css-properties.js → constants/css-properties.const.js} +0 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { Theme } from '../node.type.js';
|
|
2
|
+
/**
|
|
3
|
+
* Cache manager for theme resolution operations.
|
|
4
|
+
* Provides singleton-based caching with different strategies for server vs client environments.
|
|
5
|
+
*/
|
|
6
|
+
declare class ThemeResolverCache {
|
|
7
|
+
private static _instance;
|
|
8
|
+
private readonly _resolutionCache;
|
|
9
|
+
private readonly _pathLookupCache;
|
|
10
|
+
private readonly _themeRegex;
|
|
11
|
+
// Track cache statistics for performance monitoring
|
|
12
|
+
private _stats;
|
|
13
|
+
private constructor();
|
|
14
|
+
/**
|
|
15
|
+
* Get the singleton instance of the cache manager
|
|
16
|
+
*/
|
|
17
|
+
static getInstance(): ThemeResolverCache;
|
|
18
|
+
/**
|
|
19
|
+
* Generate a stable cache key from object and theme
|
|
20
|
+
*/
|
|
21
|
+
private _generateCacheKey;
|
|
22
|
+
/**
|
|
23
|
+
* Check if resolution result exists in cache
|
|
24
|
+
*/
|
|
25
|
+
getResolution(obj: Record<string, any>, theme: Theme): any | null;
|
|
26
|
+
/**
|
|
27
|
+
* Store resolution result in cache
|
|
28
|
+
*/
|
|
29
|
+
setResolution(obj: Record<string, any>, theme: Theme, result: any): void;
|
|
30
|
+
/**
|
|
31
|
+
* Get cached theme path lookup
|
|
32
|
+
*/
|
|
33
|
+
getPathLookup(theme: Theme, path: string): any | null;
|
|
34
|
+
/**
|
|
35
|
+
* Cache theme path lookup result
|
|
36
|
+
*/
|
|
37
|
+
setPathLookup(theme: Theme, path: string, value: any): void;
|
|
38
|
+
/**
|
|
39
|
+
* Get the shared regex instance (reused for performance)
|
|
40
|
+
*/
|
|
41
|
+
getThemeRegex(): RegExp;
|
|
42
|
+
/**
|
|
43
|
+
* Clear all caches (useful for testing or memory management)
|
|
44
|
+
*/
|
|
45
|
+
clearCaches(): void;
|
|
46
|
+
/**
|
|
47
|
+
* Get cache statistics for performance monitoring
|
|
48
|
+
*/
|
|
49
|
+
getStats(): {
|
|
50
|
+
hits: number;
|
|
51
|
+
misses: number;
|
|
52
|
+
pathHits: number;
|
|
53
|
+
pathMisses: number;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Check if we should use caching (server-side only for RSC optimization)
|
|
57
|
+
*/
|
|
58
|
+
shouldCache(): boolean;
|
|
59
|
+
}
|
|
60
|
+
// Module-level cache instance
|
|
61
|
+
declare const themeCache: ThemeResolverCache;
|
|
62
|
+
/**
|
|
63
|
+
* Resolves theme variable references in an object's values recursively.
|
|
64
|
+
* This function performs a "smart merge" to maintain object reference identity
|
|
65
|
+
* for parts of the object that do not contain resolved theme variables or
|
|
66
|
+
* other modifications. Only creates new objects or properties when a change occurs.
|
|
67
|
+
* Handles nested objects and arrays, and prevents circular references.
|
|
68
|
+
* Theme variables are referenced using the format "theme.path.to.value".
|
|
69
|
+
* @param obj The object (or array) whose values should be resolved against the theme. Defaults to an empty object.
|
|
70
|
+
* @param theme The theme object containing variable definitions. Optional.
|
|
71
|
+
* @returns A new object (or array) with all theme variables resolved to their corresponding values,
|
|
72
|
+
* or the original object (or array) if no changes were necessary.
|
|
73
|
+
*/
|
|
74
|
+
export declare const resolveObjWithTheme: (obj?: Record<string, any>, theme?: Partial<{
|
|
75
|
+
[key: string]: any;
|
|
76
|
+
}> | undefined) => any;
|
|
77
|
+
// Export cache instance for testing and monitoring
|
|
78
|
+
export { themeCache as ThemeResolverCache };
|
|
79
|
+
//# sourceMappingURL=theme.helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.helper.d.ts","sourceRoot":"","sources":["../../src/helper/theme.helper.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAG9C;;;GAGG;AACH,cAAM,kBAAkB;IACtB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAkC;IAE1D,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAyB;IAC1D,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAyB;IAC1D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAA8B;IAE1D,oDAAoD;IACpD,OAAO,CAAC,MAAM,CAKb;IAED,OAAO,eAEN;IAED;;OAEG;IACH,MAAM,CAAC,WAAW,IAAI,kBAAkB,CAKvC;IAED;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAKzB;;OAEG;IACH,aAAa,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,KAAK,EAAE,KAAK,GAAG,GAAG,GAAG,IAAI,CAUhE;IAED;;OAEG;IACH,aAAa,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,GAAG,IAAI,CAGvE;IAED;;OAEG;IACH,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,GAAG,GAAG,GAAG,IAAI,CAUpD;IAED;;OAEG;IACH,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI,CAG1D;IAED;;OAEG;IACH,aAAa,IAAI,MAAM,CAItB;IAED;;OAEG;IACH,WAAW,IAAI,IAAI,CAIlB;IAED;;OAEG;IACH,QAAQ;;;;;MAEP;IAED;;OAEG;IACH,WAAW,IAAI,OAAO,CAErB;CACF;AAED,8BAA8B;AAC9B,QAAA,MAAM,UAAU,oBAAmC,CAAA;AAEnD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB;;sBAwI/B,CAAA;AAED,mDAAmD;AACnD,OAAO,EAAE,UAAU,IAAI,kBAAkB,EAAE,CAAA"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
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 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 _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{getValueByPath}from"./common.helper.js";import{ObjHelper}from"./obj.helper.js";/**
|
|
2
|
+
* Cache manager for theme resolution operations.
|
|
3
|
+
* Provides singleton-based caching with different strategies for server vs client environments.
|
|
4
|
+
*/class ThemeResolverCache{constructor(){// Track cache statistics for performance monitoring
|
|
5
|
+
_defineProperty(this,"_resolutionCache",new Map),_defineProperty(this,"_pathLookupCache",new Map),_defineProperty(this,"_themeRegex",/theme\.([a-zA-Z0-9_.-]+)/g),_defineProperty(this,"_stats",{hits:0,misses:0,pathHits:0,pathMisses:0})}// Private constructor for singleton pattern
|
|
6
|
+
/**
|
|
7
|
+
* Get the singleton instance of the cache manager
|
|
8
|
+
*/static getInstance(){return ThemeResolverCache._instance||(ThemeResolverCache._instance=new ThemeResolverCache),ThemeResolverCache._instance}/**
|
|
9
|
+
* Generate a stable cache key from object and theme
|
|
10
|
+
*/_generateCacheKey(a,b){// Use a more efficient key generation for better performance
|
|
11
|
+
return"".concat(ObjHelper.stringify(a),"_").concat(ObjHelper.stringify(b))}/**
|
|
12
|
+
* Check if resolution result exists in cache
|
|
13
|
+
*/getResolution(a,b){var c=this._generateCacheKey(a,b);return this._resolutionCache.has(c)?(this._stats.hits++,this._resolutionCache.get(c)):(this._stats.misses++,null)}/**
|
|
14
|
+
* Store resolution result in cache
|
|
15
|
+
*/setResolution(a,b,c){var d=this._generateCacheKey(a,b);this._resolutionCache.set(d,c)}/**
|
|
16
|
+
* Get cached theme path lookup
|
|
17
|
+
*/getPathLookup(a,b){var c="".concat(ObjHelper.stringify(a),"_").concat(b);return this._pathLookupCache.has(c)?(this._stats.pathHits++,this._pathLookupCache.get(c)):(this._stats.pathMisses++,null)}/**
|
|
18
|
+
* Cache theme path lookup result
|
|
19
|
+
*/setPathLookup(a,b,c){var d="".concat(ObjHelper.stringify(a),"_").concat(b);this._pathLookupCache.set(d,c)}/**
|
|
20
|
+
* Get the shared regex instance (reused for performance)
|
|
21
|
+
*/getThemeRegex(){return this._themeRegex.lastIndex=0,this._themeRegex}/**
|
|
22
|
+
* Clear all caches (useful for testing or memory management)
|
|
23
|
+
*/clearCaches(){this._resolutionCache.clear(),this._pathLookupCache.clear(),this._stats={hits:0,misses:0,pathHits:0,pathMisses:0}}/**
|
|
24
|
+
* Get cache statistics for performance monitoring
|
|
25
|
+
*/getStats(){return _objectSpread({},this._stats)}/**
|
|
26
|
+
* Check if we should use caching (server-side only for RSC optimization)
|
|
27
|
+
*/shouldCache(){return"undefined"==typeof window}}// Module-level cache instance
|
|
28
|
+
_defineProperty(ThemeResolverCache,"_instance",null);var themeCache=ThemeResolverCache.getInstance();/**
|
|
29
|
+
* Resolves theme variable references in an object's values recursively.
|
|
30
|
+
* This function performs a "smart merge" to maintain object reference identity
|
|
31
|
+
* for parts of the object that do not contain resolved theme variables or
|
|
32
|
+
* other modifications. Only creates new objects or properties when a change occurs.
|
|
33
|
+
* Handles nested objects and arrays, and prevents circular references.
|
|
34
|
+
* Theme variables are referenced using the format "theme.path.to.value".
|
|
35
|
+
* @param obj The object (or array) whose values should be resolved against the theme. Defaults to an empty object.
|
|
36
|
+
* @param theme The theme object containing variable definitions. Optional.
|
|
37
|
+
* @returns A new object (or array) with all theme variables resolved to their corresponding values,
|
|
38
|
+
* or the original object (or array) if no changes were necessary.
|
|
39
|
+
*/export var resolveObjWithTheme=function resolveObjWithTheme(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},b=1<arguments.length?arguments[1]:void 0;if(!b||!!b&&"object"===_typeof(b)&&0===Object.keys(b).length||0===Object.keys(a).length)return a;// Check cache first (only on server-side for RSC optimization)
|
|
40
|
+
if(themeCache.shouldCache()){var c=themeCache.getResolution(a,b);if(null!==c)return c}/**
|
|
41
|
+
* Recursively resolves theme variables within an object or array.
|
|
42
|
+
* It tracks visited objects to prevent infinite recursion caused by circular references.
|
|
43
|
+
* This function implements a "smart merge" to preserve object/array identity for unchanged parts.
|
|
44
|
+
* @param currentObj The current object or array being processed in the recursion.
|
|
45
|
+
* @param visited A Set to keep track of objects that have already been visited to detect circular references.
|
|
46
|
+
* @returns The processed object/array with theme variables resolved, or the original `currentObj`
|
|
47
|
+
* if no changes were made to it or its direct children (excluding deeper nested changes).
|
|
48
|
+
*/var d=function resolveRecursively(a,c){// Base cases for non-objects/null, or already visited objects (circular reference)
|
|
49
|
+
if(null===a||"object"!==_typeof(a))return a;if(c.has(a))return a;// Handle Arrays
|
|
50
|
+
if(c.add(a),Array.isArray(a)){for(var e=a,f=!1,g=0;g<a.length;g++){var h=a[g],j=d(h,c);j===h?f&&(e[g]=h):(!f&&(e=[...a],f=!0),e[g]=j)}return e}// Handle Plain Objects (only process objects created with {})
|
|
51
|
+
var k=a,l=!1,m=function _loop(){// Ensure it's an own property
|
|
52
|
+
var e=a[n],f=e;if("function"==typeof e||"object"===_typeof(e)&&null!==e&&!Array.isArray(e)&&Object.getPrototypeOf(e)!==Object.prototype||// Exclude plain objects and arrays
|
|
53
|
+
"object"!==_typeof(e)&&"string"!=typeof e)f=e;else if("string"==typeof e&&e.includes("theme.")){var g=e,h=!1,i=themeCache.getThemeRegex();// Use cached regex instance
|
|
54
|
+
g=g.replace(i,function(a,c){// Check path lookup cache first
|
|
55
|
+
var d=themeCache.getPathLookup(b,c);return null===d&&(d=getValueByPath(b,c),themeCache.setPathLookup(b,c,d)),void 0!==d&&null!==d?(h=!0,"object"===_typeof(d)&&!Array.isArray(d)&&"default"in d?d["default"]:d):a}),f=h&&g!==e?g:e}else"object"===_typeof(e)&&null!==e&&(// Recursively process nested objects or arrays
|
|
56
|
+
f=d(e,c));f===e?l&&(k[n]=e):(!l&&(k=_objectSpread({},a),l=!0),k[n]=f)};for(var n in a)m();return k},e=d(a,new Set);// Perform the resolution
|
|
57
|
+
// Cache the result (only on server-side)
|
|
58
|
+
return themeCache.shouldCache()&&themeCache.setResolution(a,b,e),e};// Export cache instance for testing and monitoring
|
|
59
|
+
export{themeCache as ThemeResolverCache};
|
package/dist/main.d.ts
CHANGED
package/dist/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAC7E,cAAc,mBAAmB,CAAA;AACjC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA;AACjC,cAAc,8BAA8B,CAAA"}
|
package/dist/main.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Node,createNode}from"./core.node.js";export*from"./hoc/index.js";export*from"./helper/node.helper.js";export*from"./node.type.js";export*from"./components/html.node.js";
|
|
1
|
+
export{Node,createNode,createChildrenFirstNode}from"./core.node.js";export*from"./hoc/index.js";export*from"./helper/node.helper.js";export*from"./node.type.js";export*from"./components/html.node.js";
|
package/dist/node.type.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { type Attributes as ReactAttributes, type CSSProperties, type ReactNode, type JSX, type ElementType, type ComponentType, type JSXElementConstructor, type Component, type Ref, type ExoticComponent, type FragmentProps, type ReactElement } from 'react';
|
|
2
2
|
import type { Root as ReactDOMRoot } from 'react-dom/client';
|
|
3
3
|
import type { CSSInterpolation } from '@emotion/serialize';
|
|
4
|
+
import type { NO_STYLE_TAGS } from './constants/common.const.js';
|
|
4
5
|
// --- Utility Types ---
|
|
5
6
|
// Utility to get keys of required properties in a type T.
|
|
6
7
|
type RequiredKeys<T> = {
|
|
@@ -85,6 +86,14 @@ export type HasCSSCompatibleStyleProp<P> = P extends {
|
|
|
85
86
|
? true // Yes, it's CSS compatible
|
|
86
87
|
: false // No, 'style' exists but is not CSSProperties (e.g., style: string)
|
|
87
88
|
: false; // No, P does not have a 'style' prop at all
|
|
89
|
+
/** List of HTML tags that should not receive style props */
|
|
90
|
+
export type NoStyleTags = (typeof NO_STYLE_TAGS)[number];
|
|
91
|
+
/**
|
|
92
|
+
* Helper type to determine if the element E is a tag that should not receive style props.
|
|
93
|
+
* Uses the NO_STYLE_TAGS constant to check against known tags.
|
|
94
|
+
* @template E - The element type (e.g., 'div', 'span', 'script')
|
|
95
|
+
*/
|
|
96
|
+
export type HasNoStyleProp<E extends NodeElement> = E extends NoStyleTags ? true : false;
|
|
88
97
|
/**
|
|
89
98
|
* Public API for node creation props, providing a flexible and type-safe interface:
|
|
90
99
|
* - Preserves original component props while allowing direct style properties (conditionally)
|
|
@@ -93,11 +102,12 @@ export type HasCSSCompatibleStyleProp<P> = P extends {
|
|
|
93
102
|
* - Maintains React's key prop for reconciliation
|
|
94
103
|
* @template E - The element type these props apply to
|
|
95
104
|
*/
|
|
96
|
-
export type NodeProps<E extends NodeElement> = Omit<PropsOf<E>, keyof CSSProperties | 'children' | 'style' | 'theme' | 'props'> & ReactAttributes & (HasCSSCompatibleStyleProp<PropsOf<E>> extends true ? CSSProperties : object) & Partial<{
|
|
105
|
+
export type NodeProps<E extends NodeElement> = Omit<PropsOf<E>, keyof CSSProperties | 'children' | 'style' | 'theme' | 'props'> & ReactAttributes & (HasCSSCompatibleStyleProp<PropsOf<E>> extends true ? CSSProperties : object) & (HasNoStyleProp<E> extends true ? Partial<{
|
|
106
|
+
css: CSSInterpolation;
|
|
107
|
+
}> : object) & Partial<{
|
|
97
108
|
props: Partial<Omit<PropsOf<E>, 'children'>>;
|
|
98
109
|
children: NodeElement | NodeElement[];
|
|
99
110
|
theme: Theme;
|
|
100
|
-
css: CSSInterpolation;
|
|
101
111
|
}>;
|
|
102
112
|
/**
|
|
103
113
|
* BaseNode's internal props type, extending NodeProps:
|
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,EAAE,EACZ,KAAK,UAAU,IAAI,eAAe,EAClC,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,GAAG,EACR,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EACd,KAAK,GAAG,EACR,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,YAAY,EAClB,MAAM,OAAO,CAAA;AACd,OAAO,KAAK,EAAE,IAAI,IAAI,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAC5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"node.type.d.ts","sourceRoot":"","sources":["../src/node.type.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EACZ,KAAK,UAAU,IAAI,eAAe,EAClC,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,GAAG,EACR,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EACd,KAAK,GAAG,EACR,KAAK,eAAe,EACpB,KAAK,aAAa,EACl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AAe,GACnG,CAAC,KAAK,CAAC,EAAE;IACP,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,YAAY,CAAC,GAAG,CAAC,CAAA;CAC7B,KAAK,YAAY,GAAG,IAAI,GACzB,CACE,KAAK,EAAE,CAAC,GAAG;IACT,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,YAAY,CAAC,GAAG,CAAC,CAAA;CAC7B,GAAG,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,KAC/B,YAAY,GAAG,IAAI,CAAA;AAE5B;;;;;GAKG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,WAAW,EAAE,eAAe,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,eAAe,EAAE,MAAM,eAAe,CAAC,GACvJ,eAAe,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, direct CSS-first prop styling, built-in theming, smart prop handling (including raw property pass-through), and dynamic children.",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.11",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/main.js",
|
|
7
7
|
"types": "./dist/main.d.ts",
|
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
"import": "./dist/main.js",
|
|
11
11
|
"types": "./dist/main.d.ts"
|
|
12
12
|
},
|
|
13
|
+
"./client": {
|
|
14
|
+
"import": "./dist/client.js",
|
|
15
|
+
"types": "./dist/client.d.ts"
|
|
16
|
+
},
|
|
13
17
|
"./nextjs-registry": {
|
|
14
18
|
"import": "./dist/nextjs-registry/index.js",
|
|
15
19
|
"types": "./dist/nextjs-registry/index.d.ts"
|
|
@@ -36,28 +40,28 @@
|
|
|
36
40
|
},
|
|
37
41
|
"devDependencies": {
|
|
38
42
|
"@babel/cli": "^7.28.3",
|
|
39
|
-
"@babel/core": "^7.28.
|
|
43
|
+
"@babel/core": "^7.28.4",
|
|
40
44
|
"@babel/preset-env": "^7.28.3",
|
|
41
45
|
"@babel/preset-typescript": "^7.27.1",
|
|
42
46
|
"@emotion/cache": "^11.14.0",
|
|
43
|
-
"@eslint/js": "^9.
|
|
47
|
+
"@eslint/js": "^9.35.0",
|
|
44
48
|
"@types/react": "^19.1.12",
|
|
45
49
|
"@types/react-dom": "^19.1.9",
|
|
46
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
47
|
-
"@typescript-eslint/parser": "^8.
|
|
48
|
-
"@typescript/native-preview": "^7.0.0-dev.
|
|
50
|
+
"@typescript-eslint/eslint-plugin": "^8.43.0",
|
|
51
|
+
"@typescript-eslint/parser": "^8.43.0",
|
|
52
|
+
"@typescript/native-preview": "^7.0.0-dev.20250909.1",
|
|
49
53
|
"babel-plugin-module-resolver": "^5.0.2",
|
|
50
54
|
"babel-preset-minify": "^0.5.2",
|
|
51
|
-
"eslint": "^9.
|
|
52
|
-
"eslint-plugin-jsdoc": "^
|
|
55
|
+
"eslint": "^9.35.0",
|
|
56
|
+
"eslint-plugin-jsdoc": "^55.4.0",
|
|
53
57
|
"eslint-plugin-prettier": "^5.5.4",
|
|
54
58
|
"eslint-plugin-unused-imports": "^4.2.0",
|
|
55
|
-
"next": "^15.5.
|
|
59
|
+
"next": "^15.5.3",
|
|
56
60
|
"prettier": "^3.6.2",
|
|
57
61
|
"react-dom": "^19.1.1",
|
|
58
62
|
"tsc-alias": "^1.8.16",
|
|
59
63
|
"typescript": "^5.9.2",
|
|
60
|
-
"typescript-eslint": "^8.
|
|
64
|
+
"typescript-eslint": "^8.43.0"
|
|
61
65
|
},
|
|
62
66
|
"packageManager": "yarn@4.9.1",
|
|
63
67
|
"peerDependencies": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"css-properties.d.ts","sourceRoot":"","sources":["../../src/data/css-properties.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,aAAa,UAirBlB,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
File without changes
|