primitive-app 2.1.7 → 3.0.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 +2 -2
- package/dist/components/ui/native-select/NativeSelectOption.vue.d.ts +2 -2
- 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/index.d.ts +3 -2
- package/dist/dev-tools/index.d.ts.map +1 -1
- package/dist/dev-tools/test-harness/TestRunner.vue.d.ts +5 -0
- package/dist/dev-tools/test-harness/TestRunner.vue.d.ts.map +1 -1
- package/dist/dev-tools/test-harness/index.d.ts +3 -2
- package/dist/dev-tools/test-harness/index.d.ts.map +1 -1
- package/dist/dev-tools/test-harness/lib.d.ts +38 -15
- package/dist/dev-tools/test-harness/lib.d.ts.map +1 -1
- package/dist/dev-tools/test-harness/types.d.ts +3 -13
- package/dist/dev-tools/test-harness/types.d.ts.map +1 -1
- package/dist/dev-tools/vite-plugin/DevToolsOverlay.vue.d.ts +5 -0
- package/dist/dev-tools/vite-plugin/DevToolsOverlay.vue.d.ts.map +1 -1
- package/dist/dev-tools/vite-plugin/DevToolsRoot.vue.d.ts +5 -0
- package/dist/dev-tools/vite-plugin/DevToolsRoot.vue.d.ts.map +1 -1
- package/dist/dev-tools/vite-plugin/index.cjs +23 -17
- package/dist/dev-tools/vite-plugin/index.js +61 -119
- package/dist/dev-tools/vite-plugin/plugin.d.ts.map +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14147 -17290
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(e,t,n)=>(c(e,t,`default`),n&&c(n,t,`default`)),u=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
|
|
@@ -4,7 +4,7 @@ type __VLS_Props = CheckboxRootProps & {
|
|
|
4
4
|
class?: HTMLAttributes["class"];
|
|
5
5
|
};
|
|
6
6
|
declare var __VLS_14: {
|
|
7
|
-
modelValue:
|
|
7
|
+
modelValue: boolean | "indeterminate";
|
|
8
8
|
state: import("reka-ui").CheckboxCheckedState;
|
|
9
9
|
};
|
|
10
10
|
type __VLS_Slots = {} & {
|
|
@@ -3,7 +3,7 @@ type __VLS_Slots = {} & {
|
|
|
3
3
|
default?: (props: typeof __VLS_1) => any;
|
|
4
4
|
};
|
|
5
5
|
declare const __VLS_base: import("vue").DefineComponent<{
|
|
6
|
-
class?:
|
|
6
|
+
class?: import("vue").ClassValue | undefined;
|
|
7
7
|
disabled?: (boolean | "false" | "true") | undefined;
|
|
8
8
|
label?: string | undefined | undefined;
|
|
9
9
|
"data-slot"?: string | undefined;
|
|
@@ -198,7 +198,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
198
198
|
ref_for?: boolean | undefined | undefined;
|
|
199
199
|
ref_key?: string | undefined | undefined;
|
|
200
200
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
201
|
-
class?:
|
|
201
|
+
class?: import("vue").ClassValue | undefined;
|
|
202
202
|
disabled?: (boolean | "false" | "true") | undefined;
|
|
203
203
|
label?: string | undefined | undefined;
|
|
204
204
|
"data-slot"?: string | undefined;
|
|
@@ -3,7 +3,7 @@ type __VLS_Slots = {} & {
|
|
|
3
3
|
default?: (props: typeof __VLS_1) => any;
|
|
4
4
|
};
|
|
5
5
|
declare const __VLS_base: import("vue").DefineComponent<{
|
|
6
|
-
class?:
|
|
6
|
+
class?: import("vue").ClassValue | undefined;
|
|
7
7
|
disabled?: (boolean | "false" | "true") | undefined;
|
|
8
8
|
label?: string | undefined | undefined;
|
|
9
9
|
selected?: (boolean | "false" | "true") | undefined;
|
|
@@ -200,7 +200,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
200
200
|
ref_for?: boolean | undefined | undefined;
|
|
201
201
|
ref_key?: string | undefined | undefined;
|
|
202
202
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
203
|
-
class?:
|
|
203
|
+
class?: import("vue").ClassValue | undefined;
|
|
204
204
|
disabled?: (boolean | "false" | "true") | undefined;
|
|
205
205
|
label?: string | undefined | undefined;
|
|
206
206
|
selected?: (boolean | "false" | "true") | undefined;
|
|
@@ -4,7 +4,7 @@ type __VLS_Props = SeparatorProps & {
|
|
|
4
4
|
class?: HTMLAttributes["class"];
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
-
orientation: "
|
|
7
|
+
orientation: import("node_modules/reka-ui/dist/index3").DataOrientation;
|
|
8
8
|
decorative: boolean;
|
|
9
9
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/switch/Switch.vue"],"names":[],"mappings":"AA+CA,OAAO,KAAK,EAAmB,eAAe,EAAE,MAAM,SAAS,CAAC;AAEhE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAE1C,KAAK,WAAW,GAAG,eAAe,GAAG;IAAE,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;CAAE,CAAC;AA+FzE,QAAA,IAAI,QAAQ
|
|
1
|
+
{"version":3,"file":"Switch.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/switch/Switch.vue"],"names":[],"mappings":"AA+CA,OAAO,KAAK,EAAmB,eAAe,EAAE,MAAM,SAAS,CAAC;AAEhE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAE1C,KAAK,WAAW,GAAG,eAAe,GAAG;IAAE,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;CAAE,CAAC;AA+FzE,QAAA,IAAI,QAAQ;;;CAAY,CAAE;AAC1B,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAK9C,QAAA,MAAM,UAAU;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -10,9 +10,9 @@ type __VLS_Slots = {} & {
|
|
|
10
10
|
default?: (props: typeof __VLS_8) => any;
|
|
11
11
|
};
|
|
12
12
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
-
"update:modelValue": (payload:
|
|
13
|
+
"update:modelValue": (payload: import("node_modules/reka-ui/dist/index3").StringOrNumber) => any;
|
|
14
14
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
-
"onUpdate:modelValue"?: ((payload:
|
|
15
|
+
"onUpdate:modelValue"?: ((payload: import("node_modules/reka-ui/dist/index3").StringOrNumber) => any) | undefined;
|
|
16
16
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
18
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useJsBaoDataLoader.d.ts","sourceRoot":"","sources":["../../src/composables/useJsBaoDataLoader.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAe5C,KAAK,UAAU,GAAG;IAChB,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;CAC3C,CAAC;AAEF,KAAK,eAAe,GAAG,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;AACrE,KAAK,aAAa,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,WAAW,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;AAEzE,MAAM,WAAW,yBAAyB,CACxC,IAAI,EACJ,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAE3D;;;OAGG;IACH,WAAW,EAAE,UAAU,EAAE,CAAC;IAE1B;;;;OAIG;IACH,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IAE9B;;;OAGG;IACH,aAAa,EAAE,eAAe,CAAC;IAE/B;;OAEG;IACH,QAAQ,EAAE,CAAC,WAAW,EAAE,CAAC,GAAG,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnD;;;OAGG;IACH,YAAY,CAAC,EAAE,eAAe,CAAC;IAE/B;;;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MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAE3D;;;OAGG;IACH,WAAW,EAAE,UAAU,EAAE,CAAC;IAE1B;;;;OAIG;IACH,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IAE9B;;;OAGG;IACH,aAAa,EAAE,eAAe,CAAC;IAE/B;;OAEG;IACH,QAAQ,EAAE,CAAC,WAAW,EAAE,CAAC,GAAG,IAAI,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnD;;;OAGG;IACH,YAAY,CAAC,EAAE,eAAe,CAAC;IAE/B;;;;;OAKG;IACH,sBAAsB,CAAC,EAAE,eAAe,CAAC;IAEzC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACpC;AAED,MAAM,WAAW,wBAAwB,CAAC,IAAI;IAC5C;;OAEG;IACH,IAAI,EAAE,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC;IAEvB;;;OAGG;IACH,iBAAiB,EAAE,GAAG,CAAC,OAAO,CAAC,CAAC;IAEhC;;OAEG;IACH,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAgCD;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EACJ,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC3D,OAAO,EAAE,yBAAyB,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,wBAAwB,CAAC,IAAI,CAAC,CAoN7E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentExplorerIndex.vue.d.ts","sourceRoot":"","sources":["../../../src/dev-tools/document-explorer/DocumentExplorerIndex.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DocumentExplorerIndex.vue.d.ts","sourceRoot":"","sources":["../../../src/dev-tools/document-explorer/DocumentExplorerIndex.vue"],"names":[],"mappings":"AAk7DA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
import type { DocumentInfoWithRoot
|
|
1
|
+
import type { DocumentInfoWithRoot } from "../types";
|
|
2
2
|
interface Props {
|
|
3
|
-
|
|
3
|
+
ownedDocuments: DocumentInfoWithRoot[];
|
|
4
|
+
sharedDocuments: DocumentInfoWithRoot[];
|
|
4
5
|
selectedDocId: string | null;
|
|
5
|
-
/** ID of the currently selected invitation (used for highlight) */
|
|
6
|
-
selectedInvitationId: string | null;
|
|
7
6
|
documentListLoaded: boolean;
|
|
8
|
-
pendingInvitations: PendingInvitation[];
|
|
9
|
-
/** Whether a bulk accept operation is in progress (disables interaction, shows loading) */
|
|
10
|
-
isAcceptingInvitations?: boolean;
|
|
11
7
|
}
|
|
12
|
-
declare function showDocsSection(): void;
|
|
13
8
|
declare const __VLS_export: import("vue").DefineComponent<Props, {
|
|
14
|
-
showDocsSection: typeof showDocsSection;
|
|
15
9
|
isCollapsed: import("vue").Ref<boolean, boolean>;
|
|
16
10
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
11
|
"select-document": (docId: string) => any;
|
|
@@ -19,18 +13,12 @@ declare const __VLS_export: import("vue").DefineComponent<Props, {
|
|
|
19
13
|
"bulk-delete": (docIds: string[]) => any;
|
|
20
14
|
"bulk-leave": (docIds: string[]) => any;
|
|
21
15
|
"bulk-delete-mixed": (docIds: string[]) => any;
|
|
22
|
-
"select-invitation": (invitation: PendingInvitation) => any;
|
|
23
|
-
"accept-invitations": (documentIds: string[]) => any;
|
|
24
|
-
"decline-invitations": (documentIds: string[]) => any;
|
|
25
16
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
26
17
|
"onSelect-document"?: ((docId: string) => any) | undefined;
|
|
27
18
|
"onCreate-document"?: (() => any) | undefined;
|
|
28
19
|
"onBulk-delete"?: ((docIds: string[]) => any) | undefined;
|
|
29
20
|
"onBulk-leave"?: ((docIds: string[]) => any) | undefined;
|
|
30
21
|
"onBulk-delete-mixed"?: ((docIds: string[]) => any) | undefined;
|
|
31
|
-
"onSelect-invitation"?: ((invitation: PendingInvitation) => any) | undefined;
|
|
32
|
-
"onAccept-invitations"?: ((documentIds: string[]) => any) | undefined;
|
|
33
|
-
"onDecline-invitations"?: ((documentIds: string[]) => any) | undefined;
|
|
34
22
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
35
23
|
declare const _default: typeof __VLS_export;
|
|
36
24
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentListPanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/dev-tools/document-explorer/components/DocumentListPanel.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DocumentListPanel.vue.d.ts","sourceRoot":"","sources":["../../../../src/dev-tools/document-explorer/components/DocumentListPanel.vue"],"names":[],"mappings":"AA4LA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAIrD,UAAU,KAAK;IACb,cAAc,EAAE,oBAAoB,EAAE,CAAC;IACvC,eAAe,EAAE,oBAAoB,EAAE,CAAC;IACxC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,kBAAkB,EAAE,OAAO,CAAC;CAC7B;AAyXD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;kFAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import type { DocumentInfoWithRoot } from "../types";
|
|
2
2
|
interface Props {
|
|
3
|
-
/** Full list of documents (used for permission checks on selected items) */
|
|
4
3
|
documents: DocumentInfoWithRoot[];
|
|
5
|
-
/** Filtered subset of documents to display */
|
|
6
4
|
filteredDocuments: DocumentInfoWithRoot[];
|
|
7
|
-
/** Currently selected document ID (for highlight) */
|
|
8
5
|
selectedDocId: string | null;
|
|
9
|
-
/** Whether the documents accordion section is expanded */
|
|
10
6
|
isExpanded: boolean;
|
|
11
|
-
/** Whether the document list has finished loading */
|
|
12
7
|
documentListLoaded: boolean;
|
|
13
|
-
/** Current search query (used for empty-state messaging) */
|
|
14
8
|
searchQuery: string;
|
|
9
|
+
sectionLabel?: string;
|
|
10
|
+
showCreateButton?: boolean;
|
|
15
11
|
}
|
|
16
12
|
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
13
|
"select-document": (docId: string) => any;
|
|
@@ -19,15 +15,16 @@ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {},
|
|
|
19
15
|
"bulk-delete": (docIds: string[]) => any;
|
|
20
16
|
"bulk-leave": (docIds: string[]) => any;
|
|
21
17
|
"bulk-delete-mixed": (docIds: string[]) => any;
|
|
22
|
-
"toggle-section": () => any;
|
|
23
18
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
24
19
|
"onSelect-document"?: ((docId: string) => any) | undefined;
|
|
25
20
|
"onCreate-document"?: (() => any) | undefined;
|
|
26
21
|
"onBulk-delete"?: ((docIds: string[]) => any) | undefined;
|
|
27
22
|
"onBulk-leave"?: ((docIds: string[]) => any) | undefined;
|
|
28
23
|
"onBulk-delete-mixed"?: ((docIds: string[]) => any) | undefined;
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
}>, {
|
|
25
|
+
sectionLabel: string;
|
|
26
|
+
showCreateButton: boolean;
|
|
27
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
28
|
declare const _default: typeof __VLS_export;
|
|
32
29
|
export default _default;
|
|
33
30
|
//# sourceMappingURL=DocumentListSection.vue.d.ts.map
|
|
@@ -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":"A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AAuB,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,CAAC;IACnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAGD,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAGD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,OAAO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EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAGD,MAAM,WAAW,uBAAwB,SAAQ,oBAAoB;IACnE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAGD,MAAM,WAAW,uBAAuB;IACtC,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAGD,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAGD,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,eAAe,GAAG,iBAAiB,CAAC;IAC3E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Only items that consuming apps need directly are exported here:
|
|
5
5
|
* - DevToolsRoot: mounted by the Vite plugin's virtual module at runtime
|
|
6
|
-
* - Test-authoring types: used in .primitive-test.ts files
|
|
6
|
+
* - Test-authoring types and helpers: used in .primitive-test.ts files
|
|
7
7
|
*
|
|
8
8
|
* All other dev-tools components, stores, and utilities are internal
|
|
9
9
|
* and consumed via relative imports within the dev-tools module.
|
|
10
10
|
*/
|
|
11
11
|
export { default as DevToolsRoot } from "./vite-plugin/DevToolsRoot.vue";
|
|
12
|
-
export type {
|
|
12
|
+
export type { TestDocumentHandle, TestGroup, TestLogFn } from "./test-harness";
|
|
13
|
+
export { createTestDocument, destroyTestDocument } from "./test-harness";
|
|
13
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dev-tools/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAGzE,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dev-tools/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAGzE,YAAY,EAAE,kBAAkB,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG/E,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { RunnableTest } from "./types";
|
|
2
|
+
interface TestLoadError {
|
|
3
|
+
file: string;
|
|
4
|
+
error: unknown;
|
|
5
|
+
}
|
|
2
6
|
interface Props {
|
|
3
7
|
tests: RunnableTest[];
|
|
8
|
+
testLoadErrors?: TestLoadError[];
|
|
4
9
|
onTestsComplete?: () => void | Promise<void>;
|
|
5
10
|
}
|
|
6
11
|
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":"TestRunner.vue.d.ts","sourceRoot":"","sources":["../../../src/dev-tools/test-harness/TestRunner.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TestRunner.vue.d.ts","sourceRoot":"","sources":["../../../src/dev-tools/test-harness/TestRunner.vue"],"names":[],"mappings":"AA0wBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAa5C,UAAU,aAAa;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,UAAU,KAAK;IACb,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;IACjC,eAAe,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9C;AAijCD,QAAA,MAAM,YAAY,sRAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Test harness exports.
|
|
3
3
|
*/
|
|
4
4
|
export { default as TestRunner } from "./TestRunner.vue";
|
|
5
|
-
export type { RunnableTest,
|
|
6
|
-
export {
|
|
5
|
+
export type { RunnableTest, TestGroup, TestLogFn } from "./types";
|
|
6
|
+
export type { TestDocumentHandle } from "./lib";
|
|
7
|
+
export { TEST_DOCUMENT_PREFIX, beginTestRun, buildRunnableTests, createTestDocument, deleteAllTestDocuments, destroyTestDocument, endTestRun, } from "./lib";
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dev-tools/test-harness/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGzD,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/dev-tools/test-harness/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGzD,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAClE,YAAY,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAGhD,OAAO,EACL,oBAAoB,EACpB,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,mBAAmB,EACnB,UAAU,GACX,MAAM,OAAO,CAAC"}
|
|
@@ -1,31 +1,54 @@
|
|
|
1
1
|
import type { RunnableTest, TestGroup } from "./types";
|
|
2
|
+
export declare const TEST_DOCUMENT_PREFIX = "===TEST===";
|
|
2
3
|
/**
|
|
3
|
-
*
|
|
4
|
+
* Handle returned by createTestDocument. Pass to destroyTestDocument when done.
|
|
4
5
|
*/
|
|
5
|
-
export
|
|
6
|
+
export interface TestDocumentHandle {
|
|
7
|
+
docId: string;
|
|
8
|
+
}
|
|
6
9
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
+
* Create an ephemeral test document for model/database operations.
|
|
11
|
+
* Sets it as the default document so model operations (save, query, etc.)
|
|
12
|
+
* target it automatically.
|
|
13
|
+
*
|
|
14
|
+
* Call destroyTestDocument() in a finally block when done.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* run: async (log) => {
|
|
19
|
+
* const doc = await createTestDocument();
|
|
20
|
+
* try {
|
|
21
|
+
* const task = new Task({ title: "test" });
|
|
22
|
+
* await task.save();
|
|
23
|
+
* log("saved task");
|
|
24
|
+
* return "passed";
|
|
25
|
+
* } finally {
|
|
26
|
+
* await destroyTestDocument(doc);
|
|
27
|
+
* }
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare function createTestDocument(): Promise<TestDocumentHandle>;
|
|
32
|
+
/**
|
|
33
|
+
* Close and delete an ephemeral test document.
|
|
34
|
+
*/
|
|
35
|
+
export declare function destroyTestDocument(handle: TestDocumentHandle): Promise<void>;
|
|
36
|
+
/**
|
|
37
|
+
* Close all host application documents before running document-dependent tests.
|
|
38
|
+
* Call this at the start of a test run if any tests create test documents.
|
|
10
39
|
*/
|
|
11
40
|
export declare function beginTestRun(): Promise<number>;
|
|
12
41
|
/**
|
|
13
|
-
*
|
|
14
|
-
* Also restores the document explorer's stored document ID.
|
|
15
|
-
* Call this once at the end of a test run, after all tests have completed.
|
|
42
|
+
* Restore host application documents after a test run.
|
|
16
43
|
*/
|
|
17
44
|
export declare function endTestRun(): Promise<void>;
|
|
18
45
|
/**
|
|
19
|
-
* Delete all test documents
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* Test documents are always localOnly, so uses evict() to remove local data
|
|
23
|
-
* and metadata without a server round-trip.
|
|
46
|
+
* Delete all leftover test documents. Called at startup and when the
|
|
47
|
+
* overlay initializes to clean up after interrupted test runs.
|
|
24
48
|
*/
|
|
25
49
|
export declare function deleteAllTestDocuments(): Promise<number>;
|
|
26
50
|
/**
|
|
27
|
-
* Convert test groups
|
|
28
|
-
* Each test is wrapped with automatic document lifecycle management.
|
|
51
|
+
* Convert test groups into runnable tests (adds group name, flattens).
|
|
29
52
|
*/
|
|
30
53
|
export declare function buildRunnableTests(groups: TestGroup[]): RunnableTest[];
|
|
31
54
|
//# sourceMappingURL=lib.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../../src/dev-tools/test-harness/lib.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../../src/dev-tools/test-harness/lib.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAMvD,eAAO,MAAM,oBAAoB,eAAe,CAAC;AAEjD;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;CACf;AAOD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,kBAAkB,CAAC,CA+BtE;AAID;;GAEG;AACH,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,kBAAkB,GACzB,OAAO,CAAC,IAAI,CAAC,CAmBf;AAMD;;;GAGG;AACH,wBAAsB,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,CAyBpD;AAED;;GAEG;AACH,wBAAsB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAkBhD;AAED;;;GAGG;AACH,wBAAsB,sBAAsB,IAAI,OAAO,CAAC,MAAM,CAAC,CAmD9D;AAID;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,YAAY,EAAE,CAStE"}
|
|
@@ -3,16 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* TestGroup - What test authors write in their .primitive-test.ts files
|
|
5
5
|
* RunnableTest - Processed/wrapped version for the test runner
|
|
6
|
-
* TestDocContext - Document context passed to each test
|
|
7
6
|
*/
|
|
8
|
-
/**
|
|
9
|
-
* Context for the ephemeral test document.
|
|
10
|
-
* Each test receives this context so it can filter queries to its own document.
|
|
11
|
-
*/
|
|
12
|
-
export interface TestDocContext {
|
|
13
|
-
/** The document ID for the test's ephemeral document */
|
|
14
|
-
docId: string;
|
|
15
|
-
}
|
|
16
7
|
/**
|
|
17
8
|
* Function signature for test log output.
|
|
18
9
|
*/
|
|
@@ -25,18 +16,17 @@ export interface TestGroup {
|
|
|
25
16
|
tests: Array<{
|
|
26
17
|
id: string;
|
|
27
18
|
name: string;
|
|
28
|
-
run: (
|
|
19
|
+
run: (log: TestLogFn) => Promise<string>;
|
|
29
20
|
}>;
|
|
30
21
|
}
|
|
31
22
|
/**
|
|
32
23
|
* A test that has been processed and is ready to run.
|
|
33
|
-
* Includes the group name
|
|
34
|
-
* The run function no longer requires ctx since it's provided by the wrapper.
|
|
24
|
+
* Includes the group name for display grouping.
|
|
35
25
|
*/
|
|
36
26
|
export interface RunnableTest {
|
|
37
27
|
id: string;
|
|
38
28
|
name: string;
|
|
39
29
|
group: string;
|
|
40
|
-
run: (log
|
|
30
|
+
run: (log: TestLogFn) => Promise<string>;
|
|
41
31
|
}
|
|
42
32
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/dev-tools/test-harness/types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/dev-tools/test-harness/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,KAAK,CAAC;QACX,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;KAC1C,CAAC,CAAC;CACJ;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;CAC1C"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { TestGroup } from "../test-harness/types";
|
|
2
|
+
interface TestLoadError {
|
|
3
|
+
file: string;
|
|
4
|
+
error: unknown;
|
|
5
|
+
}
|
|
2
6
|
interface Props {
|
|
3
7
|
testGroups: TestGroup[];
|
|
8
|
+
testLoadErrors?: TestLoadError[];
|
|
4
9
|
appName: string;
|
|
5
10
|
}
|
|
6
11
|
declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevToolsOverlay.vue.d.ts","sourceRoot":"","sources":["../../../src/dev-tools/vite-plugin/DevToolsOverlay.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DevToolsOverlay.vue.d.ts","sourceRoot":"","sources":["../../../src/dev-tools/vite-plugin/DevToolsOverlay.vue"],"names":[],"mappings":"AAoVA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAIvD,UAAU,aAAa;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,UAAU,KAAK;IACb,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC;CACjB;AA6bD,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -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":"AA0RA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAQvD,UAAU,aAAa;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,UAAU,KAAK;IACb,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AA0SD,QAAA,MAAM,YAAY,sRAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|