@omnia/fx 8.0.287-dev → 8.0.288-dev

Sign up to get free protection for your applications and to get access to all the features.
@@ -33,7 +33,7 @@ export declare function useEditorCommands(state: {
33
33
  isBeforeContent: (range: Range, container: HTMLElement) => boolean;
34
34
  };
35
35
  actions: {
36
- setSelection: () => void;
36
+ captureSelection: () => void;
37
37
  };
38
38
  formatting: {
39
39
  add: (element: HTMLElement) => void;
@@ -0,0 +1,2 @@
1
+ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{}>) => any;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<{}>) => any;
2
+ export default _default;
@@ -15,6 +15,7 @@ export declare const useFlowEditorStore: () => {
15
15
  id: string;
16
16
  pluginContext: FlowEditorPluginContext;
17
17
  selectedRange: Range;
18
+ storedRange: Range;
18
19
  showPlaceHolder: boolean;
19
20
  definitionSelector: {
20
21
  show: boolean;
@@ -35,6 +36,7 @@ export declare const useFlowEditorStore: () => {
35
36
  onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
36
37
  onMutatedPluginContext: import("@omnia/fx").MessageBusExposeOnlySubscription<FlowEditorPluginContext>;
37
38
  onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
39
+ onMutatedStoredRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
38
40
  onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
39
41
  onMutatedDefinitionSelector: import("@omnia/fx").MessageBusExposeOnlySubscription<{
40
42
  show: boolean;
@@ -82,9 +84,10 @@ export declare const useFlowEditorStore: () => {
82
84
  };
83
85
  selection: {
84
86
  subscribe(fn: (result: {
85
- ensure: {
86
- storedRange: () => void;
87
- };
87
+ capture: () => void;
88
+ store: () => void;
89
+ revertToStored: () => void;
90
+ ensure: () => void;
88
91
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
89
92
  };
90
93
  plugin: {
@@ -164,7 +167,7 @@ export declare const useFlowEditorStore: () => {
164
167
  isBeforeContent: (range: Range, container: HTMLElement) => boolean;
165
168
  };
166
169
  actions: {
167
- setSelection: () => void;
170
+ captureSelection: () => void;
168
171
  };
169
172
  formatting: {
170
173
  add: (element: HTMLElement) => void;
@@ -273,9 +276,10 @@ export declare const useFlowEditorStore: () => {
273
276
  };
274
277
  };
275
278
  selection: () => {
276
- ensure: {
277
- storedRange: () => void;
278
- };
279
+ capture: () => void;
280
+ store: () => void;
281
+ revertToStored: () => void;
282
+ ensure: () => void;
279
283
  };
280
284
  plugin: () => {
281
285
  register: {
@@ -341,7 +345,7 @@ export declare const useFlowEditorStore: () => {
341
345
  isBeforeContent: (range: Range, container: HTMLElement) => boolean;
342
346
  };
343
347
  actions: {
344
- setSelection: () => void;
348
+ captureSelection: () => void;
345
349
  };
346
350
  formatting: {
347
351
  add: (element: HTMLElement) => void;
@@ -16,6 +16,7 @@ export declare const useFlowEditorToolbarStore: () => {
16
16
  id: string;
17
17
  pluginContext: import("..").FlowEditorPluginContext;
18
18
  selectedRange: Range;
19
+ storedRange: Range;
19
20
  showPlaceHolder: boolean;
20
21
  definitionSelector: {
21
22
  show: boolean;
@@ -36,6 +37,7 @@ export declare const useFlowEditorToolbarStore: () => {
36
37
  onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
37
38
  onMutatedPluginContext: import("@omnia/fx").MessageBusExposeOnlySubscription<import("..").FlowEditorPluginContext>;
38
39
  onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
40
+ onMutatedStoredRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
39
41
  onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
40
42
  onMutatedDefinitionSelector: import("@omnia/fx").MessageBusExposeOnlySubscription<{
41
43
  show: boolean;
@@ -83,9 +85,10 @@ export declare const useFlowEditorToolbarStore: () => {
83
85
  };
84
86
  selection: {
85
87
  subscribe(fn: (result: {
86
- ensure: {
87
- storedRange: () => void;
88
- };
88
+ capture: () => void;
89
+ store: () => void;
90
+ revertToStored: () => void;
91
+ ensure: () => void;
89
92
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
90
93
  };
91
94
  plugin: {
@@ -165,7 +168,7 @@ export declare const useFlowEditorToolbarStore: () => {
165
168
  isBeforeContent: (range: Range, container: HTMLElement) => boolean;
166
169
  };
167
170
  actions: {
168
- setSelection: () => void;
171
+ captureSelection: () => void;
169
172
  };
170
173
  formatting: {
171
174
  add: (element: HTMLElement) => void;
@@ -274,9 +277,10 @@ export declare const useFlowEditorToolbarStore: () => {
274
277
  };
275
278
  };
276
279
  selection: () => {
277
- ensure: {
278
- storedRange: () => void;
279
- };
280
+ capture: () => void;
281
+ store: () => void;
282
+ revertToStored: () => void;
283
+ ensure: () => void;
280
284
  };
281
285
  plugin: () => {
282
286
  register: {
@@ -342,7 +346,7 @@ export declare const useFlowEditorToolbarStore: () => {
342
346
  isBeforeContent: (range: Range, container: HTMLElement) => boolean;
343
347
  };
344
348
  actions: {
345
- setSelection: () => void;
349
+ captureSelection: () => void;
346
350
  };
347
351
  formatting: {
348
352
  add: (element: HTMLElement) => void;
@@ -456,6 +460,7 @@ export declare const useFlowEditorToolbarStore: () => {
456
460
  id: string;
457
461
  pluginContext: import("..").FlowEditorPluginContext;
458
462
  selectedRange: Range;
463
+ storedRange: Range;
459
464
  showPlaceHolder: boolean;
460
465
  definitionSelector: {
461
466
  show: boolean;
@@ -476,6 +481,7 @@ export declare const useFlowEditorToolbarStore: () => {
476
481
  onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
477
482
  onMutatedPluginContext: import("@omnia/fx").MessageBusExposeOnlySubscription<import("..").FlowEditorPluginContext>;
478
483
  onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
484
+ onMutatedStoredRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
479
485
  onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
480
486
  onMutatedDefinitionSelector: import("@omnia/fx").MessageBusExposeOnlySubscription<{
481
487
  show: boolean;
@@ -523,9 +529,10 @@ export declare const useFlowEditorToolbarStore: () => {
523
529
  };
524
530
  selection: {
525
531
  subscribe(fn: (result: {
526
- ensure: {
527
- storedRange: () => void;
528
- };
532
+ capture: () => void;
533
+ store: () => void;
534
+ revertToStored: () => void;
535
+ ensure: () => void;
529
536
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
530
537
  };
531
538
  plugin: {
@@ -605,7 +612,7 @@ export declare const useFlowEditorToolbarStore: () => {
605
612
  isBeforeContent: (range: Range, container: HTMLElement) => boolean;
606
613
  };
607
614
  actions: {
608
- setSelection: () => void;
615
+ captureSelection: () => void;
609
616
  };
610
617
  formatting: {
611
618
  add: (element: HTMLElement) => void;
@@ -714,9 +721,10 @@ export declare const useFlowEditorToolbarStore: () => {
714
721
  };
715
722
  };
716
723
  selection: () => {
717
- ensure: {
718
- storedRange: () => void;
719
- };
724
+ capture: () => void;
725
+ store: () => void;
726
+ revertToStored: () => void;
727
+ ensure: () => void;
720
728
  };
721
729
  plugin: () => {
722
730
  register: {
@@ -782,7 +790,7 @@ export declare const useFlowEditorToolbarStore: () => {
782
790
  isBeforeContent: (range: Range, container: HTMLElement) => boolean;
783
791
  };
784
792
  actions: {
785
- setSelection: () => void;
793
+ captureSelection: () => void;
786
794
  };
787
795
  formatting: {
788
796
  add: (element: HTMLElement) => void;
@@ -907,6 +915,7 @@ export declare const useFlowEditorToolbarStore: () => {
907
915
  id: string;
908
916
  pluginContext: import("..").FlowEditorPluginContext;
909
917
  selectedRange: Range;
918
+ storedRange: Range;
910
919
  showPlaceHolder: boolean;
911
920
  definitionSelector: {
912
921
  show: boolean;
@@ -927,6 +936,7 @@ export declare const useFlowEditorToolbarStore: () => {
927
936
  onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
928
937
  onMutatedPluginContext: import("@omnia/fx").MessageBusExposeOnlySubscription<import("..").FlowEditorPluginContext>;
929
938
  onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
939
+ onMutatedStoredRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
930
940
  onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
931
941
  onMutatedDefinitionSelector: import("@omnia/fx").MessageBusExposeOnlySubscription<{
932
942
  show: boolean;
@@ -974,9 +984,10 @@ export declare const useFlowEditorToolbarStore: () => {
974
984
  };
975
985
  selection: {
976
986
  subscribe(fn: (result: {
977
- ensure: {
978
- storedRange: () => void;
979
- };
987
+ capture: () => void;
988
+ store: () => void;
989
+ revertToStored: () => void;
990
+ ensure: () => void;
980
991
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
981
992
  };
982
993
  plugin: {
@@ -1056,7 +1067,7 @@ export declare const useFlowEditorToolbarStore: () => {
1056
1067
  isBeforeContent: (range: Range, container: HTMLElement) => boolean;
1057
1068
  };
1058
1069
  actions: {
1059
- setSelection: () => void;
1070
+ captureSelection: () => void;
1060
1071
  };
1061
1072
  formatting: {
1062
1073
  add: (element: HTMLElement) => void;
@@ -1165,9 +1176,10 @@ export declare const useFlowEditorToolbarStore: () => {
1165
1176
  };
1166
1177
  };
1167
1178
  selection: () => {
1168
- ensure: {
1169
- storedRange: () => void;
1170
- };
1179
+ capture: () => void;
1180
+ store: () => void;
1181
+ revertToStored: () => void;
1182
+ ensure: () => void;
1171
1183
  };
1172
1184
  plugin: () => {
1173
1185
  register: {
@@ -1233,7 +1245,7 @@ export declare const useFlowEditorToolbarStore: () => {
1233
1245
  isBeforeContent: (range: Range, container: HTMLElement) => boolean;
1234
1246
  };
1235
1247
  actions: {
1236
- setSelection: () => void;
1248
+ captureSelection: () => void;
1237
1249
  };
1238
1250
  formatting: {
1239
1251
  add: (element: HTMLElement) => void;
@@ -1358,6 +1370,7 @@ export declare const useFlowEditorToolbarStore: () => {
1358
1370
  id: string;
1359
1371
  pluginContext: import("..").FlowEditorPluginContext;
1360
1372
  selectedRange: Range;
1373
+ storedRange: Range;
1361
1374
  showPlaceHolder: boolean;
1362
1375
  definitionSelector: {
1363
1376
  show: boolean;
@@ -1378,6 +1391,7 @@ export declare const useFlowEditorToolbarStore: () => {
1378
1391
  onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
1379
1392
  onMutatedPluginContext: import("@omnia/fx").MessageBusExposeOnlySubscription<import("..").FlowEditorPluginContext>;
1380
1393
  onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
1394
+ onMutatedStoredRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
1381
1395
  onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
1382
1396
  onMutatedDefinitionSelector: import("@omnia/fx").MessageBusExposeOnlySubscription<{
1383
1397
  show: boolean;
@@ -1425,9 +1439,10 @@ export declare const useFlowEditorToolbarStore: () => {
1425
1439
  };
1426
1440
  selection: {
1427
1441
  subscribe(fn: (result: {
1428
- ensure: {
1429
- storedRange: () => void;
1430
- };
1442
+ capture: () => void;
1443
+ store: () => void;
1444
+ revertToStored: () => void;
1445
+ ensure: () => void;
1431
1446
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1432
1447
  };
1433
1448
  plugin: {
@@ -1507,7 +1522,7 @@ export declare const useFlowEditorToolbarStore: () => {
1507
1522
  isBeforeContent: (range: Range, container: HTMLElement) => boolean;
1508
1523
  };
1509
1524
  actions: {
1510
- setSelection: () => void;
1525
+ captureSelection: () => void;
1511
1526
  };
1512
1527
  formatting: {
1513
1528
  add: (element: HTMLElement) => void;
@@ -1616,9 +1631,10 @@ export declare const useFlowEditorToolbarStore: () => {
1616
1631
  };
1617
1632
  };
1618
1633
  selection: () => {
1619
- ensure: {
1620
- storedRange: () => void;
1621
- };
1634
+ capture: () => void;
1635
+ store: () => void;
1636
+ revertToStored: () => void;
1637
+ ensure: () => void;
1622
1638
  };
1623
1639
  plugin: () => {
1624
1640
  register: {
@@ -1684,7 +1700,7 @@ export declare const useFlowEditorToolbarStore: () => {
1684
1700
  isBeforeContent: (range: Range, container: HTMLElement) => boolean;
1685
1701
  };
1686
1702
  actions: {
1687
- setSelection: () => void;
1703
+ captureSelection: () => void;
1688
1704
  };
1689
1705
  formatting: {
1690
1706
  add: (element: HTMLElement) => void;
@@ -1809,6 +1825,7 @@ export declare const useFlowEditorToolbarStore: () => {
1809
1825
  id: string;
1810
1826
  pluginContext: import("..").FlowEditorPluginContext;
1811
1827
  selectedRange: Range;
1828
+ storedRange: Range;
1812
1829
  showPlaceHolder: boolean;
1813
1830
  definitionSelector: {
1814
1831
  show: boolean;
@@ -1829,6 +1846,7 @@ export declare const useFlowEditorToolbarStore: () => {
1829
1846
  onMutatedId: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
1830
1847
  onMutatedPluginContext: import("@omnia/fx").MessageBusExposeOnlySubscription<import("..").FlowEditorPluginContext>;
1831
1848
  onMutatedSelectedRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
1849
+ onMutatedStoredRange: import("@omnia/fx").MessageBusExposeOnlySubscription<Range>;
1832
1850
  onMutatedShowPlaceHolder: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
1833
1851
  onMutatedDefinitionSelector: import("@omnia/fx").MessageBusExposeOnlySubscription<{
1834
1852
  show: boolean;
@@ -1876,9 +1894,10 @@ export declare const useFlowEditorToolbarStore: () => {
1876
1894
  };
1877
1895
  selection: {
1878
1896
  subscribe(fn: (result: {
1879
- ensure: {
1880
- storedRange: () => void;
1881
- };
1897
+ capture: () => void;
1898
+ store: () => void;
1899
+ revertToStored: () => void;
1900
+ ensure: () => void;
1882
1901
  }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1883
1902
  };
1884
1903
  plugin: {
@@ -1958,7 +1977,7 @@ export declare const useFlowEditorToolbarStore: () => {
1958
1977
  isBeforeContent: (range: Range, container: HTMLElement) => boolean;
1959
1978
  };
1960
1979
  actions: {
1961
- setSelection: () => void;
1980
+ captureSelection: () => void;
1962
1981
  };
1963
1982
  formatting: {
1964
1983
  add: (element: HTMLElement) => void;
@@ -2067,9 +2086,10 @@ export declare const useFlowEditorToolbarStore: () => {
2067
2086
  };
2068
2087
  };
2069
2088
  selection: () => {
2070
- ensure: {
2071
- storedRange: () => void;
2072
- };
2089
+ capture: () => void;
2090
+ store: () => void;
2091
+ revertToStored: () => void;
2092
+ ensure: () => void;
2073
2093
  };
2074
2094
  plugin: () => {
2075
2095
  register: {
@@ -2135,7 +2155,7 @@ export declare const useFlowEditorToolbarStore: () => {
2135
2155
  isBeforeContent: (range: Range, container: HTMLElement) => boolean;
2136
2156
  };
2137
2157
  actions: {
2138
- setSelection: () => void;
2158
+ captureSelection: () => void;
2139
2159
  };
2140
2160
  formatting: {
2141
2161
  add: (element: HTMLElement) => void;
@@ -1,4 +1,4 @@
1
- import { VelcronPropertyDefinitionValue } from "@omnia/fx-models";
1
+ import { DynamicState, VelcronPropertyDefinitionValue, VelcronRendererResolverReference } from "@omnia/fx-models";
2
2
  import { IDataSourcePropertySelection } from "../properties/models/PropertyPicker";
3
3
  export interface VelcronPropertyDefinitionValueResolver {
4
4
  source?: IDataSourcePropertySelection;
@@ -6,3 +6,10 @@ export interface VelcronPropertyDefinitionValueResolver {
6
6
  export interface VelcronPropertyEditorValue<T extends VelcronPropertyDefinitionValueResolver | VelcronPropertyDefinitionValue> {
7
7
  [key: string]: T;
8
8
  }
9
+ export interface ItemState {
10
+ reference: VelcronRendererResolverReference;
11
+ state?: DynamicState;
12
+ }
13
+ export interface ItemsState {
14
+ items: Array<ItemState>;
15
+ }
@@ -1,5 +1,5 @@
1
1
  import { BuiltInComponentRenderers, ResolvedComponentRenderer, VelcronRenderContext } from "../models";
2
- import { DynamicState, VelcronDefinition, VelcronRendererResolverReference } from "..";
2
+ import { DynamicState, VelcronDefinition, VelcronRendererResolverReference, VelcronResolverId } from "..";
3
3
  export declare class VelcronRenderers {
4
4
  private static components;
5
5
  private static referenceResolvers;
@@ -8,9 +8,9 @@ export declare class VelcronRenderers {
8
8
  static hasComponent(type: string): any;
9
9
  static registerComponents(components: BuiltInComponentRenderers): void;
10
10
  static getComponent(definition: VelcronDefinition, renderContext: VelcronRenderContext): ResolvedComponentRenderer;
11
- static registerReferenceResolver(resolverName: string, resolverFunction: (reference: VelcronRendererResolverReference) => Promise<VelcronDefinition>): void;
12
- static getReferenceResolver(resolverName: string): (reference: VelcronRendererResolverReference) => Promise<VelcronDefinition>;
13
- static hasReferenceResolver(resolverName: string): boolean;
11
+ static registerReferenceResolver(resolverId: VelcronResolverId, resolverFunction: (reference: VelcronRendererResolverReference) => Promise<VelcronDefinition>): void;
12
+ static getReferenceResolver(resolverId: VelcronResolverId): (reference: VelcronRendererResolverReference) => Promise<VelcronDefinition>;
13
+ static hasReferenceResolver(resolverId: VelcronResolverId): boolean;
14
14
  static definitionContainsCustomColorSchema(definition: VelcronDefinition): boolean;
15
15
  static createNewRendererContext(currentRenderCtx: VelcronRenderContext, definition: VelcronDefinition, newViewModel?: DynamicState): VelcronRenderContext;
16
16
  static ensureRenderContext(rendererInfo: ResolvedComponentRenderer, definition: VelcronDefinition, currentRenderCtx: VelcronRenderContext, newViewModel?: DynamicState): VelcronRenderContext;
@@ -1,5 +1,5 @@
1
1
  import { DynamicState, VelcronAppDefinition, VelcronDefinitionCategoryRegistration, VelcronDefinitionRegistration, VelcronDefinitionRegistrationWithoutApp, VelcronDefinitionRendererTypeRegistration, VelcronGridState, VelcronRendererResolverReference, guid } from "@omnia/fx-models";
2
- import { VelcronPropertyDefinitionValueResolver, VelcronPropertyEditorValue } from "../../models";
2
+ import { ItemState, VelcronPropertyDefinitionValueResolver, VelcronPropertyEditorValue } from "../../models";
3
3
  export declare const useVelcronDefinitionStore: () => {
4
4
  state: {
5
5
  definitions: VelcronDefinitionRegistration<object>[];
@@ -37,6 +37,11 @@ export declare const useVelcronDefinitionStore: () => {
37
37
  state: VelcronGridState;
38
38
  setState(value: VelcronGridState): void;
39
39
  };
40
+ items(): {
41
+ match: boolean;
42
+ state: ItemState[];
43
+ setState(value: ItemState[]): void;
44
+ };
40
45
  };
41
46
  };
42
47
  actions: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx",
3
3
  "license": "MIT",
4
- "version": "8.0.287-dev",
4
+ "version": "8.0.288-dev",
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.287-dev",
23
+ "@omnia/fx-models": "8.0.288-dev",
24
24
  "@microsoft/signalr": "6.0.1",
25
25
  "broadcast-channel": "4.8.0",
26
26
  "dayjs": "1.11.7",