@omnia/fx-models 8.0.149-dev → 8.0.151-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/Contexts.d.ts CHANGED
@@ -92,7 +92,6 @@ export interface JourneyBladeRouter<T extends {
92
92
  export interface AdminRoute extends TokenBasedRoute {
93
93
  manifestId: GuidValue;
94
94
  relativePath: string;
95
- blades?: JourneyBladeRouter[];
96
95
  }
97
96
  export interface BusinessProfileRoute extends TokenBasedRoute {
98
97
  profileId: GuidValue;
@@ -2,4 +2,5 @@ export interface TenantContact {
2
2
  mainContacts: Array<string>;
3
3
  securityContacts: Array<string>;
4
4
  deploymentContacts: Array<string>;
5
+ userSyncContacts: Array<string>;
5
6
  }
@@ -1,6 +1,6 @@
1
1
  export declare class Future<T> extends Promise<T> {
2
2
  resolve: (value: T) => void;
3
- reject: (reason: any) => void;
3
+ reject: (reason?: any) => void;
4
4
  resolving: boolean;
5
5
  private _resolved;
6
6
  private _rejected;
@@ -52,6 +52,8 @@ export declare class Future<T> extends Promise<T> {
52
52
  * @returns {Future<TReturnValue>} - A new instance of the Future class.
53
53
  */
54
54
  static new<TReturnValue>(): Future<TReturnValue>;
55
+ static res<T>(value?: T): Future<T>;
56
+ static err<T>(reason?: any): Future<T>;
55
57
  }
56
58
  export declare class ResponsePromise<T> extends Promise<T> {
57
59
  cancelCb: (() => void);
@@ -51,7 +51,11 @@ class Future extends Promise {
51
51
  resolve({ success: data, error: undefined });
52
52
  }
53
53
  catch (error) {
54
- resolve({ success: undefined, error });
54
+ let val = error;
55
+ if (!error) {
56
+ val = new Error("Error was not provided to the reject method.");
57
+ }
58
+ resolve({ success: undefined, error: val });
55
59
  }
56
60
  });
57
61
  }
@@ -118,6 +122,16 @@ class Future extends Promise {
118
122
  static new() {
119
123
  return new Future(() => { });
120
124
  }
125
+ static res(value) {
126
+ const future = Future.new();
127
+ future.resolve(value);
128
+ return future;
129
+ }
130
+ static err(reason) {
131
+ const future = Future.new();
132
+ future.reject(reason);
133
+ return future;
134
+ }
121
135
  }
122
136
  exports.Future = Future;
123
137
  // Future.prototype["promise_then"] = Promise.prototype.then;
@@ -64,6 +64,7 @@ export interface VelcronRenderContext {
64
64
  eventHandlers?: VelcronRenderContextEventHandlersInstance;
65
65
  editMode?: boolean;
66
66
  disposers: Array<() => void>;
67
+ subApp?: boolean;
67
68
  }
68
69
  export interface VelcronRenderContextEventHandlers {
69
70
  receiving?: {
@@ -82,7 +83,8 @@ export interface VelcronRenderContextEventHandlersInstance extends VelcronRender
82
83
  export interface VelcronRenderContextHooks {
83
84
  dialogVisibilityChanged?: ((visible: boolean) => void);
84
85
  onItemSelected?: ((item: VelcronDefinition) => void);
85
- wrapperStyleExtensions?: ((item: VelcronDefinition) => string);
86
+ wrapperStyleExtensions?: ((item: VelcronDefinition, renderContext: VelcronRenderContext) => string);
87
+ renderExtensions?: <TNodeType>(item: VelcronDefinition) => TNodeType;
86
88
  appStyleExtension?: (() => string);
87
89
  onItemCreatedProps?: ((item: VelcronDefinition) => object);
88
90
  }
@@ -14,6 +14,7 @@ export interface BuiltInPropertyEditors {
14
14
  typography: unknown;
15
15
  spacing: unknown;
16
16
  "color-schema-type": unknown;
17
+ reference: unknown;
17
18
  }
18
19
  export declare enum BuiltInPropertyEditorTypes {
19
20
  text = "text",
@@ -82,6 +83,9 @@ export interface VelcronImagePropertyEditor extends VelcronPropertyEditor<any> {
82
83
  export interface VelcronSpacingPropertyEditor extends VelcronPropertyEditor<VelcronSpacingEditorSettings> {
83
84
  type: "spacing";
84
85
  }
86
+ export interface VelcronReferencePropertyEditor extends VelcronPropertyEditor<any> {
87
+ type: "reference";
88
+ }
85
89
  export interface VelcronState {
86
90
  images?: VelcronImagesState;
87
91
  styling?: VelcronStylingState;
@@ -70,6 +70,11 @@ export type ODialogTypes = typeof ODialogTypeDefinitions[number];
70
70
  export declare const ODialogTypesName = "ODialogTypes";
71
71
  export declare const ODialogSizeDefinitions: readonly ["x-small", "small", "medium", "large", "full"];
72
72
  export type ODialogSizes = typeof ODialogSizeDefinitions[number];
73
+ export type ODialogButtonInstance = {
74
+ loading: boolean;
75
+ disabled: boolean;
76
+ };
77
+ export type ODialogBuiltinButtons = Extract<OOxideButtonPresets, "ok" | "cancel" | "save" | "retry">;
73
78
  /** Divider */
74
79
  export declare const OPageDividerTypeDefinitions: readonly ["default", "prominent", "label"];
75
80
  export type OPageDividerTypes = typeof OPageDividerTypeDefinitions[number];
@@ -7,4 +7,5 @@ export interface TreeViewItem<TValue = any> {
7
7
  active?: boolean;
8
8
  expanded?: boolean;
9
9
  children?: TreeViewItem[];
10
+ parent?: TreeViewItem;
10
11
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.149-dev",
4
+ "version": "8.0.151-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -6,4 +6,5 @@ export interface VelcronDefinitionRegistration<TDefinitionState extends DynamicS
6
6
  title: string;
7
7
  previewTheme?: ThemeDefinitionV2;
8
8
  category: VelcronDefitinionRegistrationsTypes;
9
+ builtIn?: boolean;
9
10
  }