@happyvertical/smrt-content 0.43.9 → 0.44.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/agents/content-list.md +69 -0
- package/dist/chunks/content-corrections-BxfA3tW1.js +107 -0
- package/dist/chunks/content-corrections-BxfA3tW1.js.map +1 -0
- package/dist/chunks/content-query-B4cHfrig.js +4092 -0
- package/dist/chunks/content-query-B4cHfrig.js.map +1 -0
- package/dist/chunks/content-reviews-BWrYEQc6.js +124 -0
- package/dist/chunks/content-reviews-BWrYEQc6.js.map +1 -0
- package/dist/chunks/content-versions-OEYQVrUf.js +284 -0
- package/dist/chunks/content-versions-OEYQVrUf.js.map +1 -0
- package/dist/chunks/contents-BrGxWH3s.js +612 -0
- package/dist/chunks/contents-BrGxWH3s.js.map +1 -0
- package/dist/chunks/rolldown-runtime-D7D4PA-g.js +13 -0
- package/dist/content-chat-handlers.d.ts +1 -1
- package/dist/content-chat-handlers.d.ts.map +1 -1
- package/dist/content-governance.d.ts +2 -0
- package/dist/content-governance.d.ts.map +1 -1
- package/dist/content.d.ts +2 -2
- package/dist/content.d.ts.map +1 -1
- package/dist/index.js +142 -4717
- package/dist/index.js.map +1 -1
- package/dist/manifest.json +142 -5
- package/dist/server/content-list-actions.d.ts +123 -0
- package/dist/server/content-list-actions.d.ts.map +1 -0
- package/dist/server.d.ts +6 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +874 -0
- package/dist/server.js.map +1 -0
- package/dist/smrt-knowledge.json +96 -9
- package/dist/svelte/components/ContentAgentChat.svelte +10 -0
- package/dist/svelte/components/ContentAgentChat.svelte.d.ts +10 -0
- package/dist/svelte/components/ContentAgentChat.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentBodyEditor.svelte +9 -0
- package/dist/svelte/components/ContentBodyEditor.svelte.d.ts +9 -0
- package/dist/svelte/components/ContentBodyEditor.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentBodyRenderer.svelte +3 -0
- package/dist/svelte/components/ContentBodyRenderer.svelte.d.ts +3 -0
- package/dist/svelte/components/ContentBodyRenderer.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentClaimAuditTool.svelte +3 -0
- package/dist/svelte/components/ContentClaimAuditTool.svelte.d.ts +3 -0
- package/dist/svelte/components/ContentClaimAuditTool.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentContributionForm.svelte +7 -0
- package/dist/svelte/components/ContentContributionForm.svelte.d.ts +7 -0
- package/dist/svelte/components/ContentContributionForm.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentContributionInbox.svelte +8 -0
- package/dist/svelte/components/ContentContributionInbox.svelte.d.ts +8 -0
- package/dist/svelte/components/ContentContributionInbox.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentContributionPortal.svelte +5 -0
- package/dist/svelte/components/ContentContributionPortal.svelte.d.ts +5 -0
- package/dist/svelte/components/ContentContributionPortal.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentContributionTypeManager.svelte +3 -0
- package/dist/svelte/components/ContentContributionTypeManager.svelte.d.ts +3 -0
- package/dist/svelte/components/ContentContributionTypeManager.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentContributorManager.svelte +3 -0
- package/dist/svelte/components/ContentContributorManager.svelte.d.ts +3 -0
- package/dist/svelte/components/ContentContributorManager.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentCorrectionsTool.svelte +4 -0
- package/dist/svelte/components/ContentCorrectionsTool.svelte.d.ts +4 -0
- package/dist/svelte/components/ContentCorrectionsTool.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentEditor.svelte +16 -0
- package/dist/svelte/components/ContentEditor.svelte.d.ts +16 -0
- package/dist/svelte/components/ContentEditor.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentGovernanceAssignmentEditor.svelte +4 -0
- package/dist/svelte/components/ContentGovernanceAssignmentEditor.svelte.d.ts +4 -0
- package/dist/svelte/components/ContentGovernanceAssignmentEditor.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentGovernanceManager.svelte +3 -0
- package/dist/svelte/components/ContentGovernanceManager.svelte.d.ts +3 -0
- package/dist/svelte/components/ContentGovernanceManager.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentGovernancePanel.svelte +16 -0
- package/dist/svelte/components/ContentGovernancePanel.svelte.d.ts +16 -0
- package/dist/svelte/components/ContentGovernancePanel.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentGovernancePolicyEditor.svelte +3 -0
- package/dist/svelte/components/ContentGovernancePolicyEditor.svelte.d.ts +3 -0
- package/dist/svelte/components/ContentGovernancePolicyEditor.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentGovernanceProfileEditor.svelte +4 -0
- package/dist/svelte/components/ContentGovernanceProfileEditor.svelte.d.ts +4 -0
- package/dist/svelte/components/ContentGovernanceProfileEditor.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentGovernanceTool.svelte +5 -0
- package/dist/svelte/components/ContentGovernanceTool.svelte.d.ts +5 -0
- package/dist/svelte/components/ContentGovernanceTool.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentImageBrowser.svelte +10 -0
- package/dist/svelte/components/ContentImageBrowser.svelte.d.ts +10 -0
- package/dist/svelte/components/ContentImageBrowser.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentImageChooser.svelte +4 -0
- package/dist/svelte/components/ContentImageChooser.svelte.d.ts +4 -0
- package/dist/svelte/components/ContentImageChooser.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentList.svelte +1036 -24
- package/dist/svelte/components/ContentList.svelte.d.ts +11 -0
- package/dist/svelte/components/ContentList.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentMetadataFields.svelte +2 -0
- package/dist/svelte/components/ContentMetadataFields.svelte.d.ts +2 -0
- package/dist/svelte/components/ContentMetadataFields.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentReferencesPanel.svelte +3 -0
- package/dist/svelte/components/ContentReferencesPanel.svelte.d.ts +3 -0
- package/dist/svelte/components/ContentReferencesPanel.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentReviewStatusTray.svelte +5 -0
- package/dist/svelte/components/ContentReviewStatusTray.svelte.d.ts +5 -0
- package/dist/svelte/components/ContentReviewStatusTray.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentStatusFields.svelte +2 -0
- package/dist/svelte/components/ContentStatusFields.svelte.d.ts +2 -0
- package/dist/svelte/components/ContentStatusFields.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentTitleField.svelte +4 -0
- package/dist/svelte/components/ContentTitleField.svelte.d.ts +4 -0
- package/dist/svelte/components/ContentTitleField.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentTransparencyReport.svelte +3 -0
- package/dist/svelte/components/ContentTransparencyReport.svelte.d.ts +3 -0
- package/dist/svelte/components/ContentTransparencyReport.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentTransparencyTool.svelte +3 -0
- package/dist/svelte/components/ContentTransparencyTool.svelte.d.ts +3 -0
- package/dist/svelte/components/ContentTransparencyTool.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentVersionsTool.svelte +3 -0
- package/dist/svelte/components/ContentVersionsTool.svelte.d.ts +3 -0
- package/dist/svelte/components/ContentVersionsTool.svelte.d.ts.map +1 -1
- package/dist/svelte/components/GovernedContentEditor.svelte +20 -0
- package/dist/svelte/components/GovernedContentEditor.svelte.d.ts +20 -0
- package/dist/svelte/components/GovernedContentEditor.svelte.d.ts.map +1 -1
- package/dist/svelte/content-list-controller.d.ts +3 -1
- package/dist/svelte/content-list-controller.d.ts.map +1 -1
- package/dist/svelte/content-list-controller.js +15 -1
- package/dist/svelte/content-list-workflows.d.ts +87 -0
- package/dist/svelte/content-list-workflows.d.ts.map +1 -0
- package/dist/svelte/content-list-workflows.js +199 -0
- package/dist/svelte/i18n.contribution.d.ts +109 -0
- package/dist/svelte/i18n.contribution.d.ts.map +1 -1
- package/dist/svelte/i18n.contribution.js +109 -0
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.d.ts.map +1 -1
- package/dist/svelte/index.js +2 -0
- package/dist/svelte/routes/ContentContributionsRoute.svelte +4 -0
- package/dist/svelte/routes/ContentContributionsRoute.svelte.d.ts +4 -0
- package/dist/svelte/routes/ContentContributionsRoute.svelte.d.ts.map +1 -1
- package/dist/svelte/routes/ContentFactsRoute.svelte +5 -0
- package/dist/svelte/routes/ContentFactsRoute.svelte.d.ts +5 -0
- package/dist/svelte/routes/ContentFactsRoute.svelte.d.ts.map +1 -1
- package/dist/svelte/routes/ContentGovernanceRoute.svelte +4 -0
- package/dist/svelte/routes/ContentGovernanceRoute.svelte.d.ts +4 -0
- package/dist/svelte/routes/ContentGovernanceRoute.svelte.d.ts.map +1 -1
- package/dist/svelte/routes/ContentWorkspaceRoute.svelte +5 -0
- package/dist/svelte/routes/ContentWorkspaceRoute.svelte.d.ts +5 -0
- package/dist/svelte/routes/ContentWorkspaceRoute.svelte.d.ts.map +1 -1
- package/dist/svelte/routes/PublishedArticleRoute.svelte +3 -0
- package/dist/svelte/routes/PublishedArticleRoute.svelte.d.ts +3 -0
- package/dist/svelte/routes/PublishedArticleRoute.svelte.d.ts.map +1 -1
- package/package.json +20 -14
- package/dist/chunks/content-transparency-Bh6axaZj.js +0 -606
- package/dist/chunks/content-transparency-Bh6axaZj.js.map +0 -1
|
@@ -29,7 +29,9 @@ import { type ContentListDataSurface, type ContentListViewMode } from '../conten
|
|
|
29
29
|
import { type ContentListQuerySource } from '../content-list-query.js';
|
|
30
30
|
import { type ContentListJobBinding } from '../content-list-runtime.js';
|
|
31
31
|
import { type ContentListSavedViewStore } from '../content-list-saved-views.js';
|
|
32
|
+
import { type ContentListWorkflowBinding } from '../content-list-workflows.js';
|
|
32
33
|
interface Props {
|
|
34
|
+
/** Base URL for content API requests. */
|
|
33
35
|
apiBaseUrl?: string;
|
|
34
36
|
/**
|
|
35
37
|
* Client-side rows. Ignored when `query` is supplied — the server then owns
|
|
@@ -37,12 +39,19 @@ interface Props {
|
|
|
37
39
|
* source of truth.
|
|
38
40
|
*/
|
|
39
41
|
contents?: ContentData[];
|
|
42
|
+
/** Filter content by this type; no filtering applied when omitted. */
|
|
40
43
|
type?: string;
|
|
44
|
+
/** Initial view layout mode for the content list. */
|
|
41
45
|
defaultViewMode?: ContentListViewMode;
|
|
46
|
+
/** Invoked when the user requests to edit a content item. */
|
|
42
47
|
onEdit: (content: ContentData) => void;
|
|
48
|
+
/** Invoked when the user requests to delete a content item. */
|
|
43
49
|
onDelete: (content: ContentData) => void;
|
|
50
|
+
/** Invoked when the user requests to create new content. */
|
|
44
51
|
onAdd: () => void;
|
|
52
|
+
/** Optional UI controls rendered above the content list. */
|
|
45
53
|
controls?: Snippet;
|
|
54
|
+
/** Returns a URL to view the published content; null hides the view link. */
|
|
46
55
|
getViewHref?: (content: ContentData) => string | null;
|
|
47
56
|
/** Announced uniformly by every presentation; #2455 extends it. */
|
|
48
57
|
loading?: boolean;
|
|
@@ -65,6 +74,8 @@ interface Props {
|
|
|
65
74
|
savedViews?: ContentListSavedViewStore;
|
|
66
75
|
/** Shared background-workflow state. The same binding guards submissions. */
|
|
67
76
|
jobs?: ContentListJobBinding;
|
|
77
|
+
/** Opt-in, authenticated preview/apply client for bulk workflows (#2453). */
|
|
78
|
+
workflows?: ContentListWorkflowBinding;
|
|
68
79
|
}
|
|
69
80
|
declare const ContentList: import("svelte").Component<Props, {}, "">;
|
|
70
81
|
type ContentList = ReturnType<typeof ContentList>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentList.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentList.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,IAAI,6BAA6B,EAAE,MAAM,6BAA6B,CAAC;AACvG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE/E;;;;;;;GAOG;AACH,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,MAAM,CAAC,EAAE,eAAe,GAAG,MAAM,GAAG,IAAI,CAAC;IACzC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CACT,MAAM,EAAE,eAAe,EACvB,KAAK,EAAE,6BAA6B,KACjC,IAAI,CAAC;IACV,uEAAuE;IACvE,OAAO,CAAC,EAAE,0BAA0B,CAAC;CACtC;
|
|
1
|
+
{"version":3,"file":"ContentList.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentList.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,IAAI,6BAA6B,EAAE,MAAM,6BAA6B,CAAC;AACvG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE/E;;;;;;;GAOG;AACH,MAAM,WAAW,0BAA0B;IACzC;;;OAGG;IACH,MAAM,CAAC,EAAE,eAAe,GAAG,MAAM,GAAG,IAAI,CAAC;IACzC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,CACT,MAAM,EAAE,eAAe,EACvB,KAAK,EAAE,6BAA6B,KACjC,IAAI,CAAC;IACV,uEAAuE;IACvE,OAAO,CAAC,EAAE,0BAA0B,CAAC;CACtC;AAcD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EASL,KAAK,sBAAsB,EAE3B,KAAK,mBAAmB,EAiBzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAOL,KAAK,sBAAsB,EAU5B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAGL,KAAK,qBAAqB,EAG3B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEL,KAAK,yBAAyB,EAG/B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,KAAK,0BAA0B,EAOhC,MAAM,8BAA8B,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7 +15,9 @@ export interface ContentMetadataFieldData {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export interface Props {
|
|
18
|
+
/** Current metadata field values. */
|
|
18
19
|
data: ContentMetadataFieldData;
|
|
20
|
+
/** Invoked when the user modifies any metadata field. */
|
|
19
21
|
onChange?: (change: Record<string, unknown>) => void;
|
|
20
22
|
}
|
|
21
23
|
|
|
@@ -7,7 +7,9 @@ export interface ContentMetadataFieldData {
|
|
|
7
7
|
[key: string]: unknown;
|
|
8
8
|
}
|
|
9
9
|
export interface Props {
|
|
10
|
+
/** Current metadata field values. */
|
|
10
11
|
data: ContentMetadataFieldData;
|
|
12
|
+
/** Invoked when the user modifies any metadata field. */
|
|
11
13
|
onChange?: (change: Record<string, unknown>) => void;
|
|
12
14
|
}
|
|
13
15
|
declare const ContentMetadataFields: import("svelte").Component<Props, {}, "">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentMetadataFields.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentMetadataFields.svelte.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,wBAAwB;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,wBAAwB,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;CACtD;AA0DD,QAAA,MAAM,qBAAqB,2CAAwC,CAAC;AACpE,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACtE,eAAe,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"ContentMetadataFields.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentMetadataFields.svelte.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,wBAAwB;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,KAAK;IACpB,qCAAqC;IACrC,IAAI,EAAE,wBAAwB,CAAC;IAC/B,yDAAyD;IACzD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;CACtD;AA0DD,QAAA,MAAM,qBAAqB,2CAAwC,CAAC;AACpE,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACtE,eAAe,qBAAqB,CAAC"}
|
|
@@ -9,8 +9,11 @@ import { M } from '../i18n.editor.js';
|
|
|
9
9
|
const { t } = useI18n();
|
|
10
10
|
|
|
11
11
|
export interface Props {
|
|
12
|
+
/** IDs of referenced content items. */
|
|
12
13
|
referenceIds?: string[];
|
|
14
|
+
/** Resolved reference objects with metadata for display. */
|
|
13
15
|
references?: ContentEditorReference[];
|
|
16
|
+
/** Invoked when the user adds or removes a reference. */
|
|
14
17
|
onReferenceIdsChange?: (referenceIds: string[]) => void;
|
|
15
18
|
/**
|
|
16
19
|
* Optional snippet rendered inside the panel beneath the references list
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import type { Snippet } from 'svelte';
|
|
2
2
|
import type { ContentEditorReference } from '../content-editor-form';
|
|
3
3
|
export interface Props {
|
|
4
|
+
/** IDs of referenced content items. */
|
|
4
5
|
referenceIds?: string[];
|
|
6
|
+
/** Resolved reference objects with metadata for display. */
|
|
5
7
|
references?: ContentEditorReference[];
|
|
8
|
+
/** Invoked when the user adds or removes a reference. */
|
|
6
9
|
onReferenceIdsChange?: (referenceIds: string[]) => void;
|
|
7
10
|
/**
|
|
8
11
|
* Optional snippet rendered inside the panel beneath the references list
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentReferencesPanel.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentReferencesPanel.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAIrE,MAAM,WAAW,KAAK;IACpB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,UAAU,CAAC,EAAE,sBAAsB,EAAE,CAAC;IACtC,oBAAoB,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACxD;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAwHD,QAAA,MAAM,sBAAsB,2CAAwC,CAAC;AACrE,KAAK,sBAAsB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACxE,eAAe,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"ContentReferencesPanel.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentReferencesPanel.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAIrE,MAAM,WAAW,KAAK;IACpB,uCAAuC;IACvC,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,4DAA4D;IAC5D,UAAU,CAAC,EAAE,sBAAsB,EAAE,CAAC;IACtC,yDAAyD;IACzD,oBAAoB,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACxD;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAwHD,QAAA,MAAM,sBAAsB,2CAAwC,CAAC;AACrE,KAAK,sBAAsB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACxE,eAAe,sBAAsB,CAAC"}
|
|
@@ -17,10 +17,15 @@ export interface ContentReviewStatusTrayItem {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export interface Props {
|
|
20
|
+
/** Review status items to display in the tray. */
|
|
20
21
|
items?: ContentReviewStatusTrayItem[];
|
|
22
|
+
/** ID of the currently selected status item. */
|
|
21
23
|
activeId?: string | null;
|
|
24
|
+
/** Whether the tray dropdown menu is displayed. */
|
|
22
25
|
open?: boolean;
|
|
26
|
+
/** Label text shown when the tray is collapsed. */
|
|
23
27
|
label?: string;
|
|
28
|
+
/** Invoked when the user selects a status item. */
|
|
24
29
|
onSelect?: (item: ContentReviewStatusTrayItem) => void;
|
|
25
30
|
}
|
|
26
31
|
|
|
@@ -8,10 +8,15 @@ export interface ContentReviewStatusTrayItem {
|
|
|
8
8
|
status: string;
|
|
9
9
|
}
|
|
10
10
|
export interface Props {
|
|
11
|
+
/** Review status items to display in the tray. */
|
|
11
12
|
items?: ContentReviewStatusTrayItem[];
|
|
13
|
+
/** ID of the currently selected status item. */
|
|
12
14
|
activeId?: string | null;
|
|
15
|
+
/** Whether the tray dropdown menu is displayed. */
|
|
13
16
|
open?: boolean;
|
|
17
|
+
/** Label text shown when the tray is collapsed. */
|
|
14
18
|
label?: string;
|
|
19
|
+
/** Invoked when the user selects a status item. */
|
|
15
20
|
onSelect?: (item: ContentReviewStatusTrayItem) => void;
|
|
16
21
|
}
|
|
17
22
|
declare const ContentReviewStatusTray: import("svelte").Component<Props, {}, "">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentReviewStatusTray.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentReviewStatusTray.svelte.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,uBAAuB,GAC/B,SAAS,GACT,QAAQ,GACR,SAAS,GACT,SAAS,CAAC;AACd,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEhF,MAAM,WAAW,2BAA2B;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,uBAAuB,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,uBAAuB,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,KAAK;IACpB,KAAK,CAAC,EAAE,2BAA2B,EAAE,CAAC;IACtC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,2BAA2B,KAAK,IAAI,CAAC;CACxD;AAiED,QAAA,MAAM,uBAAuB,2CAAwC,CAAC;AACtE,KAAK,uBAAuB,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAC1E,eAAe,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"ContentReviewStatusTray.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentReviewStatusTray.svelte.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,uBAAuB,GAC/B,SAAS,GACT,QAAQ,GACR,SAAS,GACT,SAAS,CAAC;AACd,MAAM,MAAM,uBAAuB,GAAG,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEhF,MAAM,WAAW,2BAA2B;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,uBAAuB,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,uBAAuB,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,KAAK;IACpB,kDAAkD;IAClD,KAAK,CAAC,EAAE,2BAA2B,EAAE,CAAC;IACtC,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,mDAAmD;IACnD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,mDAAmD;IACnD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mDAAmD;IACnD,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,2BAA2B,KAAK,IAAI,CAAC;CACxD;AAiED,QAAA,MAAM,uBAAuB,2CAAwC,CAAC;AACtE,KAAK,uBAAuB,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAC1E,eAAe,uBAAuB,CAAC"}
|
|
@@ -14,7 +14,9 @@ export interface ContentStatusFieldData {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export interface Props {
|
|
17
|
+
/** Current status field values. */
|
|
17
18
|
data: ContentStatusFieldData;
|
|
19
|
+
/** Invoked when the user modifies any status field. */
|
|
18
20
|
onChange?: (change: Record<string, unknown>) => void;
|
|
19
21
|
}
|
|
20
22
|
|
|
@@ -6,7 +6,9 @@ export interface ContentStatusFieldData {
|
|
|
6
6
|
[key: string]: unknown;
|
|
7
7
|
}
|
|
8
8
|
export interface Props {
|
|
9
|
+
/** Current status field values. */
|
|
9
10
|
data: ContentStatusFieldData;
|
|
11
|
+
/** Invoked when the user modifies any status field. */
|
|
10
12
|
onChange?: (change: Record<string, unknown>) => void;
|
|
11
13
|
}
|
|
12
14
|
declare const ContentStatusFields: import("svelte").Component<Props, {}, "">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentStatusFields.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentStatusFields.svelte.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,sBAAsB,CAAC;IAC7B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;CACtD;AAsDD,QAAA,MAAM,mBAAmB,2CAAwC,CAAC;AAClE,KAAK,mBAAmB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAClE,eAAe,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"ContentStatusFields.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentStatusFields.svelte.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,sBAAsB;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,KAAK;IACpB,mCAAmC;IACnC,IAAI,EAAE,sBAAsB,CAAC;IAC7B,uDAAuD;IACvD,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;CACtD;AAsDD,QAAA,MAAM,mBAAmB,2CAAwC,CAAC;AAClE,KAAK,mBAAmB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAClE,eAAe,mBAAmB,CAAC"}
|
|
@@ -2,9 +2,13 @@
|
|
|
2
2
|
import { Input } from '@happyvertical/smrt-ui/forms';
|
|
3
3
|
|
|
4
4
|
export interface Props {
|
|
5
|
+
/** Current title text value. */
|
|
5
6
|
value?: string;
|
|
7
|
+
/** Placeholder text shown when the field is empty. */
|
|
6
8
|
placeholder?: string;
|
|
9
|
+
/** Whether the title field must be filled before submission. */
|
|
7
10
|
required?: boolean;
|
|
11
|
+
/** Invoked when the user modifies the title text. */
|
|
8
12
|
onChange?: (value: string) => void;
|
|
9
13
|
}
|
|
10
14
|
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
export interface Props {
|
|
2
|
+
/** Current title text value. */
|
|
2
3
|
value?: string;
|
|
4
|
+
/** Placeholder text shown when the field is empty. */
|
|
3
5
|
placeholder?: string;
|
|
6
|
+
/** Whether the title field must be filled before submission. */
|
|
4
7
|
required?: boolean;
|
|
8
|
+
/** Invoked when the user modifies the title text. */
|
|
5
9
|
onChange?: (value: string) => void;
|
|
6
10
|
}
|
|
7
11
|
declare const ContentTitleField: import("svelte").Component<Props, {}, "">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentTitleField.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentTitleField.svelte.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,KAAK;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAqBD,QAAA,MAAM,iBAAiB,2CAAwC,CAAC;AAChE,KAAK,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC9D,eAAe,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"ContentTitleField.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentTitleField.svelte.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,KAAK;IACpB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sDAAsD;IACtD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAqBD,QAAA,MAAM,iBAAiB,2CAAwC,CAAC;AAChE,KAAK,iBAAiB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC9D,eAAe,iBAAiB,CAAC"}
|
|
@@ -6,8 +6,11 @@ import { M } from '../i18n.tools.js';
|
|
|
6
6
|
const { t } = useI18n();
|
|
7
7
|
|
|
8
8
|
export interface Props {
|
|
9
|
+
/** Transparency report data including facts and references. */
|
|
9
10
|
transparency?: ContentTransparencyData | null;
|
|
11
|
+
/** Title displayed at the top of the report. */
|
|
10
12
|
title?: string;
|
|
13
|
+
/** Message displayed when no transparency data is available. */
|
|
11
14
|
emptyCopy?: string;
|
|
12
15
|
}
|
|
13
16
|
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { ContentTransparencyData } from '../../mock-smrt-client';
|
|
2
2
|
export interface Props {
|
|
3
|
+
/** Transparency report data including facts and references. */
|
|
3
4
|
transparency?: ContentTransparencyData | null;
|
|
5
|
+
/** Title displayed at the top of the report. */
|
|
4
6
|
title?: string;
|
|
7
|
+
/** Message displayed when no transparency data is available. */
|
|
5
8
|
emptyCopy?: string;
|
|
6
9
|
}
|
|
7
10
|
declare const ContentTransparencyReport: import("svelte").Component<Props, {}, "">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentTransparencyReport.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentTransparencyReport.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAItE,MAAM,WAAW,KAAK;IACpB,YAAY,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAiND,QAAA,MAAM,yBAAyB,2CAAwC,CAAC;AACxE,KAAK,yBAAyB,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC9E,eAAe,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"ContentTransparencyReport.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentTransparencyReport.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAItE,MAAM,WAAW,KAAK;IACpB,+DAA+D;IAC/D,YAAY,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAC9C,gDAAgD;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAiND,QAAA,MAAM,yBAAyB,2CAAwC,CAAC;AACxE,KAAK,yBAAyB,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC9E,eAAe,yBAAyB,CAAC"}
|
|
@@ -11,8 +11,11 @@ import { M } from '../i18n.tools.js';
|
|
|
11
11
|
const { t } = useI18n();
|
|
12
12
|
|
|
13
13
|
export interface Props {
|
|
14
|
+
/** Base URL for content API requests. */
|
|
14
15
|
apiBaseUrl?: string;
|
|
16
|
+
/** ID of the content item to analyze for transparency. */
|
|
15
17
|
contentId: string;
|
|
18
|
+
/** Invoked when the governance state of the content changes. */
|
|
16
19
|
onGovernanceStateChange?: (state: ContentGovernanceStateData | null) => void;
|
|
17
20
|
}
|
|
18
21
|
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { ContentGovernanceStateData } from '../../mock-smrt-client';
|
|
2
2
|
export interface Props {
|
|
3
|
+
/** Base URL for content API requests. */
|
|
3
4
|
apiBaseUrl?: string;
|
|
5
|
+
/** ID of the content item to analyze for transparency. */
|
|
4
6
|
contentId: string;
|
|
7
|
+
/** Invoked when the governance state of the content changes. */
|
|
5
8
|
onGovernanceStateChange?: (state: ContentGovernanceStateData | null) => void;
|
|
6
9
|
}
|
|
7
10
|
declare const ContentTransparencyTool: import("svelte").Component<Props, {}, "">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentTransparencyTool.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentTransparencyTool.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAMhC,MAAM,WAAW,KAAK;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,0BAA0B,GAAG,IAAI,KAAK,IAAI,CAAC;CAC9E;AAwND,QAAA,MAAM,uBAAuB,2CAAwC,CAAC;AACtE,KAAK,uBAAuB,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAC1E,eAAe,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"ContentTransparencyTool.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentTransparencyTool.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAMhC,MAAM,WAAW,KAAK;IACpB,yCAAyC;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0DAA0D;IAC1D,SAAS,EAAE,MAAM,CAAC;IAClB,gEAAgE;IAChE,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,0BAA0B,GAAG,IAAI,KAAK,IAAI,CAAC;CAC9E;AAwND,QAAA,MAAM,uBAAuB,2CAAwC,CAAC;AACtE,KAAK,uBAAuB,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAC1E,eAAe,uBAAuB,CAAC"}
|
|
@@ -10,8 +10,11 @@ import { M } from '../i18n.tools.js';
|
|
|
10
10
|
const { t } = useI18n();
|
|
11
11
|
|
|
12
12
|
export interface Props {
|
|
13
|
+
/** Base URL for content API requests. */
|
|
13
14
|
apiBaseUrl?: string;
|
|
15
|
+
/** ID of the content item to retrieve versions for. */
|
|
14
16
|
contentId: string;
|
|
17
|
+
/** Invoked when the versions list changes. */
|
|
15
18
|
onVersionsChange?: (versions: ContentVersionData[]) => void;
|
|
16
19
|
}
|
|
17
20
|
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import type { ContentVersionData } from '../../mock-smrt-client';
|
|
2
2
|
export interface Props {
|
|
3
|
+
/** Base URL for content API requests. */
|
|
3
4
|
apiBaseUrl?: string;
|
|
5
|
+
/** ID of the content item to retrieve versions for. */
|
|
4
6
|
contentId: string;
|
|
7
|
+
/** Invoked when the versions list changes. */
|
|
5
8
|
onVersionsChange?: (versions: ContentVersionData[]) => void;
|
|
6
9
|
}
|
|
7
10
|
declare const ContentVersionsTool: import("svelte").Component<Props, {}, "">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentVersionsTool.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentVersionsTool.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAMjE,MAAM,WAAW,KAAK;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,kBAAkB,EAAE,KAAK,IAAI,CAAC;CAC7D;AA6ND,QAAA,MAAM,mBAAmB,2CAAwC,CAAC;AAClE,KAAK,mBAAmB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAClE,eAAe,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"ContentVersionsTool.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentVersionsTool.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAMjE,MAAM,WAAW,KAAK;IACpB,yCAAyC;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uDAAuD;IACvD,SAAS,EAAE,MAAM,CAAC;IAClB,8CAA8C;IAC9C,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,kBAAkB,EAAE,KAAK,IAAI,CAAC;CAC7D;AA6ND,QAAA,MAAM,mBAAmB,2CAAwC,CAAC;AAClE,KAAK,mBAAmB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAClE,eAAe,mBAAmB,CAAC"}
|
|
@@ -20,25 +20,45 @@ export type GovernedContentEditorSaveData = ContentData & {
|
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
export interface Props {
|
|
23
|
+
/** Base URL for content and governance API requests. */
|
|
23
24
|
apiBaseUrl?: string;
|
|
25
|
+
/** Existing content to edit; omit to create new content. */
|
|
24
26
|
content?: ContentData;
|
|
27
|
+
/** ID of the content being edited; defaults to 'new'. */
|
|
25
28
|
contentId?: string;
|
|
29
|
+
/** Default relationship type for new facts added to the content. */
|
|
26
30
|
defaultRelationship?: string;
|
|
31
|
+
/** Key for the publication review profile to enforce. */
|
|
27
32
|
reviewProfileKey?: string;
|
|
33
|
+
/** Label shown for custom review workflow submissions. */
|
|
28
34
|
customReviewLabel?: string;
|
|
35
|
+
/** Instructions shown for custom review workflow submissions. */
|
|
29
36
|
customReviewInstructions?: string;
|
|
37
|
+
/** Policy key applied to custom review submissions. */
|
|
30
38
|
customReviewPolicyKey?: string;
|
|
39
|
+
/** Whether to require publication readiness before saving. */
|
|
31
40
|
enforcePublishReadiness?: boolean;
|
|
41
|
+
/** Whether to disable the save button. */
|
|
32
42
|
saveDisabled?: boolean;
|
|
43
|
+
/** Message displayed when save is disabled or unavailable. */
|
|
33
44
|
saveNotice?: string | null;
|
|
45
|
+
/** Whether the agent chat assistant panel is available. */
|
|
34
46
|
agentChatEnabled?: boolean;
|
|
47
|
+
/** Message displayed when agent chat is unavailable. */
|
|
35
48
|
agentChatNotice?: string | null;
|
|
49
|
+
/** Whether to hide the save and cancel action buttons. */
|
|
36
50
|
hideActions?: boolean;
|
|
51
|
+
/** Whether to hide the agent chat panel. */
|
|
37
52
|
hideChat?: boolean;
|
|
53
|
+
/** Whether to display the fact catalog panel. */
|
|
38
54
|
showFactCatalog?: boolean;
|
|
55
|
+
/** Whether to display the governance status panel. */
|
|
39
56
|
showGovernancePanel?: boolean;
|
|
57
|
+
/** Invoked when the assistant context changes during editing. */
|
|
40
58
|
onAssistantContextChange?: ContentEditorAssistantContextChange;
|
|
59
|
+
/** Invoked when the user saves the content. */
|
|
41
60
|
onSave: (data: GovernedContentEditorSaveData) => void;
|
|
61
|
+
/** Invoked when the user cancels editing. */
|
|
42
62
|
onCancel: () => void;
|
|
43
63
|
}
|
|
44
64
|
|
|
@@ -5,25 +5,45 @@ export type GovernedContentEditorSaveData = ContentData & {
|
|
|
5
5
|
facts: FactData[];
|
|
6
6
|
};
|
|
7
7
|
export interface Props {
|
|
8
|
+
/** Base URL for content and governance API requests. */
|
|
8
9
|
apiBaseUrl?: string;
|
|
10
|
+
/** Existing content to edit; omit to create new content. */
|
|
9
11
|
content?: ContentData;
|
|
12
|
+
/** ID of the content being edited; defaults to 'new'. */
|
|
10
13
|
contentId?: string;
|
|
14
|
+
/** Default relationship type for new facts added to the content. */
|
|
11
15
|
defaultRelationship?: string;
|
|
16
|
+
/** Key for the publication review profile to enforce. */
|
|
12
17
|
reviewProfileKey?: string;
|
|
18
|
+
/** Label shown for custom review workflow submissions. */
|
|
13
19
|
customReviewLabel?: string;
|
|
20
|
+
/** Instructions shown for custom review workflow submissions. */
|
|
14
21
|
customReviewInstructions?: string;
|
|
22
|
+
/** Policy key applied to custom review submissions. */
|
|
15
23
|
customReviewPolicyKey?: string;
|
|
24
|
+
/** Whether to require publication readiness before saving. */
|
|
16
25
|
enforcePublishReadiness?: boolean;
|
|
26
|
+
/** Whether to disable the save button. */
|
|
17
27
|
saveDisabled?: boolean;
|
|
28
|
+
/** Message displayed when save is disabled or unavailable. */
|
|
18
29
|
saveNotice?: string | null;
|
|
30
|
+
/** Whether the agent chat assistant panel is available. */
|
|
19
31
|
agentChatEnabled?: boolean;
|
|
32
|
+
/** Message displayed when agent chat is unavailable. */
|
|
20
33
|
agentChatNotice?: string | null;
|
|
34
|
+
/** Whether to hide the save and cancel action buttons. */
|
|
21
35
|
hideActions?: boolean;
|
|
36
|
+
/** Whether to hide the agent chat panel. */
|
|
22
37
|
hideChat?: boolean;
|
|
38
|
+
/** Whether to display the fact catalog panel. */
|
|
23
39
|
showFactCatalog?: boolean;
|
|
40
|
+
/** Whether to display the governance status panel. */
|
|
24
41
|
showGovernancePanel?: boolean;
|
|
42
|
+
/** Invoked when the assistant context changes during editing. */
|
|
25
43
|
onAssistantContextChange?: ContentEditorAssistantContextChange;
|
|
44
|
+
/** Invoked when the user saves the content. */
|
|
26
45
|
onSave: (data: GovernedContentEditorSaveData) => void;
|
|
46
|
+
/** Invoked when the user cancels editing. */
|
|
27
47
|
onCancel: () => void;
|
|
28
48
|
}
|
|
29
49
|
declare const GovernedContentEditor: import("svelte").Component<Props, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GovernedContentEditor.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/GovernedContentEditor.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,mCAAmC,EAEpC,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EACV,WAAW,EAGX,QAAQ,EACT,MAAM,wBAAwB,CAAC;AAMhC,MAAM,MAAM,6BAA6B,GAAG,WAAW,GAAG;IACxD,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,EAAE,QAAQ,EAAE,CAAC;CACnB,CAAC;AAEF,MAAM,WAAW,KAAK;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,wBAAwB,CAAC,EAAE,mCAAmC,CAAC;IAC/D,MAAM,EAAE,CAAC,IAAI,EAAE,6BAA6B,KAAK,IAAI,CAAC;IACtD,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAwSD,QAAA,MAAM,qBAAqB;;gCAhOS,MAAM;MAgOyB,CAAC;AACpE,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACtE,eAAe,qBAAqB,CAAC"}
|
|
1
|
+
{"version":3,"file":"GovernedContentEditor.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/GovernedContentEditor.svelte.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,mCAAmC,EAEpC,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EACV,WAAW,EAGX,QAAQ,EACT,MAAM,wBAAwB,CAAC;AAMhC,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,EAAE,MAAM,IAAI,CAAC;CACtB;AAwSD,QAAA,MAAM,qBAAqB;;gCAhOS,MAAM;MAgOyB,CAAC;AACpE,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACtE,eAAe,qBAAqB,CAAC"}
|
|
@@ -20,7 +20,7 @@ import type { ContentData } from '../mock-smrt-client.js';
|
|
|
20
20
|
/** Stable surface identity for the default mounted content list. */
|
|
21
21
|
export declare const CONTENT_LIST_SURFACE_ID = "content-list";
|
|
22
22
|
/** Descriptor and view-state schema version owned by this adapter. */
|
|
23
|
-
export declare const CONTENT_LIST_SCHEMA_VERSION =
|
|
23
|
+
export declare const CONTENT_LIST_SCHEMA_VERSION = 2;
|
|
24
24
|
/** Row identity column. Selection and expansion address rows by this value. */
|
|
25
25
|
export declare const CONTENT_LIST_ROW_KEY = "id";
|
|
26
26
|
/** Stable filter ids dispatched by the toolbar and accepted from a surface. */
|
|
@@ -103,6 +103,8 @@ export interface ContentListSurfaceDescriptorOptions {
|
|
|
103
103
|
columnLabels?: ContentListColumnLabels;
|
|
104
104
|
actionLabels?: ContentListActionLabels;
|
|
105
105
|
limits?: Partial<DataSurfaceLimits>;
|
|
106
|
+
/** Publish bulk workflow actions only when the mounted list can execute them. */
|
|
107
|
+
includeWorkflows?: boolean;
|
|
106
108
|
}
|
|
107
109
|
/**
|
|
108
110
|
* Opt-in agent addressability for the compact table. The host owns the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-list-controller.d.ts","sourceRoot":"","sources":["../../src/svelte/content-list-controller.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAKL,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EAGxB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"content-list-controller.d.ts","sourceRoot":"","sources":["../../src/svelte/content-list-controller.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAKL,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EAGxB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAG1D,oEAAoE;AACpE,eAAO,MAAM,uBAAuB,iBAAiB,CAAC;AAEtD,sEAAsE;AACtE,eAAO,MAAM,2BAA2B,IAAI,CAAC;AAE7C,+EAA+E;AAC/E,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAEzC,+EAA+E;AAC/E,eAAO,MAAM,2BAA2B,SAAS,CAAC;AAClD,eAAO,MAAM,6BAA6B,WAAW,CAAC;AAKtD,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,CAAC;AAElE,MAAM,MAAM,mBAAmB,GAC3B,MAAM,GACN,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,OAAO,GACP,SAAS,GACT,SAAS,GACT,MAAM,GACN,aAAa,CAAC;AAElB,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,CAAC;AAE7D,6EAA6E;AAC7E,eAAO,MAAM,+BAA+B,uFASO,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,8BAA8B,0BAEQ,CAAC;AAEpD,eAAO,MAAM,uBAAuB,sGAGe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GG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,WAAW,EACpB,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,MAAM,GAAG,IAAI,GACpD,MAAM,GAAG,IAAI,CAQf;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,cAAc,EACnB,OAAO,GAAE,wBAA6B,GACrC,mBAAmB,EAAE,CAOvB;AA2BD;;;GAGG;AACH,wBAAgB,iCAAiC,CAC/C,OAAO,GAAE,mCAAwC,GAChD,qBAAqB,CAgFvB"}
|
|
@@ -16,10 +16,11 @@
|
|
|
16
16
|
* that transform with a server query behind the same contract.
|
|
17
17
|
*/
|
|
18
18
|
import { compareDataTableRowIds, createDataTableController, defaultSort, getNestedValue, } from '@happyvertical/smrt-ui/data';
|
|
19
|
+
import { CONTENT_LIST_WORKFLOW_OPTIONS } from './content-list-workflows.js';
|
|
19
20
|
/** Stable surface identity for the default mounted content list. */
|
|
20
21
|
export const CONTENT_LIST_SURFACE_ID = 'content-list';
|
|
21
22
|
/** Descriptor and view-state schema version owned by this adapter. */
|
|
22
|
-
export const CONTENT_LIST_SCHEMA_VERSION =
|
|
23
|
+
export const CONTENT_LIST_SCHEMA_VERSION = 2;
|
|
23
24
|
/** Row identity column. Selection and expansion address rows by this value. */
|
|
24
25
|
export const CONTENT_LIST_ROW_KEY = 'id';
|
|
25
26
|
/** Stable filter ids dispatched by the toolbar and accepted from a surface. */
|
|
@@ -894,6 +895,19 @@ export function buildContentListSurfaceDescriptor(options = {}) {
|
|
|
894
895
|
selectionScopes: ['explicit-ids', 'current-page'],
|
|
895
896
|
requiresConfirmation: true,
|
|
896
897
|
},
|
|
898
|
+
...(options.includeWorkflows
|
|
899
|
+
? CONTENT_LIST_WORKFLOW_OPTIONS.map((workflow) => ({
|
|
900
|
+
id: workflow.id,
|
|
901
|
+
label: workflow.label,
|
|
902
|
+
sensitivity: workflow.sensitivity,
|
|
903
|
+
selectionScopes: [
|
|
904
|
+
'current-page',
|
|
905
|
+
'explicit-ids',
|
|
906
|
+
'all-matching',
|
|
907
|
+
],
|
|
908
|
+
requiresConfirmation: true,
|
|
909
|
+
}))
|
|
910
|
+
: []),
|
|
897
911
|
];
|
|
898
912
|
return {
|
|
899
913
|
version: 1,
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Browser contract for ContentList bulk workflows (#2453).
|
|
3
|
+
*
|
|
4
|
+
* The server implementation lives behind an application-owned route. This
|
|
5
|
+
* module deliberately mirrors its JSON contract without importing the Node
|
|
6
|
+
* adapter, so importing `@happyvertical/smrt-content/svelte` remains safe in a
|
|
7
|
+
* browser bundle.
|
|
8
|
+
*/
|
|
9
|
+
import type { DataSurfaceActionResult, DataSurfaceIdentity, DataSurfaceJsonValue, DataSurfaceSelectionReference } from '@happyvertical/smrt-ui/data';
|
|
10
|
+
import type { ContentListDataQueryRequest } from './content-list-query.js';
|
|
11
|
+
export declare const CONTENT_LIST_WORKFLOW_IDS: readonly ["move-to-trash", "mark-draft", "submit-review", "publish", "archive", "restore", "automated-review", "format-body", "categorize", "optimize"];
|
|
12
|
+
export type ContentListWorkflowId = (typeof CONTENT_LIST_WORKFLOW_IDS)[number];
|
|
13
|
+
export interface ContentListWorkflowOption {
|
|
14
|
+
id: ContentListWorkflowId;
|
|
15
|
+
label: string;
|
|
16
|
+
execution: 'foreground' | 'background';
|
|
17
|
+
sensitivity: 'public' | 'sensitive';
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Workflow choices with default English descriptor labels. ContentList maps
|
|
21
|
+
* their stable ids through its i18n catalog before rendering them.
|
|
22
|
+
*/
|
|
23
|
+
export declare const CONTENT_LIST_WORKFLOW_OPTIONS: readonly ContentListWorkflowOption[];
|
|
24
|
+
export interface ContentListWorkflowRequest {
|
|
25
|
+
version: 1;
|
|
26
|
+
requestId: string;
|
|
27
|
+
identity: DataSurfaceIdentity;
|
|
28
|
+
actionId: ContentListWorkflowId;
|
|
29
|
+
phase: 'preview' | 'apply';
|
|
30
|
+
selection: DataSurfaceSelectionReference;
|
|
31
|
+
payload?: DataSurfaceJsonValue;
|
|
32
|
+
expectedRevision: number;
|
|
33
|
+
target: {
|
|
34
|
+
query?: ContentListDataQueryRequest;
|
|
35
|
+
expectedCount: number;
|
|
36
|
+
};
|
|
37
|
+
confirmationToken?: string;
|
|
38
|
+
idempotencyKey?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface ContentListWorkflowClient {
|
|
41
|
+
preview(request: ContentListWorkflowRequest): Promise<DataSurfaceActionResult>;
|
|
42
|
+
apply(request: ContentListWorkflowRequest): Promise<DataSurfaceActionResult>;
|
|
43
|
+
/** Resolve a background job through the host's authenticated job runner. */
|
|
44
|
+
status?(jobId: string): Promise<ContentListWorkflowJobStatus>;
|
|
45
|
+
}
|
|
46
|
+
export interface ContentListWorkflowJobStatus {
|
|
47
|
+
jobId: string;
|
|
48
|
+
status: 'queued' | 'running' | 'succeeded' | 'failed' | 'cancelled';
|
|
49
|
+
/** Terminal row outcomes use the same partial-result contract as apply. */
|
|
50
|
+
result?: DataSurfaceActionResult;
|
|
51
|
+
reason?: string;
|
|
52
|
+
}
|
|
53
|
+
/** Opt-in workflow binding supplied to ContentList by an authenticated host. */
|
|
54
|
+
export interface ContentListWorkflowBinding {
|
|
55
|
+
client: ContentListWorkflowClient;
|
|
56
|
+
/** Server-owned surface revision expected by preview/apply. Defaults to zero. */
|
|
57
|
+
revision?: number;
|
|
58
|
+
/** Server action-selection cap used to gate all-matching UI. Defaults to 200. */
|
|
59
|
+
maxSelectionSize?: number;
|
|
60
|
+
/** Override the default mounted identity when the host uses another surface. */
|
|
61
|
+
identity?: DataSurfaceIdentity;
|
|
62
|
+
}
|
|
63
|
+
export interface ContentListWorkflowTransportOptions {
|
|
64
|
+
apiBaseUrl?: string;
|
|
65
|
+
/** Host route that dispatches the request by its `phase`. */
|
|
66
|
+
path?: string;
|
|
67
|
+
/** Optional authenticated job-status path. `{jobId}` is URL encoded. */
|
|
68
|
+
jobStatusPath?: string;
|
|
69
|
+
fetch?: typeof globalThis.fetch;
|
|
70
|
+
headers?: HeadersInit | (() => HeadersInit | Promise<HeadersInit>);
|
|
71
|
+
credentials?: RequestCredentials;
|
|
72
|
+
}
|
|
73
|
+
export type ContentListWorkflowErrorReason = 'network_failure' | 'invalid_json' | 'http_error' | 'invalid_result' | 'invalid_job_status' | 'invalid_job_result';
|
|
74
|
+
export declare class ContentListWorkflowError extends Error {
|
|
75
|
+
readonly status?: number;
|
|
76
|
+
readonly reason: ContentListWorkflowErrorReason;
|
|
77
|
+
constructor(message: string, status?: number, reason?: ContentListWorkflowErrorReason);
|
|
78
|
+
}
|
|
79
|
+
/** Creates the shared human/agent preview/apply transport for a host route. */
|
|
80
|
+
export declare function createContentListWorkflowTransport(options?: ContentListWorkflowTransportOptions): ContentListWorkflowClient;
|
|
81
|
+
/** Reads an array-shaped row outcome list from a preview/apply result. */
|
|
82
|
+
export declare function contentListWorkflowOutcomes(result: DataSurfaceActionResult | null): Array<{
|
|
83
|
+
rowId: string | number;
|
|
84
|
+
status: 'accepted' | 'skipped' | 'failed';
|
|
85
|
+
reason?: string;
|
|
86
|
+
}>;
|
|
87
|
+
//# sourceMappingURL=content-list-workflows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-list-workflows.d.ts","sourceRoot":"","sources":["../../src/svelte/content-list-workflows.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EACV,uBAAuB,EACvB,mBAAmB,EACnB,oBAAoB,EACpB,6BAA6B,EAC9B,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAE3E,eAAO,MAAM,yBAAyB,yJAW5B,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/E,MAAM,W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