@ui0/core 0.1.5 → 0.1.10
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/defaults.d.ts +5 -3
- package/dist/defaults.d.ts.map +1 -1
- package/dist/defaults.spec.d.ts +6 -0
- package/dist/defaults.spec.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/keys.d.ts.map +1 -1
- package/dist/keys.spec.d.ts +2 -0
- package/dist/keys.spec.d.ts.map +1 -0
- package/dist/plugin.d.ts.map +1 -1
- package/dist/ui0.config.d.ts.map +1 -1
- package/package.json +5 -4
package/dist/defaults.d.ts
CHANGED
|
@@ -2,12 +2,14 @@ import { Ui0CoreInstance } from '@ui0/types';
|
|
|
2
2
|
/**
|
|
3
3
|
* The `config.components[name]` slice of a core instance (undefined when the
|
|
4
4
|
* app runs without a core/config or the component has no configured defaults).
|
|
5
|
+
* Typed against Ui0ComponentsProps - the USER config side: every key is
|
|
6
|
+
* optional, the component merges it over its own declared defaults.
|
|
5
7
|
*
|
|
6
8
|
* @param name - the component's kebab-case registry name
|
|
7
9
|
* @param core - the current core instance (or undefined outside a host)
|
|
8
10
|
* @returns the configured defaults record for the component, if any
|
|
9
11
|
*/
|
|
10
|
-
export declare function getComponentDefaults<N extends keyof
|
|
12
|
+
export declare function getComponentDefaults<N extends keyof Ui0ComponentsProps>(name: N, core: Ui0CoreInstance | undefined): Ui0ComponentsProps[N] | undefined;
|
|
11
13
|
/**
|
|
12
14
|
* The read-through cascade: every access to a key answers
|
|
13
15
|
* `props[key] ?? config[key] ?? local[key]`. Implemented as a proxy so Vue's
|
|
@@ -19,7 +21,7 @@ export declare function getComponentDefaults<N extends keyof Ui0ComponentsDefaul
|
|
|
19
21
|
* @param local - the component's own fallback values
|
|
20
22
|
* @returns a Defaults-shaped view over the cascade
|
|
21
23
|
*/
|
|
22
|
-
export declare function createDefaultsProxy<N extends keyof
|
|
24
|
+
export declare function createDefaultsProxy<N extends keyof Ui0ComponentsProps>(props: object, config: Partial<Ui0ComponentsProps[N]> | undefined, local: Partial<Ui0ComponentsProps[N]>): NonNullable<Ui0ComponentsProps[N]>;
|
|
23
25
|
/**
|
|
24
26
|
* Setup-time helper: injects the core instance, reads the component's
|
|
25
27
|
* configured defaults and returns the cascading defaults view. Replaces
|
|
@@ -31,5 +33,5 @@ export declare function createDefaultsProxy<N extends keyof Ui0ComponentsDefault
|
|
|
31
33
|
* @param local - the component's own fallback values (the former withDefaults)
|
|
32
34
|
* @returns the Defaults-shaped cascade view
|
|
33
35
|
*/
|
|
34
|
-
export declare function useComponentDefaults<N extends keyof
|
|
36
|
+
export declare function useComponentDefaults<N extends keyof Ui0ComponentsProps>(name: N, props: object, local?: Partial<Ui0ComponentsProps[N]>): NonNullable<Ui0ComponentsProps[N]>;
|
|
35
37
|
//# sourceMappingURL=defaults.d.ts.map
|
package/dist/defaults.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../src/defaults.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAMjD
|
|
1
|
+
{"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../src/defaults.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAMjD;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,MAAM,kBAAkB,EACrE,IAAI,EAAE,CAAC,EACP,IAAI,EAAE,eAAe,GAAG,SAAS,GAChC,kBAAkB,CAAC,CAAC,CAAC,GAAG,SAAS,CAEnC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,MAAM,kBAAkB,EACpE,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,EAClD,KAAK,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,GACpC,WAAW,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAUpC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,MAAM,kBAAkB,EACrE,IAAI,EAAE,CAAC,EACP,KAAK,EAAE,MAAM,EACb,KAAK,GAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAM,GACzC,WAAW,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAMpC"}
|
package/dist/defaults.spec.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defaults.spec.d.ts","sourceRoot":"","sources":["../src/defaults.spec.ts"],"names":[],"mappings":"AAaA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,CAAC,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAChD;CACF"}
|
|
1
|
+
{"version":3,"file":"defaults.spec.d.ts","sourceRoot":"","sources":["../src/defaults.spec.ts"],"names":[],"mappings":"AAaA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,kBAAkB;QAC1B,UAAU,CAAC,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAChD;IACD,UAAU,qBAAqB;QAC7B,UAAU,CAAC,EAAE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,MAAM,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAChD;CACF"}
|
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var d = class {
|
|
|
11
11
|
setVue(e) {
|
|
12
12
|
this.vue = e;
|
|
13
13
|
}
|
|
14
|
-
}, f = Symbol("ui0-core"), p = {}, m = Symbol("ui0-app-key"), h = /*#__PURE__*/ ((e, t) => {
|
|
14
|
+
}, f = Symbol.for("ui0-core"), p = { components: {} }, m = Symbol("ui0-app-key"), h = /*#__PURE__*/ ((e, t) => {
|
|
15
15
|
let n = e.__vccOpts || e;
|
|
16
16
|
for (let [e, r] of t) n[e] = r;
|
|
17
17
|
return n;
|
|
@@ -77,7 +77,7 @@ function x(e) {
|
|
|
77
77
|
t && "install" in e && e.install(t, n);
|
|
78
78
|
}
|
|
79
79
|
function i(e) {
|
|
80
|
-
for (b(), e.provide(f, t), t.setVue(e)
|
|
80
|
+
for (b(), e.provide(f, t), t.setVue(e); n.length;) {
|
|
81
81
|
let [e, t] = n.shift() || [];
|
|
82
82
|
e && r(e, t);
|
|
83
83
|
}
|
package/dist/keys.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../src/keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AAEvC,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"keys.d.ts","sourceRoot":"","sources":["../src/keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AAEvC,eAAO,MAAM,UAAU,EAA6B,YAAY,CAAC,eAAe,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keys.spec.d.ts","sourceRoot":"","sources":["../src/keys.spec.ts"],"names":[],"mappings":""}
|
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAChG,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAM9B,wBAAgB,SAAS,CAAC,MAAM,EAAE,aAAa;kBA4BxB,wBAAwB,YAAY,GAAG;mBAftC,GAAG;EAuB1B;AAED,OAAO,QAAQ,KAAK,CAAC;IACnB,UAAU,yBAAyB;QACjC,IAAI,EAAE,qBAAqB,CAAA;KAC5B;CACF"}
|
package/dist/ui0.config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui0.config.d.ts","sourceRoot":"","sources":["../src/ui0.config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE/C,eAAO,MAAM,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"ui0.config.d.ts","sourceRoot":"","sources":["../src/ui0.config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE/C,eAAO,MAAM,MAAM,EAAE,aAEpB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui0/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"import": "./dist/index.js"
|
|
18
18
|
},
|
|
19
19
|
"./style.css": "./dist/style.css",
|
|
20
|
+
"./style": "./dist/style.css",
|
|
20
21
|
"./app": "./dist/app.module.css",
|
|
21
22
|
"./app.module.css": "./dist/app.module.css"
|
|
22
23
|
},
|
|
@@ -27,14 +28,14 @@
|
|
|
27
28
|
"core:publish": "node ../../scripts/publish-packages.ts"
|
|
28
29
|
},
|
|
29
30
|
"dependencies": {
|
|
30
|
-
"@ui0/composable": "^0.1.
|
|
31
|
-
"@ui0/types": "^0.1.
|
|
31
|
+
"@ui0/composable": "^0.1.10",
|
|
32
|
+
"@ui0/types": "^0.1.10"
|
|
32
33
|
},
|
|
33
34
|
"peerDependencies": {
|
|
34
35
|
"vue": "^3.5.45",
|
|
35
36
|
"@ui0/icon": "^0.1.0"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
|
-
"@ui0/icon": "^0.1.
|
|
39
|
+
"@ui0/icon": "^0.1.10"
|
|
39
40
|
}
|
|
40
41
|
}
|