@obelism/content 0.26.0 → 0.27.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -249,16 +249,46 @@ import { editable, editableCollection } from '@obelism/content'
249
249
  await bridge.createCollectionPage() // bridge.collection says which
250
250
  ```
251
251
 
252
- There the box also switches between **Prompt** and **Form**. Form shows the
253
- CMS's own form for the page — or for the entry around the selected block —
254
- right in the box: the fields, and blocks as cards to open and add,
255
- as in the dashboard. Edits apply as you make them: they land in the unsaved
256
- changes, show on the page, and undo a burst of typing at a time. A prompt or
257
- an undo shows in the form too. The form is as tall as it needs to be (up to
258
- 60% of the window), and the box can be minimized to its toolbar and footer to
259
- see the page, keeping the form as it is. A chip under the prompt names the page and
260
- opens every page of the space, drafts included, to go to one (at
261
- `pagePath`, in the page's language when it has a path there):
252
+ On the site the prompt box is the **on-site editor** instead
253
+ (`mountSiteEditor`, mounted by `getContentBridge` with the same options): a
254
+ panel docked on the right, the site reflowed beside it (a sheet over the page
255
+ on small screens). It opens on **Edit fields**, the CMS's own form for the
256
+ page — or for the entry around the selected block — right in the panel: the
257
+ fields, and blocks as cards to open and add, as in the dashboard. Edits apply
258
+ as you make them: they land in the unsaved changes, show on the page, and
259
+ undo a burst of typing at a time. The small **Ask** button in the header
260
+ switches to prompts for the selected block — or the whole page — and shows
261
+ the answer with what it changed, before and after; the change shows on the
262
+ page straight away, outlined as a preview, and needs **Keep it** before it
263
+ can be saved (**Try another** and **Undo** take it back). Hovered blocks
264
+ show their name; Escape goes from a block back to the whole page. The header
265
+ names the page and opens every page of the space, drafts included, to go to
266
+ one (at `pagePath`, in the page's language when it has a path there), and
267
+ shows the environment. A launcher at the bottom left minimizes the panel,
268
+ hides the outlines and exits. Its words are `labels`
269
+ (`SiteEditorLabels`, defaults in
270
+ `DEFAULT_SITE_EDITOR_LABELS`).
271
+
272
+ The site makes room for the panel with a margin on `<html>`, which moves
273
+ everything in the page's flow. Elements with `position: fixed` (or `sticky`)
274
+ stay on the viewport, so a fixed header or cart button would sit under the
275
+ panel. Give them the room yourself with the `--obelism-dock` custom property
276
+ the editor sets on `<html>` (`436px` while docked, `0px` otherwise), or add
277
+ `data-obelism-dock` to the element and the editor sets its `right` and
278
+ `max-width` while docked:
279
+
280
+ ```css
281
+ .site-header {
282
+ position: fixed;
283
+ right: var(--obelism-dock, 0px);
284
+ }
285
+ ```
286
+
287
+ ```html
288
+ <button class="cart" data-obelism-dock>Cart</button>
289
+ ```
290
+
291
+ The form, the pages and saving work as below:
262
292
 
263
293
  ```ts
264
294
  const form = bridge.openForm(element, { onReady, onError }) // an iframe
@@ -232,7 +232,7 @@ const describeChange = (change)=>{
232
232
  }
233
233
  if (change.reordered) details.push('fields reordered');
234
234
  if (change.settingsChanged && change.action === 'update') {
235
- details.push('name, kind or description');
235
+ details.push('settings: name, kind, description, preview image, accent, code or groups');
236
236
  }
237
237
  if (change.affectedEntries && change.affectedEntries > 0) {
238
238
  details.push(`removes values from ${plural(change.affectedEntries, 'entry', 'entries')}`);
package/dist/bridge.d.mts CHANGED
@@ -38,6 +38,7 @@ type BridgeState = {
38
38
  selectedUid: string | null;
39
39
  prompting: boolean;
40
40
  canUndo: boolean;
41
+ undoSteps?: number | undefined;
41
42
  unsaved: boolean;
42
43
  saving: boolean;
43
44
  publishing: boolean;
@@ -68,6 +69,7 @@ type FormOptions = {
68
69
  title?: string | undefined;
69
70
  onReady?: (() => void) | undefined;
70
71
  onError?: ((message: string) => void) | undefined;
72
+ onEscape?: (() => void) | undefined;
71
73
  };
72
74
  type FormHandle = {
73
75
  close(): void;
@@ -116,20 +118,14 @@ type ContentBridge = {
116
118
  };
117
119
  declare const INITIAL_STATE: BridgeState;
118
120
 
119
- type PromptLabels = {
121
+ type SharedLabels = {
120
122
  open: string;
121
123
  placeholder: string;
122
124
  send: string;
123
125
  undo: string;
124
- close: string;
125
126
  minimize: string;
126
- expand: string;
127
127
  scopeEntry: string;
128
- scopeNoPage: string;
129
- scopeBlock: string;
130
- clearBlock: string;
131
128
  working: string;
132
- save: string;
133
129
  publish: string;
134
130
  saving: string;
135
131
  publishing: string;
@@ -138,7 +134,6 @@ type PromptLabels = {
138
134
  unsaved: string;
139
135
  signOut: string;
140
136
  viewingDrafts: string;
141
- selectHint: string;
142
137
  newPage: string;
143
138
  newPageCancel: string;
144
139
  newPagePlaceholder: string;
@@ -167,7 +162,49 @@ type PromptLabels = {
167
162
  addedCollectionPage: string;
168
163
  collectionPageHint: string;
169
164
  };
165
+ type PromptLabels = SharedLabels & {
166
+ close: string;
167
+ expand: string;
168
+ scopeNoPage: string;
169
+ scopeBlock: string;
170
+ clearBlock: string;
171
+ save: string;
172
+ selectHint: string;
173
+ };
170
174
  declare const DEFAULT_PROMPT_LABELS: PromptLabels;
175
+ type SiteEditorLabels = SharedLabels & {
176
+ editor: string;
177
+ editing: string;
178
+ hideOutlines: string;
179
+ environment: string;
180
+ envProduction: string;
181
+ scopeNoteBlock: string;
182
+ scopeNotePage: string;
183
+ block: string;
184
+ previewChip: string;
185
+ askIntro: string;
186
+ you: string;
187
+ obelism: string;
188
+ suggested: string;
189
+ keep: string;
190
+ retry: string;
191
+ retryPrompt: string;
192
+ kept: string;
193
+ undone: string;
194
+ before: string;
195
+ after: string;
196
+ emptyValue: string;
197
+ moreChanges: string;
198
+ keepFirst: string;
199
+ keepBeforeFields: string;
200
+ saveDraft: string;
201
+ upToDate: string;
202
+ saveFailed: string;
203
+ publishFailed: string;
204
+ tryAgain: string;
205
+ };
206
+ declare const DEFAULT_SITE_EDITOR_LABELS: SiteEditorLabels;
207
+
171
208
  type PromptBoxOptions = {
172
209
  labels?: Partial<PromptLabels> | undefined;
173
210
  actions?: HTMLElement | undefined;
@@ -176,9 +213,16 @@ type PromptBoxOptions = {
176
213
  };
177
214
  declare const mountPromptBox: (doc: Document, bridge: ContentBridge, options?: PromptBoxOptions) => () => void;
178
215
 
216
+ type SiteEditorOptions = Omit<PromptBoxOptions, 'labels'> & {
217
+ labels?: Partial<SiteEditorLabels> | undefined;
218
+ };
219
+ declare const mountSiteEditor: (doc: Document, bridge: ContentBridge, options?: SiteEditorOptions) => () => void;
220
+
179
221
  type BridgeOptions = {
180
222
  url?: string | undefined;
181
- prompt?: boolean | PromptBoxOptions | undefined;
223
+ prompt?: boolean | (Omit<PromptBoxOptions, 'labels'> & {
224
+ labels?: Partial<PromptLabels & SiteEditorLabels> | undefined;
225
+ }) | undefined;
182
226
  pagePath?: ((path: string, locale: string) => string) | undefined;
183
227
  productPath?: ((handle: string, locale: string) => string) | undefined;
184
228
  collectionPath?: ((handle: string, locale: string) => string) | undefined;
@@ -186,6 +230,6 @@ type BridgeOptions = {
186
230
  declare const peekContentBridge: () => ContentBridge | null;
187
231
  declare const getContentBridge: ({ url, prompt, pagePath, productPath, collectionPath, }?: BridgeOptions) => ContentBridge;
188
232
 
189
- export { DEFAULT_PROMPT_LABELS, DEFAULT_STATS_LABELS, INITIAL_STATE, getContentBridge, mountPromptBox, mountStatsOverlay, peekContentBridge };
190
- export type { ApplyJsonResult, BlockStats, BridgeEvent, BridgeEvents, BridgeListener, BridgeOptions, BridgeState, ContentBridge, CreateCollectionPageResult, CreatePageResult, CreateProductPageResult, FormHandle, FormOptions, PromptBoxOptions, PromptLabels, PromptResult, SitePage, StatsLabels, StatsOverlay };
233
+ export { DEFAULT_PROMPT_LABELS, DEFAULT_SITE_EDITOR_LABELS, DEFAULT_STATS_LABELS, INITIAL_STATE, getContentBridge, mountPromptBox, mountSiteEditor, mountStatsOverlay, peekContentBridge };
234
+ export type { ApplyJsonResult, BlockStats, BridgeEvent, BridgeEvents, BridgeListener, BridgeOptions, BridgeState, ContentBridge, CreateCollectionPageResult, CreatePageResult, CreateProductPageResult, FormHandle, FormOptions, PromptBoxOptions, PromptLabels, PromptResult, SharedLabels, SiteEditorLabels, SiteEditorOptions, SitePage, StatsLabels, StatsOverlay };
191
235
  //# sourceMappingURL=bridge.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bridge.d.mts","sources":["../src/bridge/statsOverlay.ts","../src/bridge/createBridge.ts","../src/bridge/promptBox.ts","../src/bridge.ts"],"mappings":";;AAAA,KAAK,UAAU;AACf;AACA;AACA;AACA;AACA;AACA,KAAK,WAAW;AAChB;AACA;AACA;AACA,cAAc,oBAAoB,EAAE,WAAW;AAc/C,KAAK,YAAY;AACjB,kBAAkB,QAAQ,CAAC,MAAM,SAAS,UAAU;AACpD;AACA;AACA;AACA,cAAc,iBAAiB,QAAQ,MAAM;AAC7C;AACA;AACA,aAAa,OAAO,CAAC,WAAW;AAChC,MAAM,YAAY;;AC5BlB,KAAK,YAAY;AACjB;AACA,eAAe,KAAK;AACpB;AACA;AACA,WAAW,MAAM;AACjB,eAAe,MAAM;AACrB,YAAY,WAAW;AACvB;AACA,KAAK,WAAW,SAAS,YAAY;AACrC,KAAK,cAAc,WAAW,WAAW,cAAc,YAAY;AACnE,KAAK,WAAW;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ,CAAC,MAAM,SAAS,UAAU;AAC7C;AACA;AACA,KAAK,YAAY;AACjB;AACA;AACA,KAAK,gBAAgB;AACrB;AACA;AACA;AACA;AACA;AACA,KAAK,uBAAuB;AAC5B;AACA;AACA;AACA;AACA,KAAK,0BAA0B,GAAG,uBAAuB;AACzD,KAAK,eAAe;AACpB;AACA,WAAW,MAAM;AACjB;AACA,KAAK,WAAW;AAChB;AACA;AACA;AACA;AACA,KAAK,UAAU;AACf;AACA;AACA,KAAK,QAAQ;AACb;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,WAAW;AACxB,gBAAgB,WAAW;AAC3B;AACA,KAAK,aAAa;AAClB;AACA;AACA;AACA;AACA,sBAAsB,WAAW;AACjC,yBAAyB,WAAW;AACpC,iBAAiB,WAAW,sBAAsB,cAAc;AAChE,gBAAgB,WAAW;AAC3B;AACA;AACA,QAAQ,OAAO,CAAC,YAAY;AAC5B,8CAA8C,OAAO,CAAC,gBAAgB;AACtE,gCAAgC,WAAW,GAAG,OAAO,CAAC,uBAAuB;AAC7E,sCAAsC,WAAW,GAAG,OAAO,CAAC,0BAA0B;AACtF;AACA;AACA,QAAQ,OAAO,CAAC,MAAM;AACtB,uBAAuB,MAAM;AAC7B;AACA,QAAQ,OAAO,CAAC,eAAe;AAC/B,wBAAwB,WAAW,YAAY,WAAW,GAAG,UAAU;AACvE,aAAa,OAAO,CAAC,QAAQ;AAC7B,mBAAmB,QAAQ;AAC3B;AACA,YAAY,OAAO;AACnB,eAAe,OAAO;AACtB;AACA;AACA;AACA;AACA;AAEA,cAAc,aAAa,EAAE,WAAW;;ACjGxC,KAAK,YAAY;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,qBAAqB,EAAE,YAAY;AACjD,KAAK,gBAAgB;AACrB,aAAa,OAAO,CAAC,YAAY;AACjC,cAAc,WAAW;AACzB;AACA;AACA;AACA,cAAc,cAAc,QAAQ,QAAQ,UAAU,aAAa,YAAY,gBAAgB;;ACnD/F,KAAK,aAAa;AAClB;AACA,uBAAuB,gBAAgB;AACvC;AACA;AACA;AACA;AACA,cAAc,iBAAiB,QAAQ,aAAa;AACpD,cAAc,gBAAgB,6DAA6D,aAAa,KAAK,aAAa","names":[]}
1
+ {"version":3,"file":"bridge.d.mts","sources":["../src/bridge/statsOverlay.ts","../src/bridge/createBridge.ts","../src/bridge/labels.ts","../src/bridge/promptBox.ts","../src/bridge/siteEditor.ts","../src/bridge.ts"],"mappings":";;AAAA,KAAK,UAAU;AACf;AACA;AACA;AACA;AACA;AACA,KAAK,WAAW;AAChB;AACA;AACA;AACA,cAAc,oBAAo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,6DAA6D,aAAa,KAAK,aAAa","names":[]}
package/dist/bridge.d.ts CHANGED
@@ -38,6 +38,7 @@ type BridgeState = {
38
38
  selectedUid: string | null;
39
39
  prompting: boolean;
40
40
  canUndo: boolean;
41
+ undoSteps?: number | undefined;
41
42
  unsaved: boolean;
42
43
  saving: boolean;
43
44
  publishing: boolean;
@@ -68,6 +69,7 @@ type FormOptions = {
68
69
  title?: string | undefined;
69
70
  onReady?: (() => void) | undefined;
70
71
  onError?: ((message: string) => void) | undefined;
72
+ onEscape?: (() => void) | undefined;
71
73
  };
72
74
  type FormHandle = {
73
75
  close(): void;
@@ -116,20 +118,14 @@ type ContentBridge = {
116
118
  };
117
119
  declare const INITIAL_STATE: BridgeState;
118
120
 
119
- type PromptLabels = {
121
+ type SharedLabels = {
120
122
  open: string;
121
123
  placeholder: string;
122
124
  send: string;
123
125
  undo: string;
124
- close: string;
125
126
  minimize: string;
126
- expand: string;
127
127
  scopeEntry: string;
128
- scopeNoPage: string;
129
- scopeBlock: string;
130
- clearBlock: string;
131
128
  working: string;
132
- save: string;
133
129
  publish: string;
134
130
  saving: string;
135
131
  publishing: string;
@@ -138,7 +134,6 @@ type PromptLabels = {
138
134
  unsaved: string;
139
135
  signOut: string;
140
136
  viewingDrafts: string;
141
- selectHint: string;
142
137
  newPage: string;
143
138
  newPageCancel: string;
144
139
  newPagePlaceholder: string;
@@ -167,7 +162,49 @@ type PromptLabels = {
167
162
  addedCollectionPage: string;
168
163
  collectionPageHint: string;
169
164
  };
165
+ type PromptLabels = SharedLabels & {
166
+ close: string;
167
+ expand: string;
168
+ scopeNoPage: string;
169
+ scopeBlock: string;
170
+ clearBlock: string;
171
+ save: string;
172
+ selectHint: string;
173
+ };
170
174
  declare const DEFAULT_PROMPT_LABELS: PromptLabels;
175
+ type SiteEditorLabels = SharedLabels & {
176
+ editor: string;
177
+ editing: string;
178
+ hideOutlines: string;
179
+ environment: string;
180
+ envProduction: string;
181
+ scopeNoteBlock: string;
182
+ scopeNotePage: string;
183
+ block: string;
184
+ previewChip: string;
185
+ askIntro: string;
186
+ you: string;
187
+ obelism: string;
188
+ suggested: string;
189
+ keep: string;
190
+ retry: string;
191
+ retryPrompt: string;
192
+ kept: string;
193
+ undone: string;
194
+ before: string;
195
+ after: string;
196
+ emptyValue: string;
197
+ moreChanges: string;
198
+ keepFirst: string;
199
+ keepBeforeFields: string;
200
+ saveDraft: string;
201
+ upToDate: string;
202
+ saveFailed: string;
203
+ publishFailed: string;
204
+ tryAgain: string;
205
+ };
206
+ declare const DEFAULT_SITE_EDITOR_LABELS: SiteEditorLabels;
207
+
171
208
  type PromptBoxOptions = {
172
209
  labels?: Partial<PromptLabels> | undefined;
173
210
  actions?: HTMLElement | undefined;
@@ -176,9 +213,16 @@ type PromptBoxOptions = {
176
213
  };
177
214
  declare const mountPromptBox: (doc: Document, bridge: ContentBridge, options?: PromptBoxOptions) => () => void;
178
215
 
216
+ type SiteEditorOptions = Omit<PromptBoxOptions, 'labels'> & {
217
+ labels?: Partial<SiteEditorLabels> | undefined;
218
+ };
219
+ declare const mountSiteEditor: (doc: Document, bridge: ContentBridge, options?: SiteEditorOptions) => () => void;
220
+
179
221
  type BridgeOptions = {
180
222
  url?: string | undefined;
181
- prompt?: boolean | PromptBoxOptions | undefined;
223
+ prompt?: boolean | (Omit<PromptBoxOptions, 'labels'> & {
224
+ labels?: Partial<PromptLabels & SiteEditorLabels> | undefined;
225
+ }) | undefined;
182
226
  pagePath?: ((path: string, locale: string) => string) | undefined;
183
227
  productPath?: ((handle: string, locale: string) => string) | undefined;
184
228
  collectionPath?: ((handle: string, locale: string) => string) | undefined;
@@ -186,6 +230,6 @@ type BridgeOptions = {
186
230
  declare const peekContentBridge: () => ContentBridge | null;
187
231
  declare const getContentBridge: ({ url, prompt, pagePath, productPath, collectionPath, }?: BridgeOptions) => ContentBridge;
188
232
 
189
- export { DEFAULT_PROMPT_LABELS, DEFAULT_STATS_LABELS, INITIAL_STATE, getContentBridge, mountPromptBox, mountStatsOverlay, peekContentBridge };
190
- export type { ApplyJsonResult, BlockStats, BridgeEvent, BridgeEvents, BridgeListener, BridgeOptions, BridgeState, ContentBridge, CreateCollectionPageResult, CreatePageResult, CreateProductPageResult, FormHandle, FormOptions, PromptBoxOptions, PromptLabels, PromptResult, SitePage, StatsLabels, StatsOverlay };
233
+ export { DEFAULT_PROMPT_LABELS, DEFAULT_SITE_EDITOR_LABELS, DEFAULT_STATS_LABELS, INITIAL_STATE, getContentBridge, mountPromptBox, mountSiteEditor, mountStatsOverlay, peekContentBridge };
234
+ export type { ApplyJsonResult, BlockStats, BridgeEvent, BridgeEvents, BridgeListener, BridgeOptions, BridgeState, ContentBridge, CreateCollectionPageResult, CreatePageResult, CreateProductPageResult, FormHandle, FormOptions, PromptBoxOptions, PromptLabels, PromptResult, SharedLabels, SiteEditorLabels, SiteEditorOptions, SitePage, StatsLabels, StatsOverlay };
191
235
  //# sourceMappingURL=bridge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"bridge.d.ts","sources":["../src/bridge/statsOverlay.ts","../src/bridge/createBridge.ts","../src/bridge/promptBox.ts","../src/bridge.ts"],"mappings":";;AAAA,KAAK,UAAU;AACf;AACA;AACA;AACA;AACA;AACA,KAAK,WAAW;AAChB;AACA;AACA;AACA,cAAc,oBAAoB,EAAE,WAAW;AAc/C,KAAK,YAAY;AACjB,kBAAkB,QAAQ,CAAC,MAAM,SAAS,UAAU;AACpD;AACA;AACA;AACA,cAAc,iBAAiB,QAAQ,MAAM;AAC7C;AACA;AACA,aAAa,OAAO,CAAC,WAAW;AAChC,MAAM,YAAY;;AC5BlB,KAAK,YAAY;AACjB;AACA,eAAe,KAAK;AACpB;AACA;AACA,WAAW,MAAM;AACjB,eAAe,MAAM;AACrB,YAAY,WAAW;AACvB;AACA,KAAK,WAAW,SAAS,YAAY;AACrC,KAAK,cAAc,WAAW,WAAW,cAAc,YAAY;AACnE,KAAK,WAAW;AAChB;AACA;AACA;AACA;AACA;AACA;AACA;AAC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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,qBAAqB,EAAE,YAAY;AACjD,KAAK,gBAAgB;AACrB,aAAa,OAAO,CAAC,YAAY;AACjC,cAAc,WAAW;AACzB;AACA;AACA;AACA,cAAc,cAAc,QAAQ,QAAQ,UAAU,aAAa,YAAY,gBAAgB;;ACnD/F,KAAK,aAAa;AAClB;AACA,uBAAuB,gBAAgB;AACvC;AACA;AACA;AACA;AACA,cAAc,iBAAiB,QAAQ,aAAa;AACpD,cAAc,gBAAgB,6DAA6D,aAAa,KAAK,aAAa","names":[]}
1
+ {"version":3,"file":"bridge.d.ts","sources":["../src/bridge/statsOverlay.ts","../src/bridge/createBridge.ts","../src/bridge/labels.ts","../src/bridge/promptBox.ts","../src/bridge/siteEditor.ts","../src/bridge.ts"],"mappings":"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","names":[]}