@omnia/fx-models 8.0.90-vnext → 8.0.91-vnext

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.
@@ -7,7 +7,7 @@ import { useVelcronBlueprintStore } from "../stores/VelcronBlueprint";
7
7
  export interface ResolvedComponentRenderer {
8
8
  component: unknown;
9
9
  definition: VelcronDefinition;
10
- customComponent: boolean;
10
+ customComponent?: boolean;
11
11
  }
12
12
  export interface BuiltInComponentRenderers {
13
13
  "view": unknown;
@@ -23,6 +23,7 @@ export interface BuiltInComponentRenderers {
23
23
  "icon": unknown;
24
24
  "chip": unknown;
25
25
  "markdown": unknown;
26
+ "slot": unknown;
26
27
  }
27
28
  export interface ColorSchemaReference {
28
29
  name: string;
@@ -215,7 +216,7 @@ export interface VelcronTextDefinition extends VelcronDefinitionWithEditMode, Ve
215
216
  }
216
217
  export declare enum VelcronImageRatios {
217
218
  square = "square",
218
- landscape = "landscapre"
219
+ landscape = "landscape"
219
220
  }
220
221
  export interface VelcronImageDefinition extends VelcronDefinition {
221
222
  type: "image";
@@ -279,6 +280,11 @@ export interface VelcronChipDefinition extends VelcronDefinition {
279
280
  disabled?: boolean;
280
281
  events?: VelcronOnPressEvent;
281
282
  }
283
+ export interface VelcronSlotDefinition extends VelcronDefinition {
284
+ type: "slot";
285
+ bind: string;
286
+ value: VelcroncomponentArrayType;
287
+ }
282
288
  export type VelcronCustomComponentDefinition = VelcronComponentDefinition;
283
289
  export type VelcronRenderProps<TDefinition> = {
284
290
  definition: TDefinition;
@@ -4,5 +4,5 @@ exports.VelcronImageRatios = void 0;
4
4
  var VelcronImageRatios;
5
5
  (function (VelcronImageRatios) {
6
6
  VelcronImageRatios["square"] = "square";
7
- VelcronImageRatios["landscape"] = "landscapre";
7
+ VelcronImageRatios["landscape"] = "landscape";
8
8
  })(VelcronImageRatios = exports.VelcronImageRatios || (exports.VelcronImageRatios = {}));
@@ -8,7 +8,7 @@ export interface VelcronPropertyEditor<TSettings = any> {
8
8
  type: BuiltInPropertyEditorType | string;
9
9
  settings?: TSettings;
10
10
  stateMapping?: string;
11
- propertyMapping?: string;
11
+ propertyMapping?: boolean;
12
12
  component?: unknown;
13
13
  }
14
14
  export interface BuiltInPropertyEditors {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.90-vnext",
4
+ "version": "8.0.91-vnext",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -0,0 +1,19 @@
1
+ import { ThemeDefinitionV2 } from "@omnia/fx-models";
2
+ import { ApiPath } from "../Extends";
3
+ export interface IThemeRegistrationApiHandler {
4
+ getAll(): any;
5
+ register(definitions: ThemeDefinitionV2 | ThemeDefinitionV2[]): any;
6
+ }
7
+ export interface IThemeRegistrationApi {
8
+ registration: Promise<IThemeRegistrationApiHandler>;
9
+ }
10
+ declare module "./UxApi" {
11
+ interface IOmniaUxApi {
12
+ theming: IThemeRegistrationApi;
13
+ }
14
+ interface IOmniaUxExtendApiManifest {
15
+ theming: {
16
+ registration: ApiPath;
17
+ };
18
+ }
19
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,24 @@
1
+ import { VelcronDefinitionRegistration } from "@omnia/fx-models";
2
+ import { ApiPath } from "../Extends";
3
+ export interface IVelcronDefinitionRegistrationHandler {
4
+ getAll(): any;
5
+ register(definitions: VelcronDefinitionRegistration | VelcronDefinitionRegistration[]): any;
6
+ }
7
+ export interface IVelcronDefinitionRegistration {
8
+ registration: Promise<IVelcronDefinitionRegistrationHandler>;
9
+ }
10
+ export interface IVelcronRegistrationApi {
11
+ definitions: IVelcronDefinitionRegistration;
12
+ }
13
+ declare module "./UxApi" {
14
+ interface IOmniaUxApi {
15
+ velcron: IVelcronRegistrationApi;
16
+ }
17
+ interface IOmniaUxExtendApiManifest {
18
+ velcron: {
19
+ definitions: {
20
+ registration: ApiPath;
21
+ };
22
+ };
23
+ }
24
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/ux/index.d.ts CHANGED
@@ -15,3 +15,5 @@ export * from "./LinkHandlerApi";
15
15
  export * from "./FeatureManagementApi";
16
16
  export * from "./FeatureValidatorBase";
17
17
  export * from "./SidePanelApi";
18
+ export * from "./VelcronDefinitionApi";
19
+ export * from "./ThemingApi";
package/ux/index.js CHANGED
@@ -18,3 +18,5 @@ tslib_1.__exportStar(require("./LinkHandlerApi"), exports);
18
18
  tslib_1.__exportStar(require("./FeatureManagementApi"), exports);
19
19
  tslib_1.__exportStar(require("./FeatureValidatorBase"), exports);
20
20
  tslib_1.__exportStar(require("./SidePanelApi"), exports);
21
+ tslib_1.__exportStar(require("./VelcronDefinitionApi"), exports);
22
+ tslib_1.__exportStar(require("./ThemingApi"), exports);