@jasonshimmy/custom-elements-runtime 1.0.0 → 1.0.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.
- package/dist/custom-elements-runtime.cjs.js +11 -11
- package/dist/custom-elements-runtime.cjs.js.map +1 -1
- package/dist/custom-elements-runtime.es.js +1204 -1192
- package/dist/custom-elements-runtime.es.js.map +1 -1
- package/dist/custom-elements-runtime.umd.js +12 -12
- package/dist/custom-elements-runtime.umd.js.map +1 -1
- package/dist/runtime/helpers.d.ts +0 -3
- package/dist/runtime/reactive.d.ts +5 -0
- package/dist/runtime/style.d.ts +1 -1
- package/package.json +1 -1
|
@@ -19,9 +19,6 @@ export declare function getStringCacheStats(): {
|
|
|
19
19
|
htmlEscapeCacheSize: number;
|
|
20
20
|
};
|
|
21
21
|
export declare function escapeHTML(str: string | number | boolean): string | number | boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Get nested property value from object using dot notation
|
|
24
|
-
*/
|
|
25
22
|
export declare function getNestedValue(obj: any, path: string): any;
|
|
26
23
|
/**
|
|
27
24
|
* Set nested property value in object using dot notation
|
|
@@ -89,6 +89,11 @@ export declare class ReactiveState<T> {
|
|
|
89
89
|
* ```
|
|
90
90
|
*/
|
|
91
91
|
export declare function ref<T = null>(initialValue?: T): ReactiveState<T extends undefined ? null : T>;
|
|
92
|
+
/**
|
|
93
|
+
* Type guard to detect ReactiveState instances in a robust way that works
|
|
94
|
+
* across bundlers, minifiers, and multiple package copies.
|
|
95
|
+
*/
|
|
96
|
+
export declare function isReactiveState(v: any): v is ReactiveState<any>;
|
|
92
97
|
/**
|
|
93
98
|
* Create computed state that derives from other reactive state
|
|
94
99
|
*
|
package/dist/runtime/style.d.ts
CHANGED
|
@@ -26,8 +26,8 @@ type CSSMap = Record<string, string>;
|
|
|
26
26
|
type SelectorVariantMap = Record<string, (selector: string, body: string) => string>;
|
|
27
27
|
type MediaVariantMap = Record<string, string>;
|
|
28
28
|
export declare const colors: Record<string, Record<string, string>>;
|
|
29
|
-
export declare const utilityMap: CSSMap;
|
|
30
29
|
export declare const spacing = "0.25rem";
|
|
30
|
+
export declare const utilityMap: CSSMap;
|
|
31
31
|
export declare const spacingProps: Record<string, string[]>;
|
|
32
32
|
export declare const selectorVariants: SelectorVariantMap;
|
|
33
33
|
export declare const mediaVariants: MediaVariantMap;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jasonshimmy/custom-elements-runtime",
|
|
3
3
|
"description": "A powerful, modern, and lightweight runtime for creating reactive web components with TypeScript",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"web-components",
|