uhuu-components 0.3.4 → 0.3.5

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/index.d.ts CHANGED
@@ -234,7 +234,7 @@ export const Editable: ComponentType<EditableProps>;
234
234
 
235
235
  /** What `getDialogProps` returns. Spread it onto the element that renders the field. */
236
236
  export interface DialogBindingProps {
237
- /** Marks the element for the editor: `""`, or the serialised dialog under legacy dynamic pagination. */
237
+ /** Marks the element for the editor (`""`). */
238
238
  "data-uhuu"?: string;
239
239
  /** `dialog.type`, so CSS can tell an empty text binding from an empty image. */
240
240
  "data-uhuu-type"?: string;
@@ -572,12 +572,16 @@ export interface PageEditorProps {
572
572
  defaultZoomMode?: PageEditorDefaultZoomMode;
573
573
  onItemsChange?: (items: PageEditorItem[], state: PageEditorState) => void;
574
574
  onStateChange?: (state: PageEditorState) => void;
575
- renderOverlay?: (context: {
575
+ /**
576
+ * What prints over every page. Default: the shell's page number ("Page N / total", untranslated).
577
+ * `false` or `null`: nothing, for templates that number their own pages.
578
+ */
579
+ renderOverlay?: false | null | ((context: {
576
580
  pageNo?: number;
577
581
  total?: number;
578
582
  pageId?: string;
579
583
  parent?: unknown;
580
- }) => ReactNode;
584
+ }) => ReactNode);
581
585
  reorderTitle?: LocalizedText;
582
586
  reorderDescription?: LocalizedText;
583
587
  stateKey?: string;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.3.4",
2
+ "version": "0.3.5",
3
3
  "name": "uhuu-components",
4
4
  "main": "uhuu-components.umd.cjs",
5
5
  "module": "uhuu-components.es.js",