@omnia/fx 8.0.96-vnext → 8.0.97-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.
@@ -46,6 +46,7 @@ export declare const builtInDocumentationCategories: {
46
46
  };
47
47
  export declare const velcronDocumentationCategories: {
48
48
  gettingStarted: DocumentationCategory;
49
+ actions: DocumentationCategory;
49
50
  components: DocumentationCategory;
50
51
  };
51
52
  export interface ComponentSpecRegistration {
@@ -49,7 +49,7 @@ export declare const useJourneyStore: (newInstanceWithName?: string) => {
49
49
  getBladeApis: (bladeId: GuidValue) => {
50
50
  moveNext(): void;
51
51
  movePrev(): void;
52
- travelTo(toBladeId: string): void;
52
+ travelTo(toBladeId: GuidValue): void;
53
53
  createObservableValueToSave<T_1>(value: T_1): {
54
54
  value: T_1;
55
55
  setValue: (value: T_1) => void;
@@ -8,6 +8,7 @@ import "monaco-editor/esm/vs/editor/contrib/comment/browser/comment.js";
8
8
  import "monaco-editor/esm/vs/editor/contrib/contextmenu/browser/contextmenu.js";
9
9
  import "monaco-editor/esm/vs/editor/contrib/suggest/browser/suggestController.js";
10
10
  import "monaco-editor/esm/vs/editor/standalone/browser/accessibilityHelp/accessibilityHelp.js";
11
+ import "monaco-editor/esm/vs/language/json/monaco.contribution";
11
12
  import "monaco-editor/esm/vs/basic-languages/javascript/javascript.contribution";
12
13
  import "monaco-editor/esm/vs/basic-languages/javascript/javascript";
13
14
  import "monaco-editor/esm/vs/basic-languages/html/html.contribution";
@@ -0,0 +1,3 @@
1
+ import { IActionHandler } from "./IActionHandler";
2
+ export declare const dateFormat: IActionHandler;
3
+ export declare const dateCountDown: IActionHandler;
@@ -2,4 +2,5 @@ import { VelcronActionWithAutoAwait } from "../models";
2
2
  export interface IActionHandler {
3
3
  name: string;
4
4
  action: (action: VelcronActionWithAutoAwait, ...parameters: any) => Promise<unknown>;
5
+ dispose?: (action: VelcronActionWithAutoAwait) => () => void;
5
6
  }
@@ -0,0 +1,4 @@
1
+ import { IActionHandler } from "./IActionHandler";
2
+ export declare const timerCreate: IActionHandler;
3
+ export declare const timerStart: IActionHandler;
4
+ export declare const timerStop: IActionHandler;
@@ -9,3 +9,5 @@ export * from "./Log";
9
9
  export * from "./MsGraph";
10
10
  export * from "./MsSharePoint";
11
11
  export * from "./Emit";
12
+ export * from "./Timer";
13
+ export * from "./Date";
@@ -44,19 +44,20 @@ export interface VelcronRenderContext {
44
44
  colors?: ReturnType<typeof useVelcronColorSchemaStore>;
45
45
  blueprints?: ReturnType<typeof useVelcronBlueprintStore>;
46
46
  actions?: {
47
- [name: string]: [];
47
+ [name: string]: Array<string>;
48
48
  };
49
49
  components?: Array<VelcronCustomComponentDefinition>;
50
50
  properties?: {
51
51
  [name: string]: VelcronPrimitiveType | VelcroncomponentArrayType;
52
52
  };
53
53
  computed?: {
54
- [name: string]: [];
54
+ [name: string]: Array<string>;
55
55
  };
56
56
  parent?: VelcronRenderContext;
57
57
  hooks?: VelcronRenderContextHooks;
58
58
  eventHandlers?: VelcronRenderContextEventHandlers;
59
59
  editMode?: boolean;
60
+ disposers: Array<() => void>;
60
61
  }
61
62
  export interface VelcronRenderContextEventHandlers {
62
63
  receiving?: {
@@ -172,13 +173,13 @@ export interface VelcronAppDefinition<TState extends DynamicState = DynamicState
172
173
  body?: Array<VelcronDefinition>;
173
174
  events?: VelcronOnLoadEvent & VelcronOnEditModeEvent;
174
175
  actions?: {
175
- [name: string]: [];
176
+ [name: string]: Array<string>;
176
177
  };
177
178
  components?: Array<VelcronCustomComponentDefinition>;
178
179
  propEditors?: Array<VelcronPropertyEditor>;
179
180
  state?: TState;
180
181
  computed?: {
181
- [name: string]: [];
182
+ [name: string]: Array<string>;
182
183
  };
183
184
  }
184
185
  export interface VelcronComponentDefinition extends VelcronDefinition {
@@ -7,7 +7,7 @@ export declare class VelcronActions {
7
7
  static registerAction(name: string, handler: IActionHandler): void;
8
8
  static parseAndExecuteActions(templates: Array<string>, renderContext: VelcronRenderContext, customActionContext?: VelcronCustomActionExecutionContext): void;
9
9
  static parseFunction(target: {
10
- [name: string]: [];
10
+ [name: string]: Array<string>;
11
11
  }, template: string, renderContext: VelcronRenderContext, params: Array<VelcronActionParameterValue>, foundCb: (name: string, params: {}) => void): void;
12
12
  static getActionFromTemplate(partialTemplate: string, eventId: string, renderContext: VelcronRenderContext, customActionContext?: VelcronCustomActionExecutionContext): VelcronAction;
13
13
  static valueIsAction(value: string): boolean;
@@ -1,3 +1,4 @@
1
+ import { VelcronAppDefinition } from "@omnia/fx-models";
1
2
  import { EventSpec, PropertySpec } from "@omnia/fx/ux";
2
3
  export declare const docDataTypes: {
3
4
  string: string;
@@ -24,3 +25,6 @@ export declare const velcronSpacingMapping: {
24
25
  export declare function printEnum(obj: any): string;
25
26
  export declare function printObject(obj: any): string;
26
27
  export declare function evalsBooleanProp(name: string, description: string): PropertySpec;
28
+ export declare function renderVelcronInMarkdown(def: VelcronAppDefinition): string;
29
+ export declare function renderCodeInMarkdown(def: any): string;
30
+ export declare function renderVelcronExample(def: VelcronAppDefinition): string;
@@ -0,0 +1,3 @@
1
+ export * from "./Introduction";
2
+ export * from "./Timer";
3
+ export * from "./Date";
@@ -1,3 +1,4 @@
1
1
  export * from "./components";
2
2
  export * from "./Introduction";
3
3
  export * from "./State";
4
+ export * from "./actions";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx",
3
3
  "license": "MIT",
4
- "version": "8.0.96-vnext",
4
+ "version": "8.0.97-vnext",
5
5
  "description": "Provide Omnia Fx typings and tooling for clientside Omnia development.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "author": "Precio Fishbone",
22
22
  "dependencies": {
23
- "@omnia/fx-models": "8.0.96-vnext",
23
+ "@omnia/fx-models": "8.0.97-vnext",
24
24
  "@microsoft/signalr": "6.0.1",
25
25
  "broadcast-channel": "4.8.0",
26
26
  "dayjs": "1.10.7",