primitive-app 2.1.6 → 2.2.0
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/chunk-rCbxF51U.cjs +1 -0
- package/dist/components/ui/checkbox/Checkbox.vue.d.ts +1 -1
- package/dist/components/ui/native-select/NativeSelectOptGroup.vue.d.ts +50 -50
- package/dist/components/ui/native-select/NativeSelectOption.vue.d.ts +52 -52
- package/dist/components/ui/separator/Separator.vue.d.ts +1 -1
- package/dist/components/ui/switch/Switch.vue.d.ts +1 -0
- package/dist/components/ui/switch/Switch.vue.d.ts.map +1 -1
- package/dist/components/ui/tabs/Tabs.vue.d.ts +2 -2
- package/dist/composables/useJsBaoDataLoader.d.ts.map +1 -1
- package/dist/dev-tools/document-explorer/DocumentExplorerIndex.vue.d.ts.map +1 -1
- package/dist/dev-tools/document-explorer/components/DocumentListPanel.vue.d.ts +3 -15
- package/dist/dev-tools/document-explorer/components/DocumentListPanel.vue.d.ts.map +1 -1
- package/dist/dev-tools/document-explorer/components/DocumentListSection.vue.d.ts +6 -9
- package/dist/dev-tools/document-explorer/components/DocumentListSection.vue.d.ts.map +1 -1
- package/dist/dev-tools/document-explorer/components/DocumentPropertiesPanel.vue.d.ts.map +1 -1
- package/dist/dev-tools/document-explorer/components/DocumentSharingSection.vue.d.ts.map +1 -1
- package/dist/dev-tools/document-explorer/index.d.ts +1 -1
- package/dist/dev-tools/document-explorer/index.d.ts.map +1 -1
- package/dist/dev-tools/document-explorer/types.d.ts +29 -25
- package/dist/dev-tools/document-explorer/types.d.ts.map +1 -1
- package/dist/dev-tools/test-harness/lib.d.ts.map +1 -1
- package/dist/dev-tools/vite-plugin/DevToolsFloatingButton.vue.d.ts +0 -1
- package/dist/dev-tools/vite-plugin/DevToolsFloatingButton.vue.d.ts.map +1 -1
- package/dist/dev-tools/vite-plugin/DevToolsRoot.vue.d.ts +0 -1
- package/dist/dev-tools/vite-plugin/DevToolsRoot.vue.d.ts.map +1 -1
- package/dist/dev-tools/vite-plugin/index.cjs +10 -13
- package/dist/dev-tools/vite-plugin/index.js +53 -119
- package/dist/dev-tools/vite-plugin/plugin.d.ts +0 -6
- package/dist/dev-tools/vite-plugin/plugin.d.ts.map +1 -1
- package/dist/index.cjs +48 -6
- package/dist/index.js +14190 -17188
- package/dist/primitive-app.css +2 -1
- package/package.json +30 -30
- package/dist/dev-tools/document-explorer/components/InvitationPropertiesPanel.vue.d.ts +0 -14
- package/dist/dev-tools/document-explorer/components/InvitationPropertiesPanel.vue.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentListSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/dev-tools/document-explorer/components/DocumentListSection.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DocumentListSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/dev-tools/document-explorer/components/DocumentListSection.vue"],"names":[],"mappings":"AAqXA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAOrD,UAAU,KAAK;IACb,SAAS,EAAE,oBAAoB,EAAE,CAAC;IAClC,iBAAiB,EAAE,oBAAoB,EAAE,CAAC;IAC1C,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,UAAU,EAAE,OAAO,CAAC;IACpB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAwfD,QAAA,MAAM,YAAY;;;;;;;;;;;;;kBA1fD,MAAM;sBACF,OAAO;6EA6f1B,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentPropertiesPanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/dev-tools/document-explorer/components/DocumentPropertiesPanel.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DocumentPropertiesPanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/dev-tools/document-explorer/components/DocumentPropertiesPanel.vue"],"names":[],"mappings":"AA4hBA,OAAO,KAAK,EAEV,oBAAoB,EACpB,SAAS,EACV,MAAM,UAAU,CAAC;AAMlB,UAAU,KAAK;IACb,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC;AAi4BD,QAAA,MAAM,YAAY;;;;;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentSharingSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/dev-tools/document-explorer/components/DocumentSharingSection.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DocumentSharingSection.vue.d.ts","sourceRoot":"","sources":["../../../../src/dev-tools/document-explorer/components/DocumentSharingSection.vue"],"names":[],"mappings":"AA0zBA,UAAU,KAAK;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;CACnB;AA2pCD,QAAA,MAAM,YAAY,sRAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -8,6 +8,6 @@ export { default as DocumentPropertiesPanel } from "./components/DocumentPropert
|
|
|
8
8
|
export { default as DocumentSidebar } from "./components/DocumentSidebar.vue";
|
|
9
9
|
export { default as CreateDocumentDialog } from "./dialogs/CreateDocumentDialog.vue";
|
|
10
10
|
export { useDocumentDebuggerStore, useDocumentExplorerStore, } from "./documentExplorerStore";
|
|
11
|
-
export type { AliasInfo, DocumentInfoWithRoot, FieldInfo, FieldSchemaInfo, FilterMode,
|
|
11
|
+
export type { AliasInfo, DocumentInfoWithRoot, FieldInfo, FieldSchemaInfo, FilterMode, PendingInvitationEntry, GroupPermissionEntry, ResolvedGroupPermission, DocumentCollectionEntry, DocumentListItem, MethodInfo, ModelFilter, ModelInfo, ModelPaginationState, ModelSortState, PageData, PaginatedQueryResult, PermissionEntry, RelationshipConfig, SortDirection, SortField, UniqueConstraintConfig, } from "./types";
|
|
12
12
|
export * from "./utils";
|
|
13
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dev-tools/document-explorer/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAG/E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AAC9F,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAG9E,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAGrF,OAAO,EACL,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,yBAAyB,CAAC;AAGjC,YAAY,EACV,SAAS,EACT,oBAAoB,EACpB,SAAS,EACT,eAAe,EACf,UAAU,EACV,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dev-tools/document-explorer/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAG/E,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AAC9F,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAG9E,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAGrF,OAAO,EACL,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,yBAAyB,CAAC;AAGjC,YAAY,EACV,SAAS,EACT,oBAAoB,EACpB,SAAS,EACT,eAAe,EACf,UAAU,EACV,sBAAsB,EACtB,oBAAoB,EACpB,uBAAuB,EACvB,uBAAuB,EACvB,gBAAgB,EAChB,UAAU,EACV,WAAW,EACX,SAAS,EACT,oBAAoB,EACpB,cAAc,EACd,QAAQ,EACR,oBAAoB,EACpB,eAAe,EACf,kBAAkB,EAClB,aAAa,EACb,SAAS,EACT,sBAAsB,GACvB,MAAM,SAAS,CAAC;AAGjB,cAAc,SAAS,CAAC"}
|
|
@@ -93,35 +93,24 @@ export interface PaginatedQueryResult {
|
|
|
93
93
|
nextCursor: string | null;
|
|
94
94
|
prevCursor: string | null;
|
|
95
95
|
}
|
|
96
|
-
export interface
|
|
96
|
+
export interface DocumentListItem {
|
|
97
97
|
documentId: string;
|
|
98
98
|
title: string;
|
|
99
99
|
permission?: string;
|
|
100
100
|
createdAt?: string;
|
|
101
101
|
createdBy?: string;
|
|
102
102
|
lastModified?: string;
|
|
103
|
-
isRoot: boolean;
|
|
104
103
|
tags?: string[];
|
|
105
104
|
}
|
|
106
|
-
export interface
|
|
107
|
-
invitationId: string;
|
|
105
|
+
export interface DocumentInfoWithRoot {
|
|
108
106
|
documentId: string;
|
|
109
|
-
|
|
110
|
-
permission
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
title?: string;
|
|
117
|
-
document?: {
|
|
118
|
-
documentId?: string;
|
|
119
|
-
title?: string;
|
|
120
|
-
tags?: string[];
|
|
121
|
-
createdAt?: string;
|
|
122
|
-
lastModified?: string;
|
|
123
|
-
createdBy?: string;
|
|
124
|
-
};
|
|
107
|
+
title: string;
|
|
108
|
+
permission?: string;
|
|
109
|
+
createdAt?: string;
|
|
110
|
+
createdBy?: string;
|
|
111
|
+
lastModified?: string;
|
|
112
|
+
isRoot: boolean;
|
|
113
|
+
tags?: string[];
|
|
125
114
|
}
|
|
126
115
|
export interface PermissionEntry {
|
|
127
116
|
userId: string;
|
|
@@ -130,13 +119,28 @@ export interface PermissionEntry {
|
|
|
130
119
|
permission: string;
|
|
131
120
|
grantedAt: string;
|
|
132
121
|
}
|
|
133
|
-
export interface
|
|
134
|
-
invitationId: string;
|
|
122
|
+
export interface PendingInvitationEntry {
|
|
135
123
|
email: string;
|
|
136
124
|
permission: string;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
125
|
+
invitationId: string;
|
|
126
|
+
createdAt: string;
|
|
127
|
+
expiresAt: string;
|
|
128
|
+
}
|
|
129
|
+
export interface GroupPermissionEntry {
|
|
130
|
+
documentId: string;
|
|
131
|
+
groupType: string;
|
|
132
|
+
groupId: string;
|
|
133
|
+
permission: string;
|
|
134
|
+
grantedAt: string;
|
|
135
|
+
grantedBy: string;
|
|
136
|
+
}
|
|
137
|
+
export interface ResolvedGroupPermission extends GroupPermissionEntry {
|
|
138
|
+
groupName?: string;
|
|
139
|
+
}
|
|
140
|
+
export interface DocumentCollectionEntry {
|
|
141
|
+
collectionId: string;
|
|
142
|
+
name: string;
|
|
143
|
+
addedAt: string;
|
|
140
144
|
}
|
|
141
145
|
export interface AliasInfo {
|
|
142
146
|
aliasKey: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/dev-tools/document-explorer/types.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,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BAAsB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAsBhD;
|
|
1
|
+
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../../src/dev-tools/test-harness/lib.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EACV,YAAY,EAEZ,SAAS,EAEV,MAAM,SAAS,CAAC;AAMjB;;GAEG;AACH,eAAO,MAAM,oBAAoB,eAAe,CAAC;AAiBjD;;;;GAIG;AACH,wBAAsB,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,CA6BpD;AAED;;;;GAIG;AACH,wBAAsB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAsBhD;AA8FD;;;;;;GAMG;AACH,wBAAsB,sBAAsB,IAAI,OAAO,CAAC,MAAM,CAAC,CAkF9D;AAoCD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,YAAY,EAAE,CAStE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevToolsFloatingButton.vue.d.ts","sourceRoot":"","sources":["../../../src/dev-tools/vite-plugin/DevToolsFloatingButton.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DevToolsFloatingButton.vue.d.ts","sourceRoot":"","sources":["../../../src/dev-tools/vite-plugin/DevToolsFloatingButton.vue"],"names":[],"mappings":"AAwPA,UAAU,KAAK;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAoPD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -2,7 +2,6 @@ import type { TestGroup } from "../test-harness/types";
|
|
|
2
2
|
interface Props {
|
|
3
3
|
testGroups: TestGroup[];
|
|
4
4
|
appName: string;
|
|
5
|
-
buttonStyle?: Record<string, string>;
|
|
6
5
|
keyboardShortcut?: string;
|
|
7
6
|
}
|
|
8
7
|
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevToolsRoot.vue.d.ts","sourceRoot":"","sources":["../../../src/dev-tools/vite-plugin/DevToolsRoot.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DevToolsRoot.vue.d.ts","sourceRoot":"","sources":["../../../src/dev-tools/vite-plugin/DevToolsRoot.vue"],"names":[],"mappings":"AAmRA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAQvD,UAAU,KAAK;IACb,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAwSD,QAAA,MAAM,YAAY,sRAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,20 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
`),
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../chunk-rCbxF51U.cjs`);let t=require(`node:fs`),n=require(`node:module`),r=require(`glob`),i=require(`path`);i=e.i(i,1);async function a(e,t=`src/tests`,n=`**/*.primitive-test.ts`){return(await(0,r.glob)(n,{cwd:i.default.join(e,t),ignore:[`**/node_modules/**`,`**/dist/**`],absolute:!0})).map(t=>({absolutePath:t,relativePath:i.default.relative(e,t)}))}var o=`virtual:primitive-devtools`,s=`\0`+o,c=`virtual:primitive-devtools-init`,l=`\0`+c;function u(e={}){let{testsDir:r=`src/tests`,testPattern:i=`**/*.primitive-test.ts`,appName:u=`Primitive App`,enabled:d=!0,keyboardShortcut:f}=e,p,m,h=(0,t.readFileSync)((0,n.createRequire)({}.url).resolve(`vue-sonner/style.css`),`utf-8`);return{name:`primitive-devtools`,configResolved(e){p=e.root,m=e.command===`serve`},resolveId(e){if(e===o)return s;if(e===c)return l},async load(e){if(e===s){let e=await a(p,r,i),t=e.map((e,t)=>`import testGroup${t} from '${e.absolutePath}';`).join(`
|
|
2
|
+
`),n=e.map((e,t)=>`...(Array.isArray(testGroup${t}) ? testGroup${t} : [testGroup${t}])`).join(`,
|
|
3
3
|
`);return`
|
|
4
|
-
${
|
|
4
|
+
${t}
|
|
5
5
|
|
|
6
6
|
export const testGroups = [
|
|
7
|
-
${
|
|
7
|
+
${e.length>0?n:``}
|
|
8
8
|
];
|
|
9
9
|
|
|
10
|
-
export const appName = ${JSON.stringify(
|
|
11
|
-
export const
|
|
12
|
-
|
|
13
|
-
`}if(e===y)return`
|
|
10
|
+
export const appName = ${JSON.stringify(u)};
|
|
11
|
+
export const keyboardShortcut = ${JSON.stringify(f)};
|
|
12
|
+
`}if(e===l)return`
|
|
14
13
|
import { createApp, h } from 'vue';
|
|
15
14
|
import { createPinia } from 'pinia';
|
|
16
15
|
import { DevToolsRoot, jsBaoClientService } from 'primitive-app';
|
|
17
|
-
import { testGroups, appName,
|
|
16
|
+
import { testGroups, appName, keyboardShortcut } from 'virtual:primitive-devtools';
|
|
18
17
|
|
|
19
18
|
// Wait for the host app to register its client on window.__primitiveAppClient
|
|
20
19
|
async function waitForAppClient() {
|
|
@@ -49,7 +48,7 @@ const observer = new MutationObserver(async (mutations, obs) => {
|
|
|
49
48
|
// The jsBaoClientService is linked to the app's client above
|
|
50
49
|
const devToolsApp = createApp({
|
|
51
50
|
render() {
|
|
52
|
-
return h(DevToolsRoot, { testGroups, appName,
|
|
51
|
+
return h(DevToolsRoot, { testGroups, appName, keyboardShortcut });
|
|
53
52
|
}
|
|
54
53
|
});
|
|
55
54
|
devToolsApp.use(createPinia());
|
|
@@ -58,6 +57,4 @@ const observer = new MutationObserver(async (mutations, obs) => {
|
|
|
58
57
|
});
|
|
59
58
|
|
|
60
59
|
observer.observe(document.body, { childList: true, subtree: true });
|
|
61
|
-
`},transformIndexHtml(e){if(!
|
|
62
|
-
<script type="module" src="/@id/__x00__virtual:primitive-devtools-init"><\/script>
|
|
63
|
-
</body>`)},hotUpdate({file:e,server:t}){if(e.endsWith(".primitive-test.ts")){const o=t.moduleGraph.getModuleById(c);o&&(t.moduleGraph.invalidateModule(o),t.ws.send({type:"full-reload"}))}}}}exports.primitiveDevTools=D;
|
|
60
|
+
`},transformIndexHtml(e){if(!m||!d)return e;let t=`<style data-primitive-devtools-sonner>${h}</style>`;return e.replace(`</body>`,`${t}\n<script type="module" src="/@id/__x00__virtual:primitive-devtools-init"><\/script>\n</body>`)},hotUpdate({file:e,server:t}){if(e.endsWith(`.primitive-test.ts`)){let e=t.moduleGraph.getModuleById(s);e&&(t.moduleGraph.invalidateModule(e),t.ws.send({type:`full-reload`}))}}}}exports.primitiveDevTools=u;
|
|
@@ -1,126 +1,60 @@
|
|
|
1
|
-
import { readFileSync as
|
|
2
|
-
import { createRequire as
|
|
3
|
-
import { glob as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { readFileSync as e } from "node:fs";
|
|
2
|
+
import { createRequire as t } from "node:module";
|
|
3
|
+
import { glob as n } from "glob";
|
|
4
|
+
import r from "path";
|
|
5
|
+
//#region src/dev-tools/vite-plugin/test-discovery.ts
|
|
6
|
+
async function i(e, t = "src/tests", i = "**/*.primitive-test.ts") {
|
|
7
|
+
return (await n(i, {
|
|
8
|
+
cwd: r.join(e, t),
|
|
9
|
+
ignore: ["**/node_modules/**", "**/dist/**"],
|
|
10
|
+
absolute: !0
|
|
11
|
+
})).map((t) => ({
|
|
12
|
+
absolutePath: t,
|
|
13
|
+
relativePath: r.relative(e, t)
|
|
14
|
+
}));
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
return l;
|
|
36
|
-
if (t === y)
|
|
37
|
-
return f;
|
|
38
|
-
},
|
|
39
|
-
async load(t) {
|
|
40
|
-
if (t === l) {
|
|
41
|
-
const e = await I(u, n, p), o = e.map((m, i) => `import testGroup${i} from '${m.absolutePath}';`).join(`
|
|
42
|
-
`), w = e.map(
|
|
43
|
-
(m, i) => `...(Array.isArray(testGroup${i}) ? testGroup${i} : [testGroup${i}])`
|
|
44
|
-
).join(`,
|
|
45
|
-
`);
|
|
46
|
-
return `
|
|
47
|
-
${o}
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region src/dev-tools/vite-plugin/plugin.ts
|
|
18
|
+
var a = "virtual:primitive-devtools", o = "\0" + a, s = "virtual:primitive-devtools-init", c = "\0" + s;
|
|
19
|
+
function l(n = {}) {
|
|
20
|
+
let { testsDir: r = "src/tests", testPattern: l = "**/*.primitive-test.ts", appName: u = "Primitive App", enabled: d = !0, keyboardShortcut: f } = n, p, m, h = e(t(import.meta.url).resolve("vue-sonner/style.css"), "utf-8");
|
|
21
|
+
return {
|
|
22
|
+
name: "primitive-devtools",
|
|
23
|
+
configResolved(e) {
|
|
24
|
+
p = e.root, m = e.command === "serve";
|
|
25
|
+
},
|
|
26
|
+
resolveId(e) {
|
|
27
|
+
if (e === a) return o;
|
|
28
|
+
if (e === s) return c;
|
|
29
|
+
},
|
|
30
|
+
async load(e) {
|
|
31
|
+
if (e === o) {
|
|
32
|
+
let e = await i(p, r, l), t = e.map((e, t) => `import testGroup${t} from '${e.absolutePath}';`).join("\n"), n = e.map((e, t) => `...(Array.isArray(testGroup${t}) ? testGroup${t} : [testGroup${t}])`).join(",\n ");
|
|
33
|
+
return `
|
|
34
|
+
${t}
|
|
48
35
|
|
|
49
36
|
export const testGroups = [
|
|
50
|
-
${e.length > 0 ?
|
|
37
|
+
${e.length > 0 ? n : ""}
|
|
51
38
|
];
|
|
52
39
|
|
|
53
|
-
export const appName = ${JSON.stringify(
|
|
54
|
-
export const
|
|
55
|
-
export const keyboardShortcut = ${JSON.stringify(b)};
|
|
40
|
+
export const appName = ${JSON.stringify(u)};
|
|
41
|
+
export const keyboardShortcut = ${JSON.stringify(f)};
|
|
56
42
|
`;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
setTimeout(check, 100);
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
check();
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// Wait for main app to mount, then inject dev tools
|
|
80
|
-
const observer = new MutationObserver(async (mutations, obs) => {
|
|
81
|
-
const appEl = document.getElementById('app');
|
|
82
|
-
if (appEl && appEl.children.length > 0) {
|
|
83
|
-
obs.disconnect();
|
|
84
|
-
|
|
85
|
-
// Wait for the app's client to be available and link it to the debug suite
|
|
86
|
-
const appClient = await waitForAppClient();
|
|
87
|
-
jsBaoClientService.setExternalClient(appClient);
|
|
88
|
-
|
|
89
|
-
// Create mount point for dev tools
|
|
90
|
-
const devToolsMount = document.createElement('div');
|
|
91
|
-
devToolsMount.id = 'primitive-devtools-root';
|
|
92
|
-
document.body.appendChild(devToolsMount);
|
|
93
|
-
|
|
94
|
-
// Create the dev tools app with its own Pinia instance
|
|
95
|
-
// The jsBaoClientService is linked to the app's client above
|
|
96
|
-
const devToolsApp = createApp({
|
|
97
|
-
render() {
|
|
98
|
-
return h(DevToolsRoot, { testGroups, appName, buttonStyle, keyboardShortcut });
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
devToolsApp.use(createPinia());
|
|
102
|
-
devToolsApp.mount('#primitive-devtools-root');
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
|
|
106
|
-
observer.observe(document.body, { childList: true, subtree: true });
|
|
107
|
-
`;
|
|
108
|
-
},
|
|
109
|
-
transformIndexHtml(t) {
|
|
110
|
-
if (!d || !c) return t;
|
|
111
|
-
const e = `<style data-primitive-devtools-sonner>${_}</style>`;
|
|
112
|
-
return t.replace("</body>", `${e}
|
|
113
|
-
<script type="module" src="/@id/__x00__virtual:primitive-devtools-init"><\/script>
|
|
114
|
-
</body>`);
|
|
115
|
-
},
|
|
116
|
-
hotUpdate({ file: t, server: e }) {
|
|
117
|
-
if (t.endsWith(".primitive-test.ts")) {
|
|
118
|
-
const o = e.moduleGraph.getModuleById(l);
|
|
119
|
-
o && (e.moduleGraph.invalidateModule(o), e.ws.send({ type: "full-reload" }));
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
};
|
|
43
|
+
}
|
|
44
|
+
if (e === c) return "\nimport { createApp, h } from 'vue';\nimport { createPinia } from 'pinia';\nimport { DevToolsRoot, jsBaoClientService } from 'primitive-app';\nimport { testGroups, appName, keyboardShortcut } from 'virtual:primitive-devtools';\n\n// Wait for the host app to register its client on window.__primitiveAppClient\nasync function waitForAppClient() {\n return new Promise((resolve) => {\n const check = () => {\n if (window.__primitiveAppClient) {\n resolve(window.__primitiveAppClient);\n } else {\n setTimeout(check, 100);\n }\n };\n check();\n });\n}\n\n// Wait for main app to mount, then inject dev tools\nconst observer = new MutationObserver(async (mutations, obs) => {\n const appEl = document.getElementById('app');\n if (appEl && appEl.children.length > 0) {\n obs.disconnect();\n\n // Wait for the app's client to be available and link it to the debug suite\n const appClient = await waitForAppClient();\n jsBaoClientService.setExternalClient(appClient);\n\n // Create mount point for dev tools\n const devToolsMount = document.createElement('div');\n devToolsMount.id = 'primitive-devtools-root';\n document.body.appendChild(devToolsMount);\n\n // Create the dev tools app with its own Pinia instance\n // The jsBaoClientService is linked to the app's client above\n const devToolsApp = createApp({\n render() {\n return h(DevToolsRoot, { testGroups, appName, keyboardShortcut });\n }\n });\n devToolsApp.use(createPinia());\n devToolsApp.mount('#primitive-devtools-root');\n }\n});\n\nobserver.observe(document.body, { childList: true, subtree: true });\n";
|
|
45
|
+
},
|
|
46
|
+
transformIndexHtml(e) {
|
|
47
|
+
if (!m || !d) return e;
|
|
48
|
+
let t = `<style data-primitive-devtools-sonner>${h}</style>`;
|
|
49
|
+
return e.replace("</body>", `${t}\n<script type="module" src="/@id/__x00__virtual:primitive-devtools-init"><\/script>\n</body>`);
|
|
50
|
+
},
|
|
51
|
+
hotUpdate({ file: e, server: t }) {
|
|
52
|
+
if (e.endsWith(".primitive-test.ts")) {
|
|
53
|
+
let e = t.moduleGraph.getModuleById(o);
|
|
54
|
+
e && (t.moduleGraph.invalidateModule(e), t.ws.send({ type: "full-reload" }));
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
};
|
|
123
58
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
};
|
|
59
|
+
//#endregion
|
|
60
|
+
export { l as primitiveDevTools };
|
|
@@ -17,12 +17,6 @@ export interface PrimitiveDevToolsOptions {
|
|
|
17
17
|
* Whether to enable the plugin. Defaults to true in development.
|
|
18
18
|
*/
|
|
19
19
|
enabled?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Custom inline style overrides for the floating toggle button.
|
|
22
|
-
* Use to control position and size, e.g. { bottom: '80px', right: '24px' }.
|
|
23
|
-
* Defaults to bottom-right corner (bottom: 16px, right: 16px, width/height: 48px).
|
|
24
|
-
*/
|
|
25
|
-
buttonStyle?: Record<string, string>;
|
|
26
20
|
/**
|
|
27
21
|
* Keyboard shortcut to toggle dev tools open/closed.
|
|
28
22
|
* Uses "modifier+key" format: "cmd" maps to ⌘ on Mac and Ctrl elsewhere.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/dev-tools/vite-plugin/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAInC,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/dev-tools/vite-plugin/plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAInC,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAQD,wBAAgB,iBAAiB,CAC/B,OAAO,GAAE,wBAA6B,GACrC,MAAM,CA+IR"}
|