@mulmoclaude/collection-plugin 0.3.0 → 0.4.1
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/core/errorMessage.d.ts +5 -0
- package/dist/core/errorMessage.d.ts.map +1 -0
- package/dist/core/promptSafety.d.ts +2 -0
- package/dist/core/promptSafety.d.ts.map +1 -0
- package/dist/core/shortHexId.d.ts +9 -0
- package/dist/core/shortHexId.d.ts.map +1 -0
- package/dist/core/uiTypes.d.ts +26 -1
- package/dist/core/uiTypes.d.ts.map +1 -1
- package/dist/index.cjs +45 -126
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -86
- package/dist/index.js.map +1 -1
- package/dist/{calendarGrid-DZeLwBj9.cjs → promptSafety-BSO2gdsg.cjs} +184 -1
- package/dist/promptSafety-BSO2gdsg.cjs.map +1 -0
- package/dist/{calendarGrid-ggmFTZju.js → promptSafety-DShN_VCG.js} +113 -2
- package/dist/promptSafety-DShN_VCG.js.map +1 -0
- package/dist/style.css +544 -1
- package/dist/vue/collectionViewMode.d.ts +12 -0
- package/dist/vue/collectionViewMode.d.ts.map +1 -0
- package/dist/vue/components/CollectionCustomView.vue.d.ts +9 -0
- package/dist/vue/components/CollectionCustomView.vue.d.ts.map +1 -0
- package/dist/vue/components/CollectionEmbedView.vue.d.ts.map +1 -1
- package/dist/vue/components/CollectionView.vue.d.ts +41 -0
- package/dist/vue/components/CollectionView.vue.d.ts.map +1 -0
- package/dist/vue/components/CollectionViewConfigModal.vue.d.ts +16 -0
- package/dist/vue/components/CollectionViewConfigModal.vue.d.ts.map +1 -0
- package/dist/vue/components/CollectionsIndexView.vue.d.ts +4 -0
- package/dist/vue/components/CollectionsIndexView.vue.d.ts.map +1 -0
- package/dist/vue/components/FeedsView.vue.d.ts +4 -0
- package/dist/vue/components/FeedsView.vue.d.ts.map +1 -0
- package/dist/vue/index.d.ts +7 -1
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/lang/de.d.ts +4 -0
- package/dist/vue/lang/de.d.ts.map +1 -0
- package/dist/vue/lang/en.d.ts +99 -0
- package/dist/vue/lang/en.d.ts.map +1 -0
- package/dist/vue/lang/es.d.ts +4 -0
- package/dist/vue/lang/es.d.ts.map +1 -0
- package/dist/vue/lang/fr.d.ts +4 -0
- package/dist/vue/lang/fr.d.ts.map +1 -0
- package/dist/vue/lang/index.d.ts +112 -0
- package/dist/vue/lang/index.d.ts.map +1 -0
- package/dist/vue/lang/ja.d.ts +4 -0
- package/dist/vue/lang/ja.d.ts.map +1 -0
- package/dist/vue/lang/ko.d.ts +4 -0
- package/dist/vue/lang/ko.d.ts.map +1 -0
- package/dist/vue/lang/ptBR.d.ts +4 -0
- package/dist/vue/lang/ptBR.d.ts.map +1 -0
- package/dist/vue/lang/zh.d.ts +4 -0
- package/dist/vue/lang/zh.d.ts.map +1 -0
- package/dist/vue/uiContext.d.ts +143 -4
- package/dist/vue/uiContext.d.ts.map +1 -1
- package/dist/vue/useCollectionRendering.d.ts.map +1 -1
- package/dist/vue.cjs +3335 -238
- package/dist/vue.cjs.map +1 -1
- package/dist/vue.js +3305 -217
- package/dist/vue.js.map +1 -1
- package/package.json +1 -1
- package/dist/calendarGrid-DZeLwBj9.cjs.map +0 -1
- package/dist/calendarGrid-ggmFTZju.js.map +0 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { SortState } from "../core/sortItems";
|
|
2
|
+
/** The host's built-in, field-derived view modes. */
|
|
3
|
+
export type BuiltInViewMode = "table" | "calendar" | "kanban";
|
|
4
|
+
/** A custom (LLM-authored) view's selector key: `custom:<viewId>`. */
|
|
5
|
+
export type CustomViewMode = `custom:${string}`;
|
|
6
|
+
export type CollectionViewMode = BuiltInViewMode | CustomViewMode;
|
|
7
|
+
export declare function readCollectionViewMode(slug: string): CollectionViewMode | null;
|
|
8
|
+
export declare function writeCollectionViewMode(slug: string, view: CollectionViewMode): void;
|
|
9
|
+
export declare function readCollectionSort(slug: string): SortState | null;
|
|
10
|
+
/** Persist (or, when `sort` is null, clear) the slug's active column sort. */
|
|
11
|
+
export declare function writeCollectionSort(slug: string, sort: SortState | null): void;
|
|
12
|
+
//# sourceMappingURL=collectionViewMode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collectionViewMode.d.ts","sourceRoot":"","sources":["../../src/vue/collectionViewMode.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qDAAqD;AACrD,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;AAC9D,sEAAsE;AACtE,MAAM,MAAM,cAAc,GAAG,UAAU,MAAM,EAAE,CAAC;AAChD,MAAM,MAAM,kBAAkB,GAAG,eAAe,GAAG,cAAc,CAAC;AA+BlE,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,kBAAkB,GAAG,IAAI,CAG9E;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,GAAG,IAAI,CASpF;AA+BD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAEjE;AAED,8EAA8E;AAC9E,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,IAAI,GAAG,IAAI,CAU9E"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { CollectionCustomView } from "../../core/schema";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
slug: string;
|
|
4
|
+
view: CollectionCustomView;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
declare const _default: typeof __VLS_export;
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=CollectionCustomView.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollectionCustomView.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/CollectionCustomView.vue"],"names":[],"mappings":"AAiJA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAK9D,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,oBAAoB,CAAC;CAC5B,CAAC;AA4IF,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollectionEmbedView.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/CollectionEmbedView.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CollectionEmbedView.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/CollectionEmbedView.vue"],"names":[],"mappings":"AAmFA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAgRzD,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type BuiltInViewMode } from "../collectionViewMode";
|
|
2
|
+
/** `slug` / `selected` are supplied only in EMBEDDED mode (the
|
|
3
|
+
* `presentCollection` chat card mounts this component and drives both
|
|
4
|
+
* from the tool result). In standalone route mode (the
|
|
5
|
+
* `/collections/:slug` page) both are undefined and the component reads
|
|
6
|
+
* `route.params.slug` / `route.query.selected` as before.
|
|
7
|
+
*
|
|
8
|
+
* `sendTextMessage` is forwarded ONLY by the chat card — its presence
|
|
9
|
+
* is our "rendered inside a chat" signal. When set, chat-triggering
|
|
10
|
+
* actions send into the current session instead of spawning a new
|
|
11
|
+
* chat (see `runAction` / `submitChat`). */
|
|
12
|
+
type __VLS_Props = {
|
|
13
|
+
slug?: string;
|
|
14
|
+
selected?: string;
|
|
15
|
+
sendTextMessage?: (text?: string) => void;
|
|
16
|
+
/** Embedded mode only: initial view / anchor / group restored from the
|
|
17
|
+
* card's persisted `viewState` so a switch to calendar or kanban
|
|
18
|
+
* survives a remount. (The table sort is NOT a card prop — it's a shared
|
|
19
|
+
* per-collection localStorage preference, read by both modes.) */
|
|
20
|
+
initialView?: BuiltInViewMode;
|
|
21
|
+
initialAnchorField?: string;
|
|
22
|
+
initialGroupField?: string;
|
|
23
|
+
};
|
|
24
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
25
|
+
select: (id: string | null) => any;
|
|
26
|
+
viewStateChange: (state: {
|
|
27
|
+
view: BuiltInViewMode;
|
|
28
|
+
anchorField: string;
|
|
29
|
+
groupField: string;
|
|
30
|
+
}) => any;
|
|
31
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
32
|
+
onSelect?: ((id: string | null) => any) | undefined;
|
|
33
|
+
onViewStateChange?: ((state: {
|
|
34
|
+
view: BuiltInViewMode;
|
|
35
|
+
anchorField: string;
|
|
36
|
+
groupField: string;
|
|
37
|
+
}) => any) | undefined;
|
|
38
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
39
|
+
declare const _default: typeof __VLS_export;
|
|
40
|
+
export default _default;
|
|
41
|
+
//# sourceMappingURL=CollectionView.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollectionView.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/CollectionView.vue"],"names":[],"mappings":"AAkjEA,OAAO,EAML,KAAK,eAAe,EACrB,MAAM,uBAAuB,CAAC;AA6B/B;;;;;;;;;6CAS6C;AAC7C,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C;;;uEAGmE;IACnE,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAq5GF,QAAA,MAAM,YAAY;;;cA14GiB,eAAe;qBAAe,MAAM;oBAAc,MAAM;;;;;cAAxD,eAAe;qBAAe,MAAM;oBAAc,MAAM;;kFA64GzF,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { CollectionCustomView } from "../../core/schema";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
slug: string;
|
|
4
|
+
title: string;
|
|
5
|
+
views: CollectionCustomView[];
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
close: () => any;
|
|
9
|
+
changed: () => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
onClose?: (() => any) | undefined;
|
|
12
|
+
onChanged?: (() => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
//# sourceMappingURL=CollectionViewConfigModal.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollectionViewConfigModal.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/CollectionViewConfigModal.vue"],"names":[],"mappings":"AA2GA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAI9D,KAAK,WAAW,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,oBAAoB,EAAE,CAAA;CAAE,CAAC;AA+PlF,QAAA,MAAM,YAAY;;;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
//# sourceMappingURL=CollectionsIndexView.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollectionsIndexView.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/CollectionsIndexView.vue"],"names":[],"mappings":"AA8gBA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
4
|
+
//# sourceMappingURL=FeedsView.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeedsView.vue.d.ts","sourceRoot":"","sources":["../../../src/vue/components/FeedsView.vue"],"names":[],"mappings":"AA0uBA,QAAA,MAAM,YAAY,+QAChB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
package/dist/vue/index.d.ts
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import "../style.css";
|
|
2
|
-
export { configureCollectionUi, collectionUi, type CollectionUi } from "./uiContext";
|
|
2
|
+
export { configureCollectionUi, collectionUi, type CollectionUi, type CollectionFetchResult, type CollectionApiResult, type CollectionMutationResult, type CollectionConfirmOptions, type CollectionViewToken, type CollectionViewHtmlResult, type CollectionViewSrcdocBoot, type CollectionActionResult, type CollectionRefreshResult, } from "./uiContext";
|
|
3
3
|
export { useCollectionRendering, type CollectionRendering } from "./useCollectionRendering";
|
|
4
|
+
export { readCollectionViewMode, writeCollectionViewMode, readCollectionSort, writeCollectionSort, type CollectionViewMode, type BuiltInViewMode, type CustomViewMode, } from "./collectionViewMode";
|
|
4
5
|
export { default as CollectionRecordModal } from "./components/CollectionRecordModal.vue";
|
|
5
6
|
export { default as CollectionEmbedView } from "./components/CollectionEmbedView.vue";
|
|
6
7
|
export { default as CollectionCalendarView } from "./components/CollectionCalendarView.vue";
|
|
7
8
|
export { default as CollectionDayView } from "./components/CollectionDayView.vue";
|
|
8
9
|
export { default as CollectionKanbanView } from "./components/CollectionKanbanView.vue";
|
|
9
10
|
export { default as CollectionRecordPanel } from "./components/CollectionRecordPanel.vue";
|
|
11
|
+
export { default as CollectionViewConfigModal } from "./components/CollectionViewConfigModal.vue";
|
|
12
|
+
export { default as CollectionCustomView } from "./components/CollectionCustomView.vue";
|
|
13
|
+
export { default as CollectionView } from "./components/CollectionView.vue";
|
|
14
|
+
export { default as CollectionsIndexView } from "./components/CollectionsIndexView.vue";
|
|
15
|
+
export { default as FeedsView } from "./components/FeedsView.vue";
|
|
10
16
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/vue/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/vue/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/vue/index.ts"],"names":[],"mappings":"AAcA,OAAO,cAAc,CAAC;AAEtB,OAAO,EACL,qBAAqB,EACrB,YAAY,EACZ,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,GAC7B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,sBAAsB,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC5F,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,cAAc,GACpB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAC1F,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAC1F,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../src/vue/lang/de.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAE/C,QAAA,MAAM,UAAU,EAAE,kBAoGjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
declare const enMessages: {
|
|
2
|
+
collectionsView: {
|
|
3
|
+
addCollectionLabel: string;
|
|
4
|
+
addCollectionPrompt: string;
|
|
5
|
+
addFeedTitle: string;
|
|
6
|
+
addFeedHint: string;
|
|
7
|
+
addFeedPrompt: string;
|
|
8
|
+
title: string;
|
|
9
|
+
backToIndex: string;
|
|
10
|
+
indexEmpty: string;
|
|
11
|
+
editItem: string;
|
|
12
|
+
openItem: string;
|
|
13
|
+
confirmDelete: string;
|
|
14
|
+
deleteFeed: string;
|
|
15
|
+
confirmDeleteFeed: string;
|
|
16
|
+
deleteCollection: string;
|
|
17
|
+
confirmDeleteCollection: string;
|
|
18
|
+
itemsEmpty: string;
|
|
19
|
+
notFound: string;
|
|
20
|
+
loadFailed: string;
|
|
21
|
+
requiredField: string;
|
|
22
|
+
selectPlaceholder: string;
|
|
23
|
+
inlineSaveFailed: string;
|
|
24
|
+
addRow: string;
|
|
25
|
+
removeRow: string;
|
|
26
|
+
noRows: string;
|
|
27
|
+
tableSummary: string;
|
|
28
|
+
embedMissing: string;
|
|
29
|
+
embedCreate: string;
|
|
30
|
+
searchPlaceholder: string;
|
|
31
|
+
searchSummary: string;
|
|
32
|
+
noMatchingItems: string;
|
|
33
|
+
clearSearch: string;
|
|
34
|
+
sortBy: string;
|
|
35
|
+
openCollection: string;
|
|
36
|
+
createTitle: string;
|
|
37
|
+
derivedLabel: string;
|
|
38
|
+
embedMissingTitle: string;
|
|
39
|
+
chat: string;
|
|
40
|
+
refreshFeed: string;
|
|
41
|
+
refreshFailed: string;
|
|
42
|
+
feedChatSeed: string;
|
|
43
|
+
feedsTitle: string;
|
|
44
|
+
feedsEmpty: string;
|
|
45
|
+
chatTitle: string;
|
|
46
|
+
chatPlaceholder: string;
|
|
47
|
+
chatStart: string;
|
|
48
|
+
viewToggle: string;
|
|
49
|
+
viewTable: string;
|
|
50
|
+
viewCalendar: string;
|
|
51
|
+
calendarFieldLabel: string;
|
|
52
|
+
calendarPrevMonth: string;
|
|
53
|
+
calendarNextMonth: string;
|
|
54
|
+
calendarToday: string;
|
|
55
|
+
calendarNoDate: string;
|
|
56
|
+
calendarCreateOn: string;
|
|
57
|
+
dayViewOpen: string;
|
|
58
|
+
dayViewAllDay: string;
|
|
59
|
+
dayViewEmpty: string;
|
|
60
|
+
dayViewClose: string;
|
|
61
|
+
viewKanban: string;
|
|
62
|
+
kanbanFieldLabel: string;
|
|
63
|
+
kanbanUncategorized: string;
|
|
64
|
+
kanbanOpenCard: string;
|
|
65
|
+
addView: string;
|
|
66
|
+
config: {
|
|
67
|
+
open: string;
|
|
68
|
+
title: string;
|
|
69
|
+
viewsHeading: string;
|
|
70
|
+
deleteView: string;
|
|
71
|
+
confirmDelete: string;
|
|
72
|
+
empty: string;
|
|
73
|
+
};
|
|
74
|
+
customViewLoading: string;
|
|
75
|
+
customViewError: string;
|
|
76
|
+
addViewPrompt: string;
|
|
77
|
+
repair: string;
|
|
78
|
+
dataIssuesDetected: string;
|
|
79
|
+
repairPrompt: string;
|
|
80
|
+
source: {
|
|
81
|
+
user: string;
|
|
82
|
+
project: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
common: {
|
|
86
|
+
close: string;
|
|
87
|
+
add: string;
|
|
88
|
+
cancel: string;
|
|
89
|
+
loading: string;
|
|
90
|
+
no: string;
|
|
91
|
+
remove: string;
|
|
92
|
+
save: string;
|
|
93
|
+
saving: string;
|
|
94
|
+
yes: string;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
export default enMessages;
|
|
98
|
+
export type CollectionMessages = typeof enMessages;
|
|
99
|
+
//# sourceMappingURL=en.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/vue/lang/en.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoGf,CAAC;AAEF,eAAe,UAAU,CAAC;AAE1B,MAAM,MAAM,kBAAkB,GAAG,OAAO,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"es.d.ts","sourceRoot":"","sources":["../../../src/vue/lang/es.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAE/C,QAAA,MAAM,UAAU,EAAE,kBAoGjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fr.d.ts","sourceRoot":"","sources":["../../../src/vue/lang/fr.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAE/C,QAAA,MAAM,UAAU,EAAE,kBAqGjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
declare const i18n: import("vue-i18n").I18n<{
|
|
2
|
+
[x: string]: {
|
|
3
|
+
collectionsView: {
|
|
4
|
+
addCollectionLabel: string;
|
|
5
|
+
addCollectionPrompt: string;
|
|
6
|
+
addFeedTitle: string;
|
|
7
|
+
addFeedHint: string;
|
|
8
|
+
addFeedPrompt: string;
|
|
9
|
+
title: string;
|
|
10
|
+
backToIndex: string;
|
|
11
|
+
indexEmpty: string;
|
|
12
|
+
editItem: string;
|
|
13
|
+
openItem: string;
|
|
14
|
+
confirmDelete: string;
|
|
15
|
+
deleteFeed: string;
|
|
16
|
+
confirmDeleteFeed: string;
|
|
17
|
+
deleteCollection: string;
|
|
18
|
+
confirmDeleteCollection: string;
|
|
19
|
+
itemsEmpty: string;
|
|
20
|
+
notFound: string;
|
|
21
|
+
loadFailed: string;
|
|
22
|
+
requiredField: string;
|
|
23
|
+
selectPlaceholder: string;
|
|
24
|
+
inlineSaveFailed: string;
|
|
25
|
+
addRow: string;
|
|
26
|
+
removeRow: string;
|
|
27
|
+
noRows: string;
|
|
28
|
+
tableSummary: string;
|
|
29
|
+
embedMissing: string;
|
|
30
|
+
embedCreate: string;
|
|
31
|
+
searchPlaceholder: string;
|
|
32
|
+
searchSummary: string;
|
|
33
|
+
noMatchingItems: string;
|
|
34
|
+
clearSearch: string;
|
|
35
|
+
sortBy: string;
|
|
36
|
+
openCollection: string;
|
|
37
|
+
createTitle: string;
|
|
38
|
+
derivedLabel: string;
|
|
39
|
+
embedMissingTitle: string;
|
|
40
|
+
chat: string;
|
|
41
|
+
refreshFeed: string;
|
|
42
|
+
refreshFailed: string;
|
|
43
|
+
feedChatSeed: string;
|
|
44
|
+
feedsTitle: string;
|
|
45
|
+
feedsEmpty: string;
|
|
46
|
+
chatTitle: string;
|
|
47
|
+
chatPlaceholder: string;
|
|
48
|
+
chatStart: string;
|
|
49
|
+
viewToggle: string;
|
|
50
|
+
viewTable: string;
|
|
51
|
+
viewCalendar: string;
|
|
52
|
+
calendarFieldLabel: string;
|
|
53
|
+
calendarPrevMonth: string;
|
|
54
|
+
calendarNextMonth: string;
|
|
55
|
+
calendarToday: string;
|
|
56
|
+
calendarNoDate: string;
|
|
57
|
+
calendarCreateOn: string;
|
|
58
|
+
dayViewOpen: string;
|
|
59
|
+
dayViewAllDay: string;
|
|
60
|
+
dayViewEmpty: string;
|
|
61
|
+
dayViewClose: string;
|
|
62
|
+
viewKanban: string;
|
|
63
|
+
kanbanFieldLabel: string;
|
|
64
|
+
kanbanUncategorized: string;
|
|
65
|
+
kanbanOpenCard: string;
|
|
66
|
+
addView: string;
|
|
67
|
+
config: {
|
|
68
|
+
open: string;
|
|
69
|
+
title: string;
|
|
70
|
+
viewsHeading: string;
|
|
71
|
+
deleteView: string;
|
|
72
|
+
confirmDelete: string;
|
|
73
|
+
empty: string;
|
|
74
|
+
};
|
|
75
|
+
customViewLoading: string;
|
|
76
|
+
customViewError: string;
|
|
77
|
+
addViewPrompt: string;
|
|
78
|
+
repair: string;
|
|
79
|
+
dataIssuesDetected: string;
|
|
80
|
+
repairPrompt: string;
|
|
81
|
+
source: {
|
|
82
|
+
user: string;
|
|
83
|
+
project: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
common: {
|
|
87
|
+
close: string;
|
|
88
|
+
add: string;
|
|
89
|
+
cancel: string;
|
|
90
|
+
loading: string;
|
|
91
|
+
no: string;
|
|
92
|
+
remove: string;
|
|
93
|
+
save: string;
|
|
94
|
+
saving: string;
|
|
95
|
+
yes: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
}, {
|
|
99
|
+
[x: string]: import("vue-i18n").IntlDateTimeFormat;
|
|
100
|
+
}, {
|
|
101
|
+
[x: string]: import("vue-i18n").IntlNumberFormat;
|
|
102
|
+
}, string, false>;
|
|
103
|
+
/** The plugin's i18n composable — a drop-in for vue-i18n's `useI18n()` over the
|
|
104
|
+
* plugin's own self-contained instance. Returns `{ t, locale }` (destructured at
|
|
105
|
+
* the call site, exactly like `useI18n()`), with `t` reading the plugin's keys
|
|
106
|
+
* and `locale` the reactive tag for date/number formatting. */
|
|
107
|
+
export declare function useCollectionI18n(): {
|
|
108
|
+
t: (typeof i18n.global)["t"];
|
|
109
|
+
locale: (typeof i18n.global)["locale"];
|
|
110
|
+
};
|
|
111
|
+
export {};
|
|
112
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/vue/lang/index.ts"],"names":[],"mappings":"AAuBA,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAcR,CAAC;AAsBH;;;gEAGgE;AAChE,wBAAgB,iBAAiB,IAAI;IAAE,CAAC,EAAE,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC;IAAC,MAAM,EAAE,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAA;CAAE,CAG5G"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ja.d.ts","sourceRoot":"","sources":["../../../src/vue/lang/ja.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAE/C,QAAA,MAAM,UAAU,EAAE,kBAoGjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ko.d.ts","sourceRoot":"","sources":["../../../src/vue/lang/ko.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAE/C,QAAA,MAAM,UAAU,EAAE,kBAoGjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ptBR.d.ts","sourceRoot":"","sources":["../../../src/vue/lang/ptBR.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAE/C,QAAA,MAAM,YAAY,EAAE,kBAoGnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zh.d.ts","sourceRoot":"","sources":["../../../src/vue/lang/zh.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAE/C,QAAA,MAAM,UAAU,EAAE,kBAoGjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
package/dist/vue/uiContext.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Component } from "vue";
|
|
2
|
+
import type { CollectionDetailResponse, ItemMutationResponse, CollectionNotifySeverity, CollectionsListResponse, FeedsListResponse, CollectionShortcutInfo } from "../core/uiTypes";
|
|
3
|
+
import type { CollectionItem } from "../core/schema";
|
|
2
4
|
/** Result of a host data fetch — structurally a subset of the host's own
|
|
3
5
|
* `ApiResult` (so the host can pass `apiGet` straight through). The view layer
|
|
4
6
|
* treats `ok: false` as a skip, never throwing on one failed target. */
|
|
@@ -8,10 +10,76 @@ export type CollectionFetchResult<T> = {
|
|
|
8
10
|
} | {
|
|
9
11
|
ok: false;
|
|
10
12
|
};
|
|
13
|
+
/** Result of a host write (delete / create / update / action) — the normalised
|
|
14
|
+
* `ApiResult` shape, so the host passes `apiDelete`/`apiPost`/… straight through.
|
|
15
|
+
* Carries the host's error string on failure for inline display. */
|
|
16
|
+
export type CollectionMutationResult = {
|
|
17
|
+
ok: true;
|
|
18
|
+
} | {
|
|
19
|
+
ok: false;
|
|
20
|
+
error: string;
|
|
21
|
+
};
|
|
22
|
+
/** Full host `ApiResult<T>` (data on success, error + HTTP status on failure) —
|
|
23
|
+
* matches the host's `ApiResult` exactly, so `apiGet`/`apiPost`/`apiPut` pass
|
|
24
|
+
* straight through. `status` lets the view distinguish 404 (not-found) from a
|
|
25
|
+
* generic failure. */
|
|
26
|
+
export type CollectionApiResult<T> = {
|
|
27
|
+
ok: true;
|
|
28
|
+
data: T;
|
|
29
|
+
} | {
|
|
30
|
+
ok: false;
|
|
31
|
+
error: string;
|
|
32
|
+
status: number;
|
|
33
|
+
};
|
|
34
|
+
/** A collection / item action's result — a seed prompt + role for a new chat. */
|
|
35
|
+
export interface CollectionActionResult {
|
|
36
|
+
prompt: string;
|
|
37
|
+
role: string;
|
|
38
|
+
}
|
|
39
|
+
/** A feed refresh's result — counts + per-source errors. */
|
|
40
|
+
export interface CollectionRefreshResult {
|
|
41
|
+
refreshed: boolean;
|
|
42
|
+
written: number;
|
|
43
|
+
errors: string[];
|
|
44
|
+
}
|
|
45
|
+
/** Scoped capability token for a sandboxed custom view (mirrors the host's mint
|
|
46
|
+
* response) — the iframe reads/writes the collection through it. */
|
|
47
|
+
export interface CollectionViewToken {
|
|
48
|
+
token: string;
|
|
49
|
+
exp: number;
|
|
50
|
+
dataUrl: string;
|
|
51
|
+
capabilities: string[];
|
|
52
|
+
}
|
|
53
|
+
/** Result of fetching a custom view's HTML — status-only failure (the host
|
|
54
|
+
* attaches the global bearer; a non-2xx is surfaced as `HTTP <status>`). */
|
|
55
|
+
export type CollectionViewHtmlResult = {
|
|
56
|
+
ok: true;
|
|
57
|
+
html: string;
|
|
58
|
+
} | {
|
|
59
|
+
ok: false;
|
|
60
|
+
status: number;
|
|
61
|
+
};
|
|
62
|
+
/** Inputs the host needs to wrap a custom view's HTML into a sandboxed srcdoc
|
|
63
|
+
* (token + data URL injected, CSP applied — the host owns the CSP policy). */
|
|
64
|
+
export interface CollectionViewSrcdocBoot {
|
|
65
|
+
slug: string;
|
|
66
|
+
token: string;
|
|
67
|
+
dataUrl: string;
|
|
68
|
+
origin: string;
|
|
69
|
+
}
|
|
70
|
+
/** Options for the host's confirm dialog — structurally matches the host's own
|
|
71
|
+
* `ConfirmOptions`, so `confirm` can forward to `useConfirm().openConfirm`. */
|
|
72
|
+
export interface CollectionConfirmOptions {
|
|
73
|
+
message: string;
|
|
74
|
+
confirmText?: string;
|
|
75
|
+
cancelText?: string;
|
|
76
|
+
variant?: "primary" | "success" | "danger";
|
|
77
|
+
}
|
|
11
78
|
export interface CollectionUi {
|
|
12
|
-
/** Fetch a collection's detail (schema + records) by slug — backs
|
|
13
|
-
*
|
|
14
|
-
|
|
79
|
+
/** Fetch a collection's detail (schema + records) by slug — backs both the
|
|
80
|
+
* View's own load (reads `status` for 404 → not-found) and ref/embed
|
|
81
|
+
* resolution (treats `!ok` as a skip). Replaces `apiGet(…collections.detail)`. */
|
|
82
|
+
fetchCollectionDetail: (slug: string) => Promise<CollectionApiResult<CollectionDetailResponse>>;
|
|
15
83
|
/** Browser-loadable URL for a file/image asset value (an html/svg artifact),
|
|
16
84
|
* or null when the value isn't a renderable asset path. Replaces
|
|
17
85
|
* `isValidFilePath` + `htmlPreviewUrlFor`/`svgPreviewUrlFor`. */
|
|
@@ -23,6 +91,77 @@ export interface CollectionUi {
|
|
|
23
91
|
/** Browser `<img src>` for a stored image value (a workspace file path), via
|
|
24
92
|
* the host's raw-file endpoint. Replaces the host's `resolveImageSrc`. */
|
|
25
93
|
imageSrc: (imageData: string) => string;
|
|
94
|
+
/** Open the host's confirm dialog; resolves true if confirmed. Replaces
|
|
95
|
+
* `useConfirm().openConfirm`. */
|
|
96
|
+
confirm: (options: CollectionConfirmOptions) => Promise<boolean>;
|
|
97
|
+
/** Delete a collection's custom view by id. Replaces the host's
|
|
98
|
+
* `apiDelete(API_ROUTES.collections.viewDelete)`. */
|
|
99
|
+
deleteView: (slug: string, viewId: string) => Promise<CollectionMutationResult>;
|
|
100
|
+
/** Mint a scoped capability token for a custom view (host: `apiPost` over
|
|
101
|
+
* `API_ROUTES.collections.viewToken`). */
|
|
102
|
+
mintViewToken: (slug: string, viewId: string) => Promise<CollectionApiResult<CollectionViewToken>>;
|
|
103
|
+
/** Fetch a custom view's raw HTML (host: `apiFetchRaw` over
|
|
104
|
+
* `API_ROUTES.collections.viewFile`, global bearer attached). */
|
|
105
|
+
fetchViewHtml: (slug: string, viewId: string) => Promise<CollectionViewHtmlResult>;
|
|
106
|
+
/** Wrap a custom view's HTML in a sandboxed `<iframe srcdoc>` with the token +
|
|
107
|
+
* data URL injected and the host's CSP applied. Replaces the host's
|
|
108
|
+
* `buildCustomViewSrcdoc`. */
|
|
109
|
+
buildViewSrcdoc: (html: string, boot: CollectionViewSrcdocBoot) => string;
|
|
110
|
+
/** Create a record (`apiPost` over `…collections.items`). */
|
|
111
|
+
createItem: (slug: string, record: CollectionItem) => Promise<CollectionApiResult<ItemMutationResponse>>;
|
|
112
|
+
/** Update a record (`apiPut` over `…collections.item`). */
|
|
113
|
+
updateItem: (slug: string, itemId: string, record: CollectionItem) => Promise<CollectionApiResult<ItemMutationResponse>>;
|
|
114
|
+
/** Delete a record (`apiDelete` over `…collections.item`). */
|
|
115
|
+
deleteItem: (slug: string, itemId: string) => Promise<CollectionMutationResult>;
|
|
116
|
+
/** Delete a whole collection (`apiDelete` over `…collections.detail`). */
|
|
117
|
+
deleteCollection: (slug: string) => Promise<CollectionMutationResult>;
|
|
118
|
+
/** Delete a feed via the project-scope feed-delete route (`…feeds.detail`). */
|
|
119
|
+
deleteFeed: (slug: string) => Promise<CollectionMutationResult>;
|
|
120
|
+
/** Run a per-record action (`apiPost` over `…collections.itemAction`). */
|
|
121
|
+
runItemAction: (slug: string, itemId: string, actionId: string) => Promise<CollectionApiResult<CollectionActionResult>>;
|
|
122
|
+
/** Run a collection-level action (`apiPost` over `…collections.collectionAction`). */
|
|
123
|
+
runCollectionAction: (slug: string, actionId: string) => Promise<CollectionApiResult<CollectionActionResult>>;
|
|
124
|
+
/** Refresh a feed-backed collection (`apiPost` over `…collections.refresh`). */
|
|
125
|
+
refreshCollection: (slug: string) => Promise<CollectionApiResult<CollectionRefreshResult>>;
|
|
126
|
+
/** Current route's `:slug` param (standalone page), or undefined. */
|
|
127
|
+
routeSlug: () => string | undefined;
|
|
128
|
+
/** Current route's `?selected=` query (deep-linked record), or undefined. */
|
|
129
|
+
routeSelectedId: () => string | undefined;
|
|
130
|
+
/** True when the standalone page is the feeds route (vs collections). */
|
|
131
|
+
isFeedRoute: () => boolean;
|
|
132
|
+
/** Set/clear the `?selected=` deep-link (router.replace, no history entry). */
|
|
133
|
+
setSelectedId: (itemId: string | null) => void;
|
|
134
|
+
/** Navigate to the collections / feeds index after a delete. */
|
|
135
|
+
gotoIndex: (kind: "collection" | "feed") => void;
|
|
136
|
+
/** Navigate to a specific collection / feed detail page (from an index card). */
|
|
137
|
+
gotoDetail: (kind: "collection" | "feed", slug: string) => void;
|
|
138
|
+
/** List skill-backed collections (`apiGet` over `…collections.list`). */
|
|
139
|
+
listCollections: () => Promise<CollectionApiResult<CollectionsListResponse>>;
|
|
140
|
+
/** List feed-backed collections (`apiGet` over `…feeds.list`). */
|
|
141
|
+
listFeeds: () => Promise<CollectionApiResult<FeedsListResponse>>;
|
|
142
|
+
/** Bulk-reconcile pinned launcher shortcuts of one kind against the
|
|
143
|
+
* authoritative list — prune dead slugs, refresh stale labels
|
|
144
|
+
* (`useShortcuts().reconcile`). */
|
|
145
|
+
reconcileShortcuts: (kind: "collection" | "feed", live: CollectionShortcutInfo[]) => Promise<void>;
|
|
146
|
+
/** Start a new chat with a seed prompt + role (host: `useAppApi().startNewChat`). */
|
|
147
|
+
startChat: (prompt: string, role: string) => void;
|
|
148
|
+
/** The host's active i18n locale tag (e.g. "en", "ja"), read reactively — the
|
|
149
|
+
* plugin syncs its own self-contained i18n instance to it. */
|
|
150
|
+
localeTag: () => string;
|
|
151
|
+
/** The host's "general" role id, for chats seeded without a specific role. */
|
|
152
|
+
generalRoleId: string;
|
|
153
|
+
/** The host's "personal" role id (the feed-add chat seeds into it). */
|
|
154
|
+
personalRoleId: string;
|
|
155
|
+
/** Remove a pinned launcher shortcut for a 404'd collection/feed
|
|
156
|
+
* (`useShortcuts().unpin`). */
|
|
157
|
+
unpin: (kind: "collection" | "feed", slug: string) => Promise<boolean>;
|
|
158
|
+
/** Active-notification severity per record id, for accenting flagged rows/cards
|
|
159
|
+
* (`collectionNotifiedSeverities` over the host's live notifier entries). */
|
|
160
|
+
notifiedSeverities: (slug: string) => Map<string, CollectionNotifySeverity>;
|
|
161
|
+
/** The host's pin/unpin toggle (couples to the host's shortcut store + is
|
|
162
|
+
* shared with other host views), rendered in the View header via
|
|
163
|
+
* `<component :is>`. Props: `kind`, `slug`, `title`, `icon`. */
|
|
164
|
+
pinToggle: Component;
|
|
26
165
|
}
|
|
27
166
|
/** Wire the collection view layer to a host. Call once at app startup. */
|
|
28
167
|
export declare function configureCollectionUi(capabilities: CollectionUi): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uiContext.d.ts","sourceRoot":"","sources":["../../src/vue/uiContext.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"uiContext.d.ts","sourceRoot":"","sources":["../../src/vue/uiContext.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACpB,wBAAwB,EACxB,uBAAuB,EACvB,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD;;yEAEyE;AACzE,MAAM,MAAM,qBAAqB,CAAC,CAAC,IAAI;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,IAAI,EAAE,CAAC,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAA;CAAE,CAAC;AAE7E;;qEAEqE;AACrE,MAAM,MAAM,wBAAwB,GAAG;IAAE,EAAE,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEnF;;;uBA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