primitive-app 2.0.0 → 2.1.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/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +2 -2
- package/dist/components/ui/native-select/NativeSelect.vue.d.ts.map +1 -1
- package/dist/components/ui/native-select/NativeSelectOptGroup.vue.d.ts +6 -6
- package/dist/components/ui/native-select/NativeSelectOption.vue.d.ts +6 -6
- package/dist/components/ui/tabs/Tabs.vue.d.ts +25 -0
- package/dist/components/ui/tabs/Tabs.vue.d.ts.map +1 -0
- package/dist/components/ui/tabs/TabsContent.vue.d.ts +19 -0
- package/dist/components/ui/tabs/TabsContent.vue.d.ts.map +1 -0
- package/dist/components/ui/tabs/TabsList.vue.d.ts +19 -0
- package/dist/components/ui/tabs/TabsList.vue.d.ts.map +1 -0
- package/dist/components/ui/tabs/TabsTrigger.vue.d.ts +19 -0
- package/dist/components/ui/tabs/TabsTrigger.vue.d.ts.map +1 -0
- package/dist/components/ui/tabs/index.d.ts +5 -0
- package/dist/components/ui/tabs/index.d.ts.map +1 -0
- package/dist/{components/debug-suite/pages/DebuggingSuiteTests.vue.d.ts → dev-tools/document-explorer/DocumentExplorerIndex.vue.d.ts} +1 -1
- package/dist/dev-tools/document-explorer/DocumentExplorerIndex.vue.d.ts.map +1 -0
- package/dist/dev-tools/document-explorer/DocumentExplorerModel.vue.d.ts +11 -0
- package/dist/dev-tools/document-explorer/DocumentExplorerModel.vue.d.ts.map +1 -0
- package/dist/{components/debug-suite/document-debugger → dev-tools/document-explorer}/DocumentSidebar.vue.d.ts +4 -3
- package/dist/dev-tools/document-explorer/DocumentSidebar.vue.d.ts.map +1 -0
- package/dist/{components/debug-suite/document-debugger → dev-tools/document-explorer}/dialogs/MassDeleteDocsDialog.vue.d.ts +1 -0
- package/dist/dev-tools/document-explorer/dialogs/MassDeleteDocsDialog.vue.d.ts.map +1 -0
- package/dist/dev-tools/document-explorer/dialogs/MassDeleteRecordsDialog.vue.d.ts.map +1 -0
- package/dist/{stores/documentDebuggerStore.d.ts → dev-tools/document-explorer/documentExplorerStore.d.ts} +6 -5
- package/dist/dev-tools/document-explorer/documentExplorerStore.d.ts.map +1 -0
- package/dist/dev-tools/document-explorer/index.d.ts +12 -0
- package/dist/dev-tools/document-explorer/index.d.ts.map +1 -0
- package/dist/dev-tools/document-explorer/types.d.ts.map +1 -0
- package/dist/{components/debug-suite/document-debugger → dev-tools/document-explorer}/utils.d.ts +1 -1
- package/dist/dev-tools/document-explorer/utils.d.ts.map +1 -0
- package/dist/dev-tools/index.d.ts +20 -0
- package/dist/dev-tools/index.d.ts.map +1 -0
- package/dist/{components/debug-suite/pages/DebugSuiteLayout.vue.d.ts → dev-tools/test-harness/TestRunner.vue.d.ts} +6 -6
- package/dist/dev-tools/test-harness/TestRunner.vue.d.ts.map +1 -0
- package/dist/dev-tools/test-harness/index.d.ts +7 -0
- package/dist/dev-tools/test-harness/index.d.ts.map +1 -0
- package/dist/dev-tools/test-harness/lib.d.ts +29 -0
- package/dist/dev-tools/test-harness/lib.d.ts.map +1 -0
- package/dist/dev-tools/test-harness/types.d.ts +42 -0
- package/dist/dev-tools/test-harness/types.d.ts.map +1 -0
- package/dist/dev-tools/vite-plugin/DevToolsFloatingButton.vue.d.ts +11 -0
- package/dist/dev-tools/vite-plugin/DevToolsFloatingButton.vue.d.ts.map +1 -0
- package/dist/dev-tools/vite-plugin/DevToolsOverlay.vue.d.ts +13 -0
- package/dist/dev-tools/vite-plugin/DevToolsOverlay.vue.d.ts.map +1 -0
- package/dist/{components/debug-suite/PrimitiveDebuggingSuite.vue.d.ts → dev-tools/vite-plugin/DevToolsRoot.vue.d.ts} +4 -10
- package/dist/dev-tools/vite-plugin/DevToolsRoot.vue.d.ts.map +1 -0
- package/dist/dev-tools/vite-plugin/index.cjs +60 -0
- package/dist/dev-tools/vite-plugin/index.d.ts +11 -0
- package/dist/dev-tools/vite-plugin/index.d.ts.map +1 -0
- package/dist/dev-tools/vite-plugin/index.js +116 -0
- package/dist/dev-tools/vite-plugin/plugin.d.ts +22 -0
- package/dist/dev-tools/vite-plugin/plugin.d.ts.map +1 -0
- package/dist/dev-tools/vite-plugin/test-discovery.d.ts +6 -0
- package/dist/dev-tools/vite-plugin/test-discovery.d.ts.map +1 -0
- package/dist/index.cjs +8 -0
- package/dist/index.d.ts +5 -39
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11501 -19246
- package/dist/lib/logger.d.ts +5 -0
- package/dist/lib/logger.d.ts.map +1 -1
- package/dist/services/JsBaoClientService.d.ts +15 -34
- package/dist/services/JsBaoClientService.d.ts.map +1 -1
- package/package.json +8 -2
- package/dist/components/auth/EditProfile.vue.d.ts +0 -34
- package/dist/components/auth/EditProfile.vue.d.ts.map +0 -1
- package/dist/components/auth/PasskeyManagement.vue.d.ts +0 -16
- package/dist/components/auth/PasskeyManagement.vue.d.ts.map +0 -1
- package/dist/components/auth/PrimitiveLogin.vue.d.ts +0 -81
- package/dist/components/auth/PrimitiveLogin.vue.d.ts.map +0 -1
- package/dist/components/auth/PrimitiveLogout.vue.d.ts +0 -32
- package/dist/components/auth/PrimitiveLogout.vue.d.ts.map +0 -1
- package/dist/components/auth/PrimitiveOauthCallback.vue.d.ts +0 -63
- package/dist/components/auth/PrimitiveOauthCallback.vue.d.ts.map +0 -1
- package/dist/components/debug-suite/EphemeralDocService.d.ts +0 -46
- package/dist/components/debug-suite/EphemeralDocService.d.ts.map +0 -1
- package/dist/components/debug-suite/PrimitiveDebuggingSuite.vue.d.ts.map +0 -1
- package/dist/components/debug-suite/PrimitiveTestRunner.vue.d.ts +0 -19
- package/dist/components/debug-suite/PrimitiveTestRunner.vue.d.ts.map +0 -1
- package/dist/components/debug-suite/document-debugger/DocumentDebuggerIndex.vue.d.ts +0 -4
- package/dist/components/debug-suite/document-debugger/DocumentDebuggerIndex.vue.d.ts.map +0 -1
- package/dist/components/debug-suite/document-debugger/DocumentDebuggerModel.vue.d.ts +0 -4
- package/dist/components/debug-suite/document-debugger/DocumentDebuggerModel.vue.d.ts.map +0 -1
- package/dist/components/debug-suite/document-debugger/DocumentSidebar.vue.d.ts.map +0 -1
- package/dist/components/debug-suite/document-debugger/dialogs/MassDeleteDocsDialog.vue.d.ts.map +0 -1
- package/dist/components/debug-suite/document-debugger/dialogs/MassDeleteRecordsDialog.vue.d.ts.map +0 -1
- package/dist/components/debug-suite/document-debugger/types.d.ts.map +0 -1
- package/dist/components/debug-suite/document-debugger/utils.d.ts.map +0 -1
- package/dist/components/debug-suite/pages/DebugSuiteLayout.vue.d.ts.map +0 -1
- package/dist/components/debug-suite/pages/DebuggingSuiteDocuments.vue.d.ts +0 -4
- package/dist/components/debug-suite/pages/DebuggingSuiteDocuments.vue.d.ts.map +0 -1
- package/dist/components/debug-suite/pages/DebuggingSuiteDocumentsModel.vue.d.ts +0 -4
- package/dist/components/debug-suite/pages/DebuggingSuiteDocumentsModel.vue.d.ts.map +0 -1
- package/dist/components/debug-suite/pages/DebuggingSuiteHome.vue.d.ts +0 -4
- package/dist/components/debug-suite/pages/DebuggingSuiteHome.vue.d.ts.map +0 -1
- package/dist/components/debug-suite/pages/DebuggingSuiteTests.vue.d.ts.map +0 -1
- package/dist/components/debug-suite/testTypes.d.ts +0 -18
- package/dist/components/debug-suite/testTypes.d.ts.map +0 -1
- package/dist/components/documents/PrimitiveDocumentList.vue.d.ts +0 -36
- package/dist/components/documents/PrimitiveDocumentList.vue.d.ts.map +0 -1
- package/dist/components/documents/PrimitiveDocumentSwitcher.vue.d.ts +0 -44
- package/dist/components/documents/PrimitiveDocumentSwitcher.vue.d.ts.map +0 -1
- package/dist/components/documents/PrimitiveShareDocumentDialog.vue.d.ts +0 -33
- package/dist/components/documents/PrimitiveShareDocumentDialog.vue.d.ts.map +0 -1
- package/dist/components/shared/PrimitiveMobileTabBar.vue.d.ts +0 -40
- package/dist/components/shared/PrimitiveMobileTabBar.vue.d.ts.map +0 -1
- package/dist/components/shared/PrimitiveUserMenu.vue.d.ts +0 -38
- package/dist/components/shared/PrimitiveUserMenu.vue.d.ts.map +0 -1
- package/dist/components/shared/PrimitiveUserTabItem.vue.d.ts +0 -41
- package/dist/components/shared/PrimitiveUserTabItem.vue.d.ts.map +0 -1
- package/dist/components/ui/carousel/CarouselContent.vue.d.ts +0 -15
- package/dist/components/ui/carousel/CarouselContent.vue.d.ts.map +0 -1
- package/dist/components/ui/carousel/CarouselItem.vue.d.ts +0 -15
- package/dist/components/ui/carousel/CarouselItem.vue.d.ts.map +0 -1
- package/dist/components/ui/carousel/CarouselNext.vue.d.ts +0 -23
- package/dist/components/ui/carousel/CarouselNext.vue.d.ts.map +0 -1
- package/dist/components/ui/carousel/CarouselPrevious.vue.d.ts +0 -23
- package/dist/components/ui/carousel/CarouselPrevious.vue.d.ts.map +0 -1
- package/dist/components/ui/carousel/index.d.ts +0 -8
- package/dist/components/ui/carousel/index.d.ts.map +0 -1
- package/dist/components/ui/carousel/interface.d.ts +0 -31
- package/dist/components/ui/carousel/interface.d.ts.map +0 -1
- package/dist/components/ui/carousel/useCarousel.d.ts +0 -5
- package/dist/components/ui/carousel/useCarousel.d.ts.map +0 -1
- package/dist/composables/useTheme.d.ts +0 -34
- package/dist/composables/useTheme.d.ts.map +0 -1
- package/dist/createPrimitiveApp.d.ts +0 -57
- package/dist/createPrimitiveApp.d.ts.map +0 -1
- package/dist/index.umd.cjs +0 -9
- package/dist/lib/routeOrUrl.d.ts +0 -25
- package/dist/lib/routeOrUrl.d.ts.map +0 -1
- package/dist/models/UserPref.d.ts +0 -10
- package/dist/models/UserPref.d.ts.map +0 -1
- package/dist/models/generated/index.d.ts +0 -3
- package/dist/models/generated/index.d.ts.map +0 -1
- package/dist/models/generated/relationships.d.ts +0 -2
- package/dist/models/generated/relationships.d.ts.map +0 -1
- package/dist/pages/PrimitiveNotFound.vue.d.ts +0 -18
- package/dist/pages/PrimitiveNotFound.vue.d.ts.map +0 -1
- package/dist/router/primitiveRouter.d.ts +0 -77
- package/dist/router/primitiveRouter.d.ts.map +0 -1
- package/dist/stores/documentDebuggerStore.d.ts.map +0 -1
- package/dist/stores/userStore.d.ts +0 -413
- package/dist/stores/userStore.d.ts.map +0 -1
- package/dist/types/router.d.ts +0 -14
- package/dist/types/router.d.ts.map +0 -1
- /package/dist/{components/debug-suite/document-debugger → dev-tools/document-explorer}/dialogs/MassDeleteRecordsDialog.vue.d.ts +0 -0
- /package/dist/{components/debug-suite/document-debugger → dev-tools/document-explorer}/types.d.ts +0 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("glob"),u=require("path");async function T(r,n="src/tests",p="**/*.primitive-test.ts"){const a=u.join(r,n);return(await _.glob(p,{cwd:a,ignore:["**/node_modules/**","**/dist/**"],absolute:!0})).map(o=>({absolutePath:o,relativePath:u.relative(r,o)}))}const f="virtual:primitive-devtools",l="\0"+f,h="virtual:primitive-devtools-init",m="\0"+h;function w(r={}){const{testsDir:n="src/tests",testPattern:p="**/*.primitive-test.ts",appName:a="Primitive App",enabled:c=!0}=r;let o,d;return{name:"primitive-devtools",configResolved(t){o=t.root,d=t.command==="serve"},resolveId(t){if(t===f)return l;if(t===h)return m},async load(t){if(t===l){const e=await T(o,n,p),s=e.map((v,i)=>`import testGroup${i} from '${v.absolutePath}';`).join(`
|
|
2
|
+
`),b=e.map((v,i)=>`...(Array.isArray(testGroup${i}) ? testGroup${i} : [testGroup${i}])`).join(`,
|
|
3
|
+
`);return`
|
|
4
|
+
${s}
|
|
5
|
+
|
|
6
|
+
export const testGroups = [
|
|
7
|
+
${e.length>0?b:""}
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
export const appName = ${JSON.stringify(a)};
|
|
11
|
+
`}if(t===m)return`
|
|
12
|
+
import { createApp, h } from 'vue';
|
|
13
|
+
import { createPinia } from 'pinia';
|
|
14
|
+
import { DevToolsRoot, jsBaoClientService } from 'primitive-app';
|
|
15
|
+
import { testGroups, appName } from 'virtual:primitive-devtools';
|
|
16
|
+
|
|
17
|
+
// Wait for the host app to register its client on window.__primitiveAppClient
|
|
18
|
+
async function waitForAppClient() {
|
|
19
|
+
return new Promise((resolve) => {
|
|
20
|
+
const check = () => {
|
|
21
|
+
if (window.__primitiveAppClient) {
|
|
22
|
+
resolve(window.__primitiveAppClient);
|
|
23
|
+
} else {
|
|
24
|
+
setTimeout(check, 100);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
check();
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Wait for main app to mount, then inject dev tools
|
|
32
|
+
const observer = new MutationObserver(async (mutations, obs) => {
|
|
33
|
+
const appEl = document.getElementById('app');
|
|
34
|
+
if (appEl && appEl.children.length > 0) {
|
|
35
|
+
obs.disconnect();
|
|
36
|
+
|
|
37
|
+
// Wait for the app's client to be available and link it to the debug suite
|
|
38
|
+
const appClient = await waitForAppClient();
|
|
39
|
+
jsBaoClientService.setExternalClient(appClient);
|
|
40
|
+
|
|
41
|
+
// Create mount point for dev tools
|
|
42
|
+
const devToolsMount = document.createElement('div');
|
|
43
|
+
devToolsMount.id = 'primitive-devtools-root';
|
|
44
|
+
document.body.appendChild(devToolsMount);
|
|
45
|
+
|
|
46
|
+
// Create the dev tools app with its own Pinia instance
|
|
47
|
+
// The jsBaoClientService is linked to the app's client above
|
|
48
|
+
const devToolsApp = createApp({
|
|
49
|
+
render() {
|
|
50
|
+
return h(DevToolsRoot, { testGroups, appName });
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
devToolsApp.use(createPinia());
|
|
54
|
+
devToolsApp.mount('#primitive-devtools-root');
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
observer.observe(document.body, { childList: true, subtree: true });
|
|
59
|
+
`},transformIndexHtml(t){return!d||!c?t:t.replace("</body>",`<script type="module" src="/@id/__x00__virtual:primitive-devtools-init"><\/script>
|
|
60
|
+
</body>`)},handleHotUpdate({file:t,server:e}){if(t.endsWith(".primitive-test.ts")){const s=e.moduleGraph.getModuleById(l);s&&(e.moduleGraph.invalidateModule(s),e.ws.send({type:"full-reload"}))}}}}exports.primitiveDevTools=w;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vite plugin exports for primitive dev tools.
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This entry point is loaded at Vite config time (Node.js), so it must NOT
|
|
5
|
+
* export Vue components or anything that depends on browser-only modules.
|
|
6
|
+
* The DevTools components are exported from the main "primitive-app" entry point
|
|
7
|
+
* and are imported at runtime via the plugin's virtual module.
|
|
8
|
+
*/
|
|
9
|
+
export { primitiveDevTools } from "./plugin";
|
|
10
|
+
export type { PrimitiveDevToolsOptions } from "./plugin";
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dev-tools/vite-plugin/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,YAAY,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { glob as b } from "glob";
|
|
2
|
+
import v from "path";
|
|
3
|
+
async function w(r, n = "src/tests", p = "**/*.primitive-test.ts") {
|
|
4
|
+
const a = v.join(r, n);
|
|
5
|
+
return (await b(p, {
|
|
6
|
+
cwd: a,
|
|
7
|
+
ignore: ["**/node_modules/**", "**/dist/**"],
|
|
8
|
+
absolute: !0
|
|
9
|
+
})).map((o) => ({
|
|
10
|
+
absolutePath: o,
|
|
11
|
+
relativePath: v.relative(r, o)
|
|
12
|
+
}));
|
|
13
|
+
}
|
|
14
|
+
const f = "virtual:primitive-devtools", l = "\0" + f, h = "virtual:primitive-devtools-init", u = "\0" + h;
|
|
15
|
+
function y(r = {}) {
|
|
16
|
+
const {
|
|
17
|
+
testsDir: n = "src/tests",
|
|
18
|
+
testPattern: p = "**/*.primitive-test.ts",
|
|
19
|
+
appName: a = "Primitive App",
|
|
20
|
+
enabled: c = !0
|
|
21
|
+
} = r;
|
|
22
|
+
let o, d;
|
|
23
|
+
return {
|
|
24
|
+
name: "primitive-devtools",
|
|
25
|
+
configResolved(t) {
|
|
26
|
+
o = t.root, d = t.command === "serve";
|
|
27
|
+
},
|
|
28
|
+
resolveId(t) {
|
|
29
|
+
if (t === f)
|
|
30
|
+
return l;
|
|
31
|
+
if (t === h)
|
|
32
|
+
return u;
|
|
33
|
+
},
|
|
34
|
+
async load(t) {
|
|
35
|
+
if (t === l) {
|
|
36
|
+
const e = await w(o, n, p), s = e.map((m, i) => `import testGroup${i} from '${m.absolutePath}';`).join(`
|
|
37
|
+
`), _ = e.map(
|
|
38
|
+
(m, i) => `...(Array.isArray(testGroup${i}) ? testGroup${i} : [testGroup${i}])`
|
|
39
|
+
).join(`,
|
|
40
|
+
`);
|
|
41
|
+
return `
|
|
42
|
+
${s}
|
|
43
|
+
|
|
44
|
+
export const testGroups = [
|
|
45
|
+
${e.length > 0 ? _ : ""}
|
|
46
|
+
];
|
|
47
|
+
|
|
48
|
+
export const appName = ${JSON.stringify(a)};
|
|
49
|
+
`;
|
|
50
|
+
}
|
|
51
|
+
if (t === u)
|
|
52
|
+
return `
|
|
53
|
+
import { createApp, h } from 'vue';
|
|
54
|
+
import { createPinia } from 'pinia';
|
|
55
|
+
import { DevToolsRoot, jsBaoClientService } from 'primitive-app';
|
|
56
|
+
import { testGroups, appName } from 'virtual:primitive-devtools';
|
|
57
|
+
|
|
58
|
+
// Wait for the host app to register its client on window.__primitiveAppClient
|
|
59
|
+
async function waitForAppClient() {
|
|
60
|
+
return new Promise((resolve) => {
|
|
61
|
+
const check = () => {
|
|
62
|
+
if (window.__primitiveAppClient) {
|
|
63
|
+
resolve(window.__primitiveAppClient);
|
|
64
|
+
} else {
|
|
65
|
+
setTimeout(check, 100);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
check();
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// Wait for main app to mount, then inject dev tools
|
|
73
|
+
const observer = new MutationObserver(async (mutations, obs) => {
|
|
74
|
+
const appEl = document.getElementById('app');
|
|
75
|
+
if (appEl && appEl.children.length > 0) {
|
|
76
|
+
obs.disconnect();
|
|
77
|
+
|
|
78
|
+
// Wait for the app's client to be available and link it to the debug suite
|
|
79
|
+
const appClient = await waitForAppClient();
|
|
80
|
+
jsBaoClientService.setExternalClient(appClient);
|
|
81
|
+
|
|
82
|
+
// Create mount point for dev tools
|
|
83
|
+
const devToolsMount = document.createElement('div');
|
|
84
|
+
devToolsMount.id = 'primitive-devtools-root';
|
|
85
|
+
document.body.appendChild(devToolsMount);
|
|
86
|
+
|
|
87
|
+
// Create the dev tools app with its own Pinia instance
|
|
88
|
+
// The jsBaoClientService is linked to the app's client above
|
|
89
|
+
const devToolsApp = createApp({
|
|
90
|
+
render() {
|
|
91
|
+
return h(DevToolsRoot, { testGroups, appName });
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
devToolsApp.use(createPinia());
|
|
95
|
+
devToolsApp.mount('#primitive-devtools-root');
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
observer.observe(document.body, { childList: true, subtree: true });
|
|
100
|
+
`;
|
|
101
|
+
},
|
|
102
|
+
transformIndexHtml(t) {
|
|
103
|
+
return !d || !c ? t : t.replace("</body>", `<script type="module" src="/@id/__x00__virtual:primitive-devtools-init"><\/script>
|
|
104
|
+
</body>`);
|
|
105
|
+
},
|
|
106
|
+
handleHotUpdate({ file: t, server: e }) {
|
|
107
|
+
if (t.endsWith(".primitive-test.ts")) {
|
|
108
|
+
const s = e.moduleGraph.getModuleById(l);
|
|
109
|
+
s && (e.moduleGraph.invalidateModule(s), e.ws.send({ type: "full-reload" }));
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
export {
|
|
115
|
+
y as primitiveDevTools
|
|
116
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Plugin } from "vite";
|
|
2
|
+
export interface PrimitiveDevToolsOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Directory to search for test files, relative to project root.
|
|
5
|
+
* Defaults to 'src/tests'
|
|
6
|
+
*/
|
|
7
|
+
testsDir?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Glob pattern for test files within testsDir. Defaults to '**\/*.primitive-test.ts'
|
|
10
|
+
*/
|
|
11
|
+
testPattern?: string;
|
|
12
|
+
/**
|
|
13
|
+
* App name shown in the dev tools UI
|
|
14
|
+
*/
|
|
15
|
+
appName?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Whether to enable the plugin. Defaults to true in development.
|
|
18
|
+
*/
|
|
19
|
+
enabled?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare function primitiveDevTools(options?: PrimitiveDevToolsOptions): Plugin;
|
|
22
|
+
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../src/dev-tools/vite-plugin/plugin.ts"],"names":[],"mappings":"AAAA,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;CACnB;AAQD,wBAAgB,iBAAiB,CAC/B,OAAO,GAAE,wBAA6B,GACrC,MAAM,CAmIR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-discovery.d.ts","sourceRoot":"","sources":["../../../src/dev-tools/vite-plugin/test-discovery.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,kBAAkB;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,MAAM,EACZ,QAAQ,GAAE,MAAoB,EAC9B,OAAO,GAAE,MAAiC,GACzC,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAa/B"}
|