@omnia/fx 8.0.275-dev → 8.0.276-dev

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,6 +22,9 @@ export declare function useEditorCommands(state: {
22
22
  get: {
23
23
  byPluginType: (pluginType: string) => import("../models").FlowNodeReference[];
24
24
  };
25
+ ensure: {
26
+ storedRange: () => void;
27
+ };
25
28
  };
26
29
  cursor: {
27
30
  isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
@@ -23,6 +23,10 @@ export interface FlowToJsonContext<TElementType extends HTMLElement = HTMLElemen
23
23
  element: TElementType;
24
24
  parent: FlowNode;
25
25
  }
26
+ export interface FlowHookContext<TElementType extends HTMLElement = HTMLElement, TNodeType extends FlowNode = FlowNode> {
27
+ element: TElementType;
28
+ node: TNodeType;
29
+ }
26
30
  export interface ElementConverter {
27
31
  canConvert: (el: HTMLElement) => boolean;
28
32
  convert: (el: HTMLElement, pluginContext: FlowEditorPluginContext) => HTMLElement;
@@ -32,6 +36,11 @@ export interface FlowEditorContentPlugin extends FlowEditorPlugin {
32
36
  toHtml: <TNodeType extends FlowNode = FlowNode>(context: FlowToHtmlContext<TNodeType>) => HTMLElement;
33
37
  elementConverter?: ElementConverter;
34
38
  }
39
+ export interface FlowEditorPluginHook extends FlowEditorPlugin {
40
+ subscription: string;
41
+ toJSONHook: <TElementType extends HTMLElement = HTMLElement, TNodeType extends FlowNode = FlowNode>(context: FlowHookContext<TElementType, TNodeType>) => null;
42
+ toHtmlHook: <TElementType extends HTMLElement = HTMLElement, TNodeType extends FlowNode = FlowNode>(context: FlowHookContext<TElementType, TNodeType>) => null;
43
+ }
35
44
  export interface FlowEditorPluginContext {
36
45
  componentCreator?: (componentDef: any, props: {}, el: HTMLElement) => void;
37
46
  editorStore: FlowEditorStore;
@@ -44,6 +44,9 @@ export declare const useFlowEditorStore: () => {
44
44
  } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
45
45
  actions: {
46
46
  onDispatching: {
47
+ selection: {
48
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
49
+ };
47
50
  plugin: {
48
51
  subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
49
52
  };
@@ -67,6 +70,13 @@ export declare const useFlowEditorStore: () => {
67
70
  };
68
71
  };
69
72
  onDispatched: {
73
+ selection: {
74
+ subscribe(fn: (result: {
75
+ ensure: {
76
+ storedRange: () => void;
77
+ };
78
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
79
+ };
70
80
  plugin: {
71
81
  subscribe(fn: (result: {
72
82
  register: {
@@ -132,6 +142,9 @@ export declare const useFlowEditorStore: () => {
132
142
  get: {
133
143
  byPluginType: (pluginType: string) => import("../models").FlowNodeReference[];
134
144
  };
145
+ ensure: {
146
+ storedRange: () => void;
147
+ };
135
148
  };
136
149
  cursor: {
137
150
  isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
@@ -211,6 +224,9 @@ export declare const useFlowEditorStore: () => {
211
224
  };
212
225
  };
213
226
  onFailure: {
227
+ selection: {
228
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
229
+ };
214
230
  plugin: {
215
231
  subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
216
232
  };
@@ -234,6 +250,11 @@ export declare const useFlowEditorStore: () => {
234
250
  };
235
251
  };
236
252
  } & {
253
+ selection: () => {
254
+ ensure: {
255
+ storedRange: () => void;
256
+ };
257
+ };
237
258
  plugin: () => {
238
259
  register: {
239
260
  plugin: (pluginSettings: FlowEditorPluginSettings) => void;
@@ -286,6 +307,9 @@ export declare const useFlowEditorStore: () => {
286
307
  get: {
287
308
  byPluginType: (pluginType: string) => import("../models").FlowNodeReference[];
288
309
  };
310
+ ensure: {
311
+ storedRange: () => void;
312
+ };
289
313
  };
290
314
  cursor: {
291
315
  isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
@@ -376,8 +400,12 @@ export declare const useFlowEditorStore: () => {
376
400
  };
377
401
  get: {
378
402
  byType: (pluginType: string) => import("../models").FlowNodeReference[];
403
+ all: () => NodeSelection;
379
404
  };
380
405
  };
406
+ element: {
407
+ byId: (id: number) => HTMLElement;
408
+ };
381
409
  };
382
410
  } & {
383
411
  dispose?: () => void;
@@ -45,6 +45,9 @@ export declare const useFlowEditorToolbarStore: () => {
45
45
  } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
46
46
  actions: {
47
47
  onDispatching: {
48
+ selection: {
49
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
50
+ };
48
51
  plugin: {
49
52
  subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
50
53
  };
@@ -68,6 +71,13 @@ export declare const useFlowEditorToolbarStore: () => {
68
71
  };
69
72
  };
70
73
  onDispatched: {
74
+ selection: {
75
+ subscribe(fn: (result: {
76
+ ensure: {
77
+ storedRange: () => void;
78
+ };
79
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
80
+ };
71
81
  plugin: {
72
82
  subscribe(fn: (result: {
73
83
  register: {
@@ -133,6 +143,9 @@ export declare const useFlowEditorToolbarStore: () => {
133
143
  get: {
134
144
  byPluginType: (pluginType: string) => import("..").FlowNodeReference[];
135
145
  };
146
+ ensure: {
147
+ storedRange: () => void;
148
+ };
136
149
  };
137
150
  cursor: {
138
151
  isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
@@ -212,6 +225,9 @@ export declare const useFlowEditorToolbarStore: () => {
212
225
  };
213
226
  };
214
227
  onFailure: {
228
+ selection: {
229
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
230
+ };
215
231
  plugin: {
216
232
  subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
217
233
  };
@@ -235,6 +251,11 @@ export declare const useFlowEditorToolbarStore: () => {
235
251
  };
236
252
  };
237
253
  } & {
254
+ selection: () => {
255
+ ensure: {
256
+ storedRange: () => void;
257
+ };
258
+ };
238
259
  plugin: () => {
239
260
  register: {
240
261
  plugin: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings) => void;
@@ -287,6 +308,9 @@ export declare const useFlowEditorToolbarStore: () => {
287
308
  get: {
288
309
  byPluginType: (pluginType: string) => import("..").FlowNodeReference[];
289
310
  };
311
+ ensure: {
312
+ storedRange: () => void;
313
+ };
290
314
  };
291
315
  cursor: {
292
316
  isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
@@ -377,8 +401,12 @@ export declare const useFlowEditorToolbarStore: () => {
377
401
  };
378
402
  get: {
379
403
  byType: (pluginType: string) => import("..").FlowNodeReference[];
404
+ all: () => import("..").NodeSelection;
380
405
  };
381
406
  };
407
+ element: {
408
+ byId: (id: number) => HTMLElement;
409
+ };
382
410
  };
383
411
  } & {
384
412
  dispose?: () => void;
@@ -431,6 +459,9 @@ export declare const useFlowEditorToolbarStore: () => {
431
459
  } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
432
460
  actions: {
433
461
  onDispatching: {
462
+ selection: {
463
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
464
+ };
434
465
  plugin: {
435
466
  subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
436
467
  };
@@ -454,6 +485,13 @@ export declare const useFlowEditorToolbarStore: () => {
454
485
  };
455
486
  };
456
487
  onDispatched: {
488
+ selection: {
489
+ subscribe(fn: (result: {
490
+ ensure: {
491
+ storedRange: () => void;
492
+ };
493
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
494
+ };
457
495
  plugin: {
458
496
  subscribe(fn: (result: {
459
497
  register: {
@@ -519,6 +557,9 @@ export declare const useFlowEditorToolbarStore: () => {
519
557
  get: {
520
558
  byPluginType: (pluginType: string) => import("..").FlowNodeReference[];
521
559
  };
560
+ ensure: {
561
+ storedRange: () => void;
562
+ };
522
563
  };
523
564
  cursor: {
524
565
  isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
@@ -598,6 +639,9 @@ export declare const useFlowEditorToolbarStore: () => {
598
639
  };
599
640
  };
600
641
  onFailure: {
642
+ selection: {
643
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
644
+ };
601
645
  plugin: {
602
646
  subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
603
647
  };
@@ -621,6 +665,11 @@ export declare const useFlowEditorToolbarStore: () => {
621
665
  };
622
666
  };
623
667
  } & {
668
+ selection: () => {
669
+ ensure: {
670
+ storedRange: () => void;
671
+ };
672
+ };
624
673
  plugin: () => {
625
674
  register: {
626
675
  plugin: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings) => void;
@@ -673,6 +722,9 @@ export declare const useFlowEditorToolbarStore: () => {
673
722
  get: {
674
723
  byPluginType: (pluginType: string) => import("..").FlowNodeReference[];
675
724
  };
725
+ ensure: {
726
+ storedRange: () => void;
727
+ };
676
728
  };
677
729
  cursor: {
678
730
  isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
@@ -763,8 +815,12 @@ export declare const useFlowEditorToolbarStore: () => {
763
815
  };
764
816
  get: {
765
817
  byType: (pluginType: string) => import("..").FlowNodeReference[];
818
+ all: () => import("..").NodeSelection;
766
819
  };
767
820
  };
821
+ element: {
822
+ byId: (id: number) => HTMLElement;
823
+ };
768
824
  };
769
825
  } & {
770
826
  dispose?: () => void;
@@ -781,6 +837,9 @@ export declare const useFlowEditorToolbarStore: () => {
781
837
  removeAllActions: {
782
838
  subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
783
839
  };
840
+ setAsActive: {
841
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
842
+ };
784
843
  setActiveEditorStore: {
785
844
  subscribe(fn: (store: {
786
845
  state: {
@@ -825,6 +884,9 @@ export declare const useFlowEditorToolbarStore: () => {
825
884
  } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
826
885
  actions: {
827
886
  onDispatching: {
887
+ selection: {
888
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
889
+ };
828
890
  plugin: {
829
891
  subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
830
892
  };
@@ -848,6 +910,13 @@ export declare const useFlowEditorToolbarStore: () => {
848
910
  };
849
911
  };
850
912
  onDispatched: {
913
+ selection: {
914
+ subscribe(fn: (result: {
915
+ ensure: {
916
+ storedRange: () => void;
917
+ };
918
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
919
+ };
851
920
  plugin: {
852
921
  subscribe(fn: (result: {
853
922
  register: {
@@ -913,6 +982,9 @@ export declare const useFlowEditorToolbarStore: () => {
913
982
  get: {
914
983
  byPluginType: (pluginType: string) => import("..").FlowNodeReference[];
915
984
  };
985
+ ensure: {
986
+ storedRange: () => void;
987
+ };
916
988
  };
917
989
  cursor: {
918
990
  isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
@@ -992,6 +1064,9 @@ export declare const useFlowEditorToolbarStore: () => {
992
1064
  };
993
1065
  };
994
1066
  onFailure: {
1067
+ selection: {
1068
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1069
+ };
995
1070
  plugin: {
996
1071
  subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
997
1072
  };
@@ -1015,6 +1090,11 @@ export declare const useFlowEditorToolbarStore: () => {
1015
1090
  };
1016
1091
  };
1017
1092
  } & {
1093
+ selection: () => {
1094
+ ensure: {
1095
+ storedRange: () => void;
1096
+ };
1097
+ };
1018
1098
  plugin: () => {
1019
1099
  register: {
1020
1100
  plugin: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings) => void;
@@ -1067,6 +1147,9 @@ export declare const useFlowEditorToolbarStore: () => {
1067
1147
  get: {
1068
1148
  byPluginType: (pluginType: string) => import("..").FlowNodeReference[];
1069
1149
  };
1150
+ ensure: {
1151
+ storedRange: () => void;
1152
+ };
1070
1153
  };
1071
1154
  cursor: {
1072
1155
  isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
@@ -1157,8 +1240,12 @@ export declare const useFlowEditorToolbarStore: () => {
1157
1240
  };
1158
1241
  get: {
1159
1242
  byType: (pluginType: string) => import("..").FlowNodeReference[];
1243
+ all: () => import("..").NodeSelection;
1160
1244
  };
1161
1245
  };
1246
+ element: {
1247
+ byId: (id: number) => HTMLElement;
1248
+ };
1162
1249
  };
1163
1250
  } & {
1164
1251
  dispose?: () => void;
@@ -1175,6 +1262,9 @@ export declare const useFlowEditorToolbarStore: () => {
1175
1262
  removeAllActions: {
1176
1263
  subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1177
1264
  };
1265
+ setAsActive: {
1266
+ subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1267
+ };
1178
1268
  setActiveEditorStore: {
1179
1269
  subscribe(fn: (result: void, store: {
1180
1270
  state: {
@@ -1219,6 +1309,9 @@ export declare const useFlowEditorToolbarStore: () => {
1219
1309
  } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
1220
1310
  actions: {
1221
1311
  onDispatching: {
1312
+ selection: {
1313
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1314
+ };
1222
1315
  plugin: {
1223
1316
  subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1224
1317
  };
@@ -1242,6 +1335,13 @@ export declare const useFlowEditorToolbarStore: () => {
1242
1335
  };
1243
1336
  };
1244
1337
  onDispatched: {
1338
+ selection: {
1339
+ subscribe(fn: (result: {
1340
+ ensure: {
1341
+ storedRange: () => void;
1342
+ };
1343
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1344
+ };
1245
1345
  plugin: {
1246
1346
  subscribe(fn: (result: {
1247
1347
  register: {
@@ -1307,6 +1407,9 @@ export declare const useFlowEditorToolbarStore: () => {
1307
1407
  get: {
1308
1408
  byPluginType: (pluginType: string) => import("..").FlowNodeReference[];
1309
1409
  };
1410
+ ensure: {
1411
+ storedRange: () => void;
1412
+ };
1310
1413
  };
1311
1414
  cursor: {
1312
1415
  isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
@@ -1386,6 +1489,9 @@ export declare const useFlowEditorToolbarStore: () => {
1386
1489
  };
1387
1490
  };
1388
1491
  onFailure: {
1492
+ selection: {
1493
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1494
+ };
1389
1495
  plugin: {
1390
1496
  subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1391
1497
  };
@@ -1409,6 +1515,11 @@ export declare const useFlowEditorToolbarStore: () => {
1409
1515
  };
1410
1516
  };
1411
1517
  } & {
1518
+ selection: () => {
1519
+ ensure: {
1520
+ storedRange: () => void;
1521
+ };
1522
+ };
1412
1523
  plugin: () => {
1413
1524
  register: {
1414
1525
  plugin: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings) => void;
@@ -1461,6 +1572,9 @@ export declare const useFlowEditorToolbarStore: () => {
1461
1572
  get: {
1462
1573
  byPluginType: (pluginType: string) => import("..").FlowNodeReference[];
1463
1574
  };
1575
+ ensure: {
1576
+ storedRange: () => void;
1577
+ };
1464
1578
  };
1465
1579
  cursor: {
1466
1580
  isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
@@ -1551,8 +1665,12 @@ export declare const useFlowEditorToolbarStore: () => {
1551
1665
  };
1552
1666
  get: {
1553
1667
  byType: (pluginType: string) => import("..").FlowNodeReference[];
1668
+ all: () => import("..").NodeSelection;
1554
1669
  };
1555
1670
  };
1671
+ element: {
1672
+ byId: (id: number) => HTMLElement;
1673
+ };
1556
1674
  };
1557
1675
  } & {
1558
1676
  dispose?: () => void;
@@ -1569,6 +1687,9 @@ export declare const useFlowEditorToolbarStore: () => {
1569
1687
  removeAllActions: {
1570
1688
  subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1571
1689
  };
1690
+ setAsActive: {
1691
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1692
+ };
1572
1693
  setActiveEditorStore: {
1573
1694
  subscribe(fn: (failureReason: any, store: {
1574
1695
  state: {
@@ -1613,6 +1734,9 @@ export declare const useFlowEditorToolbarStore: () => {
1613
1734
  } & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
1614
1735
  actions: {
1615
1736
  onDispatching: {
1737
+ selection: {
1738
+ subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1739
+ };
1616
1740
  plugin: {
1617
1741
  subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1618
1742
  };
@@ -1636,6 +1760,13 @@ export declare const useFlowEditorToolbarStore: () => {
1636
1760
  };
1637
1761
  };
1638
1762
  onDispatched: {
1763
+ selection: {
1764
+ subscribe(fn: (result: {
1765
+ ensure: {
1766
+ storedRange: () => void;
1767
+ };
1768
+ }) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1769
+ };
1639
1770
  plugin: {
1640
1771
  subscribe(fn: (result: {
1641
1772
  register: {
@@ -1701,6 +1832,9 @@ export declare const useFlowEditorToolbarStore: () => {
1701
1832
  get: {
1702
1833
  byPluginType: (pluginType: string) => import("..").FlowNodeReference[];
1703
1834
  };
1835
+ ensure: {
1836
+ storedRange: () => void;
1837
+ };
1704
1838
  };
1705
1839
  cursor: {
1706
1840
  isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
@@ -1780,6 +1914,9 @@ export declare const useFlowEditorToolbarStore: () => {
1780
1914
  };
1781
1915
  };
1782
1916
  onFailure: {
1917
+ selection: {
1918
+ subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1919
+ };
1783
1920
  plugin: {
1784
1921
  subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
1785
1922
  };
@@ -1803,6 +1940,11 @@ export declare const useFlowEditorToolbarStore: () => {
1803
1940
  };
1804
1941
  };
1805
1942
  } & {
1943
+ selection: () => {
1944
+ ensure: {
1945
+ storedRange: () => void;
1946
+ };
1947
+ };
1806
1948
  plugin: () => {
1807
1949
  register: {
1808
1950
  plugin: (pluginSettings: import("@omnia/fx-models").FlowEditorPluginSettings) => void;
@@ -1855,6 +1997,9 @@ export declare const useFlowEditorToolbarStore: () => {
1855
1997
  get: {
1856
1998
  byPluginType: (pluginType: string) => import("..").FlowNodeReference[];
1857
1999
  };
2000
+ ensure: {
2001
+ storedRange: () => void;
2002
+ };
1858
2003
  };
1859
2004
  cursor: {
1860
2005
  isAfterEndOfContent: (range: Range, container: HTMLElement) => boolean;
@@ -1945,8 +2090,12 @@ export declare const useFlowEditorToolbarStore: () => {
1945
2090
  };
1946
2091
  get: {
1947
2092
  byType: (pluginType: string) => import("..").FlowNodeReference[];
2093
+ all: () => import("..").NodeSelection;
1948
2094
  };
1949
2095
  };
2096
+ element: {
2097
+ byId: (id: number) => HTMLElement;
2098
+ };
1950
2099
  };
1951
2100
  } & {
1952
2101
  dispose?: () => void;
@@ -1959,6 +2108,7 @@ export declare const useFlowEditorToolbarStore: () => {
1959
2108
  } & {
1960
2109
  setCustomRenderer: (renderer: () => JSX.Element) => void;
1961
2110
  removeAllActions: () => void;
2111
+ setAsActive: () => void;
1962
2112
  setActiveEditorStore: (store: ReturnType<typeof useFlowEditorStore>) => void;
1963
2113
  setVisibility: (show: boolean) => void;
1964
2114
  };
@@ -0,0 +1,10 @@
1
+ import { FlowNode } from "internal/fx/ux/models";
2
+ import { FlowRendererPlugin } from "./FlowRendererPlugin";
3
+ export interface FlowHookContext<TElementType extends HTMLElement = HTMLElement, TNodeType extends FlowNode = FlowNode> {
4
+ element: TElementType;
5
+ node: TNodeType;
6
+ }
7
+ export interface FlowRenderPluginHook extends FlowRendererPlugin {
8
+ subscription: string;
9
+ toHtmlHook: <TElementType extends HTMLElement = HTMLElement, TNodeType extends FlowNode = FlowNode>(context: FlowHookContext<TElementType, TNodeType>) => null;
10
+ }
@@ -4,3 +4,4 @@ export * from "./FlowRendererContext";
4
4
  export * from "./FlowRendererPlugin";
5
5
  export * from "./FlowRendererPluginContext";
6
6
  export * from "./FlowRendererToHtmlContext";
7
+ export * from "./FlowRendererPluginHook";
@@ -1,5 +1,5 @@
1
1
  import { Spacing } from "@omnia/fx-models";
2
2
  import { FlowNode } from "./FlowContent";
3
3
  export interface SpacingFormatNode extends FlowNode {
4
- data: Spacing;
4
+ spacing: Spacing;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { FlowNode } from "./FlowContent";
2
2
  export type FlowTextAlignment = "left" | "center" | "right";
3
3
  export interface TextAlignFormatNode extends FlowNode {
4
- data: FlowTextAlignment;
4
+ align: FlowTextAlignment;
5
5
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx",
3
3
  "license": "MIT",
4
- "version": "8.0.275-dev",
4
+ "version": "8.0.276-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.275-dev",
23
+ "@omnia/fx-models": "8.0.276-dev",
24
24
  "@microsoft/signalr": "6.0.1",
25
25
  "broadcast-channel": "4.8.0",
26
26
  "dayjs": "1.11.7",