primitive-app 2.1.7 → 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 +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/vite-plugin/index.cjs +8 -10
- package/dist/dev-tools/vite-plugin/index.js +53 -117
- package/dist/index.cjs +7 -7
- package/dist/index.js +14182 -17282
- 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,IA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C,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":"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
|
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`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 keyboardShortcut = ${JSON.stringify(
|
|
12
|
-
`}if(e===
|
|
10
|
+
export const appName = ${JSON.stringify(u)};
|
|
11
|
+
export const keyboardShortcut = ${JSON.stringify(f)};
|
|
12
|
+
`}if(e===l)return`
|
|
13
13
|
import { createApp, h } from 'vue';
|
|
14
14
|
import { createPinia } from 'pinia';
|
|
15
15
|
import { DevToolsRoot, jsBaoClientService } from 'primitive-app';
|
|
@@ -57,6 +57,4 @@ const observer = new MutationObserver(async (mutations, obs) => {
|
|
|
57
57
|
});
|
|
58
58
|
|
|
59
59
|
observer.observe(document.body, { childList: true, subtree: true });
|
|
60
|
-
`},transformIndexHtml(e){if(!
|
|
61
|
-
<script type="module" src="/@id/__x00__virtual:primitive-devtools-init"><\/script>
|
|
62
|
-
</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=A;
|
|
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,124 +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
|
-
if (t === y)
|
|
36
|
-
return f;
|
|
37
|
-
},
|
|
38
|
-
async load(t) {
|
|
39
|
-
if (t === l) {
|
|
40
|
-
const e = await C(d, n, p), o = e.map((u, i) => `import testGroup${i} from '${u.absolutePath}';`).join(`
|
|
41
|
-
`), w = e.map(
|
|
42
|
-
(u, i) => `...(Array.isArray(testGroup${i}) ? testGroup${i} : [testGroup${i}])`
|
|
43
|
-
).join(`,
|
|
44
|
-
`);
|
|
45
|
-
return `
|
|
46
|
-
${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}
|
|
47
35
|
|
|
48
36
|
export const testGroups = [
|
|
49
|
-
${e.length > 0 ?
|
|
37
|
+
${e.length > 0 ? n : ""}
|
|
50
38
|
];
|
|
51
39
|
|
|
52
|
-
export const appName = ${JSON.stringify(
|
|
53
|
-
export const keyboardShortcut = ${JSON.stringify(
|
|
40
|
+
export const appName = ${JSON.stringify(u)};
|
|
41
|
+
export const keyboardShortcut = ${JSON.stringify(f)};
|
|
54
42
|
`;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
setTimeout(check, 100);
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
check();
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
// Wait for main app to mount, then inject dev tools
|
|
78
|
-
const observer = new MutationObserver(async (mutations, obs) => {
|
|
79
|
-
const appEl = document.getElementById('app');
|
|
80
|
-
if (appEl && appEl.children.length > 0) {
|
|
81
|
-
obs.disconnect();
|
|
82
|
-
|
|
83
|
-
// Wait for the app's client to be available and link it to the debug suite
|
|
84
|
-
const appClient = await waitForAppClient();
|
|
85
|
-
jsBaoClientService.setExternalClient(appClient);
|
|
86
|
-
|
|
87
|
-
// Create mount point for dev tools
|
|
88
|
-
const devToolsMount = document.createElement('div');
|
|
89
|
-
devToolsMount.id = 'primitive-devtools-root';
|
|
90
|
-
document.body.appendChild(devToolsMount);
|
|
91
|
-
|
|
92
|
-
// Create the dev tools app with its own Pinia instance
|
|
93
|
-
// The jsBaoClientService is linked to the app's client above
|
|
94
|
-
const devToolsApp = createApp({
|
|
95
|
-
render() {
|
|
96
|
-
return h(DevToolsRoot, { testGroups, appName, keyboardShortcut });
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
devToolsApp.use(createPinia());
|
|
100
|
-
devToolsApp.mount('#primitive-devtools-root');
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
observer.observe(document.body, { childList: true, subtree: true });
|
|
105
|
-
`;
|
|
106
|
-
},
|
|
107
|
-
transformIndexHtml(t) {
|
|
108
|
-
if (!m || !c) return t;
|
|
109
|
-
const e = `<style data-primitive-devtools-sonner>${_}</style>`;
|
|
110
|
-
return t.replace("</body>", `${e}
|
|
111
|
-
<script type="module" src="/@id/__x00__virtual:primitive-devtools-init"><\/script>
|
|
112
|
-
</body>`);
|
|
113
|
-
},
|
|
114
|
-
hotUpdate({ file: t, server: e }) {
|
|
115
|
-
if (t.endsWith(".primitive-test.ts")) {
|
|
116
|
-
const o = e.moduleGraph.getModuleById(l);
|
|
117
|
-
o && (e.moduleGraph.invalidateModule(o), e.ws.send({ type: "full-reload" }));
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
};
|
|
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
|
+
};
|
|
121
58
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
};
|
|
59
|
+
//#endregion
|
|
60
|
+
export { l as primitiveDevTools };
|