dynim-vue 1.0.0 → 1.0.2
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/DynimProvider.d.ts +2 -2
- package/dist/DynimProvider.d.ts.map +1 -1
- package/dist/DynimProvider.js +3 -7
- package/dist/plugins/vite/index.d.ts.map +1 -0
- package/dist/plugins/vite/plugin.d.ts.map +1 -0
- package/package.json +5 -5
- package/dist/vite/index.d.ts.map +0 -1
- package/dist/vite/plugin.d.ts.map +0 -1
- /package/dist/{vite → plugins/vite}/index.d.ts +0 -0
- /package/dist/{vite → plugins/vite}/index.js +0 -0
- /package/dist/{vite → plugins/vite}/plugin.d.ts +0 -0
- /package/dist/{vite → plugins/vite}/plugin.js +0 -0
- /package/src/{vite → plugins/vite}/virtual-module.d.ts +0 -0
package/dist/DynimProvider.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* - Visual builder UI (when user has edit permissions)
|
|
7
7
|
* - Shared context for bundles to access Vue, packages, etc.
|
|
8
8
|
*/
|
|
9
|
-
import { type InjectionKey, type PropType } from 'vue';
|
|
9
|
+
import { type InjectionKey, type PropType, type ComputedRef } from 'vue';
|
|
10
10
|
import * as Vue from 'vue';
|
|
11
11
|
import type { CodeMessage } from 'dynim-core';
|
|
12
12
|
export interface DynimConfig {
|
|
@@ -44,7 +44,7 @@ export interface DynimContextValue {
|
|
|
44
44
|
/** Whether bundle is loading */
|
|
45
45
|
isBundleLoading: boolean;
|
|
46
46
|
}
|
|
47
|
-
export declare const DynimInjectionKey: InjectionKey<DynimContextValue
|
|
47
|
+
export declare const DynimInjectionKey: InjectionKey<ComputedRef<DynimContextValue>>;
|
|
48
48
|
/**
|
|
49
49
|
* DynimProvider - Wrap your app with this to enable Dynim functionality
|
|
50
50
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynimProvider.d.ts","sourceRoot":"","sources":["../src/DynimProvider.ts"],"names":[],"mappings":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C,WAAW,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACjC,yDAAyD;IACzD,WAAW,EAAE,WAAW,CAAC;IACzB,2CAA2C;IAC3C,cAAc,EAAE,OAAO,CAAC;IACxB,gCAAgC;IAChC,eAAe,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,iBAAiB,EAAE,YAAY,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAmB,CAAC;AAE/F;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,aAAa;;cAIJ,QAAQ,CAAC,WAAW,CAAC;;;;;;;;;;;cAArB,QAAQ,CAAC,WAAW,CAAC;;;;;kEAuXzC,CAAC;AAEH;;GAEG;AACH,wBAAgB,QAAQ,IAAI,iBAAiB,CAM5C"}
|
package/dist/DynimProvider.js
CHANGED
|
@@ -335,12 +335,8 @@ export const DynimProvider = defineComponent({
|
|
|
335
335
|
loadBundleRef?.(bundleUrl);
|
|
336
336
|
pendingBundleProjectIdRef = null;
|
|
337
337
|
});
|
|
338
|
-
// Provide context
|
|
339
|
-
provide(DynimInjectionKey, contextValue
|
|
340
|
-
// Watch for context value changes and update provided value
|
|
341
|
-
watch(contextValue, (newValue) => {
|
|
342
|
-
provide(DynimInjectionKey, newValue);
|
|
343
|
-
});
|
|
338
|
+
// Provide context (provide the computed ref so it stays reactive)
|
|
339
|
+
provide(DynimInjectionKey, contextValue);
|
|
344
340
|
// Render function
|
|
345
341
|
return () => {
|
|
346
342
|
// Render content
|
|
@@ -381,5 +377,5 @@ export function useDynim() {
|
|
|
381
377
|
if (!context) {
|
|
382
378
|
throw new Error('useDynim must be used within a DynimProvider');
|
|
383
379
|
}
|
|
384
|
-
return context;
|
|
380
|
+
return context.value;
|
|
385
381
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/vite/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,KAAK,oBAAoB,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/plugins/vite/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAKlC,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAA;CACnB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAC3B,iBAAiB,EAAE,MAAM,EAAE,GAAG,oBAAoB,GACjD,MAAM,CAwCR;AAED,eAAe,aAAa,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dynim-vue",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -10,16 +10,16 @@
|
|
|
10
10
|
"import": "./dist/index.js"
|
|
11
11
|
},
|
|
12
12
|
"./vite": {
|
|
13
|
-
"types": "./dist/vite/index.d.ts",
|
|
14
|
-
"import": "./dist/vite/index.js"
|
|
13
|
+
"types": "./dist/plugins/vite/index.d.ts",
|
|
14
|
+
"import": "./dist/plugins/vite/index.js"
|
|
15
15
|
},
|
|
16
16
|
"./vite/virtual-module": {
|
|
17
|
-
"types": "./src/vite/virtual-module.d.ts"
|
|
17
|
+
"types": "./src/plugins/vite/virtual-module.d.ts"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
|
21
21
|
"dist",
|
|
22
|
-
"src/vite/virtual-module.d.ts",
|
|
22
|
+
"src/plugins/vite/virtual-module.d.ts",
|
|
23
23
|
"README.md"
|
|
24
24
|
],
|
|
25
25
|
"scripts": {
|
package/dist/vite/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/vite/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,KAAK,oBAAoB,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/vite/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAKlC,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,QAAQ,EAAE,MAAM,EAAE,CAAA;CACnB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,aAAa,CAC3B,iBAAiB,EAAE,MAAM,EAAE,GAAG,oBAAoB,GACjD,MAAM,CAwCR;AAED,eAAe,aAAa,CAAA"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|