@omnia/fx-models 8.0.494-dev → 8.0.496-dev

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 (2) hide show
  1. package/Layout.d.ts +12 -1
  2. package/package.json +1 -1
package/Layout.d.ts CHANGED
@@ -4,7 +4,7 @@ import { TargetingFilterProperty } from "../sp";
4
4
  import { ShapeDividerSettings } from "./ShapeDividerSettingsModel";
5
5
  import { ClipboardLayoutItem } from "./Clipboard";
6
6
  import { FilePickerStorageProviderContext } from "./FilePicker";
7
- import { ComputedRef } from "vue";
7
+ import { ComputedRef, VNodeChild, type FunctionalComponent } from "vue";
8
8
  export interface Layout {
9
9
  definition: LayoutDefinition;
10
10
  blockSettings: BlockSettings;
@@ -428,6 +428,13 @@ export interface IBlockSettingsWriterExtender {
428
428
  export interface IBlockApi<TSettings = void> {
429
429
  fillData: (instance: IBlockInstance<TSettings>) => void;
430
430
  }
431
+ export type EditBlockRenderer = FunctionalComponent<{
432
+ title: string;
433
+ icon?: IIcon;
434
+ variant?: "inline" | "panel";
435
+ }, {}, {
436
+ panel?: (baldeRenderer: typeof omfx.journey.blade) => VNodeChild;
437
+ }>;
431
438
  export interface IBlockInstance<TSettings = void> {
432
439
  id: guid;
433
440
  manifestId: guid;
@@ -445,6 +452,10 @@ export interface IBlockInstance<TSettings = void> {
445
452
  mediaContext: ILayoutMediaContext;
446
453
  fileContext: ILayoutFileContext;
447
454
  setSearchValue: (value: MultilingualString) => void;
455
+ readonly editing: boolean;
456
+ configurations: () => {
457
+ enableEdit(renderer: (element: EditBlockRenderer) => VNodeChild, mode?: "design-write" | "design" | "write"): void;
458
+ };
448
459
  }
449
460
  export interface LayoutInheritanceBehaviors {
450
461
  section: SectionLayoutInheritanceBehaviors;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.494-dev",
4
+ "version": "8.0.496-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"