@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.
Files changed (87) hide show
  1. package/BlockTitleSettings.d.ts +2 -2
  2. package/Constants.d.ts +1 -0
  3. package/Constants.js +1 -0
  4. package/FilterEngineStyles.d.ts +2 -2
  5. package/Http.d.ts +1 -23
  6. package/Http.js +6 -7
  7. package/Layout.d.ts +13 -13
  8. package/ManifestIds.d.ts +2 -1
  9. package/ManifestIds.js +5 -2
  10. package/PropertiesBlockStyles.d.ts +2 -2
  11. package/ShapeDividerSettingsModel.d.ts +2 -2
  12. package/apps/AppInstanceRollup.d.ts +3 -3
  13. package/enterprise-properties/EnterprisePropertySettings.d.ts +3 -3
  14. package/internal-do-not-import-from-here/shared/models/HttpCommon.d.ts +14 -0
  15. package/internal-do-not-import-from-here/shared/models/HttpCommon.js +7 -0
  16. package/internal-do-not-import-from-here/shared/models/OmniaSharedBootstrapData.d.ts +2 -1
  17. package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.d.ts +14 -6
  18. package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.js +7 -1
  19. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityFeed.d.ts +10 -9
  20. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.d.ts +16 -0
  21. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySubscription.js +5 -0
  22. package/internal-do-not-import-from-here/shared/models/hub/activities/ActorActivity.d.ts +40 -0
  23. package/internal-do-not-import-from-here/shared/models/hub/activities/ActorActivity.js +17 -0
  24. package/internal-do-not-import-from-here/shared/models/hub/activities/index.d.ts +2 -2
  25. package/internal-do-not-import-from-here/shared/models/hub/activities/index.js +2 -2
  26. package/internal-do-not-import-from-here/shared/models/hub/actors/Actor.d.ts +21 -0
  27. package/internal-do-not-import-from-here/shared/models/hub/actors/Actor.js +10 -0
  28. package/internal-do-not-import-from-here/shared/models/hub/actors/ExternalActorId.d.ts +2 -0
  29. package/internal-do-not-import-from-here/shared/models/hub/actors/index.d.ts +2 -0
  30. package/internal-do-not-import-from-here/shared/models/hub/actors/index.js +5 -0
  31. package/internal-do-not-import-from-here/shared/models/hub/index.d.ts +3 -1
  32. package/internal-do-not-import-from-here/shared/models/hub/index.js +3 -1
  33. package/internal-do-not-import-from-here/shared/models/hub/social/HubComment.d.ts +3 -3
  34. package/internal-do-not-import-from-here/shared/models/hub/social/HubReaction.d.ts +2 -2
  35. package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.d.ts +10 -0
  36. package/internal-do-not-import-from-here/shared/models/hub/targeting/ExternalIdentityProperty.js +19 -0
  37. package/internal-do-not-import-from-here/shared/models/hub/targeting/HubSource.d.ts +3 -0
  38. package/internal-do-not-import-from-here/shared/models/hub/targeting/HubSource.js +7 -0
  39. package/internal-do-not-import-from-here/shared/models/hub/targeting/index.d.ts +1 -0
  40. package/internal-do-not-import-from-here/shared/models/hub/targeting/index.js +4 -0
  41. package/internal-do-not-import-from-here/shared/models/theming/Blueprints.d.ts +122 -0
  42. package/internal-do-not-import-from-here/shared/models/theming/{ChromeDefinition.d.ts → Chrome.d.ts} +6 -6
  43. package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.d.ts +1 -1
  44. package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.js +6 -6
  45. package/internal-do-not-import-from-here/shared/models/theming/Spacing.d.ts +22 -0
  46. package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +4 -4
  47. package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.js +1 -0
  48. package/internal-do-not-import-from-here/shared/models/theming/{TypographyDefinition.d.ts → Typography.d.ts} +19 -19
  49. package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.d.ts +2 -2
  50. package/internal-do-not-import-from-here/shared/models/theming/index.d.ts +4 -4
  51. package/internal-do-not-import-from-here/shared/models/theming/index.js +4 -4
  52. package/internal-do-not-import-from-here/shared/models/velcron/VelcronDefinition.d.ts +2 -2
  53. package/internal-do-not-import-from-here/shared/models/velcron/VelcronEvents.d.ts +3 -0
  54. package/internal-do-not-import-from-here/shared/models/velcron/VelcronReference.d.ts +20 -0
  55. package/internal-do-not-import-from-here/shared/models/velcron/VelcronReference.js +5 -0
  56. package/internal-do-not-import-from-here/shared/models/velcron/index.d.ts +1 -0
  57. package/internal-do-not-import-from-here/shared/models/velcron/index.js +1 -0
  58. package/internal-do-not-import-from-here/velcron/core/models/VelcronDefinitions.d.ts +27 -7
  59. package/media-picker/MediaPickerTransformations.d.ts +1 -0
  60. package/media-picker/index.d.ts +1 -0
  61. package/media-picker/index.js +1 -0
  62. package/media-picker/interfaces/IImageTransformHandler.d.ts +16 -0
  63. package/media-picker/interfaces/IImageTransformHandler.js +2 -0
  64. package/media-picker/interfaces/IMediaPickerGalleryHandler.d.ts +10 -0
  65. package/media-picker/interfaces/IMediaPickerGalleryHandler.js +2 -0
  66. package/media-picker/interfaces/IMediaPickerProviderMediaHandler.d.ts +58 -0
  67. package/media-picker/interfaces/IMediaPickerProviderMediaHandler.js +2 -0
  68. package/media-picker/interfaces/index.d.ts +4 -0
  69. package/media-picker/interfaces/index.js +7 -0
  70. package/media-picker/interfaces/types.d.ts +55 -0
  71. package/media-picker/interfaces/types.js +2 -0
  72. package/oxide/SharedSettings.d.ts +6 -0
  73. package/package.json +1 -1
  74. package/properties/definitions/IdentityPropertyDefinition.d.ts +3 -1
  75. package/properties/definitions/IdentityPropertyDefinition.js +2 -2
  76. package/internal-do-not-import-from-here/shared/models/hub/ExternalIdentityId.d.ts +0 -2
  77. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySender.d.ts +0 -15
  78. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySender.js +0 -5
  79. package/internal-do-not-import-from-here/shared/models/hub/activities/IdentityActivity.d.ts +0 -40
  80. package/internal-do-not-import-from-here/shared/models/hub/activities/IdentityActivity.js +0 -39
  81. package/internal-do-not-import-from-here/shared/models/theming/ComponentDefinitions.d.ts +0 -93
  82. package/internal-do-not-import-from-here/shared/models/theming/SpacingSetting.d.ts +0 -30
  83. /package/internal-do-not-import-from-here/shared/models/hub/{ExternalIdentityId.js → actors/ExternalActorId.js} +0 -0
  84. /package/internal-do-not-import-from-here/shared/models/theming/{ComponentDefinitions.js → Blueprints.js} +0 -0
  85. /package/internal-do-not-import-from-here/shared/models/theming/{ChromeDefinition.js → Chrome.js} +0 -0
  86. /package/internal-do-not-import-from-here/shared/models/theming/{SpacingSetting.js → Spacing.js} +0 -0
  87. /package/internal-do-not-import-from-here/shared/models/theming/{TypographyDefinition.js → Typography.js} +0 -0
@@ -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
+ }
@@ -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,3 @@
1
+ export declare class HubSource {
2
+ static Id: string;
3
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HubSource = void 0;
4
+ class HubSource {
5
+ }
6
+ exports.HubSource = HubSource;
7
+ HubSource.Id = "eb4fde5f-4f3e-4c70-9893-3d9e048fda0c";
@@ -0,0 +1 @@
1
+ export * from "./ExternalIdentityProperty";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./ExternalIdentityProperty"), exports);
@@ -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
+ }
@@ -1,16 +1,16 @@
1
1
  import { GuidValue } from "../Guid";
2
2
  import { VelcronAppDefinition } from "../velcron";
3
- import { SpacingSettings } from "./SpacingSetting";
4
- import { BackgroundDefinition } from "./ThemeDefinitionV2";
5
- export interface ChromeDefinition {
6
- id: GuidValue;
7
- name: string;
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?: SpacingSettings;
14
+ spacing?: Spacing;
15
15
  };
16
16
  }
@@ -1,2 +1,2 @@
1
- import { SpacingDefinition } from "./SpacingSetting";
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 SpacingSetting_1 = require("./SpacingSetting");
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 === SpacingSetting_1.SpacingTypes.xs) {
17
+ if (spacingValue === Spacing_1.SpacingTypes.xs) {
18
18
  result = definition.xs;
19
19
  }
20
- else if (spacingValue === SpacingSetting_1.SpacingTypes.s) {
20
+ else if (spacingValue === Spacing_1.SpacingTypes.s) {
21
21
  result = definition.s;
22
22
  }
23
- else if (spacingValue === SpacingSetting_1.SpacingTypes.m) {
23
+ else if (spacingValue === Spacing_1.SpacingTypes.m) {
24
24
  result = definition.m;
25
25
  }
26
- else if (spacingValue === SpacingSetting_1.SpacingTypes.l) {
26
+ else if (spacingValue === Spacing_1.SpacingTypes.l) {
27
27
  result = definition.l;
28
28
  }
29
- else if (spacingValue === SpacingSetting_1.SpacingTypes.xl) {
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 { BlueprintDefinition, BoxDimensions } from "./ComponentDefinitions";
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: BlueprintDefinition[];
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 TypographyDefinition {
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: TypographyTypeDefinition;
11
- l: TypographyTypeDefinition;
12
- m: TypographyTypeDefinition;
13
- s: TypographyTypeDefinition;
14
- xs: TypographyTypeDefinition;
10
+ xl: TypographyDefinition;
11
+ l: TypographyDefinition;
12
+ m: TypographyDefinition;
13
+ s: TypographyDefinition;
14
+ xs: TypographyDefinition;
15
15
  };
16
16
  text: {
17
- l: TypographyTypeDefinition;
18
- m: TypographyTypeDefinition;
19
- s: TypographyTypeDefinition;
20
- xs: TypographyTypeDefinition;
17
+ l: TypographyDefinition;
18
+ m: TypographyDefinition;
19
+ s: TypographyDefinition;
20
+ xs: TypographyDefinition;
21
21
  };
22
22
  navigation: {
23
- l: TypographyTypeDefinition;
24
- m: TypographyTypeDefinition;
23
+ l: TypographyDefinition;
24
+ m: TypographyDefinition;
25
25
  };
26
26
  link: {
27
- m: TypographyTypeDefinition;
27
+ m: TypographyDefinition;
28
28
  };
29
29
  }
30
- export interface TypographyTypeDefinition {
30
+ export interface TypographyDefinition {
31
31
  decoration?: string;
32
- large: TypographyTypeBreakPoint;
33
- medium?: TypographyTypeBreakPoint;
34
- small?: TypographyTypeBreakPoint;
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 = string | ThemedTypographyValue;
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 { BlueprintDefinition, BlueprintType } from "./ComponentDefinitions";
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 BlueprintDefinition>(type: BlueprintType) => TType;
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 "./TypographyDefinition";
2
+ export * from "./Typography";
3
3
  export * from "./UseThemeMethods";
4
- export * from "./ComponentDefinitions";
5
- export * from "./SpacingSetting";
4
+ export * from "./Spacing";
6
5
  export * from "./SharedBlueprintMethods";
7
6
  export * from "./SharedColorMethods";
8
- export * from "./ChromeDefinition";
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("./TypographyDefinition"), exports);
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("./ComponentDefinitions"), exports);
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("./ChromeDefinition"), exports);
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
  };
@@ -4,6 +4,9 @@ export type VelcronOnPressEvent = {
4
4
  export type VelcronOnLoadEvent = {
5
5
  onLoaded?: Array<string>;
6
6
  };
7
+ export type VelcronOnSaveEvent = {
8
+ onSaved?: Array<string>;
9
+ };
7
10
  export type VelcronOnEditModeEvent = {
8
11
  onEditMode?: Array<string>;
9
12
  };
@@ -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
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VelcronRendererId = void 0;
4
+ function VelcronRendererId(id) { return id; }
5
+ exports.VelcronRendererId = VelcronRendererId;
@@ -1,2 +1,3 @@
1
1
  export * from "./VelcronDefinition";
2
2
  export * from "./VelcronEvents";
3
+ export * from "./VelcronReference";
@@ -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 { ActivityRendererReference, DynamicState, VelcronDefinition, useVelcronThemingStore } from "..";
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 VelcronDefinition {
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 VelcronReferencefinition extends VelcronDefinition {
281
+ export interface VelcronReferenceDefinition extends VelcronDefinition {
263
282
  type: "reference";
264
- to: ActivityRendererReference;
283
+ to: VelcronRendererResolverReference;
284
+ state: string;
265
285
  }
266
- export interface VelcronPropertyDefinition extends VelcronDefinition {
286
+ export interface VelcronPropertyDefinition extends VelcronDefinitionWithEditMode {
267
287
  type: "property";
268
288
  bind: VelcronBindableProp<string>;
269
289
  }
@@ -27,3 +27,4 @@ export interface MediaPickerFlipTransformation extends MediaPickerTransformation
27
27
  flipY: boolean;
28
28
  rotation: number;
29
29
  }
30
+ export type MediaPickerRotateTransformation = Pick<MediaPickerFlipTransformation, "rotation"> & MediaPickerTransformation;
@@ -13,3 +13,4 @@ export * from "./SharePointVideoResult";
13
13
  export * from "./MediaPickerSearchProvider";
14
14
  export * from "./localize";
15
15
  export * from "./MediaPickerProvider";
16
+ export * from "./interfaces";
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });