@happyvertical/smrt-content 0.43.10 → 0.44.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.
Files changed (144) hide show
  1. package/agents/content-list.md +61 -5
  2. package/dist/chunks/{content-corrections-BxfA3tW1.js → content-corrections-B4mPd_th.js} +6 -3
  3. package/dist/chunks/content-corrections-B4mPd_th.js.map +1 -0
  4. package/dist/chunks/content-query-D1bLBzMT.js +4092 -0
  5. package/dist/chunks/{content-query-4w62u5_0.js.map → content-query-D1bLBzMT.js.map} +1 -1
  6. package/dist/chunks/{content-reviews-BWrYEQc6.js → content-reviews-lBoqJY7Y.js} +6 -3
  7. package/dist/chunks/content-reviews-lBoqJY7Y.js.map +1 -0
  8. package/dist/chunks/{content-versions-Di3vcTgb.js → content-versions-B0OUI1ut.js} +6 -3
  9. package/dist/chunks/content-versions-B0OUI1ut.js.map +1 -0
  10. package/dist/chunks/{contents-BV8RoP_R.js → contents-CRG2Snrb.js} +2 -2
  11. package/dist/chunks/{contents-BV8RoP_R.js.map → contents-CRG2Snrb.js.map} +1 -1
  12. package/dist/content-contribution.d.ts +1 -1
  13. package/dist/content-contribution.d.ts.map +1 -1
  14. package/dist/index.js +12 -9
  15. package/dist/index.js.map +1 -1
  16. package/dist/manifest.json +33 -6
  17. package/dist/server/content-list-actions.d.ts +10 -3
  18. package/dist/server/content-list-actions.d.ts.map +1 -1
  19. package/dist/server/content-list-lifecycle.d.ts +20 -0
  20. package/dist/server/content-list-lifecycle.d.ts.map +1 -0
  21. package/dist/server.d.ts +1 -0
  22. package/dist/server.d.ts.map +1 -1
  23. package/dist/server.js +189 -25
  24. package/dist/server.js.map +1 -1
  25. package/dist/smrt-knowledge.json +17 -5
  26. package/dist/svelte/components/ContentAgentChat.svelte +10 -0
  27. package/dist/svelte/components/ContentAgentChat.svelte.d.ts +10 -0
  28. package/dist/svelte/components/ContentAgentChat.svelte.d.ts.map +1 -1
  29. package/dist/svelte/components/ContentBodyEditor.svelte +9 -0
  30. package/dist/svelte/components/ContentBodyEditor.svelte.d.ts +9 -0
  31. package/dist/svelte/components/ContentBodyEditor.svelte.d.ts.map +1 -1
  32. package/dist/svelte/components/ContentBodyRenderer.svelte +3 -0
  33. package/dist/svelte/components/ContentBodyRenderer.svelte.d.ts +3 -0
  34. package/dist/svelte/components/ContentBodyRenderer.svelte.d.ts.map +1 -1
  35. package/dist/svelte/components/ContentClaimAuditTool.svelte +3 -0
  36. package/dist/svelte/components/ContentClaimAuditTool.svelte.d.ts +3 -0
  37. package/dist/svelte/components/ContentClaimAuditTool.svelte.d.ts.map +1 -1
  38. package/dist/svelte/components/ContentContributionForm.svelte +7 -0
  39. package/dist/svelte/components/ContentContributionForm.svelte.d.ts +7 -0
  40. package/dist/svelte/components/ContentContributionForm.svelte.d.ts.map +1 -1
  41. package/dist/svelte/components/ContentContributionInbox.svelte +8 -0
  42. package/dist/svelte/components/ContentContributionInbox.svelte.d.ts +8 -0
  43. package/dist/svelte/components/ContentContributionInbox.svelte.d.ts.map +1 -1
  44. package/dist/svelte/components/ContentContributionPortal.svelte +5 -0
  45. package/dist/svelte/components/ContentContributionPortal.svelte.d.ts +5 -0
  46. package/dist/svelte/components/ContentContributionPortal.svelte.d.ts.map +1 -1
  47. package/dist/svelte/components/ContentContributionTypeManager.svelte +3 -0
  48. package/dist/svelte/components/ContentContributionTypeManager.svelte.d.ts +3 -0
  49. package/dist/svelte/components/ContentContributionTypeManager.svelte.d.ts.map +1 -1
  50. package/dist/svelte/components/ContentContributorManager.svelte +3 -0
  51. package/dist/svelte/components/ContentContributorManager.svelte.d.ts +3 -0
  52. package/dist/svelte/components/ContentContributorManager.svelte.d.ts.map +1 -1
  53. package/dist/svelte/components/ContentCorrectionsTool.svelte +4 -0
  54. package/dist/svelte/components/ContentCorrectionsTool.svelte.d.ts +4 -0
  55. package/dist/svelte/components/ContentCorrectionsTool.svelte.d.ts.map +1 -1
  56. package/dist/svelte/components/ContentEditor.svelte +16 -0
  57. package/dist/svelte/components/ContentEditor.svelte.d.ts +16 -0
  58. package/dist/svelte/components/ContentEditor.svelte.d.ts.map +1 -1
  59. package/dist/svelte/components/ContentGovernanceAssignmentEditor.svelte +4 -0
  60. package/dist/svelte/components/ContentGovernanceAssignmentEditor.svelte.d.ts +4 -0
  61. package/dist/svelte/components/ContentGovernanceAssignmentEditor.svelte.d.ts.map +1 -1
  62. package/dist/svelte/components/ContentGovernanceManager.svelte +3 -0
  63. package/dist/svelte/components/ContentGovernanceManager.svelte.d.ts +3 -0
  64. package/dist/svelte/components/ContentGovernanceManager.svelte.d.ts.map +1 -1
  65. package/dist/svelte/components/ContentGovernancePanel.svelte +16 -0
  66. package/dist/svelte/components/ContentGovernancePanel.svelte.d.ts +16 -0
  67. package/dist/svelte/components/ContentGovernancePanel.svelte.d.ts.map +1 -1
  68. package/dist/svelte/components/ContentGovernancePolicyEditor.svelte +3 -0
  69. package/dist/svelte/components/ContentGovernancePolicyEditor.svelte.d.ts +3 -0
  70. package/dist/svelte/components/ContentGovernancePolicyEditor.svelte.d.ts.map +1 -1
  71. package/dist/svelte/components/ContentGovernanceProfileEditor.svelte +4 -0
  72. package/dist/svelte/components/ContentGovernanceProfileEditor.svelte.d.ts +4 -0
  73. package/dist/svelte/components/ContentGovernanceProfileEditor.svelte.d.ts.map +1 -1
  74. package/dist/svelte/components/ContentGovernanceTool.svelte +5 -0
  75. package/dist/svelte/components/ContentGovernanceTool.svelte.d.ts +5 -0
  76. package/dist/svelte/components/ContentGovernanceTool.svelte.d.ts.map +1 -1
  77. package/dist/svelte/components/ContentImageBrowser.svelte +10 -0
  78. package/dist/svelte/components/ContentImageBrowser.svelte.d.ts +10 -0
  79. package/dist/svelte/components/ContentImageBrowser.svelte.d.ts.map +1 -1
  80. package/dist/svelte/components/ContentImageChooser.svelte +4 -0
  81. package/dist/svelte/components/ContentImageChooser.svelte.d.ts +4 -0
  82. package/dist/svelte/components/ContentImageChooser.svelte.d.ts.map +1 -1
  83. package/dist/svelte/components/ContentList.svelte +201 -22
  84. package/dist/svelte/components/ContentList.svelte.d.ts +13 -0
  85. package/dist/svelte/components/ContentList.svelte.d.ts.map +1 -1
  86. package/dist/svelte/components/ContentListLifecyclePanel.svelte +341 -0
  87. package/dist/svelte/components/ContentListLifecyclePanel.svelte.d.ts +17 -0
  88. package/dist/svelte/components/ContentListLifecyclePanel.svelte.d.ts.map +1 -0
  89. package/dist/svelte/components/ContentMetadataFields.svelte +2 -0
  90. package/dist/svelte/components/ContentMetadataFields.svelte.d.ts +2 -0
  91. package/dist/svelte/components/ContentMetadataFields.svelte.d.ts.map +1 -1
  92. package/dist/svelte/components/ContentReferencesPanel.svelte +3 -0
  93. package/dist/svelte/components/ContentReferencesPanel.svelte.d.ts +3 -0
  94. package/dist/svelte/components/ContentReferencesPanel.svelte.d.ts.map +1 -1
  95. package/dist/svelte/components/ContentReviewStatusTray.svelte +5 -0
  96. package/dist/svelte/components/ContentReviewStatusTray.svelte.d.ts +5 -0
  97. package/dist/svelte/components/ContentReviewStatusTray.svelte.d.ts.map +1 -1
  98. package/dist/svelte/components/ContentStatusFields.svelte +2 -0
  99. package/dist/svelte/components/ContentStatusFields.svelte.d.ts +2 -0
  100. package/dist/svelte/components/ContentStatusFields.svelte.d.ts.map +1 -1
  101. package/dist/svelte/components/ContentTitleField.svelte +4 -0
  102. package/dist/svelte/components/ContentTitleField.svelte.d.ts +4 -0
  103. package/dist/svelte/components/ContentTitleField.svelte.d.ts.map +1 -1
  104. package/dist/svelte/components/ContentTransparencyReport.svelte +3 -0
  105. package/dist/svelte/components/ContentTransparencyReport.svelte.d.ts +3 -0
  106. package/dist/svelte/components/ContentTransparencyReport.svelte.d.ts.map +1 -1
  107. package/dist/svelte/components/ContentTransparencyTool.svelte +3 -0
  108. package/dist/svelte/components/ContentTransparencyTool.svelte.d.ts +3 -0
  109. package/dist/svelte/components/ContentTransparencyTool.svelte.d.ts.map +1 -1
  110. package/dist/svelte/components/ContentVersionsTool.svelte +3 -0
  111. package/dist/svelte/components/ContentVersionsTool.svelte.d.ts +3 -0
  112. package/dist/svelte/components/ContentVersionsTool.svelte.d.ts.map +1 -1
  113. package/dist/svelte/components/GovernedContentEditor.svelte +20 -0
  114. package/dist/svelte/components/GovernedContentEditor.svelte.d.ts +20 -0
  115. package/dist/svelte/components/GovernedContentEditor.svelte.d.ts.map +1 -1
  116. package/dist/svelte/content-list-lifecycle.d.ts +132 -0
  117. package/dist/svelte/content-list-lifecycle.d.ts.map +1 -0
  118. package/dist/svelte/content-list-lifecycle.js +439 -0
  119. package/dist/svelte/i18n.contribution.d.ts +27 -0
  120. package/dist/svelte/i18n.contribution.d.ts.map +1 -1
  121. package/dist/svelte/i18n.contribution.js +27 -0
  122. package/dist/svelte/index.d.ts +1 -0
  123. package/dist/svelte/index.d.ts.map +1 -1
  124. package/dist/svelte/index.js +1 -0
  125. package/dist/svelte/routes/ContentContributionsRoute.svelte +4 -0
  126. package/dist/svelte/routes/ContentContributionsRoute.svelte.d.ts +4 -0
  127. package/dist/svelte/routes/ContentContributionsRoute.svelte.d.ts.map +1 -1
  128. package/dist/svelte/routes/ContentFactsRoute.svelte +5 -0
  129. package/dist/svelte/routes/ContentFactsRoute.svelte.d.ts +5 -0
  130. package/dist/svelte/routes/ContentFactsRoute.svelte.d.ts.map +1 -1
  131. package/dist/svelte/routes/ContentGovernanceRoute.svelte +4 -0
  132. package/dist/svelte/routes/ContentGovernanceRoute.svelte.d.ts +4 -0
  133. package/dist/svelte/routes/ContentGovernanceRoute.svelte.d.ts.map +1 -1
  134. package/dist/svelte/routes/ContentWorkspaceRoute.svelte +5 -0
  135. package/dist/svelte/routes/ContentWorkspaceRoute.svelte.d.ts +5 -0
  136. package/dist/svelte/routes/ContentWorkspaceRoute.svelte.d.ts.map +1 -1
  137. package/dist/svelte/routes/PublishedArticleRoute.svelte +3 -0
  138. package/dist/svelte/routes/PublishedArticleRoute.svelte.d.ts +3 -0
  139. package/dist/svelte/routes/PublishedArticleRoute.svelte.d.ts.map +1 -1
  140. package/package.json +16 -15
  141. package/dist/chunks/content-corrections-BxfA3tW1.js.map +0 -1
  142. package/dist/chunks/content-query-4w62u5_0.js +0 -4092
  143. package/dist/chunks/content-reviews-BWrYEQc6.js.map +0 -1
  144. package/dist/chunks/content-versions-Di3vcTgb.js.map +0 -1
@@ -8,19 +8,27 @@ import { M } from '../i18n.contribution.js';
8
8
  const { t } = useI18n();
9
9
 
10
10
  export interface Props {
11
+ /** List of contributions pending review. */
11
12
  contributions?: ContentContributionData[];
13
+ /** ID of the contribution currently selected for review. */
12
14
  selectedId?: string | null;
15
+ /** Message shown when the contributions list is empty. */
13
16
  emptyMessage?: string;
17
+ /** URL for workflow form submission to handle approve/reject server-side. */
14
18
  workflowFormAction?: string;
19
+ /** Fired when the user selects a contribution from the list. */
15
20
  onSelect?: (contribution: ContentContributionData) => void;
21
+ /** Fired when the user approves a contribution and optionally promotes it. */
16
22
  onApprove?: (
17
23
  contribution: ContentContributionData,
18
24
  options: { targetStatus: 'draft' | 'review'; note: string },
19
25
  ) => void;
26
+ /** Fired when the user requests changes to a contribution. */
20
27
  onRequestChanges?: (
21
28
  contribution: ContentContributionData,
22
29
  options: { note: string },
23
30
  ) => void;
31
+ /** Fired when the user rejects a contribution. */
24
32
  onReject?: (
25
33
  contribution: ContentContributionData,
26
34
  options: { note: string },
@@ -1,17 +1,25 @@
1
1
  import type { ContentContributionData } from '../../mock-smrt-client';
2
2
  export interface Props {
3
+ /** List of contributions pending review. */
3
4
  contributions?: ContentContributionData[];
5
+ /** ID of the contribution currently selected for review. */
4
6
  selectedId?: string | null;
7
+ /** Message shown when the contributions list is empty. */
5
8
  emptyMessage?: string;
9
+ /** URL for workflow form submission to handle approve/reject server-side. */
6
10
  workflowFormAction?: string;
11
+ /** Fired when the user selects a contribution from the list. */
7
12
  onSelect?: (contribution: ContentContributionData) => void;
13
+ /** Fired when the user approves a contribution and optionally promotes it. */
8
14
  onApprove?: (contribution: ContentContributionData, options: {
9
15
  targetStatus: 'draft' | 'review';
10
16
  note: string;
11
17
  }) => void;
18
+ /** Fired when the user requests changes to a contribution. */
12
19
  onRequestChanges?: (contribution: ContentContributionData, options: {
13
20
  note: string;
14
21
  }) => void;
22
+ /** Fired when the user rejects a contribution. */
15
23
  onReject?: (contribution: ContentContributionData, options: {
16
24
  note: string;
17
25
  }) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"ContentContributionInbox.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentContributionInbox.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAItE,MAAM,WAAW,KAAK;IACpB,aAAa,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAC1C,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,EAAE,CAAC,YAAY,EAAE,uBAAuB,KAAK,IAAI,CAAC;IAC3D,SAAS,CAAC,EAAE,CACV,YAAY,EAAE,uBAAuB,EACrC,OAAO,EAAE;QAAE,YAAY,EAAE,OAAO,GAAG,QAAQ,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KACxD,IAAI,CAAC;IACV,gBAAgB,CAAC,EAAE,CACjB,YAAY,EAAE,uBAAuB,EACrC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,KACtB,IAAI,CAAC;IACV,QAAQ,CAAC,EAAE,CACT,YAAY,EAAE,uBAAuB,EACrC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,KACtB,IAAI,CAAC;CACX;AAmND,QAAA,MAAM,wBAAwB,2CAAwC,CAAC;AACvE,KAAK,wBAAwB,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC5E,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"ContentContributionInbox.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentContributionInbox.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAItE,MAAM,WAAW,KAAK;IACpB,4CAA4C;IAC5C,aAAa,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAC1C,4DAA4D;IAC5D,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,0DAA0D;IAC1D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6EAA6E;IAC7E,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gEAAgE;IAChE,QAAQ,CAAC,EAAE,CAAC,YAAY,EAAE,uBAAuB,KAAK,IAAI,CAAC;IAC3D,8EAA8E;IAC9E,SAAS,CAAC,EAAE,CACV,YAAY,EAAE,uBAAuB,EACrC,OAAO,EAAE;QAAE,YAAY,EAAE,OAAO,GAAG,QAAQ,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KACxD,IAAI,CAAC;IACV,8DAA8D;IAC9D,gBAAgB,CAAC,EAAE,CACjB,YAAY,EAAE,uBAAuB,EACrC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,KACtB,IAAI,CAAC;IACV,kDAAkD;IAClD,QAAQ,CAAC,EAAE,CACT,YAAY,EAAE,uBAAuB,EACrC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,KACtB,IAAI,CAAC;CACX;AAmND,QAAA,MAAM,wBAAwB,2CAAwC,CAAC;AACvE,KAAK,wBAAwB,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC5E,eAAe,wBAAwB,CAAC"}
@@ -7,10 +7,15 @@ import { M } from '../i18n.contribution.js';
7
7
  const { t } = useI18n();
8
8
 
9
9
  export interface Props {
10
+ /** List of contributions submitted by the user. */
10
11
  contributions?: ContentContributionData[];
12
+ /** ID of the contribution currently displayed for detail viewing. */
11
13
  selectedId?: string | null;
14
+ /** Message shown when the contributions list is empty. */
12
15
  emptyMessage?: string;
16
+ /** Fired when the user selects a contribution from the list. */
13
17
  onSelect?: (contribution: ContentContributionData) => void;
18
+ /** Fired when the user withdraws a pending contribution. */
14
19
  onWithdraw?: (contribution: ContentContributionData) => void;
15
20
  }
16
21
 
@@ -1,9 +1,14 @@
1
1
  import type { ContentContributionData } from '../../mock-smrt-client';
2
2
  export interface Props {
3
+ /** List of contributions submitted by the user. */
3
4
  contributions?: ContentContributionData[];
5
+ /** ID of the contribution currently displayed for detail viewing. */
4
6
  selectedId?: string | null;
7
+ /** Message shown when the contributions list is empty. */
5
8
  emptyMessage?: string;
9
+ /** Fired when the user selects a contribution from the list. */
6
10
  onSelect?: (contribution: ContentContributionData) => void;
11
+ /** Fired when the user withdraws a pending contribution. */
7
12
  onWithdraw?: (contribution: ContentContributionData) => void;
8
13
  }
9
14
  declare const ContentContributionPortal: import("svelte").Component<Props, {}, "">;
@@ -1 +1 @@
1
- {"version":3,"file":"ContentContributionPortal.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentContributionPortal.svelte.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAItE,MAAM,WAAW,KAAK;IACpB,aAAa,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAC1C,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,YAAY,EAAE,uBAAuB,KAAK,IAAI,CAAC;IAC3D,UAAU,CAAC,EAAE,CAAC,YAAY,EAAE,uBAAuB,KAAK,IAAI,CAAC;CAC9D;AAmGD,QAAA,MAAM,yBAAyB,2CAAwC,CAAC;AACxE,KAAK,yBAAyB,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC9E,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"ContentContributionPortal.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentContributionPortal.svelte.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAItE,MAAM,WAAW,KAAK;IACpB,mDAAmD;IACnD,aAAa,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAC1C,qEAAqE;IACrE,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,0DAA0D;IAC1D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gEAAgE;IAChE,QAAQ,CAAC,EAAE,CAAC,YAAY,EAAE,uBAAuB,KAAK,IAAI,CAAC;IAC3D,4DAA4D;IAC5D,UAAU,CAAC,EAAE,CAAC,YAAY,EAAE,uBAAuB,KAAK,IAAI,CAAC;CAC9D;AAmGD,QAAA,MAAM,yBAAyB,2CAAwC,CAAC;AACxE,KAAK,yBAAyB,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC9E,eAAe,yBAAyB,CAAC"}
@@ -8,8 +8,11 @@ import { M } from '../i18n.contribution.js';
8
8
  const { t } = useI18n();
9
9
 
10
10
  export interface Props {
11
+ /** Available contribution types to edit and configure. */
11
12
  types?: ContentContributionTypeData[];
13
+ /** Fired when the user saves changes to a contribution type. */
12
14
  onSave: (type: Partial<ContentContributionTypeData>) => void;
15
+ /** Fired when the user deletes a contribution type. */
13
16
  onDelete?: (type: ContentContributionTypeData) => void;
14
17
  }
15
18
 
@@ -1,7 +1,10 @@
1
1
  import type { ContentContributionTypeData } from '../../mock-smrt-client';
2
2
  export interface Props {
3
+ /** Available contribution types to edit and configure. */
3
4
  types?: ContentContributionTypeData[];
5
+ /** Fired when the user saves changes to a contribution type. */
4
6
  onSave: (type: Partial<ContentContributionTypeData>) => void;
7
+ /** Fired when the user deletes a contribution type. */
5
8
  onDelete?: (type: ContentContributionTypeData) => void;
6
9
  }
7
10
  declare const ContentContributionTypeManager: import("svelte").Component<Props, {}, "">;
@@ -1 +1 @@
1
- {"version":3,"file":"ContentContributionTypeManager.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentContributionTypeManager.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAI1E,MAAM,WAAW,KAAK;IACpB,KAAK,CAAC,EAAE,2BAA2B,EAAE,CAAC;IACtC,MAAM,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B,CAAC,KAAK,IAAI,CAAC;IAC7D,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,2BAA2B,KAAK,IAAI,CAAC;CACxD;AA+PD,QAAA,MAAM,8BAA8B,2CAAwC,CAAC;AAC7E,KAAK,8BAA8B,GAAG,UAAU,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACxF,eAAe,8BAA8B,CAAC"}
1
+ {"version":3,"file":"ContentContributionTypeManager.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentContributionTypeManager.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAI1E,MAAM,WAAW,KAAK;IACpB,0DAA0D;IAC1D,KAAK,CAAC,EAAE,2BAA2B,EAAE,CAAC;IACtC,gEAAgE;IAChE,MAAM,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,2BAA2B,CAAC,KAAK,IAAI,CAAC;IAC7D,uDAAuD;IACvD,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,2BAA2B,KAAK,IAAI,CAAC;CACxD;AA+PD,QAAA,MAAM,8BAA8B,2CAAwC,CAAC;AAC7E,KAAK,8BAA8B,GAAG,UAAU,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACxF,eAAe,8BAA8B,CAAC"}
@@ -8,8 +8,11 @@ import { M } from '../i18n.contribution.js';
8
8
  const { t } = useI18n();
9
9
 
10
10
  export interface Props {
11
+ /** List of approved contributors and their trust levels. */
11
12
  contributors?: ContentContributorData[];
13
+ /** Fired when the user saves a new or edited contributor. */
12
14
  onSave: (contributor: Partial<ContentContributorData>) => void;
15
+ /** Fired when the user removes a contributor. */
13
16
  onDelete?: (contributor: ContentContributorData) => void;
14
17
  }
15
18
 
@@ -1,7 +1,10 @@
1
1
  import type { ContentContributorData } from '../../mock-smrt-client';
2
2
  export interface Props {
3
+ /** List of approved contributors and their trust levels. */
3
4
  contributors?: ContentContributorData[];
5
+ /** Fired when the user saves a new or edited contributor. */
4
6
  onSave: (contributor: Partial<ContentContributorData>) => void;
7
+ /** Fired when the user removes a contributor. */
5
8
  onDelete?: (contributor: ContentContributorData) => void;
6
9
  }
7
10
  declare const ContentContributorManager: import("svelte").Component<Props, {}, "">;
@@ -1 +1 @@
1
- {"version":3,"file":"ContentContributorManager.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentContributorManager.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAIrE,MAAM,WAAW,KAAK;IACpB,YAAY,CAAC,EAAE,sBAAsB,EAAE,CAAC;IACxC,MAAM,EAAE,CAAC,WAAW,EAAE,OAAO,CAAC,sBAAsB,CAAC,KAAK,IAAI,CAAC;IAC/D,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,sBAAsB,KAAK,IAAI,CAAC;CAC1D;AAoGD,QAAA,MAAM,yBAAyB,2CAAwC,CAAC;AACxE,KAAK,yBAAyB,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC9E,eAAe,yBAAyB,CAAC"}
1
+ {"version":3,"file":"ContentContributorManager.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentContributorManager.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAIrE,MAAM,WAAW,KAAK;IACpB,4DAA4D;IAC5D,YAAY,CAAC,EAAE,sBAAsB,EAAE,CAAC;IACxC,6DAA6D;IAC7D,MAAM,EAAE,CAAC,WAAW,EAAE,OAAO,CAAC,sBAAsB,CAAC,KAAK,IAAI,CAAC;IAC/D,iDAAiD;IACjD,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,sBAAsB,KAAK,IAAI,CAAC;CAC1D;AAoGD,QAAA,MAAM,yBAAyB,2CAAwC,CAAC;AACxE,KAAK,yBAAyB,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC9E,eAAe,yBAAyB,CAAC"}
@@ -10,9 +10,13 @@ import { M } from '../i18n.tools.js';
10
10
  const { t } = useI18n();
11
11
 
12
12
  export interface Props {
13
+ /** Base URL for API requests to fetch and create corrections. */
13
14
  apiBaseUrl?: string;
15
+ /** Identifier of the content being corrected. */
14
16
  contentId: string;
17
+ /** Relationship type used to filter which related facts are loaded. */
15
18
  defaultRelationship?: string;
19
+ /** Fired when corrections are loaded or a new correction is created. */
16
20
  onCorrectionsChange?: (corrections: ContentCorrectionData[]) => void;
17
21
  }
18
22
 
@@ -1,8 +1,12 @@
1
1
  import type { ContentCorrectionData } from '../../mock-smrt-client';
2
2
  export interface Props {
3
+ /** Base URL for API requests to fetch and create corrections. */
3
4
  apiBaseUrl?: string;
5
+ /** Identifier of the content being corrected. */
4
6
  contentId: string;
7
+ /** Relationship type used to filter which related facts are loaded. */
5
8
  defaultRelationship?: string;
9
+ /** Fired when corrections are loaded or a new correction is created. */
6
10
  onCorrectionsChange?: (corrections: ContentCorrectionData[]) => void;
7
11
  }
8
12
  declare const ContentCorrectionsTool: import("svelte").Component<Props, {}, "">;
@@ -1 +1 @@
1
- {"version":3,"file":"ContentCorrectionsTool.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentCorrectionsTool.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,qBAAqB,EAAY,MAAM,wBAAwB,CAAC;AAM9E,MAAM,WAAW,KAAK;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,CAAC,WAAW,EAAE,qBAAqB,EAAE,KAAK,IAAI,CAAC;CACtE;AAyOD,QAAA,MAAM,sBAAsB,2CAAwC,CAAC;AACrE,KAAK,sBAAsB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACxE,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"ContentCorrectionsTool.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentCorrectionsTool.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,qBAAqB,EAAY,MAAM,wBAAwB,CAAC;AAM9E,MAAM,WAAW,KAAK;IACpB,iEAAiE;IACjE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iDAAiD;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,uEAAuE;IACvE,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,wEAAwE;IACxE,mBAAmB,CAAC,EAAE,CAAC,WAAW,EAAE,qBAAqB,EAAE,KAAK,IAAI,CAAC;CACtE;AAyOD,QAAA,MAAM,sBAAsB,2CAAwC,CAAC;AACrE,KAAK,sBAAsB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACxE,eAAe,sBAAsB,CAAC"}
@@ -47,21 +47,37 @@ import ContentImageChooser from './ContentImageChooser.svelte';
47
47
  const { t } = useI18n();
48
48
 
49
49
  export interface Props {
50
+ /** Base URL for API requests to load and save content. */
50
51
  apiBaseUrl?: string;
52
+ /** The content object being edited, or null for new content. */
51
53
  content?: ContentData | null;
54
+ /** Identifier of the content, or 'new' if creating. */
52
55
  contentId?: string;
56
+ /** Current fact audit state including claims and their support status. */
53
57
  factAudit?: FactAuditStateData | null;
58
+ /** Disable the save button and submission. */
54
59
  saveDisabled?: boolean;
60
+ /** Message displayed below the save button. */
55
61
  saveNotice?: string | null;
62
+ /** Enable the AI chat sidebar and assistant features. */
56
63
  agentChatEnabled?: boolean;
64
+ /** Message displayed to explain why AI chat is unavailable. */
57
65
  agentChatNotice?: string | null;
66
+ /** Hide the save and cancel action buttons. */
58
67
  hideActions?: boolean;
68
+ /** Hide the AI chat sidebar completely. */
59
69
  hideChat?: boolean;
70
+ /** Policy object defining which fields the assistant can modify. */
60
71
  assistantFieldAllowList?: ContentEditorAssistantFieldUpdateAllowList;
72
+ /** Fired when the assistant context changes (for session tracking). */
61
73
  onAssistantContextChange?: ContentEditorAssistantContextChange;
74
+ /** Fired when the user edits content, with the current editor snapshot. */
62
75
  onChange?: (data: ContentEditorSnapshot) => void;
76
+ /** Fired when the fact audit state changes or is loaded. */
63
77
  onFactAuditChange?: (state: FactAuditStateData | null) => void;
78
+ /** Fired when the user submits the editor with the saved payload. */
64
79
  onSave: (data: ContentEditorSavePayload) => void;
80
+ /** Fired when the user cancels editing without saving. */
65
81
  onCancel: () => void;
66
82
  }
67
83
 
@@ -3,21 +3,37 @@ import type { ContentData, FactAuditStateData } from '../../mock-smrt-client';
3
3
  import { type ContentEditorSavePayload, getContentEditorSnapshot } from '../content-editor-form';
4
4
  type ContentEditorSnapshot = ReturnType<typeof getContentEditorSnapshot>;
5
5
  export interface Props {
6
+ /** Base URL for API requests to load and save content. */
6
7
  apiBaseUrl?: string;
8
+ /** The content object being edited, or null for new content. */
7
9
  content?: ContentData | null;
10
+ /** Identifier of the content, or 'new' if creating. */
8
11
  contentId?: string;
12
+ /** Current fact audit state including claims and their support status. */
9
13
  factAudit?: FactAuditStateData | null;
14
+ /** Disable the save button and submission. */
10
15
  saveDisabled?: boolean;
16
+ /** Message displayed below the save button. */
11
17
  saveNotice?: string | null;
18
+ /** Enable the AI chat sidebar and assistant features. */
12
19
  agentChatEnabled?: boolean;
20
+ /** Message displayed to explain why AI chat is unavailable. */
13
21
  agentChatNotice?: string | null;
22
+ /** Hide the save and cancel action buttons. */
14
23
  hideActions?: boolean;
24
+ /** Hide the AI chat sidebar completely. */
15
25
  hideChat?: boolean;
26
+ /** Policy object defining which fields the assistant can modify. */
16
27
  assistantFieldAllowList?: ContentEditorAssistantFieldUpdateAllowList;
28
+ /** Fired when the assistant context changes (for session tracking). */
17
29
  onAssistantContextChange?: ContentEditorAssistantContextChange;
30
+ /** Fired when the user edits content, with the current editor snapshot. */
18
31
  onChange?: (data: ContentEditorSnapshot) => void;
32
+ /** Fired when the fact audit state changes or is loaded. */
19
33
  onFactAuditChange?: (state: FactAuditStateData | null) => void;
34
+ /** Fired when the user submits the editor with the saved payload. */
20
35
  onSave: (data: ContentEditorSavePayload) => void;
36
+ /** Fired when the user cancels editing without saving. */
21
37
  onCancel: () => void;
22
38
  }
23
39
  declare const ContentEditor: import("svelte").Component<Props, {
@@ -1 +1 @@
1
- {"version":3,"file":"ContentEditor.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentEditor.svelte.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAEV,mCAAmC,EACnC,0CAA0C,EAE3C,MAAM,gCAAgC,CAAC;AAKxC,OAAO,KAAK,EACV,WAAW,EAEX,kBAAkB,EAEnB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAKL,KAAK,wBAAwB,EAG7B,wBAAwB,EAEzB,MAAM,wBAAwB,CAAC;AAUhC,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEzE,MAAM,WAAW,KAAK;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACtC,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,uBAAuB,CAAC,EAAE,0CAA0C,CAAC;IACrE,wBAAwB,CAAC,EAAE,mCAAmC,CAAC;IAC/D,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACjD,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/D,MAAM,EAAE,CAAC,IAAI,EAAE,wBAAwB,KAAK,IAAI,CAAC;IACjD,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAoxCD,QAAA,MAAM,aAAa;;MAAwC,CAAC;AAC5D,KAAK,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AACtD,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"ContentEditor.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentEditor.svelte.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAEV,mCAAmC,EACnC,0CAA0C,EAE3C,MAAM,gCAAgC,CAAC;AAKxC,OAAO,KAAK,EACV,WAAW,EAEX,kBAAkB,EAEnB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAKL,KAAK,wBAAwB,EAG7B,wBAAwB,EAEzB,MAAM,wBAAwB,CAAC;AAUhC,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAEzE,MAAM,WAAW,KAAK;IACpB,0DAA0D;IAC1D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gEAAgE;IAChE,OAAO,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;IAC7B,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0EAA0E;IAC1E,SAAS,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACtC,8CAA8C;IAC9C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,+CAA+C;IAC/C,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,yDAAyD;IACzD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,+DAA+D;IAC/D,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,+CAA+C;IAC/C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,oEAAoE;IACpE,uBAAuB,CAAC,EAAE,0CAA0C,CAAC;IACrE,uEAAuE;IACvE,wBAAwB,CAAC,EAAE,mCAAmC,CAAC;IAC/D,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACjD,4DAA4D;IAC5D,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/D,qEAAqE;IACrE,MAAM,EAAE,CAAC,IAAI,EAAE,wBAAwB,KAAK,IAAI,CAAC;IACjD,0DAA0D;IAC1D,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAoxCD,QAAA,MAAM,aAAa;;MAAwC,CAAC;AAC5D,KAAK,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AACtD,eAAe,aAAa,CAAC"}
@@ -11,9 +11,13 @@ import { M } from '../i18n.tools.js';
11
11
  const { t } = useI18n();
12
12
 
13
13
  export interface Props {
14
+ /** The governance assignment to edit, or an empty object for new. */
14
15
  assignment?: Partial<ContentGovernanceAssignmentData>;
16
+ /** Available governance profiles to assign for publication and corrections. */
15
17
  profiles?: ContentGovernanceProfileData[];
18
+ /** Fired when the user saves the assignment configuration. */
16
19
  onSave: (assignment: Partial<ContentGovernanceAssignmentData>) => void;
20
+ /** Fired when the user cancels editing. */
17
21
  onCancel?: () => void;
18
22
  }
19
23
 
@@ -1,8 +1,12 @@
1
1
  import type { ContentGovernanceAssignmentData, ContentGovernanceProfileData } from '../../mock-smrt-client';
2
2
  export interface Props {
3
+ /** The governance assignment to edit, or an empty object for new. */
3
4
  assignment?: Partial<ContentGovernanceAssignmentData>;
5
+ /** Available governance profiles to assign for publication and corrections. */
4
6
  profiles?: ContentGovernanceProfileData[];
7
+ /** Fired when the user saves the assignment configuration. */
5
8
  onSave: (assignment: Partial<ContentGovernanceAssignmentData>) => void;
9
+ /** Fired when the user cancels editing. */
6
10
  onCancel?: () => void;
7
11
  }
8
12
  declare const ContentGovernanceAssignmentEditor: import("svelte").Component<Props, {}, "">;
@@ -1 +1 @@
1
- {"version":3,"file":"ContentGovernanceAssignmentEditor.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentGovernanceAssignmentEditor.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,+BAA+B,EAC/B,4BAA4B,EAC7B,MAAM,wBAAwB,CAAC;AAIhC,MAAM,WAAW,KAAK;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC,+BAA+B,CAAC,CAAC;IACtD,QAAQ,CAAC,EAAE,4BAA4B,EAAE,CAAC;IAC1C,MAAM,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC,+BAA+B,CAAC,KAAK,IAAI,CAAC;IACvE,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AA6KD,QAAA,MAAM,iCAAiC,2CAAwC,CAAC;AAChF,KAAK,iCAAiC,GAAG,UAAU,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC9F,eAAe,iCAAiC,CAAC"}
1
+ {"version":3,"file":"ContentGovernanceAssignmentEditor.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentGovernanceAssignmentEditor.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,+BAA+B,EAC/B,4BAA4B,EAC7B,MAAM,wBAAwB,CAAC;AAIhC,MAAM,WAAW,KAAK;IACpB,qEAAqE;IACrE,UAAU,CAAC,EAAE,OAAO,CAAC,+BAA+B,CAAC,CAAC;IACtD,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,4BAA4B,EAAE,CAAC;IAC1C,8DAA8D;IAC9D,MAAM,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC,+BAA+B,CAAC,KAAK,IAAI,CAAC;IACvE,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AA6KD,QAAA,MAAM,iCAAiC,2CAAwC,CAAC;AAChF,KAAK,iCAAiC,GAAG,UAAU,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAC9F,eAAe,iCAAiC,CAAC"}
@@ -19,8 +19,11 @@ import ContentGovernanceProfileEditor from './ContentGovernanceProfileEditor.sve
19
19
  type EditMode = 'policy' | 'profile' | 'assignment' | null;
20
20
 
21
21
  export interface Props {
22
+ /** Base URL for API requests to load and save governance definitions. */
22
23
  apiBaseUrl?: string;
24
+ /** Custom client instance for governance operations, or auto-created if omitted. */
23
25
  client?: ContentGovernanceManagerClient;
26
+ /** Fired when governance policies or profiles are loaded or changed. */
24
27
  onChange?: (definitions: ContentGovernanceDefinitionsData | null) => void;
25
28
  }
26
29
 
@@ -1,8 +1,11 @@
1
1
  import { type ContentGovernanceDefinitionsData } from '../../mock-smrt-client';
2
2
  import type { ContentGovernanceManagerClient } from '../governance-manager-client';
3
3
  export interface Props {
4
+ /** Base URL for API requests to load and save governance definitions. */
4
5
  apiBaseUrl?: string;
6
+ /** Custom client instance for governance operations, or auto-created if omitted. */
5
7
  client?: ContentGovernanceManagerClient;
8
+ /** Fired when governance policies or profiles are loaded or changed. */
6
9
  onChange?: (definitions: ContentGovernanceDefinitionsData | null) => void;
7
10
  }
8
11
  declare const ContentGovernanceManager: import("svelte").Component<Props, {}, "">;
@@ -1 +1 @@
1
- {"version":3,"file":"ContentGovernanceManager.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentGovernanceManager.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,gCAAgC,EAItC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AASnF,MAAM,WAAW,KAAK;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,8BAA8B,CAAC;IACxC,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,gCAAgC,GAAG,IAAI,KAAK,IAAI,CAAC;CAC3E;AAoRD,QAAA,MAAM,wBAAwB,2CAAwC,CAAC;AACvE,KAAK,wBAAwB,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC5E,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"ContentGovernanceManager.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentGovernanceManager.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,EAEL,KAAK,gCAAgC,EAItC,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AASnF,MAAM,WAAW,KAAK;IACpB,yEAAyE;IACzE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oFAAoF;IACpF,MAAM,CAAC,EAAE,8BAA8B,CAAC;IACxC,wEAAwE;IACxE,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,gCAAgC,GAAG,IAAI,KAAK,IAAI,CAAC;CAC3E;AAoRD,QAAA,MAAM,wBAAwB,2CAAwC,CAAC;AACvE,KAAK,wBAAwB,GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC5E,eAAe,wBAAwB,CAAC"}
@@ -25,21 +25,37 @@ import { M } from '../i18n.governance.js';
25
25
  const { t } = useI18n();
26
26
 
27
27
  export interface Props {
28
+ /** Base URL for API requests to load facts, reviews, and governance state. */
28
29
  apiBaseUrl?: string;
30
+ /** Identifier of the content, or 'new' if creating. */
29
31
  contentId?: string;
32
+ /** Type of the draft content (e.g., article, post). */
30
33
  draftType?: string | null;
34
+ /** Variant of the draft content within its type. */
31
35
  draftVariant?: string | null;
36
+ /** IDs of facts currently linked to the content. */
32
37
  selectedFactIds?: string[];
38
+ /** Fact objects corresponding to selectedFactIds. */
33
39
  selectedFacts?: FactData[];
40
+ /** Default relationship type when adding facts (e.g., supports, contradicts). */
34
41
  defaultRelationship?: string;
42
+ /** Key of the profile used to render reviews and requirements. */
35
43
  reviewProfileKey?: string;
44
+ /** Label for the custom review workflow button. */
36
45
  customReviewLabel?: string;
46
+ /** Instructions or guidance shown for custom review. */
37
47
  customReviewInstructions?: string;
48
+ /** Policy key used for custom review submissions. */
38
49
  customReviewPolicyKey?: string;
50
+ /** Show the searchable fact catalog browser in the panel. */
39
51
  showFactCatalog?: boolean;
52
+ /** Fired when facts are linked or unlinked from the content. */
40
53
  onFactsChange?: (factIds: string[], facts: FactData[]) => void;
54
+ /** Fired when governance state is loaded or changes. */
41
55
  onGovernanceStateChange?: (state: ContentGovernanceStateData | null) => void;
56
+ /** Fired when fact audit state is loaded or changes. */
42
57
  onFactAuditChange?: (state: FactAuditStateData | null) => void;
58
+ /** Panel sections to hide from the user interface. */
43
59
  hiddenSections?: ContentGovernancePanelSection[];
44
60
  }
45
61
 
@@ -1,21 +1,37 @@
1
1
  import { type ContentGovernanceStateData, type FactAuditStateData, type FactData } from '../../mock-smrt-client';
2
2
  export type ContentGovernancePanelSection = 'factAudit' | 'facts' | 'reviews' | 'transparency' | 'corrections' | 'versions';
3
3
  export interface Props {
4
+ /** Base URL for API requests to load facts, reviews, and governance state. */
4
5
  apiBaseUrl?: string;
6
+ /** Identifier of the content, or 'new' if creating. */
5
7
  contentId?: string;
8
+ /** Type of the draft content (e.g., article, post). */
6
9
  draftType?: string | null;
10
+ /** Variant of the draft content within its type. */
7
11
  draftVariant?: string | null;
12
+ /** IDs of facts currently linked to the content. */
8
13
  selectedFactIds?: string[];
14
+ /** Fact objects corresponding to selectedFactIds. */
9
15
  selectedFacts?: FactData[];
16
+ /** Default relationship type when adding facts (e.g., supports, contradicts). */
10
17
  defaultRelationship?: string;
18
+ /** Key of the profile used to render reviews and requirements. */
11
19
  reviewProfileKey?: string;
20
+ /** Label for the custom review workflow button. */
12
21
  customReviewLabel?: string;
22
+ /** Instructions or guidance shown for custom review. */
13
23
  customReviewInstructions?: string;
24
+ /** Policy key used for custom review submissions. */
14
25
  customReviewPolicyKey?: string;
26
+ /** Show the searchable fact catalog browser in the panel. */
15
27
  showFactCatalog?: boolean;
28
+ /** Fired when facts are linked or unlinked from the content. */
16
29
  onFactsChange?: (factIds: string[], facts: FactData[]) => void;
30
+ /** Fired when governance state is loaded or changes. */
17
31
  onGovernanceStateChange?: (state: ContentGovernanceStateData | null) => void;
32
+ /** Fired when fact audit state is loaded or changes. */
18
33
  onFactAuditChange?: (state: FactAuditStateData | null) => void;
34
+ /** Panel sections to hide from the user interface. */
19
35
  hiddenSections?: ContentGovernancePanelSection[];
20
36
  }
21
37
  declare const ContentGovernancePanel: import("svelte").Component<Props, {
@@ -1 +1 @@
1
- {"version":3,"file":"ContentGovernancePanel.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentGovernancePanel.svelte.ts"],"names":[],"mappings":"AAOA,OAAO,EAIL,KAAK,0BAA0B,EAQ/B,KAAK,kBAAkB,EACvB,KAAK,QAAQ,EAEd,MAAM,wBAAwB,CAAC;AAMhC,MAAM,MAAM,6BAA6B,GACrC,WAAW,GACX,OAAO,GACP,SAAS,GACT,cAAc,GACd,aAAa,GACb,UAAU,CAAC;AASf,MAAM,WAAW,KAAK;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,aAAa,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC3B,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,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IAC/D,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,0BAA0B,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7E,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/D,cAAc,CAAC,EAAE,6BAA6B,EAAE,CAAC;CAClD;AAopDD,QAAA,MAAM,sBAAsB;gCAn5Bc,MAAM;MAm5BoB,CAAC;AACrE,KAAK,sBAAsB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACxE,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"ContentGovernancePanel.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentGovernancePanel.svelte.ts"],"names":[],"mappings":"AAOA,OAAO,EAIL,KAAK,0BAA0B,EAQ/B,KAAK,kBAAkB,EACvB,KAAK,QAAQ,EAEd,MAAM,wBAAwB,CAAC;AAMhC,MAAM,MAAM,6BAA6B,GACrC,WAAW,GACX,OAAO,GACP,SAAS,GACT,cAAc,GACd,aAAa,GACb,UAAU,CAAC;AASf,MAAM,WAAW,KAAK;IACpB,8EAA8E;IAC9E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,oDAAoD;IACpD,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,oDAAoD;IACpD,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,qDAAqD;IACrD,aAAa,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC3B,iFAAiF;IACjF,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,kEAAkE;IAClE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mDAAmD;IACnD,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,wDAAwD;IACxD,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,qDAAqD;IACrD,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,6DAA6D;IAC7D,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gEAAgE;IAChE,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IAC/D,wDAAwD;IACxD,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,0BAA0B,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7E,wDAAwD;IACxD,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/D,sDAAsD;IACtD,cAAc,CAAC,EAAE,6BAA6B,EAAE,CAAC;CAClD;AAopDD,QAAA,MAAM,sBAAsB;gCAn5Bc,MAAM;MAm5BoB,CAAC;AACrE,KAAK,sBAAsB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACxE,eAAe,sBAAsB,CAAC"}
@@ -8,8 +8,11 @@ import { M } from '../i18n.tools.js';
8
8
  const { t } = useI18n();
9
9
 
10
10
  export interface Props {
11
+ /** The review policy to edit, or an empty object for new. */
11
12
  policy?: Partial<ContentReviewPolicyData>;
13
+ /** Fired when the user saves the policy configuration. */
12
14
  onSave: (policy: Partial<ContentReviewPolicyData>) => void;
15
+ /** Fired when the user cancels editing. */
13
16
  onCancel?: () => void;
14
17
  }
15
18
 
@@ -1,7 +1,10 @@
1
1
  import type { ContentReviewPolicyData } from '../../mock-smrt-client';
2
2
  export interface Props {
3
+ /** The review policy to edit, or an empty object for new. */
3
4
  policy?: Partial<ContentReviewPolicyData>;
5
+ /** Fired when the user saves the policy configuration. */
4
6
  onSave: (policy: Partial<ContentReviewPolicyData>) => void;
7
+ /** Fired when the user cancels editing. */
5
8
  onCancel?: () => void;
6
9
  }
7
10
  declare const ContentGovernancePolicyEditor: import("svelte").Component<Props, {}, "">;
@@ -1 +1 @@
1
- {"version":3,"file":"ContentGovernancePolicyEditor.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentGovernancePolicyEditor.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAItE,MAAM,WAAW,KAAK;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAC1C,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,uBAAuB,CAAC,KAAK,IAAI,CAAC;IAC3D,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAsFD,QAAA,MAAM,6BAA6B,2CAAwC,CAAC;AAC5E,KAAK,6BAA6B,GAAG,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACtF,eAAe,6BAA6B,CAAC"}
1
+ {"version":3,"file":"ContentGovernancePolicyEditor.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentGovernancePolicyEditor.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAItE,MAAM,WAAW,KAAK;IACpB,6DAA6D;IAC7D,MAAM,CAAC,EAAE,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAC1C,0DAA0D;IAC1D,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,uBAAuB,CAAC,KAAK,IAAI,CAAC;IAC3D,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAsFD,QAAA,MAAM,6BAA6B,2CAAwC,CAAC;AAC5E,KAAK,6BAA6B,GAAG,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACtF,eAAe,6BAA6B,CAAC"}
@@ -11,9 +11,13 @@ import { M } from '../i18n.tools.js';
11
11
  const { t } = useI18n();
12
12
 
13
13
  export interface Props {
14
+ /** The governance profile to edit, or an empty object for new. */
14
15
  profile?: Partial<ContentGovernanceProfileData>;
16
+ /** Available review policies to include in profile requirements. */
15
17
  policies?: ContentReviewPolicyData[];
18
+ /** Fired when the user saves the profile configuration. */
16
19
  onSave: (profile: Partial<ContentGovernanceProfileData>) => void;
20
+ /** Fired when the user cancels editing. */
17
21
  onCancel?: () => void;
18
22
  }
19
23
 
@@ -1,8 +1,12 @@
1
1
  import type { ContentGovernanceProfileData, ContentReviewPolicyData } from '../../mock-smrt-client';
2
2
  export interface Props {
3
+ /** The governance profile to edit, or an empty object for new. */
3
4
  profile?: Partial<ContentGovernanceProfileData>;
5
+ /** Available review policies to include in profile requirements. */
4
6
  policies?: ContentReviewPolicyData[];
7
+ /** Fired when the user saves the profile configuration. */
5
8
  onSave: (profile: Partial<ContentGovernanceProfileData>) => void;
9
+ /** Fired when the user cancels editing. */
6
10
  onCancel?: () => void;
7
11
  }
8
12
  declare const ContentGovernanceProfileEditor: import("svelte").Component<Props, {}, "">;
@@ -1 +1 @@
1
- {"version":3,"file":"ContentGovernanceProfileEditor.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentGovernanceProfileEditor.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,4BAA4B,EAC5B,uBAAuB,EACxB,MAAM,wBAAwB,CAAC;AAIhC,MAAM,WAAW,KAAK;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC,4BAA4B,CAAC,CAAC;IAChD,QAAQ,CAAC,EAAE,uBAAuB,EAAE,CAAC;IACrC,MAAM,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,4BAA4B,CAAC,KAAK,IAAI,CAAC;IACjE,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAqJD,QAAA,MAAM,8BAA8B,2CAAwC,CAAC;AAC7E,KAAK,8BAA8B,GAAG,UAAU,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACxF,eAAe,8BAA8B,CAAC"}
1
+ {"version":3,"file":"ContentGovernanceProfileEditor.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentGovernanceProfileEditor.svelte.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,4BAA4B,EAC5B,uBAAuB,EACxB,MAAM,wBAAwB,CAAC;AAIhC,MAAM,WAAW,KAAK;IACpB,kEAAkE;IAClE,OAAO,CAAC,EAAE,OAAO,CAAC,4BAA4B,CAAC,CAAC;IAChD,oEAAoE;IACpE,QAAQ,CAAC,EAAE,uBAAuB,EAAE,CAAC;IACrC,2DAA2D;IAC3D,MAAM,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,4BAA4B,CAAC,KAAK,IAAI,CAAC;IACjE,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAqJD,QAAA,MAAM,8BAA8B,2CAAwC,CAAC;AAC7E,KAAK,8BAA8B,GAAG,UAAU,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACxF,eAAe,8BAA8B,CAAC"}
@@ -15,10 +15,15 @@ export type ContentGovernanceToolSection =
15
15
  | 'transparency';
16
16
 
17
17
  export interface Props {
18
+ /** The governance tool section to display (claimAudit, corrections, versions, or transparency). */
18
19
  section: ContentGovernanceToolSection;
20
+ /** Base URL for API requests to fetch governance data. */
19
21
  apiBaseUrl?: string;
22
+ /** Identifier of the content being governed. */
20
23
  contentId: string;
24
+ /** Fired when governance state changes (e.g., from transparency tool). */
21
25
  onGovernanceStateChange?: (state: ContentGovernanceStateData | null) => void;
26
+ /** Fired when fact audit state changes (e.g., from claim audit tool). */
22
27
  onFactAuditChange?: (state: FactAuditStateData | null) => void;
23
28
  }
24
29
 
@@ -1,10 +1,15 @@
1
1
  import type { ContentGovernanceStateData, FactAuditStateData } from '../../mock-smrt-client';
2
2
  export type ContentGovernanceToolSection = 'claimAudit' | 'corrections' | 'versions' | 'transparency';
3
3
  export interface Props {
4
+ /** The governance tool section to display (claimAudit, corrections, versions, or transparency). */
4
5
  section: ContentGovernanceToolSection;
6
+ /** Base URL for API requests to fetch governance data. */
5
7
  apiBaseUrl?: string;
8
+ /** Identifier of the content being governed. */
6
9
  contentId: string;
10
+ /** Fired when governance state changes (e.g., from transparency tool). */
7
11
  onGovernanceStateChange?: (state: ContentGovernanceStateData | null) => void;
12
+ /** Fired when fact audit state changes (e.g., from claim audit tool). */
8
13
  onFactAuditChange?: (state: FactAuditStateData | null) => void;
9
14
  }
10
15
  declare const ContentGovernanceTool: import("svelte").Component<Props, {}, "">;
@@ -1 +1 @@
1
- {"version":3,"file":"ContentGovernanceTool.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentGovernanceTool.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,0BAA0B,EAC1B,kBAAkB,EACnB,MAAM,wBAAwB,CAAC;AAOhC,MAAM,MAAM,4BAA4B,GACpC,YAAY,GACZ,aAAa,GACb,UAAU,GACV,cAAc,CAAC;AAEnB,MAAM,WAAW,KAAK;IACpB,OAAO,EAAE,4BAA4B,CAAC;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,0BAA0B,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7E,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,GAAG,IAAI,KAAK,IAAI,CAAC;CAChE;AA+BD,QAAA,MAAM,qBAAqB,2CAAwC,CAAC;AACpE,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACtE,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"ContentGovernanceTool.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentGovernanceTool.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,0BAA0B,EAC1B,kBAAkB,EACnB,MAAM,wBAAwB,CAAC;AAOhC,MAAM,MAAM,4BAA4B,GACpC,YAAY,GACZ,aAAa,GACb,UAAU,GACV,cAAc,CAAC;AAEnB,MAAM,WAAW,KAAK;IACpB,mGAAmG;IACnG,OAAO,EAAE,4BAA4B,CAAC;IACtC,0DAA0D;IAC1D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gDAAgD;IAChD,SAAS,EAAE,MAAM,CAAC;IAClB,0EAA0E;IAC1E,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,0BAA0B,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7E,yEAAyE;IACzE,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,GAAG,IAAI,KAAK,IAAI,CAAC;CAChE;AA+BD,QAAA,MAAM,qBAAqB,2CAAwC,CAAC;AACpE,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACtE,eAAe,qBAAqB,CAAC"}
@@ -11,15 +11,25 @@ import { M } from '../i18n.editor.js';
11
11
  const { t } = useI18n();
12
12
 
13
13
  export interface Props {
14
+ /** Base URL for asset upload and retrieval API requests. */
14
15
  apiBaseUrl?: string;
16
+ /** List of assets to display in the browser grid. */
15
17
  assets?: ContentEditorAsset[];
18
+ /** ID of the asset currently marked as the thumbnail. */
16
19
  thumbnailAssetId?: string | null;
20
+ /** Label text displayed on the button to open the image uploader. */
17
21
  addButtonLabel?: string;
22
+ /** Label text displayed on buttons to select an asset for use. */
18
23
  selectActionLabel?: string;
24
+ /** Whether to display the image uploader panel on initial render. */
19
25
  showUploaderInitially?: boolean;
26
+ /** Invoked when a new image is selected through the uploader. */
20
27
  onSelectImage?: (image: ImageLike | File | string) => void;
28
+ /** Invoked when an existing asset is selected from the grid. */
21
29
  onUseAsset?: (asset: ContentEditorAsset) => void;
30
+ /** Invoked when an asset is deleted from the collection. */
22
31
  onRemoveAsset?: (assetId: string) => void;
32
+ /** Invoked when an asset is designated as the thumbnail. */
23
33
  onUseAsThumbnail?: (assetId: string) => void;
24
34
  }
25
35
 
@@ -1,15 +1,25 @@
1
1
  import { type ImageLike } from '@happyvertical/smrt-images/svelte';
2
2
  import type { ContentEditorAsset } from '../content-editor-form';
3
3
  export interface Props {
4
+ /** Base URL for asset upload and retrieval API requests. */
4
5
  apiBaseUrl?: string;
6
+ /** List of assets to display in the browser grid. */
5
7
  assets?: ContentEditorAsset[];
8
+ /** ID of the asset currently marked as the thumbnail. */
6
9
  thumbnailAssetId?: string | null;
10
+ /** Label text displayed on the button to open the image uploader. */
7
11
  addButtonLabel?: string;
12
+ /** Label text displayed on buttons to select an asset for use. */
8
13
  selectActionLabel?: string;
14
+ /** Whether to display the image uploader panel on initial render. */
9
15
  showUploaderInitially?: boolean;
16
+ /** Invoked when a new image is selected through the uploader. */
10
17
  onSelectImage?: (image: ImageLike | File | string) => void;
18
+ /** Invoked when an existing asset is selected from the grid. */
11
19
  onUseAsset?: (asset: ContentEditorAsset) => void;
20
+ /** Invoked when an asset is deleted from the collection. */
12
21
  onRemoveAsset?: (assetId: string) => void;
22
+ /** Invoked when an asset is designated as the thumbnail. */
13
23
  onUseAsThumbnail?: (assetId: string) => void;
14
24
  }
15
25
  declare const ContentImageBrowser: import("svelte").Component<Props, {}, "">;
@@ -1 +1 @@
1
- {"version":3,"file":"ContentImageBrowser.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentImageBrowser.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,SAAS,EAEf,MAAM,mCAAmC,CAAC;AAG3C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAIjE,MAAM,WAAW,KAAK;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC9B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI,GAAG,MAAM,KAAK,IAAI,CAAC;IAC3D,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACjD,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9C;AAgHD,QAAA,MAAM,mBAAmB,2CAAwC,CAAC;AAClE,KAAK,mBAAmB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAClE,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"ContentImageBrowser.svelte.d.ts","sourceRoot":"","sources":["../../../src/svelte/components/ContentImageBrowser.svelte.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,SAAS,EAEf,MAAM,mCAAmC,CAAC;AAG3C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAIjE,MAAM,WAAW,KAAK;IACpB,4DAA4D;IAC5D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qDAAqD;IACrD,MAAM,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC9B,yDAAyD;IACzD,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,qEAAqE;IACrE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kEAAkE;IAClE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qEAAqE;IACrE,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,iEAAiE;IACjE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI,GAAG,MAAM,KAAK,IAAI,CAAC;IAC3D,gEAAgE;IAChE,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACjD,4DAA4D;IAC5D,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9C;AAgHD,QAAA,MAAM,mBAAmB,2CAAwC,CAAC;AAClE,KAAK,mBAAmB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAClE,eAAe,mBAAmB,CAAC"}