@omnia/fx-models 8.0.124-dev → 8.0.127-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.
- package/BlockTitleSettings.d.ts +2 -2
- package/Constants.d.ts +1 -0
- package/Constants.js +1 -0
- package/FilterEngineStyles.d.ts +2 -2
- package/Http.d.ts +1 -23
- package/Http.js +6 -7
- package/Layout.d.ts +13 -13
- package/ManifestIds.d.ts +2 -1
- package/ManifestIds.js +5 -2
- package/PropertiesBlockStyles.d.ts +2 -2
- package/ShapeDividerSettingsModel.d.ts +2 -2
- package/apps/AppInstanceRollup.d.ts +3 -3
- package/enterprise-properties/EnterprisePropertySettings.d.ts +3 -3
- package/internal-do-not-import-from-here/shared/models/HttpCommon.d.ts +14 -0
- package/internal-do-not-import-from-here/shared/models/HttpCommon.js +7 -0
- package/internal-do-not-import-from-here/shared/models/OmniaSharedBootstrapData.d.ts +2 -1
- package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.d.ts +14 -6
- package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.js +7 -1
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityFeed.d.ts +10 -9
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.d.ts +16 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.js +5 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActorActivity.d.ts +40 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActorActivity.js +17 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/index.d.ts +2 -2
- package/internal-do-not-import-from-here/shared/models/hub/activities/index.js +2 -2
- package/internal-do-not-import-from-here/shared/models/hub/actors/Actor.d.ts +21 -0
- package/internal-do-not-import-from-here/shared/models/hub/actors/Actor.js +10 -0
- package/internal-do-not-import-from-here/shared/models/hub/actors/ExternalActorId.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/models/hub/actors/index.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/models/hub/actors/index.js +5 -0
- package/internal-do-not-import-from-here/shared/models/hub/index.d.ts +3 -1
- package/internal-do-not-import-from-here/shared/models/hub/index.js +3 -1
- package/internal-do-not-import-from-here/shared/models/hub/social/HubComment.d.ts +3 -3
- package/internal-do-not-import-from-here/shared/models/hub/social/HubReaction.d.ts +2 -2
- package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.d.ts +10 -0
- package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.js +19 -0
- package/internal-do-not-import-from-here/shared/models/hub/targeting/HubSource.d.ts +3 -0
- package/internal-do-not-import-from-here/shared/models/hub/targeting/HubSource.js +7 -0
- package/internal-do-not-import-from-here/shared/models/hub/targeting/index.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/hub/targeting/index.js +4 -0
- package/internal-do-not-import-from-here/shared/models/theming/Blueprints.d.ts +122 -0
- package/internal-do-not-import-from-here/shared/models/theming/{ChromeDefinition.d.ts → Chrome.d.ts} +6 -6
- package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.d.ts +1 -1
- package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.js +6 -6
- package/internal-do-not-import-from-here/shared/models/theming/Spacing.d.ts +22 -0
- package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +4 -4
- package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.js +1 -0
- package/internal-do-not-import-from-here/shared/models/theming/{TypographyDefinition.d.ts → Typography.d.ts} +19 -19
- package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.d.ts +2 -2
- package/internal-do-not-import-from-here/shared/models/theming/index.d.ts +4 -4
- package/internal-do-not-import-from-here/shared/models/theming/index.js +4 -4
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronDefinition.d.ts +2 -2
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronEvents.d.ts +3 -0
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronReference.d.ts +20 -0
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronReference.js +5 -0
- package/internal-do-not-import-from-here/shared/models/velcron/index.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/velcron/index.js +1 -0
- package/internal-do-not-import-from-here/velcron/core/models/VelcronDefinitions.d.ts +27 -7
- package/media-picker/MediaPickerTransformations.d.ts +1 -0
- package/media-picker/index.d.ts +1 -0
- package/media-picker/index.js +1 -0
- package/media-picker/interfaces/IImageTransformHandler.d.ts +16 -0
- package/media-picker/interfaces/IImageTransformHandler.js +2 -0
- package/media-picker/interfaces/IMediaPickerGalleryHandler.d.ts +10 -0
- package/media-picker/interfaces/IMediaPickerGalleryHandler.js +2 -0
- package/media-picker/interfaces/IMediaPickerProviderMediaHandler.d.ts +58 -0
- package/media-picker/interfaces/IMediaPickerProviderMediaHandler.js +2 -0
- package/media-picker/interfaces/index.d.ts +4 -0
- package/media-picker/interfaces/index.js +7 -0
- package/media-picker/interfaces/types.d.ts +55 -0
- package/media-picker/interfaces/types.js +2 -0
- package/oxide/SharedSettings.d.ts +6 -0
- package/package.json +1 -1
- package/properties/definitions/IdentityPropertyDefinition.d.ts +3 -1
- package/properties/definitions/IdentityPropertyDefinition.js +2 -2
- package/internal-do-not-import-from-here/shared/models/hub/ExternalIdentityId.d.ts +0 -2
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySender.d.ts +0 -15
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySender.js +0 -5
- package/internal-do-not-import-from-here/shared/models/hub/activities/IdentityActivity.d.ts +0 -40
- package/internal-do-not-import-from-here/shared/models/hub/activities/IdentityActivity.js +0 -39
- package/internal-do-not-import-from-here/shared/models/theming/ComponentDefinitions.d.ts +0 -93
- package/internal-do-not-import-from-here/shared/models/theming/SpacingSetting.d.ts +0 -30
- /package/internal-do-not-import-from-here/shared/models/hub/{ExternalIdentityId.js → actors/ExternalActorId.js} +0 -0
- /package/internal-do-not-import-from-here/shared/models/theming/{ComponentDefinitions.js → Blueprints.js} +0 -0
- /package/internal-do-not-import-from-here/shared/models/theming/{ChromeDefinition.js → Chrome.js} +0 -0
- /package/internal-do-not-import-from-here/shared/models/theming/{SpacingSetting.js → Spacing.js} +0 -0
- /package/internal-do-not-import-from-here/shared/models/theming/{TypographyDefinition.js → Typography.js} +0 -0
package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.d.ts
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
import { GuidValue } from "../../Guid";
|
2
|
+
import { ExternalActorId } from "../actors/ExternalActorId";
|
3
|
+
import { SourceRelatedHubProperty } from "../activities";
|
4
|
+
export declare class HubExternalIdentityProperty implements SourceRelatedHubProperty {
|
5
|
+
private externalIdentityId;
|
6
|
+
constructor(externalIdentityId: ExternalActorId);
|
7
|
+
get propertySourceId(): GuidValue;
|
8
|
+
get name(): string;
|
9
|
+
get values(): string[];
|
10
|
+
}
|
package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.js
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.HubExternalIdentityProperty = void 0;
|
4
|
+
const HubSource_1 = require("./HubSource");
|
5
|
+
class HubExternalIdentityProperty {
|
6
|
+
constructor(externalIdentityId) {
|
7
|
+
this.externalIdentityId = externalIdentityId;
|
8
|
+
}
|
9
|
+
get propertySourceId() {
|
10
|
+
return HubSource_1.HubSource.Id;
|
11
|
+
}
|
12
|
+
get name() {
|
13
|
+
return "identity";
|
14
|
+
}
|
15
|
+
get values() {
|
16
|
+
return [this.externalIdentityId.toString()];
|
17
|
+
}
|
18
|
+
}
|
19
|
+
exports.HubExternalIdentityProperty = HubExternalIdentityProperty;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./ExternalIdentityProperty";
|
@@ -0,0 +1,122 @@
|
|
1
|
+
import { BackgroundDefinition, ColorValue, FillDefinition } from "./ThemeDefinitionV2";
|
2
|
+
import { ChromeBlueprint } from "./Chrome";
|
3
|
+
import { SpacingDefinition, Spacing } from "./Spacing";
|
4
|
+
import { TypographyValue } from "./Typography";
|
5
|
+
export interface BoxDimensions extends Spacing {
|
6
|
+
}
|
7
|
+
import { TypographyBlueprint } from "./Typography";
|
8
|
+
export type BlueprintType = "chrome" | "typography" | "spacing" | "component";
|
9
|
+
export interface Blueprints {
|
10
|
+
type: BlueprintType;
|
11
|
+
name?: string;
|
12
|
+
}
|
13
|
+
export type BlueprintVariant = "primary" | "secondary" | "variant1" | "variant2" | "variant3";
|
14
|
+
export type ButtonBlueprintType = "text" | "icon";
|
15
|
+
export interface ChromeBlueprints extends Blueprints {
|
16
|
+
type: "chrome";
|
17
|
+
primary: ChromeBlueprint;
|
18
|
+
variant1?: ChromeBlueprint;
|
19
|
+
variant2?: ChromeBlueprint;
|
20
|
+
variant3?: ChromeBlueprint;
|
21
|
+
}
|
22
|
+
export interface TypographyBlueprints extends Blueprints {
|
23
|
+
type: "typography";
|
24
|
+
primary: TypographyBlueprint;
|
25
|
+
}
|
26
|
+
export interface SpacingBlueprints extends Blueprints {
|
27
|
+
type: "spacing";
|
28
|
+
primary: SpacingBlueprint;
|
29
|
+
}
|
30
|
+
export type ButtonTypes = "primary" | "basic" | "accent1" | "warn" | "disabled" | "link";
|
31
|
+
export interface ComponentBlueprints extends Blueprints {
|
32
|
+
type: "component";
|
33
|
+
buttons?: {
|
34
|
+
text?: {
|
35
|
+
primary?: ButtonBlueprint;
|
36
|
+
basic?: ButtonBlueprint;
|
37
|
+
accent1?: ButtonBlueprint;
|
38
|
+
warn?: ButtonBlueprint;
|
39
|
+
disabled?: ButtonBlueprint;
|
40
|
+
link?: ButtonBlueprint;
|
41
|
+
};
|
42
|
+
icon?: {
|
43
|
+
primary?: ButtonBlueprint;
|
44
|
+
basic?: ButtonBlueprint;
|
45
|
+
accent1?: ButtonBlueprint;
|
46
|
+
warn?: ButtonBlueprint;
|
47
|
+
disabled?: ButtonBlueprint;
|
48
|
+
link?: ButtonBlueprint;
|
49
|
+
};
|
50
|
+
};
|
51
|
+
tabs?: {
|
52
|
+
primary?: TabsBlueprint;
|
53
|
+
variant1?: TabsBlueprint;
|
54
|
+
variant2?: TabsBlueprint;
|
55
|
+
variant3?: TabsBlueprint;
|
56
|
+
};
|
57
|
+
}
|
58
|
+
export interface SpacingBlueprint {
|
59
|
+
layout: SpacingDefinition;
|
60
|
+
inner: SpacingDefinition;
|
61
|
+
}
|
62
|
+
export type SpacingBlueprintTypes = "inner" | "layout";
|
63
|
+
export type WebBlueprintItemDefintionType = "button" | "searchbox" | "text" | "icon" | "tab";
|
64
|
+
export declare enum WebBlueprintItemDefintionTypes {
|
65
|
+
button = "button",
|
66
|
+
searchbox = "searchbox"
|
67
|
+
}
|
68
|
+
export type VelcronBlueprintDefintionType = "button";
|
69
|
+
export declare enum VelcronBlueprintDefintionTypes {
|
70
|
+
button = "button"
|
71
|
+
}
|
72
|
+
export interface Blueprint {
|
73
|
+
type: VelcronBlueprintDefintionType | WebBlueprintItemDefintionType;
|
74
|
+
}
|
75
|
+
export interface SearchBoxBlueprint extends Blueprint {
|
76
|
+
type: "searchbox";
|
77
|
+
borderRadius?: BoxDimensions;
|
78
|
+
variant?: "outlined" | "solo" | "regular" | "plain" | "underlined";
|
79
|
+
}
|
80
|
+
export interface ButtonBlueprint extends Blueprint {
|
81
|
+
type: "button";
|
82
|
+
padding?: Spacing;
|
83
|
+
background?: BackgroundDefinition;
|
84
|
+
alterCase?: boolean;
|
85
|
+
text?: TextBlueprint;
|
86
|
+
icon?: IconBlueprint;
|
87
|
+
}
|
88
|
+
export interface TabsBlueprint extends Blueprint {
|
89
|
+
type: "tab";
|
90
|
+
background?: BackgroundDefinition;
|
91
|
+
padding?: Spacing;
|
92
|
+
margin?: Spacing;
|
93
|
+
vertical?: boolean;
|
94
|
+
hideSlider?: boolean;
|
95
|
+
iconPosition?: "left" | "right" | "top";
|
96
|
+
grow?: boolean;
|
97
|
+
minHeight?: number;
|
98
|
+
minWidth?: number;
|
99
|
+
alignment?: "start" | "center" | "end";
|
100
|
+
sliderColor?: ColorValue;
|
101
|
+
text?: TextBlueprint;
|
102
|
+
icon?: IconBlueprint;
|
103
|
+
active?: {
|
104
|
+
padding?: Spacing;
|
105
|
+
background?: BackgroundDefinition;
|
106
|
+
text?: TextBlueprint;
|
107
|
+
icon?: IconBlueprint;
|
108
|
+
};
|
109
|
+
inactive?: {
|
110
|
+
background?: BackgroundDefinition;
|
111
|
+
};
|
112
|
+
}
|
113
|
+
export interface TextBlueprint extends Blueprint {
|
114
|
+
type: "text";
|
115
|
+
color?: FillDefinition;
|
116
|
+
typography?: TypographyValue;
|
117
|
+
}
|
118
|
+
export interface IconBlueprint extends Blueprint {
|
119
|
+
type: "icon";
|
120
|
+
color?: FillDefinition;
|
121
|
+
size?: number;
|
122
|
+
}
|
package/internal-do-not-import-from-here/shared/models/theming/{ChromeDefinition.d.ts → Chrome.d.ts}
RENAMED
@@ -1,16 +1,16 @@
|
|
1
1
|
import { GuidValue } from "../Guid";
|
2
2
|
import { VelcronAppDefinition } from "../velcron";
|
3
|
-
import {
|
4
|
-
import { BackgroundDefinition } from "./ThemeDefinitionV2";
|
5
|
-
export interface
|
6
|
-
|
7
|
-
|
3
|
+
import { Spacing } from "./Spacing";
|
4
|
+
import { BackgroundDefinition, ColorSchemaType } from "./ThemeDefinitionV2";
|
5
|
+
export interface ChromeBlueprint {
|
6
|
+
name?: string;
|
7
|
+
colorSchemaType?: ColorSchemaType;
|
8
8
|
header: {
|
9
9
|
definitionId: GuidValue;
|
10
10
|
definition?: VelcronAppDefinition;
|
11
11
|
};
|
12
12
|
styles: {
|
13
13
|
background?: BackgroundDefinition;
|
14
|
-
spacing?:
|
14
|
+
spacing?: Spacing;
|
15
15
|
};
|
16
16
|
}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { SpacingDefinition } from "./
|
1
|
+
import { SpacingDefinition } from "./Spacing";
|
2
2
|
export declare function getSpacingValueFromBlueprint(spacingValue: any, definition: SpacingDefinition): number;
|
@@ -2,7 +2,7 @@
|
|
2
2
|
// import { SpacingDefinition, SpacingTypes } from "@omnia/fx-models";
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
4
4
|
exports.getSpacingValueFromBlueprint = void 0;
|
5
|
-
const
|
5
|
+
const Spacing_1 = require("./Spacing");
|
6
6
|
function getSpacingValueFromBlueprint(spacingValue, definition) {
|
7
7
|
if (!spacingValue) {
|
8
8
|
return 0;
|
@@ -14,19 +14,19 @@ function getSpacingValueFromBlueprint(spacingValue, definition) {
|
|
14
14
|
negative = true;
|
15
15
|
}
|
16
16
|
spacingValue = spacingValue.replace("-", "");
|
17
|
-
if (spacingValue ===
|
17
|
+
if (spacingValue === Spacing_1.SpacingTypes.xs) {
|
18
18
|
result = definition.xs;
|
19
19
|
}
|
20
|
-
else if (spacingValue ===
|
20
|
+
else if (spacingValue === Spacing_1.SpacingTypes.s) {
|
21
21
|
result = definition.s;
|
22
22
|
}
|
23
|
-
else if (spacingValue ===
|
23
|
+
else if (spacingValue === Spacing_1.SpacingTypes.m) {
|
24
24
|
result = definition.m;
|
25
25
|
}
|
26
|
-
else if (spacingValue ===
|
26
|
+
else if (spacingValue === Spacing_1.SpacingTypes.l) {
|
27
27
|
result = definition.l;
|
28
28
|
}
|
29
|
-
else if (spacingValue ===
|
29
|
+
else if (spacingValue === Spacing_1.SpacingTypes.xl) {
|
30
30
|
result = definition.xl;
|
31
31
|
}
|
32
32
|
else {
|
@@ -0,0 +1,22 @@
|
|
1
|
+
export interface Spacing {
|
2
|
+
top?: SpacingValue;
|
3
|
+
right?: SpacingValue;
|
4
|
+
bottom?: SpacingValue;
|
5
|
+
left?: SpacingValue;
|
6
|
+
}
|
7
|
+
export interface SpacingDefinition {
|
8
|
+
name: string;
|
9
|
+
xs: number;
|
10
|
+
s: number;
|
11
|
+
m: number;
|
12
|
+
l: number;
|
13
|
+
xl: number;
|
14
|
+
}
|
15
|
+
export type SpacingValue = "xs" | "s" | "m" | "l" | "xl" | number;
|
16
|
+
export declare enum SpacingTypes {
|
17
|
+
xs = "xs",
|
18
|
+
s = "s",
|
19
|
+
m = "m",
|
20
|
+
l = "l",
|
21
|
+
xl = "xl"
|
22
|
+
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Guid } from "../Guid";
|
2
|
-
import {
|
2
|
+
import { Blueprints, BoxDimensions } from "./Blueprints";
|
3
3
|
export interface ColorTypeResult<resultType> {
|
4
4
|
base: resultType;
|
5
5
|
baseTone: resultType;
|
@@ -44,7 +44,7 @@ export interface ThemeDefinitionV2 {
|
|
44
44
|
name: string;
|
45
45
|
dark: boolean;
|
46
46
|
colors: ColorSchemas;
|
47
|
-
blueprints:
|
47
|
+
blueprints: Blueprints[];
|
48
48
|
}
|
49
49
|
export type ColorSchemaType = keyof typeof ColorSchemaTypes;
|
50
50
|
export declare enum ColorSchemaTypes {
|
@@ -56,7 +56,8 @@ export declare enum ColorSchemaTypes {
|
|
56
56
|
neutral = "neutral",
|
57
57
|
background = "background",
|
58
58
|
error = "error",
|
59
|
-
info = "info"
|
59
|
+
info = "info",
|
60
|
+
dynamic = "dynamic"
|
60
61
|
}
|
61
62
|
export type ColorType = keyof typeof ColorTypes;
|
62
63
|
export declare enum ColorTypes {
|
@@ -81,7 +82,6 @@ export interface ColorGradientValue {
|
|
81
82
|
}
|
82
83
|
/**Background */
|
83
84
|
export interface BackgroundDefinition {
|
84
|
-
filled?: boolean;
|
85
85
|
fill?: FillDefinition;
|
86
86
|
border?: BorderStylingDefinition;
|
87
87
|
elevation?: number;
|
@@ -12,6 +12,7 @@ var ColorSchemaTypes;
|
|
12
12
|
ColorSchemaTypes["background"] = "background";
|
13
13
|
ColorSchemaTypes["error"] = "error";
|
14
14
|
ColorSchemaTypes["info"] = "info";
|
15
|
+
ColorSchemaTypes["dynamic"] = "dynamic";
|
15
16
|
})(ColorSchemaTypes || (exports.ColorSchemaTypes = ColorSchemaTypes = {}));
|
16
17
|
var ColorTypes;
|
17
18
|
(function (ColorTypes) {
|
@@ -1,37 +1,37 @@
|
|
1
1
|
import { Guid } from "../Guid";
|
2
|
-
export interface
|
3
|
-
id: Guid;
|
2
|
+
export interface TypographyBlueprint {
|
4
3
|
name: string;
|
5
4
|
font?: {
|
5
|
+
id: Guid;
|
6
6
|
family: string;
|
7
7
|
cdn?: string;
|
8
8
|
};
|
9
9
|
title: {
|
10
|
-
xl:
|
11
|
-
l:
|
12
|
-
m:
|
13
|
-
s:
|
14
|
-
xs:
|
10
|
+
xl: TypographyDefinition;
|
11
|
+
l: TypographyDefinition;
|
12
|
+
m: TypographyDefinition;
|
13
|
+
s: TypographyDefinition;
|
14
|
+
xs: TypographyDefinition;
|
15
15
|
};
|
16
16
|
text: {
|
17
|
-
l:
|
18
|
-
m:
|
19
|
-
s:
|
20
|
-
xs:
|
17
|
+
l: TypographyDefinition;
|
18
|
+
m: TypographyDefinition;
|
19
|
+
s: TypographyDefinition;
|
20
|
+
xs: TypographyDefinition;
|
21
21
|
};
|
22
22
|
navigation: {
|
23
|
-
l:
|
24
|
-
m:
|
23
|
+
l: TypographyDefinition;
|
24
|
+
m: TypographyDefinition;
|
25
25
|
};
|
26
26
|
link: {
|
27
|
-
m:
|
27
|
+
m: TypographyDefinition;
|
28
28
|
};
|
29
29
|
}
|
30
|
-
export interface
|
30
|
+
export interface TypographyDefinition {
|
31
31
|
decoration?: string;
|
32
|
-
|
33
|
-
|
34
|
-
|
32
|
+
lg: TypographyTypeBreakPoint;
|
33
|
+
md?: TypographyTypeBreakPoint;
|
34
|
+
sm?: TypographyTypeBreakPoint;
|
35
35
|
}
|
36
36
|
export interface TypographyTypeBreakPoint {
|
37
37
|
weight: number;
|
@@ -48,7 +48,7 @@ export interface ThemedTypographyValue {
|
|
48
48
|
type: TypographyType;
|
49
49
|
size: TypographySize;
|
50
50
|
}
|
51
|
-
export type TypographyValue =
|
51
|
+
export type TypographyValue = TypographyDefinition | ThemedTypographyValue;
|
52
52
|
export type TypographySize = keyof typeof TypographySizes;
|
53
53
|
export declare enum TypographySizes {
|
54
54
|
xl = "xl",
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { ColorDefinition, ColorSchema, ColorSchemaType, ColorSchemaTypes, ColorType, ColorTypes } from "./ThemeDefinitionV2";
|
2
|
-
import {
|
2
|
+
import { Blueprints, BlueprintType } from "./Blueprints";
|
3
3
|
export declare function useThemeMethods(getThemeDefinition: () => any): {
|
4
4
|
colorSchema: (colorSchemaType: ColorSchemaTypes | ColorSchemaType) => ColorSchema;
|
5
|
-
bluePrintbyType: <TType extends
|
5
|
+
bluePrintbyType: <TType extends Blueprints>(type: BlueprintType) => TType;
|
6
6
|
color: (colorSchemaType: ColorSchemaTypes | ColorSchemaType, colorType: ColorTypes | ColorType) => string;
|
7
7
|
colorDefinition: (colorSchemaType: ColorSchemaTypes | ColorSchemaType, colorType: ColorTypes | ColorType) => ColorDefinition;
|
8
8
|
complementaryColorType: (colorType: ColorTypes | ColorType) => ColorTypes;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
export * from "./ThemeDefinitionV2";
|
2
|
-
export * from "./
|
2
|
+
export * from "./Typography";
|
3
3
|
export * from "./UseThemeMethods";
|
4
|
-
export * from "./
|
5
|
-
export * from "./SpacingSetting";
|
4
|
+
export * from "./Spacing";
|
6
5
|
export * from "./SharedBlueprintMethods";
|
7
6
|
export * from "./SharedColorMethods";
|
8
|
-
export * from "./
|
7
|
+
export * from "./Chrome";
|
8
|
+
export * from "./Blueprints";
|
@@ -2,11 +2,11 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const tslib_1 = require("tslib");
|
4
4
|
tslib_1.__exportStar(require("./ThemeDefinitionV2"), exports);
|
5
|
-
tslib_1.__exportStar(require("./
|
5
|
+
tslib_1.__exportStar(require("./Typography"), exports);
|
6
6
|
//export * from "./OmniaThemes";
|
7
7
|
tslib_1.__exportStar(require("./UseThemeMethods"), exports);
|
8
|
-
tslib_1.__exportStar(require("./
|
9
|
-
tslib_1.__exportStar(require("./SpacingSetting"), exports);
|
8
|
+
tslib_1.__exportStar(require("./Spacing"), exports);
|
10
9
|
tslib_1.__exportStar(require("./SharedBlueprintMethods"), exports);
|
11
10
|
tslib_1.__exportStar(require("./SharedColorMethods"), exports);
|
12
|
-
tslib_1.__exportStar(require("./
|
11
|
+
tslib_1.__exportStar(require("./Chrome"), exports);
|
12
|
+
tslib_1.__exportStar(require("./Blueprints"), exports);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { DynamicState } from "../DynamicState";
|
2
|
-
import { VelcronEvent, VelcronOnEditModeEvent, VelcronOnLoadEvent } from "./VelcronEvents";
|
2
|
+
import { VelcronEvent, VelcronOnEditModeEvent, VelcronOnLoadEvent, VelcronOnSaveEvent } from "./VelcronEvents";
|
3
3
|
/**
|
4
4
|
* Velcron definition base
|
5
5
|
*/
|
@@ -73,7 +73,7 @@ export interface VelcronAppDefinition<TState extends DynamicState = DynamicState
|
|
73
73
|
version?: string;
|
74
74
|
name?: string;
|
75
75
|
body?: Array<VelcronDefinition>;
|
76
|
-
events?: VelcronOnLoadEvent & VelcronOnEditModeEvent;
|
76
|
+
events?: VelcronOnLoadEvent & VelcronOnEditModeEvent & VelcronOnSaveEvent;
|
77
77
|
actions?: {
|
78
78
|
[name: string]: Array<string>;
|
79
79
|
};
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { GuidValue } from "../Guid";
|
2
|
+
import { StronglyTypedId } from "../StronglyTypedId";
|
3
|
+
import { VelcronAppDefinition } from "./VelcronDefinition";
|
4
|
+
export type VelcronRendererId = StronglyTypedId<string, "VelcronRendererId">;
|
5
|
+
export declare function VelcronRendererId(id: GuidValue): VelcronRendererId;
|
6
|
+
export interface VelcronRendererResolverReference {
|
7
|
+
id: VelcronRendererId;
|
8
|
+
resolver: string;
|
9
|
+
version: string;
|
10
|
+
}
|
11
|
+
export interface VelcronRendererReference {
|
12
|
+
id: VelcronRendererId;
|
13
|
+
version: string;
|
14
|
+
}
|
15
|
+
export interface VelcronRendererWithJson extends VelcronRendererReference {
|
16
|
+
definition: string;
|
17
|
+
}
|
18
|
+
export interface VelcronRenderer extends VelcronRendererReference {
|
19
|
+
definition: VelcronAppDefinition;
|
20
|
+
}
|
@@ -3,3 +3,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
4
4
|
tslib_1.__exportStar(require("./VelcronDefinition"), exports);
|
5
5
|
tslib_1.__exportStar(require("./VelcronEvents"), exports);
|
6
|
+
tslib_1.__exportStar(require("./VelcronReference"), exports);
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { VelcronOnUpdatedEvent, VelcronOnClosedEvent, VelcronOnCloseRequestedEvent, VelcronOnPressEvent, VelcronSpacing, VelcronStyling, VelcronCustomComponentDefinition, VelcronAppDefinition } from "internal/fx/shared/models";
|
1
|
+
import { VelcronOnUpdatedEvent, VelcronOnClosedEvent, VelcronOnCloseRequestedEvent, VelcronOnPressEvent, VelcronSpacing, VelcronStyling, VelcronCustomComponentDefinition, VelcronAppDefinition, VelcronRendererResolverReference } from "internal/fx/shared/models";
|
2
2
|
import { VelcroncomponentArrayType, VelcronPrimitiveType } from "./VelcronTypes";
|
3
3
|
import { AssignOperators, VelcronHorizontalAlignments, VelcronIconTypes, VelcronActionTypes, VelcronVerticalAlignments } from "./Enums";
|
4
|
-
import {
|
4
|
+
import { DynamicState, VelcronDefinition, useVelcronThemingStore } from "..";
|
5
5
|
import { GuidValue, PropertyConfiguration, PropertyValue, PropertyDefinition, PropertySetupBase } from "@omnia/fx/models";
|
6
6
|
import { useVelcronColorSchemaStore } from "../stores/VelcronColorSchema";
|
7
7
|
export interface ResolvedComponentRenderer {
|
@@ -32,6 +32,8 @@ export interface BuiltInComponentRenderers {
|
|
32
32
|
"checkbox": unknown;
|
33
33
|
"reference": unknown;
|
34
34
|
"radio": unknown;
|
35
|
+
"rive": unknown;
|
36
|
+
"lottie": unknown;
|
35
37
|
}
|
36
38
|
export interface ColorSchemaReference {
|
37
39
|
name: string;
|
@@ -74,7 +76,6 @@ export interface VelcronRenderContextHooks {
|
|
74
76
|
onItemSelected?: ((item: VelcronDefinition) => void);
|
75
77
|
onItemRendered?: ((item: VelcronDefinition) => OnItemRenderedHookResult);
|
76
78
|
onItemCreatedProps?: ((item: VelcronDefinition) => object);
|
77
|
-
onLoadReference?: ((reference: ActivityRendererReference) => Promise<VelcronDefinition>);
|
78
79
|
}
|
79
80
|
export interface VelcronContainerRenderer {
|
80
81
|
definition: VelcronDefinition;
|
@@ -178,7 +179,7 @@ export declare enum VelcronImageRatios {
|
|
178
179
|
square = "square",
|
179
180
|
landscape = "landscape"
|
180
181
|
}
|
181
|
-
export interface VelcronImageDefinition extends
|
182
|
+
export interface VelcronImageDefinition extends VelcronDefinitionWithEditMode {
|
182
183
|
type: "image";
|
183
184
|
url?: VelcronBindableProp<string>;
|
184
185
|
bind?: VelcronBindableProp<string>;
|
@@ -236,6 +237,24 @@ export interface VelcronMarkdownDefinition extends VelcronDefinitionWithEditMode
|
|
236
237
|
type: "markdown";
|
237
238
|
events: VelcronOnUpdatedEvent;
|
238
239
|
}
|
240
|
+
export interface VelcronRiveDefinition extends VelcronDefinition {
|
241
|
+
type: "rive";
|
242
|
+
url: VelcronBindableProp;
|
243
|
+
loop?: VelcronBindableProp<boolean>;
|
244
|
+
autoplay?: VelcronBindableProp<boolean>;
|
245
|
+
count?: VelcronBindableProp<number>;
|
246
|
+
direction?: VelcronBindableProp<"normal" | "reverse">;
|
247
|
+
hover?: VelcronBindableProp<boolean>;
|
248
|
+
}
|
249
|
+
export interface VelcronLottieDefinition extends VelcronDefinition {
|
250
|
+
type: "lottie";
|
251
|
+
url: VelcronBindableProp;
|
252
|
+
loop?: VelcronBindableProp<boolean>;
|
253
|
+
autoplay?: VelcronBindableProp<boolean>;
|
254
|
+
count?: VelcronBindableProp<number>;
|
255
|
+
direction?: VelcronBindableProp<"normal" | "reverse">;
|
256
|
+
hover?: VelcronBindableProp<boolean>;
|
257
|
+
}
|
239
258
|
export interface VelcronDimensions {
|
240
259
|
top: number | string;
|
241
260
|
right: number | string;
|
@@ -259,11 +278,12 @@ export interface VelcronSlotDefinition extends VelcronDefinition {
|
|
259
278
|
type: "slot";
|
260
279
|
bind: VelcronBindableProp<string>;
|
261
280
|
}
|
262
|
-
export interface
|
281
|
+
export interface VelcronReferenceDefinition extends VelcronDefinition {
|
263
282
|
type: "reference";
|
264
|
-
to:
|
283
|
+
to: VelcronRendererResolverReference;
|
284
|
+
state: string;
|
265
285
|
}
|
266
|
-
export interface VelcronPropertyDefinition extends
|
286
|
+
export interface VelcronPropertyDefinition extends VelcronDefinitionWithEditMode {
|
267
287
|
type: "property";
|
268
288
|
bind: VelcronBindableProp<string>;
|
269
289
|
}
|
package/media-picker/index.d.ts
CHANGED
package/media-picker/index.js
CHANGED
@@ -16,3 +16,4 @@ tslib_1.__exportStar(require("./SharePointVideoResult"), exports);
|
|
16
16
|
tslib_1.__exportStar(require("./MediaPickerSearchProvider"), exports);
|
17
17
|
tslib_1.__exportStar(require("./localize"), exports);
|
18
18
|
tslib_1.__exportStar(require("./MediaPickerProvider"), exports);
|
19
|
+
tslib_1.__exportStar(require("./interfaces"), exports);
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { MediaPickerTransformation } from "../MediaPickerTransformations";
|
2
|
+
/**
|
3
|
+
* Interface for image transform handlers
|
4
|
+
* Each handler must implement this interface
|
5
|
+
*/
|
6
|
+
export interface IImageTransformHandler {
|
7
|
+
/**
|
8
|
+
* @param options parameters needed for the transformation
|
9
|
+
*/
|
10
|
+
transform(options: MediaPickerTransformation): Promise<void>;
|
11
|
+
/**
|
12
|
+
* Update the transformation data in the store
|
13
|
+
* @param options parameters needed for the transformation
|
14
|
+
*/
|
15
|
+
updateTransformationData(options: MediaPickerTransformation): Promise<void>;
|
16
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { MediaState } from "./types";
|
2
|
+
/**
|
3
|
+
* @description interface for the gallery handler
|
4
|
+
*/
|
5
|
+
export interface IMediaPickerGalleryHandler {
|
6
|
+
/**
|
7
|
+
* @description the handler for when a media is selected, which handles the way the media is updated/transformed
|
8
|
+
*/
|
9
|
+
onSelectMedia: (index: number, media: MediaState) => void;
|
10
|
+
}
|