@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.
- package/internal-do-not-import-from-here/velcron/core/models/VelcronDefinitions.d.ts +8 -2
- package/internal-do-not-import-from-here/velcron/core/models/VelcronDefinitions.js +1 -1
- package/internal-do-not-import-from-here/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts +1 -1
- package/package.json +1 -1
- package/ux/ThemingApi.d.ts +19 -0
- package/ux/ThemingApi.js +2 -0
- package/ux/VelcronDefinitionApi.d.ts +24 -0
- package/ux/VelcronDefinitionApi.js +2 -0
- package/ux/index.d.ts +2 -0
- package/ux/index.js +2 -0
@@ -7,7 +7,7 @@ import { useVelcronBlueprintStore } from "../stores/VelcronBlueprint";
|
|
7
7
|
export interface ResolvedComponentRenderer {
|
8
8
|
component: unknown;
|
9
9
|
definition: VelcronDefinition;
|
10
|
-
customComponent
|
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 = "
|
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"] = "
|
7
|
+
VelcronImageRatios["landscape"] = "landscape";
|
8
8
|
})(VelcronImageRatios = exports.VelcronImageRatios || (exports.VelcronImageRatios = {}));
|
package/internal-do-not-import-from-here/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts
CHANGED
@@ -8,7 +8,7 @@ export interface VelcronPropertyEditor<TSettings = any> {
|
|
8
8
|
type: BuiltInPropertyEditorType | string;
|
9
9
|
settings?: TSettings;
|
10
10
|
stateMapping?: string;
|
11
|
-
propertyMapping?:
|
11
|
+
propertyMapping?: boolean;
|
12
12
|
component?: unknown;
|
13
13
|
}
|
14
14
|
export interface BuiltInPropertyEditors {
|
package/package.json
CHANGED
@@ -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
|
+
}
|
package/ux/ThemingApi.js
ADDED
@@ -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
|
+
}
|
package/ux/index.d.ts
CHANGED
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);
|