@happyvertical/smrt-content 0.51.39 → 0.53.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.md +6 -0
- package/README.md +86 -0
- package/dist/body-format.d.ts +104 -0
- package/dist/body-format.d.ts.map +1 -1
- package/dist/body-format.js +439 -48
- package/dist/body-format.js.map +1 -1
- package/dist/chunks/content-query-C6RcW8V_.js +4131 -0
- package/dist/chunks/content-query-C6RcW8V_.js.map +1 -0
- package/dist/chunks/{content-versions-CvOoDLSK.js → content-versions-HUeMI1TV.js} +2 -2
- package/dist/chunks/{content-versions-CvOoDLSK.js.map → content-versions-HUeMI1TV.js.map} +1 -1
- package/dist/chunks/{contents-BB7RIBx2.js → contents-CHa5soKR.js} +4 -6
- package/dist/chunks/contents-CHa5soKR.js.map +1 -0
- package/dist/content-query.d.ts.map +1 -1
- package/dist/content.d.ts +13 -1
- package/dist/content.d.ts.map +1 -1
- package/dist/contents.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -6
- package/dist/manifest.json +113 -23
- package/dist/server/content-list-data-surface.d.ts +1 -1
- package/dist/server/content-list-data-surface.d.ts.map +1 -1
- package/dist/server.js +3 -3
- package/dist/server.js.map +1 -1
- package/dist/smrt-knowledge.json +92 -10
- package/dist/svelte/components/ContentBodyEditor.svelte +898 -38
- package/dist/svelte/components/ContentBodyEditor.svelte.d.ts +67 -0
- package/dist/svelte/components/ContentBodyEditor.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentBodyRenderer.svelte +36 -11
- package/dist/svelte/components/ContentBodyRenderer.svelte.d.ts +2 -0
- package/dist/svelte/components/ContentBodyRenderer.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentClaimAuditTool.svelte +45 -2
- package/dist/svelte/components/ContentCorrectionsTool.svelte +24 -2
- package/dist/svelte/components/ContentEditor.svelte +67 -17
- package/dist/svelte/components/ContentEditor.svelte.d.ts +12 -0
- package/dist/svelte/components/ContentEditor.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentGovernancePanel.svelte +4 -2
- package/dist/svelte/components/ContentMetadataFields.svelte +141 -51
- package/dist/svelte/components/ContentMetadataFields.svelte.d.ts +20 -0
- package/dist/svelte/components/ContentMetadataFields.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentPictureDrawer.svelte +611 -0
- package/dist/svelte/components/ContentPictureDrawer.svelte.d.ts +68 -0
- package/dist/svelte/components/ContentPictureDrawer.svelte.d.ts.map +1 -0
- package/dist/svelte/components/ContentReviewStatusTray.svelte +2 -2
- package/dist/svelte/components/ContentStatusFields.svelte +85 -38
- package/dist/svelte/components/ContentStatusFields.svelte.d.ts +10 -0
- package/dist/svelte/components/ContentStatusFields.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentTitleField.svelte +109 -12
- package/dist/svelte/components/ContentTitleField.svelte.d.ts +12 -0
- package/dist/svelte/components/ContentTitleField.svelte.d.ts.map +1 -1
- package/dist/svelte/components/ContentTransparencyReport.svelte +3 -1
- package/dist/svelte/components/ContentTransparencyTool.svelte +18 -3
- package/dist/svelte/components/ContentVersionsTool.svelte +26 -2
- package/dist/svelte/components/content-field-mode.d.ts +20 -0
- package/dist/svelte/components/content-field-mode.d.ts.map +1 -0
- package/dist/svelte/components/content-field-mode.js +26 -0
- package/dist/svelte/content-editor-media.d.ts +14 -0
- package/dist/svelte/content-editor-media.d.ts.map +1 -1
- package/dist/svelte/content-editor-media.js +41 -0
- package/dist/svelte/content-editor-state.svelte.d.ts +17 -0
- package/dist/svelte/content-editor-state.svelte.d.ts.map +1 -1
- package/dist/svelte/content-editor-state.svelte.js +46 -0
- package/dist/svelte/i18n.editor.d.ts +49 -0
- package/dist/svelte/i18n.editor.d.ts.map +1 -1
- package/dist/svelte/i18n.editor.js +53 -1
- package/dist/svelte/index.d.ts +10 -5
- package/dist/svelte/index.d.ts.map +1 -1
- package/dist/svelte/index.js +5 -3
- package/package.json +27 -25
- package/dist/chunks/content-query-DPJCcD1V.js +0 -4092
- package/dist/chunks/content-query-DPJCcD1V.js.map +0 -1
- package/dist/chunks/contents-BB7RIBx2.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-editor-state.svelte.d.ts","sourceRoot":"","sources":["../../src/svelte/content-editor-state.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAIjC,MAAM,0BAA0B,CAAC;AAElC,MAAM,WAAW,+BAA+B;IAC9C,OAAO,CAAC,EAAE,2BAA2B,GAAG,IAAI,CAAC;CAC9C;AAED,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAAC,qBAAqB,CAAC,GACnE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"content-editor-state.svelte.d.ts","sourceRoot":"","sources":["../../src/svelte/content-editor-state.svelte.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EACL,KAAK,kBAAkB,EAIxB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,2BAA2B,EAIjC,MAAM,0BAA0B,CAAC;AAElC,MAAM,WAAW,+BAA+B;IAC9C,OAAO,CAAC,EAAE,2BAA2B,GAAG,IAAI,CAAC;CAC9C;AAED,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAAC,qBAAqB,CAAC,GACnE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAqE1B,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,KAAK,CAEX;IACF,OAAO,CAAC,eAAe,CAAmC;IAC1D,OAAO,CAAC,kBAAkB,CAAwB;IAClD,OAAO,CAAC,eAAe,CAAiB;IACxC,OAAO,CAAC,mBAAmB,CAAM;gBAErB,OAAO,GAAE,+BAAoC;IAIzD,IAAI,IAAI,0BAEP;IAED,IAAI,QAAQ;;;;;;MAEX;IAED,IAAI,WAAW,gEAEd;IAED,IAAI,cAAc,YAEjB;IAED,IAAI,iBAAiB,aAEpB;IAED,IAAI,SAAS,WAEZ;IAED,KAAK,CAAC,OAAO,CAAC,EAAE,2BAA2B,GAAG,IAAI;IAQlD,MAAM,CAAC,MAAM,EAAE,wBAAwB;IAOvC,iBAAiB,CAAC,MAAM,EAAE,wBAAwB;IA2BlD,mBAAmB;IAkBnB,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE;IAItC,QAAQ,CAAC,KAAK,EAAE,kBAAkB,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAgBxE,WAAW,CAAC,OAAO,EAAE,MAAM;IAW3B,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI;IAIxC;;;;OAIG;IACH,IAAI,WAAW,IAAI,kBAAkB,CAMpC;IAED;;;;;;;OAOG;IACH,uBAAuB,IAAI,OAAO;CAanC;AAED,wBAAgB,wBAAwB,CACtC,OAAO,GAAE,+BAAoC,sBAG9C"}
|
|
@@ -1,4 +1,19 @@
|
|
|
1
|
+
import { extractBodyImages, resolveBodyFormat, resolveBodyMainPicture, } from '../body-format.js';
|
|
1
2
|
import { getContentEditorInitialFormData, getContentEditorSavePayload, getContentEditorSnapshot, } from './content-editor-form.js';
|
|
3
|
+
/** The asset ids of the story's pictures, in order (the main-picture key). */
|
|
4
|
+
function bodyImageSignature(form) {
|
|
5
|
+
const body = form.body || '';
|
|
6
|
+
if (!body) {
|
|
7
|
+
return '';
|
|
8
|
+
}
|
|
9
|
+
return extractBodyImages(body, resolveBodyFormat(form.bodyFormat, body))
|
|
10
|
+
.map((image) => [
|
|
11
|
+
image.assetId ?? '',
|
|
12
|
+
image.thumbnail ? 't' : '',
|
|
13
|
+
image.main ? 'm' : '',
|
|
14
|
+
].join(':'))
|
|
15
|
+
.join('|');
|
|
16
|
+
}
|
|
2
17
|
function cloneFieldValue(value) {
|
|
3
18
|
if (Array.isArray(value)) {
|
|
4
19
|
return [...value];
|
|
@@ -43,6 +58,7 @@ export class ContentEditorState {
|
|
|
43
58
|
_fieldUndoStack = $state([]);
|
|
44
59
|
_lastAppliedFields = $state([]);
|
|
45
60
|
_showUndoBanner = $state(false);
|
|
61
|
+
_bodyImageSignature = '';
|
|
46
62
|
constructor(options = {}) {
|
|
47
63
|
this.reset(options.content);
|
|
48
64
|
}
|
|
@@ -66,6 +82,7 @@ export class ContentEditorState {
|
|
|
66
82
|
}
|
|
67
83
|
reset(content) {
|
|
68
84
|
this._form = getContentEditorInitialFormData(content);
|
|
85
|
+
this._bodyImageSignature = bodyImageSignature(this._form);
|
|
69
86
|
this._fieldUndoStack = [];
|
|
70
87
|
this._lastAppliedFields = [];
|
|
71
88
|
this._showUndoBanner = false;
|
|
@@ -135,6 +152,35 @@ export class ContentEditorState {
|
|
|
135
152
|
setThumbnailAsset(assetId) {
|
|
136
153
|
this._form.thumbnailAssetId = assetId;
|
|
137
154
|
}
|
|
155
|
+
/**
|
|
156
|
+
* The main picture (thumbnail) as the story decides it: the picture the
|
|
157
|
+
* person chose, else the first picture in the story (see
|
|
158
|
+
* `resolveBodyMainPicture`).
|
|
159
|
+
*/
|
|
160
|
+
get mainPicture() {
|
|
161
|
+
return resolveBodyMainPicture(this._form.body, this._form.bodyFormat, this._form.thumbnailAssetId);
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Apply the main-picture rule after the story changed: the first picture
|
|
165
|
+
* in the story becomes the thumbnail unless one was chosen. Runs only
|
|
166
|
+
* when the story's pictures (or the choice) changed since the last call
|
|
167
|
+
* or `reset`, so editing text never replaces a thumbnail that was set
|
|
168
|
+
* some other way. A story without pictures keeps the current thumbnail.
|
|
169
|
+
* Returns true when the thumbnail changed.
|
|
170
|
+
*/
|
|
171
|
+
syncMainPictureFromBody() {
|
|
172
|
+
const signature = bodyImageSignature(this._form);
|
|
173
|
+
if (signature === this._bodyImageSignature) {
|
|
174
|
+
return false;
|
|
175
|
+
}
|
|
176
|
+
this._bodyImageSignature = signature;
|
|
177
|
+
const main = this.mainPicture;
|
|
178
|
+
if (main.mode === 'none' || main.assetId === this._form.thumbnailAssetId) {
|
|
179
|
+
return false;
|
|
180
|
+
}
|
|
181
|
+
this._form.thumbnailAssetId = main.assetId;
|
|
182
|
+
return true;
|
|
183
|
+
}
|
|
138
184
|
}
|
|
139
185
|
export function createContentEditorState(options = {}) {
|
|
140
186
|
return new ContentEditorState(options);
|
|
@@ -8,15 +8,41 @@ export declare const M: {
|
|
|
8
8
|
readonly 'content.content_agent_chat.cancel': "content.content_agent_chat.cancel";
|
|
9
9
|
readonly 'content.content_agent_chat.new': "content.content_agent_chat.new";
|
|
10
10
|
readonly 'content.content_agent_chat.untitled_topic': "content.content_agent_chat.untitled_topic";
|
|
11
|
+
readonly 'content.content_picture_drawer.title': "content.content_picture_drawer.title";
|
|
12
|
+
readonly 'content.content_picture_drawer.close': "content.content_picture_drawer.close";
|
|
13
|
+
readonly 'content.content_picture_drawer.hint': "content.content_picture_drawer.hint";
|
|
14
|
+
readonly 'content.content_picture_drawer.search': "content.content_picture_drawer.search";
|
|
15
|
+
readonly 'content.content_picture_drawer.upload': "content.content_picture_drawer.upload";
|
|
16
|
+
readonly 'content.content_picture_drawer.upload_hint': "content.content_picture_drawer.upload_hint";
|
|
17
|
+
readonly 'content.content_picture_drawer.uploading': "content.content_picture_drawer.uploading";
|
|
18
|
+
readonly 'content.content_picture_drawer.loading': "content.content_picture_drawer.loading";
|
|
19
|
+
readonly 'content.content_picture_drawer.empty': "content.content_picture_drawer.empty";
|
|
20
|
+
readonly 'content.content_picture_drawer.no_match': "content.content_picture_drawer.no_match";
|
|
21
|
+
readonly 'content.content_picture_drawer.loading_more': "content.content_picture_drawer.loading_more";
|
|
22
|
+
readonly 'content.content_picture_drawer.more_loaded': "content.content_picture_drawer.more_loaded";
|
|
23
|
+
readonly 'content.content_picture_drawer.insert': "content.content_picture_drawer.insert";
|
|
24
|
+
readonly 'content.content_picture_drawer.insert_count': "content.content_picture_drawer.insert_count";
|
|
25
|
+
readonly 'content.content_picture_drawer.clear_selection': "content.content_picture_drawer.clear_selection";
|
|
26
|
+
readonly 'content.content_picture_drawer.select': "content.content_picture_drawer.select";
|
|
27
|
+
readonly 'content.content_picture_drawer.in_story': "content.content_picture_drawer.in_story";
|
|
28
|
+
readonly 'content.content_picture_drawer.no_preview': "content.content_picture_drawer.no_preview";
|
|
29
|
+
readonly 'content.content_picture_drawer.main': "content.content_picture_drawer.main";
|
|
30
|
+
readonly 'content.content_picture_drawer.use_as_main': "content.content_picture_drawer.use_as_main";
|
|
31
|
+
readonly 'content.content_picture_drawer.main_automatic': "content.content_picture_drawer.main_automatic";
|
|
32
|
+
readonly 'content.content_picture_drawer.main_chosen': "content.content_picture_drawer.main_chosen";
|
|
33
|
+
readonly 'content.content_picture_drawer.main_reset': "content.content_picture_drawer.main_reset";
|
|
11
34
|
readonly 'content.content_body_editor.toolbar': "content.content_body_editor.toolbar";
|
|
12
35
|
readonly 'content.content_body_editor.bold': "content.content_body_editor.bold";
|
|
13
36
|
readonly 'content.content_body_editor.italic': "content.content_body_editor.italic";
|
|
14
37
|
readonly 'content.content_body_editor.heading': "content.content_body_editor.heading";
|
|
15
38
|
readonly 'content.content_body_editor.bulleted_list': "content.content_body_editor.bulleted_list";
|
|
16
39
|
readonly 'content.content_body_editor.insert_image': "content.content_body_editor.insert_image";
|
|
40
|
+
readonly 'content.content_body_editor.image_panel': "content.content_body_editor.image_panel";
|
|
17
41
|
readonly 'content.content_body_editor.save_as': "content.content_body_editor.save_as";
|
|
18
42
|
readonly 'content.content_body_editor.selected_image_controls': "content.content_body_editor.selected_image_controls";
|
|
19
43
|
readonly 'content.content_body_editor.move_image': "content.content_body_editor.move_image";
|
|
44
|
+
readonly 'content.content_body_editor.move_image_up': "content.content_body_editor.move_image_up";
|
|
45
|
+
readonly 'content.content_body_editor.move_image_down': "content.content_body_editor.move_image_down";
|
|
20
46
|
readonly 'content.content_body_editor.wrap_text_on_right': "content.content_body_editor.wrap_text_on_right";
|
|
21
47
|
readonly 'content.content_body_editor.center_image': "content.content_body_editor.center_image";
|
|
22
48
|
readonly 'content.content_body_editor.wrap_text_on_left': "content.content_body_editor.wrap_text_on_left";
|
|
@@ -27,6 +53,9 @@ export declare const M: {
|
|
|
27
53
|
readonly 'content.content_body_editor.make_image_larger': "content.content_body_editor.make_image_larger";
|
|
28
54
|
readonly 'content.content_body_editor.use_as_primary_image': "content.content_body_editor.use_as_primary_image";
|
|
29
55
|
readonly 'content.content_body_editor.remove_image': "content.content_body_editor.remove_image";
|
|
56
|
+
readonly 'content.content_body_editor.change_image': "content.content_body_editor.change_image";
|
|
57
|
+
readonly 'content.content_body_editor.change_image_short': "content.content_body_editor.change_image_short";
|
|
58
|
+
readonly 'content.content_body_editor.change_image_hint': "content.content_body_editor.change_image_hint";
|
|
30
59
|
readonly 'content.content_body_editor.resize_image': "content.content_body_editor.resize_image";
|
|
31
60
|
readonly 'content.content_body_editor.resize_selected_image': "content.content_body_editor.resize_selected_image";
|
|
32
61
|
readonly 'content.content_editor.publish_date': "content.content_editor.publish_date";
|
|
@@ -62,6 +91,26 @@ export declare const M: {
|
|
|
62
91
|
readonly 'content.content_image_chooser.previous_body_image': "content.content_image_chooser.previous_body_image";
|
|
63
92
|
readonly 'content.content_image_chooser.focus_selected_body_image': "content.content_image_chooser.focus_selected_body_image";
|
|
64
93
|
readonly 'content.content_image_chooser.next_body_image': "content.content_image_chooser.next_body_image";
|
|
94
|
+
readonly 'content.content_fields.title': "content.content_fields.title";
|
|
95
|
+
readonly 'content.content_fields.body': "content.content_fields.body";
|
|
96
|
+
readonly 'content.content_fields.type': "content.content_fields.type";
|
|
97
|
+
readonly 'content.content_fields.state': "content.content_fields.state";
|
|
98
|
+
readonly 'content.content_fields.status': "content.content_fields.status";
|
|
99
|
+
readonly 'content.content_fields.published': "content.content_fields.published";
|
|
100
|
+
readonly 'content.content_fields.publish_date': "content.content_fields.publish_date";
|
|
101
|
+
readonly 'content.content_fields.author': "content.content_fields.author";
|
|
102
|
+
readonly 'content.content_fields.description': "content.content_fields.description";
|
|
103
|
+
readonly 'content.content_fields.summary': "content.content_fields.summary";
|
|
104
|
+
readonly 'content.content_fields.summary_hint': "content.content_fields.summary_hint";
|
|
105
|
+
readonly 'content.content_fields.tags': "content.content_fields.tags";
|
|
106
|
+
readonly 'content.content_fields.tags_hint': "content.content_fields.tags_hint";
|
|
107
|
+
readonly 'content.content_fields.url': "content.content_fields.url";
|
|
108
|
+
readonly 'content.content_fields.details': "content.content_fields.details";
|
|
109
|
+
readonly 'content.content_fields.optional': "content.content_fields.optional";
|
|
110
|
+
readonly 'content.content_fields.status_draft': "content.content_fields.status_draft";
|
|
111
|
+
readonly 'content.content_fields.status_review': "content.content_fields.status_review";
|
|
112
|
+
readonly 'content.content_fields.status_published': "content.content_fields.status_published";
|
|
113
|
+
readonly 'content.content_fields.status_archived': "content.content_fields.status_archived";
|
|
65
114
|
readonly 'content.content_metadata_fields.file_key': "content.content_metadata_fields.file_key";
|
|
66
115
|
readonly 'content.content_metadata_fields.tags_placeholder': "content.content_metadata_fields.tags_placeholder";
|
|
67
116
|
readonly 'content.content_references_panel.no_references': "content.content_references_panel.no_references";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.editor.d.ts","sourceRoot":"","sources":["../../src/svelte/i18n.editor.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,CAAC
|
|
1
|
+
{"version":3,"file":"i18n.editor.d.ts","sourceRoot":"","sources":["../../src/svelte/i18n.editor.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8JZ,CAAC"}
|
|
@@ -17,6 +17,30 @@ export const M = defineMessages({
|
|
|
17
17
|
'content.content_agent_chat.cancel': 'Cancel',
|
|
18
18
|
'content.content_agent_chat.new': 'New',
|
|
19
19
|
'content.content_agent_chat.untitled_topic': 'Untitled Topic',
|
|
20
|
+
// ContentPictureDrawer
|
|
21
|
+
'content.content_picture_drawer.title': 'Add pictures',
|
|
22
|
+
'content.content_picture_drawer.close': 'Done',
|
|
23
|
+
'content.content_picture_drawer.hint': 'Drag a picture into the story, or pick some and press Insert.',
|
|
24
|
+
'content.content_picture_drawer.search': 'Search pictures',
|
|
25
|
+
'content.content_picture_drawer.upload': 'Upload pictures',
|
|
26
|
+
'content.content_picture_drawer.upload_hint': 'From your computer or phone',
|
|
27
|
+
'content.content_picture_drawer.uploading': 'Uploading…',
|
|
28
|
+
'content.content_picture_drawer.loading': 'Loading pictures…',
|
|
29
|
+
'content.content_picture_drawer.empty': 'No pictures yet. Upload one to start.',
|
|
30
|
+
'content.content_picture_drawer.no_match': 'No pictures match.',
|
|
31
|
+
'content.content_picture_drawer.loading_more': 'Loading more pictures…',
|
|
32
|
+
'content.content_picture_drawer.more_loaded': '{count} more pictures',
|
|
33
|
+
'content.content_picture_drawer.insert': 'Insert',
|
|
34
|
+
'content.content_picture_drawer.insert_count': 'Insert {count} pictures',
|
|
35
|
+
'content.content_picture_drawer.clear_selection': 'Clear',
|
|
36
|
+
'content.content_picture_drawer.select': 'Pick {name}',
|
|
37
|
+
'content.content_picture_drawer.in_story': 'In the story',
|
|
38
|
+
'content.content_picture_drawer.no_preview': 'No preview',
|
|
39
|
+
'content.content_picture_drawer.main': 'Main picture',
|
|
40
|
+
'content.content_picture_drawer.use_as_main': 'Use as main picture',
|
|
41
|
+
'content.content_picture_drawer.main_automatic': 'The first picture in the story is the main picture.',
|
|
42
|
+
'content.content_picture_drawer.main_chosen': 'You chose the main picture.',
|
|
43
|
+
'content.content_picture_drawer.main_reset': 'Use the first picture instead',
|
|
20
44
|
// ContentBodyEditor
|
|
21
45
|
'content.content_body_editor.toolbar': 'Body editor toolbar',
|
|
22
46
|
'content.content_body_editor.bold': 'Bold',
|
|
@@ -24,9 +48,12 @@ export const M = defineMessages({
|
|
|
24
48
|
'content.content_body_editor.heading': 'Heading',
|
|
25
49
|
'content.content_body_editor.bulleted_list': 'Bulleted list',
|
|
26
50
|
'content.content_body_editor.insert_image': 'Insert image',
|
|
51
|
+
'content.content_body_editor.image_panel': 'Pictures',
|
|
27
52
|
'content.content_body_editor.save_as': 'Save as',
|
|
28
53
|
'content.content_body_editor.selected_image_controls': 'Selected image controls',
|
|
29
54
|
'content.content_body_editor.move_image': 'Move image',
|
|
55
|
+
'content.content_body_editor.move_image_up': 'Move up',
|
|
56
|
+
'content.content_body_editor.move_image_down': 'Move down',
|
|
30
57
|
'content.content_body_editor.wrap_text_on_right': 'Wrap text on right',
|
|
31
58
|
'content.content_body_editor.center_image': 'Center image',
|
|
32
59
|
'content.content_body_editor.wrap_text_on_left': 'Wrap text on left',
|
|
@@ -35,8 +62,11 @@ export const M = defineMessages({
|
|
|
35
62
|
'content.content_body_editor.make_image_smaller': 'Make image smaller',
|
|
36
63
|
'content.content_body_editor.make_larger': 'Make larger',
|
|
37
64
|
'content.content_body_editor.make_image_larger': 'Make image larger',
|
|
38
|
-
'content.content_body_editor.use_as_primary_image': 'Use as
|
|
65
|
+
'content.content_body_editor.use_as_primary_image': 'Use as main picture',
|
|
39
66
|
'content.content_body_editor.remove_image': 'Remove image',
|
|
67
|
+
'content.content_body_editor.change_image': 'Change this picture',
|
|
68
|
+
'content.content_body_editor.change_image_short': 'Change',
|
|
69
|
+
'content.content_body_editor.change_image_hint': 'Change this picture. You can also press and hold a picture and say what you want.',
|
|
40
70
|
'content.content_body_editor.resize_image': 'Resize image',
|
|
41
71
|
'content.content_body_editor.resize_selected_image': 'Resize selected image',
|
|
42
72
|
// ContentEditor
|
|
@@ -75,6 +105,28 @@ export const M = defineMessages({
|
|
|
75
105
|
'content.content_image_chooser.previous_body_image': 'Previous body image',
|
|
76
106
|
'content.content_image_chooser.focus_selected_body_image': 'Focus selected body image',
|
|
77
107
|
'content.content_image_chooser.next_body_image': 'Next body image',
|
|
108
|
+
// Editor field labels (ContentTitleField / StatusFields / MetadataFields /
|
|
109
|
+
// BodyEditor). Simple mode uses the plain everyday labels.
|
|
110
|
+
'content.content_fields.title': 'Title',
|
|
111
|
+
'content.content_fields.body': 'Story',
|
|
112
|
+
'content.content_fields.type': 'Type',
|
|
113
|
+
'content.content_fields.state': 'State',
|
|
114
|
+
'content.content_fields.status': 'Status',
|
|
115
|
+
'content.content_fields.published': 'Published',
|
|
116
|
+
'content.content_fields.publish_date': 'Publish date',
|
|
117
|
+
'content.content_fields.author': 'Author',
|
|
118
|
+
'content.content_fields.description': 'Description',
|
|
119
|
+
'content.content_fields.summary': 'Summary',
|
|
120
|
+
'content.content_fields.summary_hint': 'One or two sentences shown in lists and when the story is shared.',
|
|
121
|
+
'content.content_fields.tags': 'Tags',
|
|
122
|
+
'content.content_fields.tags_hint': 'Separate tags with commas.',
|
|
123
|
+
'content.content_fields.url': 'URL',
|
|
124
|
+
'content.content_fields.details': 'Details',
|
|
125
|
+
'content.content_fields.optional': '{label} (optional)',
|
|
126
|
+
'content.content_fields.status_draft': 'Draft',
|
|
127
|
+
'content.content_fields.status_review': 'Ready for review',
|
|
128
|
+
'content.content_fields.status_published': 'Published',
|
|
129
|
+
'content.content_fields.status_archived': 'Archived',
|
|
78
130
|
// ContentMetadataFields
|
|
79
131
|
'content.content_metadata_fields.file_key': 'File Key',
|
|
80
132
|
'content.content_metadata_fields.tags_placeholder': 'e.g. news, tech',
|
package/dist/svelte/index.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ import ContentImageBrowser from './components/ContentImageBrowser.svelte';
|
|
|
30
30
|
import ContentImageChooser from './components/ContentImageChooser.svelte';
|
|
31
31
|
import ContentList from './components/ContentList.svelte';
|
|
32
32
|
import ContentMetadataFields from './components/ContentMetadataFields.svelte';
|
|
33
|
+
import ContentPictureDrawer from './components/ContentPictureDrawer.svelte';
|
|
33
34
|
import ContentReferencesPanel from './components/ContentReferencesPanel.svelte';
|
|
34
35
|
import ContentReviewStatusTray from './components/ContentReviewStatusTray.svelte';
|
|
35
36
|
import ContentStatusFields from './components/ContentStatusFields.svelte';
|
|
@@ -45,14 +46,16 @@ import ContentGovernanceRoute from './routes/ContentGovernanceRoute.svelte';
|
|
|
45
46
|
import ContentWorkspaceRoute from './routes/ContentWorkspaceRoute.svelte';
|
|
46
47
|
import PublishedArticleRoute from './routes/PublishedArticleRoute.svelte';
|
|
47
48
|
import { buildPublishedArticlePath, CONTENT_DEFAULT_ROUTE_NAVIGATION, CONTENT_ROUTE_IDS, CONTENT_ROUTE_META, createContentRouteNavigation, getContentRouteDefaultPath, getContentRouteHref } from './routes/shared.js';
|
|
48
|
-
export { ArticleCard, ArticleList, buildPublishedArticlePath, CONTENT_DEFAULT_ROUTE_NAVIGATION, CONTENT_ROUTE_IDS, CONTENT_ROUTE_META, ContentAgentChat, ContentBodyEditor, ContentBodyRenderer, ContentClaimAuditTool, ContentContributionForm, ContentContributionInbox, ContentContributionPortal, ContentContributionsRoute, ContentContributionTypeManager, ContentContributorManager, ContentCorrectionsTool, ContentEditor, ContentFactsRoute, ContentGovernanceAssignmentEditor, ContentGovernanceManager, ContentGovernancePanel, ContentGovernancePolicyEditor, ContentGovernanceProfileEditor, ContentGovernanceRoute, ContentGovernanceTool, ContentImageBrowser, ContentImageChooser, ContentList, ContentMetadataFields, ContentReferencesPanel, ContentReviewStatusTray, ContentStatusFields, ContentTitleField, ContentTransparencyReport, ContentTransparencyTool, ContentVersionsTool, ContentWorkspaceRoute, createContentRouteNavigation, GovernedContentEditor, getContentRouteDefaultPath, getContentRouteHref, Markdown, PublishedArticleRoute, };
|
|
49
|
+
export { ArticleCard, ArticleList, buildPublishedArticlePath, CONTENT_DEFAULT_ROUTE_NAVIGATION, CONTENT_ROUTE_IDS, CONTENT_ROUTE_META, ContentAgentChat, ContentBodyEditor, ContentBodyRenderer, ContentClaimAuditTool, ContentContributionForm, ContentContributionInbox, ContentContributionPortal, ContentContributionsRoute, ContentContributionTypeManager, ContentContributorManager, ContentCorrectionsTool, ContentEditor, ContentFactsRoute, ContentGovernanceAssignmentEditor, ContentGovernanceManager, ContentGovernancePanel, ContentGovernancePolicyEditor, ContentGovernanceProfileEditor, ContentGovernanceRoute, ContentGovernanceTool, ContentImageBrowser, ContentImageChooser, ContentList, ContentMetadataFields, ContentPictureDrawer, ContentReferencesPanel, ContentReviewStatusTray, ContentStatusFields, ContentTitleField, ContentTransparencyReport, ContentTransparencyTool, ContentVersionsTool, ContentWorkspaceRoute, createContentRouteNavigation, GovernedContentEditor, getContentRouteDefaultPath, getContentRouteHref, Markdown, PublishedArticleRoute, };
|
|
49
50
|
export type ArticleCardProps = ComponentProps<typeof ArticleCard>;
|
|
50
51
|
export type ArticleListProps = ComponentProps<typeof ArticleList>;
|
|
51
52
|
export type ContentAgentChatProps = ComponentProps<typeof ContentAgentChat>;
|
|
52
53
|
export type ContentBodyEditorProps = ComponentProps<typeof ContentBodyEditor>;
|
|
53
|
-
export type { ContentBodyEditorChange } from './components/ContentBodyEditor.svelte';
|
|
54
|
+
export type { ContentBodyEditorChange, ContentBodyImageChangeRequest, } from './components/ContentBodyEditor.svelte';
|
|
54
55
|
export type ContentBodyRendererProps = ComponentProps<typeof ContentBodyRenderer>;
|
|
55
56
|
export type ContentEditorProps = ComponentProps<typeof ContentEditor>;
|
|
57
|
+
export type ContentPictureDrawerProps = ComponentProps<typeof ContentPictureDrawer>;
|
|
58
|
+
export { CONTENT_PICTURE_DRAG_TYPE, type ContentPicture, filterPictures, pictureDragPayload, } from './components/ContentPictureDrawer.svelte';
|
|
56
59
|
export type ContentImageChooserProps = ComponentProps<typeof ContentImageChooser>;
|
|
57
60
|
export type ContentImageBrowserProps = ComponentProps<typeof ContentImageBrowser>;
|
|
58
61
|
export type ContentClaimAuditToolProps = ComponentProps<typeof ContentClaimAuditTool>;
|
|
@@ -65,6 +68,7 @@ export type ContentReviewStatusTrayProps = ComponentProps<typeof ContentReviewSt
|
|
|
65
68
|
export type { ContentReviewStatusIcon, ContentReviewStatusTone, ContentReviewStatusTrayItem, } from './components/ContentReviewStatusTray.svelte';
|
|
66
69
|
export type ContentStatusFieldsProps = ComponentProps<typeof ContentStatusFields>;
|
|
67
70
|
export type ContentTitleFieldProps = ComponentProps<typeof ContentTitleField>;
|
|
71
|
+
export type { ContentFieldMode, ContentMetadataFieldName, ContentStatusFieldName, } from './components/content-field-mode.js';
|
|
68
72
|
export type ContentListProps = ComponentProps<typeof ContentList>;
|
|
69
73
|
export type { ContentListUrlStateBinding } from './components/ContentList.svelte';
|
|
70
74
|
export { applyContentListFilter, buildContentListColumns, buildContentListSurfaceDescriptor, CONTENT_LIST_ACTIONS_COLUMN_ID, CONTENT_LIST_COLUMN_IDS, CONTENT_LIST_HIDDEN_COLUMN_IDS, CONTENT_LIST_ROW_KEY, CONTENT_LIST_SCHEMA_VERSION, CONTENT_LIST_SELECTION_COLUMN_ID, CONTENT_LIST_STATUS_FILTER_ID, CONTENT_LIST_STATUS_OPTIONS, CONTENT_LIST_SURFACE_ID, CONTENT_LIST_TABLE_COLUMN_IDS, CONTENT_LIST_TOKEN_COLUMN_IDS, CONTENT_LIST_TYPE_FILTER_ID, CONTENT_LIST_TYPE_OPTIONS, CONTENT_LIST_UNREPRESENTABLE_OPTION, CONTENT_LIST_VISIBLE_COLUMN_IDS, type ContentListActionId, type ContentListActionOptions, type ContentListColumnId, type ContentListColumnLabels, type ContentListControllerOptions, type ContentListDataSurface, type ContentListRow, type ContentListSelectFilterState, type ContentListSurfaceDescriptorOptions, type ContentListViewMode, contentListFilters, contentListRowActions, contentStateVariant, contentStatusVariant, contentTypeLabel, createContentListController, formatContentListDate, isContentListFilterExactly, normalizeContentListTypeLock, normalizeContentToken, normalizeContentType, paginateContentListRows, readContentListFilter, readContentListSelectFilter, resolveContentHref, resolveSelectedContentListRows, resolveSelectedContents, selectableContentListRowIds, selectContentListRows, toContentListRows, } from './content-list-controller.js';
|
|
@@ -94,15 +98,16 @@ export type ContentFactsRouteProps = ComponentProps<typeof ContentFactsRoute>;
|
|
|
94
98
|
export type ContentGovernanceRouteProps = ComponentProps<typeof ContentGovernanceRoute>;
|
|
95
99
|
export type ContentWorkspaceRouteProps = ComponentProps<typeof ContentWorkspaceRoute>;
|
|
96
100
|
export type PublishedArticleRouteProps = ComponentProps<typeof PublishedArticleRoute>;
|
|
97
|
-
export type { ContentBodyFormat, ContentBodyImage } from '../body-format.js';
|
|
98
|
-
export { extractBodyImages, resolveBodyFormat, } from '../body-format.js';
|
|
101
|
+
export type { ContentBodyFormat, ContentBodyImage, ContentBodyThumbnail, ContentBodyThumbnailPlacement, ContentMainPicture, ContentMainPictureMode, RenderContentBodyOptions, } from '../body-format.js';
|
|
102
|
+
export { BODY_MAIN_IMAGE_ATTRIBUTE, BODY_THUMBNAIL_ATTRIBUTE, bodyHasImage, bodyHasThumbnail, extractBodyImages, placeThumbnailInBody, removeThumbnailFromBody, renderContentBodyHtml, resolveBodyFormat, resolveBodyMainPicture, setBodyMainImage, THUMBNAIL_WIDE_ASPECT_RATIO, thumbnailPlacementForSize, } from '../body-format.js';
|
|
99
103
|
export type { ContentEditorAssistantActions, ContentEditorAssistantChatProps, ContentEditorAssistantContext, ContentEditorAssistantContextChange, ContentEditorAssistantContextData, ContentEditorAssistantEditorKind, ContentEditorAssistantFactSummary, ContentEditorAssistantFields, ContentEditorAssistantFieldUpdateAllowList, ContentEditorAssistantGovernanceSummary, ContentEditorAssistantRegistration, CreateContentEditorAssistantContextInput, } from '../content-editor-assistant.js';
|
|
100
104
|
export { contentEditorAssistantContextToChatProps, createContentEditorAssistantContext, sanitizeContentEditorAssistantFieldUpdates, } from '../content-editor-assistant.js';
|
|
101
105
|
export type { ContentPublishReadinessState, EvaluateContentPublishReadinessOptions, PublishReadinessProfile, PublishReadinessRequirement, } from '../publish-readiness.js';
|
|
102
106
|
export { evaluateContentPublishReadiness } from '../publish-readiness.js';
|
|
103
107
|
export type { ContentEditorAsset, ContentEditorFormData, ContentEditorInitialContent, ContentEditorReference, ContentEditorSavePayload, } from './content-editor-form.js';
|
|
104
108
|
export { formatDateTimeLocal, getContentEditorInitialFormData, getContentEditorSavePayload, getContentEditorSnapshot, normalizePublishDate, } from './content-editor-form.js';
|
|
105
|
-
export {
|
|
109
|
+
export type { ContentEditorImageDimensions } from './content-editor-media.js';
|
|
110
|
+
export { createContentEditorImageRecord, getContentEditorAssetImageSource, readContentEditorFileAsDataUrl, resolveContentEditorImageDimensions, resolveContentEditorImageSelection, } from './content-editor-media.js';
|
|
106
111
|
export type { ContentEditorFieldChange, CreateContentEditorStateOptions, } from './content-editor-state.svelte.js';
|
|
107
112
|
export { ContentEditorState, createContentEditorState, } from './content-editor-state.svelte.js';
|
|
108
113
|
export type { ContentRouteId, ContentRouteKey, ContentRouteNavigationItem, LoadPublishedArticleRouteInput, PublishedContentArticleRouteData, } from './routes/shared.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/svelte/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAI7C,OAAO,WAAW,MAAM,iCAAiC,CAAC;AAC1D,OAAO,WAAW,MAAM,iCAAiC,CAAC;AAC1D,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,iBAAiB,MAAM,uCAAuC,CAAC;AACtE,OAAO,mBAAmB,MAAM,yCAAyC,CAAC;AAC1E,OAAO,qBAAqB,MAAM,2CAA2C,CAAC;AAC9E,OAAO,uBAAuB,MAAM,6CAA6C,CAAC;AAClF,OAAO,wBAAwB,MAAM,8CAA8C,CAAC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EACnC,kCAAkC,GACnC,MAAM,2BAA2B,CAAC;AACnC,YAAY,EACV,wBAAwB,EACxB,+BAA+B,GAChC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,kCAAkC,CAAC;AAC1C,YAAY,EACV,cAAc,EACd,eAAe,EACf,0BAA0B,EAC1B,8BAA8B,EAC9B,gCAAgC,GACjC,MAAM,oBAAoB,CAAC;AAC5B,YAAY,EACV,OAAO,EACP,gBAAgB,IAAI,sBAAsB,EAC1C,gBAAgB,IAAI,sBAAsB,EAC1C,aAAa,IAAI,mBAAmB,GACrC,MAAM,YAAY,CAAC"}
|
package/dist/svelte/index.js
CHANGED
|
@@ -32,6 +32,7 @@ import ContentImageBrowser from './components/ContentImageBrowser.svelte';
|
|
|
32
32
|
import ContentImageChooser from './components/ContentImageChooser.svelte';
|
|
33
33
|
import ContentList from './components/ContentList.svelte';
|
|
34
34
|
import ContentMetadataFields from './components/ContentMetadataFields.svelte';
|
|
35
|
+
import ContentPictureDrawer from './components/ContentPictureDrawer.svelte';
|
|
35
36
|
import ContentReferencesPanel from './components/ContentReferencesPanel.svelte';
|
|
36
37
|
import ContentReviewStatusTray from './components/ContentReviewStatusTray.svelte';
|
|
37
38
|
import ContentStatusFields from './components/ContentStatusFields.svelte';
|
|
@@ -48,7 +49,8 @@ import ContentWorkspaceRoute from './routes/ContentWorkspaceRoute.svelte';
|
|
|
48
49
|
import PublishedArticleRoute from './routes/PublishedArticleRoute.svelte';
|
|
49
50
|
import { buildPublishedArticlePath, CONTENT_DEFAULT_ROUTE_NAVIGATION, CONTENT_ROUTE_IDS, CONTENT_ROUTE_META, createContentRouteNavigation, getContentRouteDefaultPath, getContentRouteHref, } from './routes/shared.js';
|
|
50
51
|
// Export components
|
|
51
|
-
export { ArticleCard, ArticleList, buildPublishedArticlePath, CONTENT_DEFAULT_ROUTE_NAVIGATION, CONTENT_ROUTE_IDS, CONTENT_ROUTE_META, ContentAgentChat, ContentBodyEditor, ContentBodyRenderer, ContentClaimAuditTool, ContentContributionForm, ContentContributionInbox, ContentContributionPortal, ContentContributionsRoute, ContentContributionTypeManager, ContentContributorManager, ContentCorrectionsTool, ContentEditor, ContentFactsRoute, ContentGovernanceAssignmentEditor, ContentGovernanceManager, ContentGovernancePanel, ContentGovernancePolicyEditor, ContentGovernanceProfileEditor, ContentGovernanceRoute, ContentGovernanceTool, ContentImageBrowser, ContentImageChooser, ContentList, ContentMetadataFields, ContentReferencesPanel, ContentReviewStatusTray, ContentStatusFields, ContentTitleField, ContentTransparencyReport, ContentTransparencyTool, ContentVersionsTool, ContentWorkspaceRoute, createContentRouteNavigation, GovernedContentEditor, getContentRouteDefaultPath, getContentRouteHref, Markdown, PublishedArticleRoute, };
|
|
52
|
+
export { ArticleCard, ArticleList, buildPublishedArticlePath, CONTENT_DEFAULT_ROUTE_NAVIGATION, CONTENT_ROUTE_IDS, CONTENT_ROUTE_META, ContentAgentChat, ContentBodyEditor, ContentBodyRenderer, ContentClaimAuditTool, ContentContributionForm, ContentContributionInbox, ContentContributionPortal, ContentContributionsRoute, ContentContributionTypeManager, ContentContributorManager, ContentCorrectionsTool, ContentEditor, ContentFactsRoute, ContentGovernanceAssignmentEditor, ContentGovernanceManager, ContentGovernancePanel, ContentGovernancePolicyEditor, ContentGovernanceProfileEditor, ContentGovernanceRoute, ContentGovernanceTool, ContentImageBrowser, ContentImageChooser, ContentList, ContentMetadataFields, ContentPictureDrawer, ContentReferencesPanel, ContentReviewStatusTray, ContentStatusFields, ContentTitleField, ContentTransparencyReport, ContentTransparencyTool, ContentVersionsTool, ContentWorkspaceRoute, createContentRouteNavigation, GovernedContentEditor, getContentRouteDefaultPath, getContentRouteHref, Markdown, PublishedArticleRoute, };
|
|
53
|
+
export { CONTENT_PICTURE_DRAG_TYPE, filterPictures, pictureDragPayload, } from './components/ContentPictureDrawer.svelte';
|
|
52
54
|
// Shared content-list adapter: columns, rows, filters, and the data surface
|
|
53
55
|
// descriptor every ContentList presentation is built from.
|
|
54
56
|
export { applyContentListFilter, buildContentListColumns, buildContentListSurfaceDescriptor, CONTENT_LIST_ACTIONS_COLUMN_ID, CONTENT_LIST_COLUMN_IDS, CONTENT_LIST_HIDDEN_COLUMN_IDS, CONTENT_LIST_ROW_KEY, CONTENT_LIST_SCHEMA_VERSION, CONTENT_LIST_SELECTION_COLUMN_ID, CONTENT_LIST_STATUS_FILTER_ID, CONTENT_LIST_STATUS_OPTIONS, CONTENT_LIST_SURFACE_ID, CONTENT_LIST_TABLE_COLUMN_IDS, CONTENT_LIST_TOKEN_COLUMN_IDS, CONTENT_LIST_TYPE_FILTER_ID, CONTENT_LIST_TYPE_OPTIONS, CONTENT_LIST_UNREPRESENTABLE_OPTION, CONTENT_LIST_VISIBLE_COLUMN_IDS, contentListFilters, contentListRowActions, contentStateVariant, contentStatusVariant, contentTypeLabel, createContentListController, formatContentListDate, isContentListFilterExactly, normalizeContentListTypeLock, normalizeContentToken, normalizeContentType, paginateContentListRows, readContentListFilter, readContentListSelectFilter, resolveContentHref, resolveSelectedContentListRows, resolveSelectedContents, selectableContentListRowIds, selectContentListRows, toContentListRows, } from './content-list-controller.js';
|
|
@@ -64,11 +66,11 @@ export { CONTENT_LIST_SAVED_VIEW_SCHEMA_VERSION, CONTENT_LIST_SAVED_VIEW_STORAGE
|
|
|
64
66
|
export { applyContentListViewState, CONTENT_LIST_FILTER_OPERATORS, CONTENT_LIST_MAX_PAGE_SIZE, CONTENT_LIST_PAGE_PARAM, CONTENT_LIST_PAGE_SIZE_PARAM, CONTENT_LIST_QUERYABLE_COLUMN_IDS, CONTENT_LIST_RESERVED_PARAMS, CONTENT_LIST_SEARCH_PARAM, CONTENT_LIST_SORT_PARAM, contentListViewStateFromSearchParams, contentListViewStateToSearchParams, mergeContentListViewStateIntoSearchParams, readContentListViewStateFromSearchParams, sanitizeContentListViewState, } from './content-list-url-state.js';
|
|
65
67
|
// Browser-safe ContentList bulk workflow binding and transport (#2453).
|
|
66
68
|
export { CONTENT_LIST_WORKFLOW_IDS, CONTENT_LIST_WORKFLOW_OPTIONS, ContentListWorkflowError, contentListWorkflowOutcomes, createContentListWorkflowTransport, } from './content-list-workflows.js';
|
|
67
|
-
export { extractBodyImages, resolveBodyFormat, } from '../body-format.js';
|
|
69
|
+
export { BODY_MAIN_IMAGE_ATTRIBUTE, BODY_THUMBNAIL_ATTRIBUTE, bodyHasImage, bodyHasThumbnail, extractBodyImages, placeThumbnailInBody, removeThumbnailFromBody, renderContentBodyHtml, resolveBodyFormat, resolveBodyMainPicture, setBodyMainImage, THUMBNAIL_WIDE_ASPECT_RATIO, thumbnailPlacementForSize, } from '../body-format.js';
|
|
68
70
|
export { contentEditorAssistantContextToChatProps, createContentEditorAssistantContext, sanitizeContentEditorAssistantFieldUpdates, } from '../content-editor-assistant.js';
|
|
69
71
|
export { evaluateContentPublishReadiness } from '../publish-readiness.js';
|
|
70
72
|
export { formatDateTimeLocal, getContentEditorInitialFormData, getContentEditorSavePayload, getContentEditorSnapshot, normalizePublishDate, } from './content-editor-form.js';
|
|
71
|
-
export { createContentEditorImageRecord, getContentEditorAssetImageSource, readContentEditorFileAsDataUrl, resolveContentEditorImageSelection, } from './content-editor-media.js';
|
|
73
|
+
export { createContentEditorImageRecord, getContentEditorAssetImageSource, readContentEditorFileAsDataUrl, resolveContentEditorImageDimensions, resolveContentEditorImageSelection, } from './content-editor-media.js';
|
|
72
74
|
export { ContentEditorState, createContentEditorState, } from './content-editor-state.svelte.js';
|
|
73
75
|
// Auto-register with ModuleUIRegistry
|
|
74
76
|
ModuleUIRegistry.registerModule(CONTENT_MODULE_META);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@happyvertical/smrt-content",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.53.0",
|
|
4
4
|
"smrtJsdoc": "strict",
|
|
5
5
|
"description": "Content processing module for SMRT framework - handles documents, web content, and media",
|
|
6
6
|
"type": "module",
|
|
@@ -47,34 +47,35 @@
|
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@happyvertical/ai": "^0.
|
|
51
|
-
"@happyvertical/documents": "^0.
|
|
52
|
-
"@happyvertical/files": "^0.
|
|
53
|
-
"@happyvertical/geo": "^0.
|
|
54
|
-
"@happyvertical/images": "^0.
|
|
55
|
-
"@happyvertical/logger": "^0.
|
|
50
|
+
"@happyvertical/ai": "^0.98.0",
|
|
51
|
+
"@happyvertical/documents": "^0.98.0",
|
|
52
|
+
"@happyvertical/files": "^0.98.0",
|
|
53
|
+
"@happyvertical/geo": "^0.98.0",
|
|
54
|
+
"@happyvertical/images": "^0.98.0",
|
|
55
|
+
"@happyvertical/logger": "^0.98.0",
|
|
56
56
|
"@happyvertical/ocr": "^0.61.6",
|
|
57
57
|
"@happyvertical/pdf": "^0.65.9",
|
|
58
|
-
"@happyvertical/smrt-assets": "0.
|
|
59
|
-
"@happyvertical/smrt-agents": "0.
|
|
60
|
-
"@happyvertical/smrt-chat": "0.
|
|
61
|
-
"@happyvertical/smrt-core": "0.
|
|
62
|
-
"@happyvertical/smrt-facts": "0.
|
|
63
|
-
"@happyvertical/smrt-images": "0.
|
|
64
|
-
"@happyvertical/smrt-messages": "0.
|
|
65
|
-
"@happyvertical/smrt-prompts": "0.
|
|
66
|
-
"@happyvertical/smrt-profiles": "0.
|
|
67
|
-
"@happyvertical/smrt-tenancy": "0.
|
|
68
|
-
"@happyvertical/smrt-types": "0.
|
|
69
|
-
"@happyvertical/smrt-ui": "0.
|
|
58
|
+
"@happyvertical/smrt-assets": "0.53.0",
|
|
59
|
+
"@happyvertical/smrt-agents": "0.53.0",
|
|
60
|
+
"@happyvertical/smrt-chat": "0.53.0",
|
|
61
|
+
"@happyvertical/smrt-core": "0.53.0",
|
|
62
|
+
"@happyvertical/smrt-facts": "0.53.0",
|
|
63
|
+
"@happyvertical/smrt-images": "0.53.0",
|
|
64
|
+
"@happyvertical/smrt-messages": "0.53.0",
|
|
65
|
+
"@happyvertical/smrt-prompts": "0.53.0",
|
|
66
|
+
"@happyvertical/smrt-profiles": "0.53.0",
|
|
67
|
+
"@happyvertical/smrt-tenancy": "0.53.0",
|
|
68
|
+
"@happyvertical/smrt-types": "0.53.0",
|
|
69
|
+
"@happyvertical/smrt-ui": "0.53.0",
|
|
70
70
|
"@happyvertical/spider": "^1.1.13",
|
|
71
|
-
"@happyvertical/sql": "^0.
|
|
72
|
-
"@happyvertical/utils": "^0.
|
|
71
|
+
"@happyvertical/sql": "^0.98.0",
|
|
72
|
+
"@happyvertical/utils": "^0.98.0",
|
|
73
73
|
"fast-xml-parser": "^5.11.1",
|
|
74
|
+
"sanitize-html": "^2.17.7",
|
|
74
75
|
"yaml": "^2.9.1"
|
|
75
76
|
},
|
|
76
77
|
"peerDependencies": {
|
|
77
|
-
"svelte": "^5.57.
|
|
78
|
+
"svelte": "^5.57.0"
|
|
78
79
|
},
|
|
79
80
|
"peerDependenciesMeta": {
|
|
80
81
|
"svelte": {
|
|
@@ -83,13 +84,14 @@
|
|
|
83
84
|
},
|
|
84
85
|
"devDependencies": {
|
|
85
86
|
"@faker-js/faker": "^10.6.0",
|
|
86
|
-
"@happyvertical/smrt-playground": "0.
|
|
87
|
-
"@happyvertical/smrt-users": "0.
|
|
88
|
-
"@happyvertical/smrt-vitest": "0.
|
|
87
|
+
"@happyvertical/smrt-playground": "0.53.0",
|
|
88
|
+
"@happyvertical/smrt-users": "0.53.0",
|
|
89
|
+
"@happyvertical/smrt-vitest": "0.53.0",
|
|
89
90
|
"@sveltejs/kit": "2.69.1",
|
|
90
91
|
"@sveltejs/package": "^2.5.8",
|
|
91
92
|
"@sveltejs/vite-plugin-svelte": "^7.3.0",
|
|
92
93
|
"@types/node": "24.13.6",
|
|
94
|
+
"@types/sanitize-html": "^2.16.2",
|
|
93
95
|
"svelte": "^5.57.1",
|
|
94
96
|
"svelte-check": "^4.7.6",
|
|
95
97
|
"typescript": "6.0.3",
|