@omnia/fx-models 8.0.283-dev → 8.0.285-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.
@@ -1,8 +1,16 @@
1
1
  import { IActionHandlerSettings } from "../ActionHandler";
2
- import { Layout, LayoutActionOpenType } from "@omnia/fx-models";
2
+ import { Layout, LayoutActionOpenType, VersionedLayoutId } from "@omnia/fx-models";
3
3
  export interface ActionButtonLayoutSettings extends IActionHandlerSettings {
4
+ /**
5
+ * only set if useAppScoped = false
6
+ */
4
7
  layout: Layout;
5
8
  openType: LayoutActionOpenType;
9
+ useAppScoped?: boolean;
6
10
  width?: string;
7
11
  height?: string;
12
+ /**
13
+ * if useAppScoped : true , reuse version layout from app scope otherwise use layout properties
14
+ */
15
+ versionLayoutId?: VersionedLayoutId;
8
16
  }
@@ -1,4 +1,5 @@
1
1
  export interface Spacing {
2
+ scale?: "l" | "s";
2
3
  top?: SpacingValue;
3
4
  right?: SpacingValue;
4
5
  bottom?: SpacingValue;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.283-dev",
4
+ "version": "8.0.285-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -0,0 +1,16 @@
1
+ import { ApiPath } from "../Extends";
2
+ import { VersionedLayout } from "../versionedlayout";
3
+ export interface InternalAppScopedLayoutProvider extends IAppScopedLayoutProvider {
4
+ getAllLayouts: () => VersionedLayout[];
5
+ }
6
+ export interface IAppScopedLayoutProvider {
7
+ registerLayouts: (...layout: VersionedLayout[]) => void;
8
+ }
9
+ declare module "./UxApi" {
10
+ interface IOmniaUxApi {
11
+ appLayoutProvider: Promise<IAppScopedLayoutProvider>;
12
+ }
13
+ interface IOmniaUxExtendApiManifest {
14
+ appLayoutProvider: ApiPath;
15
+ }
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/ux/index.d.ts CHANGED
@@ -26,4 +26,5 @@ export * from "./FlowEditorApi";
26
26
  export * from "./FontApi";
27
27
  export * from "./LinkPickerApi";
28
28
  export * from "./LinkItemHandlerApi";
29
+ export * from "./AppScopedLayoutProviderApi";
29
30
  export { type Directives, type DirectiveDefinition, type IInternalDirectiveRegistration } from "./Directive";
package/ux/index.js CHANGED
@@ -29,3 +29,4 @@ tslib_1.__exportStar(require("./FlowEditorApi"), exports);
29
29
  tslib_1.__exportStar(require("./FontApi"), exports);
30
30
  tslib_1.__exportStar(require("./LinkPickerApi"), exports);
31
31
  tslib_1.__exportStar(require("./LinkItemHandlerApi"), exports);
32
+ tslib_1.__exportStar(require("./AppScopedLayoutProviderApi"), exports);