@atlaskit/editor-core 195.6.2 → 195.8.0
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/CHANGELOG.md +25 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +1 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +64 -60
- package/dist/cjs/ui/ContextPanel/deprecated.js +283 -0
- package/dist/cjs/ui/ContextPanel/index.js +26 -133
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/index.js +6 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +1 -0
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +4 -1
- package/dist/es2019/ui/ContextPanel/deprecated.js +258 -0
- package/dist/es2019/ui/ContextPanel/index.js +24 -133
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/index.js +6 -1
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +1 -0
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +64 -60
- package/dist/esm/ui/ContextPanel/deprecated.js +277 -0
- package/dist/esm/ui/ContextPanel/index.js +24 -132
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +81 -0
- package/dist/types/index.d.ts +6 -1
- package/dist/types/presets/default.d.ts +68 -0
- package/dist/types/presets/universal.d.ts +83 -1
- package/dist/types/presets/useUniversalPreset.d.ts +81 -0
- package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +3 -1
- package/dist/types/ui/ContextPanel/deprecated.d.ts +44 -0
- package/dist/types/ui/ContextPanel/index.d.ts +5 -9
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +81 -0
- package/dist/types-ts4.5/index.d.ts +6 -1
- package/dist/types-ts4.5/presets/default.d.ts +68 -0
- package/dist/types-ts4.5/presets/universal.d.ts +83 -1
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +81 -0
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +5 -1
- package/dist/types-ts4.5/ui/ContextPanel/deprecated.d.ts +44 -0
- package/dist/types-ts4.5/ui/ContextPanel/index.d.ts +7 -9
- package/package.json +7 -12
|
@@ -119,6 +119,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
119
119
|
actions: {
|
|
120
120
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
121
121
|
};
|
|
122
|
+
sharedState: {
|
|
123
|
+
contents: import("react").ReactNode[] | undefined;
|
|
124
|
+
} | undefined;
|
|
122
125
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"extension", {
|
|
123
126
|
pluginConfiguration: import("@atlaskit/editor-plugin-extension").ExtensionPluginOptions | undefined;
|
|
124
127
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"analytics", {
|
|
@@ -148,6 +151,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
148
151
|
actions: {
|
|
149
152
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
150
153
|
};
|
|
154
|
+
sharedState: {
|
|
155
|
+
contents: import("react").ReactNode[] | undefined;
|
|
156
|
+
} | undefined;
|
|
151
157
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"contextIdentifier", {
|
|
152
158
|
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
153
159
|
sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
|
|
@@ -332,6 +338,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
332
338
|
actions: {
|
|
333
339
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
334
340
|
};
|
|
341
|
+
sharedState: {
|
|
342
|
+
contents: import("react").ReactNode[] | undefined;
|
|
343
|
+
} | undefined;
|
|
335
344
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"extension", {
|
|
336
345
|
pluginConfiguration: import("@atlaskit/editor-plugin-extension").ExtensionPluginOptions | undefined;
|
|
337
346
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"analytics", {
|
|
@@ -361,6 +370,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
361
370
|
actions: {
|
|
362
371
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
363
372
|
};
|
|
373
|
+
sharedState: {
|
|
374
|
+
contents: import("react").ReactNode[] | undefined;
|
|
375
|
+
} | undefined;
|
|
364
376
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"contextIdentifier", {
|
|
365
377
|
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
366
378
|
sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
|
|
@@ -591,6 +603,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
591
603
|
actions: {
|
|
592
604
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
593
605
|
};
|
|
606
|
+
sharedState: {
|
|
607
|
+
contents: import("react").ReactNode[] | undefined;
|
|
608
|
+
} | undefined;
|
|
594
609
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"contextIdentifier", {
|
|
595
610
|
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
596
611
|
sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
|
|
@@ -766,6 +781,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
766
781
|
actions: {
|
|
767
782
|
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
|
|
768
783
|
announceMentionsInsertion: (mentionIds: {
|
|
784
|
+
type: "added" | "deleted";
|
|
769
785
|
localId: string;
|
|
770
786
|
id: string;
|
|
771
787
|
}[]) => void;
|
|
@@ -1176,6 +1192,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1176
1192
|
actions: {
|
|
1177
1193
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
1178
1194
|
};
|
|
1195
|
+
sharedState: {
|
|
1196
|
+
contents: import("react").ReactNode[] | undefined;
|
|
1197
|
+
} | undefined;
|
|
1179
1198
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"extension", {
|
|
1180
1199
|
pluginConfiguration: import("@atlaskit/editor-plugin-extension").ExtensionPluginOptions | undefined;
|
|
1181
1200
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"analytics", {
|
|
@@ -1205,6 +1224,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1205
1224
|
actions: {
|
|
1206
1225
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
1207
1226
|
};
|
|
1227
|
+
sharedState: {
|
|
1228
|
+
contents: import("react").ReactNode[] | undefined;
|
|
1229
|
+
} | undefined;
|
|
1208
1230
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"contextIdentifier", {
|
|
1209
1231
|
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
1210
1232
|
sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
|
|
@@ -1531,6 +1553,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1531
1553
|
actions: {
|
|
1532
1554
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
1533
1555
|
};
|
|
1556
|
+
sharedState: {
|
|
1557
|
+
contents: import("react").ReactNode[] | undefined;
|
|
1558
|
+
} | undefined;
|
|
1534
1559
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"contextIdentifier", {
|
|
1535
1560
|
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
1536
1561
|
sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
|
|
@@ -1554,6 +1579,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1554
1579
|
actions: {
|
|
1555
1580
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
1556
1581
|
};
|
|
1582
|
+
sharedState: {
|
|
1583
|
+
contents: import("react").ReactNode[] | undefined;
|
|
1584
|
+
} | undefined;
|
|
1557
1585
|
}, undefined> | undefined, import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"panel", {
|
|
1558
1586
|
pluginConfiguration: import("@atlaskit/editor-plugin-panel").PanelPluginOptions | undefined;
|
|
1559
1587
|
dependencies: [import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"decorations", {
|
|
@@ -1698,6 +1726,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1698
1726
|
actions: {
|
|
1699
1727
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
1700
1728
|
};
|
|
1729
|
+
sharedState: {
|
|
1730
|
+
contents: import("react").ReactNode[] | undefined;
|
|
1731
|
+
} | undefined;
|
|
1701
1732
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"extension", {
|
|
1702
1733
|
pluginConfiguration: import("@atlaskit/editor-plugin-extension").ExtensionPluginOptions | undefined;
|
|
1703
1734
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"analytics", {
|
|
@@ -1727,6 +1758,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1727
1758
|
actions: {
|
|
1728
1759
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
1729
1760
|
};
|
|
1761
|
+
sharedState: {
|
|
1762
|
+
contents: import("react").ReactNode[] | undefined;
|
|
1763
|
+
} | undefined;
|
|
1730
1764
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"contextIdentifier", {
|
|
1731
1765
|
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
1732
1766
|
sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
|
|
@@ -2318,6 +2352,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
2318
2352
|
actions: {
|
|
2319
2353
|
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
|
|
2320
2354
|
announceMentionsInsertion: (mentionIds: {
|
|
2355
|
+
type: "added" | "deleted";
|
|
2321
2356
|
localId: string;
|
|
2322
2357
|
id: string;
|
|
2323
2358
|
}[]) => void;
|
|
@@ -2422,6 +2457,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
2422
2457
|
actions: {
|
|
2423
2458
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
2424
2459
|
};
|
|
2460
|
+
sharedState: {
|
|
2461
|
+
contents: import("react").ReactNode[] | undefined;
|
|
2462
|
+
} | undefined;
|
|
2425
2463
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"extension", {
|
|
2426
2464
|
pluginConfiguration: import("@atlaskit/editor-plugin-extension").ExtensionPluginOptions | undefined;
|
|
2427
2465
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"analytics", {
|
|
@@ -2451,6 +2489,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
2451
2489
|
actions: {
|
|
2452
2490
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
2453
2491
|
};
|
|
2492
|
+
sharedState: {
|
|
2493
|
+
contents: import("react").ReactNode[] | undefined;
|
|
2494
|
+
} | undefined;
|
|
2454
2495
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"contextIdentifier", {
|
|
2455
2496
|
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
2456
2497
|
sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
|
|
@@ -2725,6 +2766,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
2725
2766
|
actions: {
|
|
2726
2767
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
2727
2768
|
};
|
|
2769
|
+
sharedState: {
|
|
2770
|
+
contents: import("react").ReactNode[] | undefined;
|
|
2771
|
+
} | undefined;
|
|
2728
2772
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"extension", {
|
|
2729
2773
|
pluginConfiguration: import("@atlaskit/editor-plugin-extension").ExtensionPluginOptions | undefined;
|
|
2730
2774
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"analytics", {
|
|
@@ -2754,6 +2798,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
2754
2798
|
actions: {
|
|
2755
2799
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
2756
2800
|
};
|
|
2801
|
+
sharedState: {
|
|
2802
|
+
contents: import("react").ReactNode[] | undefined;
|
|
2803
|
+
} | undefined;
|
|
2757
2804
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"contextIdentifier", {
|
|
2758
2805
|
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
2759
2806
|
sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
|
|
@@ -3326,6 +3373,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
3326
3373
|
actions: {
|
|
3327
3374
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
3328
3375
|
};
|
|
3376
|
+
sharedState: {
|
|
3377
|
+
contents: import("react").ReactNode[] | undefined;
|
|
3378
|
+
} | undefined;
|
|
3329
3379
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"extension", {
|
|
3330
3380
|
pluginConfiguration: import("@atlaskit/editor-plugin-extension").ExtensionPluginOptions | undefined;
|
|
3331
3381
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"analytics", {
|
|
@@ -3355,6 +3405,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
3355
3405
|
actions: {
|
|
3356
3406
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
3357
3407
|
};
|
|
3408
|
+
sharedState: {
|
|
3409
|
+
contents: import("react").ReactNode[] | undefined;
|
|
3410
|
+
} | undefined;
|
|
3358
3411
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"contextIdentifier", {
|
|
3359
3412
|
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
3360
3413
|
sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
|
|
@@ -3541,6 +3594,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
3541
3594
|
actions: {
|
|
3542
3595
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
3543
3596
|
};
|
|
3597
|
+
sharedState: {
|
|
3598
|
+
contents: import("react").ReactNode[] | undefined;
|
|
3599
|
+
} | undefined;
|
|
3544
3600
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"extension", {
|
|
3545
3601
|
pluginConfiguration: import("@atlaskit/editor-plugin-extension").ExtensionPluginOptions | undefined;
|
|
3546
3602
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"analytics", {
|
|
@@ -3570,6 +3626,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
3570
3626
|
actions: {
|
|
3571
3627
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
3572
3628
|
};
|
|
3629
|
+
sharedState: {
|
|
3630
|
+
contents: import("react").ReactNode[] | undefined;
|
|
3631
|
+
} | undefined;
|
|
3573
3632
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"contextIdentifier", {
|
|
3574
3633
|
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
3575
3634
|
sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
|
|
@@ -3994,6 +4053,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
3994
4053
|
actions: {
|
|
3995
4054
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
3996
4055
|
};
|
|
4056
|
+
sharedState: {
|
|
4057
|
+
contents: import("react").ReactNode[] | undefined;
|
|
4058
|
+
} | undefined;
|
|
3997
4059
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"extension", {
|
|
3998
4060
|
pluginConfiguration: import("@atlaskit/editor-plugin-extension").ExtensionPluginOptions | undefined;
|
|
3999
4061
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"analytics", {
|
|
@@ -4023,6 +4085,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
4023
4085
|
actions: {
|
|
4024
4086
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
4025
4087
|
};
|
|
4088
|
+
sharedState: {
|
|
4089
|
+
contents: import("react").ReactNode[] | undefined;
|
|
4090
|
+
} | undefined;
|
|
4026
4091
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"contextIdentifier", {
|
|
4027
4092
|
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
4028
4093
|
sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
|
|
@@ -4436,6 +4501,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
4436
4501
|
actions: {
|
|
4437
4502
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
4438
4503
|
};
|
|
4504
|
+
sharedState: {
|
|
4505
|
+
contents: import("react").ReactNode[] | undefined;
|
|
4506
|
+
} | undefined;
|
|
4439
4507
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"extension", {
|
|
4440
4508
|
pluginConfiguration: import("@atlaskit/editor-plugin-extension").ExtensionPluginOptions | undefined;
|
|
4441
4509
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"analytics", {
|
|
@@ -4465,6 +4533,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
4465
4533
|
actions: {
|
|
4466
4534
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
4467
4535
|
};
|
|
4536
|
+
sharedState: {
|
|
4537
|
+
contents: import("react").ReactNode[] | undefined;
|
|
4538
|
+
} | undefined;
|
|
4468
4539
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"contextIdentifier", {
|
|
4469
4540
|
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
4470
4541
|
sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
|
|
@@ -4649,6 +4720,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
4649
4720
|
actions: {
|
|
4650
4721
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
4651
4722
|
};
|
|
4723
|
+
sharedState: {
|
|
4724
|
+
contents: import("react").ReactNode[] | undefined;
|
|
4725
|
+
} | undefined;
|
|
4652
4726
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"extension", {
|
|
4653
4727
|
pluginConfiguration: import("@atlaskit/editor-plugin-extension").ExtensionPluginOptions | undefined;
|
|
4654
4728
|
dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"analytics", {
|
|
@@ -4678,6 +4752,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
4678
4752
|
actions: {
|
|
4679
4753
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
4680
4754
|
};
|
|
4755
|
+
sharedState: {
|
|
4756
|
+
contents: import("react").ReactNode[] | undefined;
|
|
4757
|
+
} | undefined;
|
|
4681
4758
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"contextIdentifier", {
|
|
4682
4759
|
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
4683
4760
|
sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
|
|
@@ -4908,6 +4985,9 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
4908
4985
|
actions: {
|
|
4909
4986
|
applyChange: (tr: import("prosemirror-state").Transaction) => import("prosemirror-state").Transaction;
|
|
4910
4987
|
};
|
|
4988
|
+
sharedState: {
|
|
4989
|
+
contents: import("react").ReactNode[] | undefined;
|
|
4990
|
+
} | undefined;
|
|
4911
4991
|
}, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"contextIdentifier", {
|
|
4912
4992
|
pluginConfiguration: import("@atlaskit/editor-plugin-context-identifier").PluginConfiguration | undefined;
|
|
4913
4993
|
sharedState: import("@atlaskit/editor-plugin-context-identifier").ContextIdentifierConfiguration | undefined;
|
|
@@ -5083,6 +5163,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
5083
5163
|
actions: {
|
|
5084
5164
|
openTypeAhead: (inputMethod: import("@atlaskit/editor-plugin-type-ahead").TypeAheadInputMethod) => boolean;
|
|
5085
5165
|
announceMentionsInsertion: (mentionIds: {
|
|
5166
|
+
type: "added" | "deleted";
|
|
5086
5167
|
localId: string;
|
|
5087
5168
|
id: string;
|
|
5088
5169
|
}[]) => void;
|
|
@@ -7,7 +7,8 @@ import React from 'react';
|
|
|
7
7
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
8
8
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
9
9
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
10
|
-
import type { ReactHookFactory } from '@atlaskit/editor-common/types';
|
|
10
|
+
import type { OptionalPlugin, PublicPluginAPI, ReactHookFactory } from '@atlaskit/editor-common/types';
|
|
11
|
+
import { type ContextPanelPlugin } from '@atlaskit/editor-plugins/context-panel';
|
|
11
12
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
12
13
|
import type EditorActions from '../../../actions';
|
|
13
14
|
import type { EventDispatcher } from '../../../event-dispatcher';
|
|
@@ -15,6 +16,7 @@ import type { ContentComponents, EditorAppearance, ReactComponents, UIComponentF
|
|
|
15
16
|
import type { FeatureFlags } from '../../../types/feature-flags';
|
|
16
17
|
import { type ScrollContainerRefs } from './types';
|
|
17
18
|
interface FullPageEditorContentAreaProps {
|
|
19
|
+
editorAPI: PublicPluginAPI<[OptionalPlugin<ContextPanelPlugin>]> | undefined;
|
|
18
20
|
appearance: EditorAppearance | undefined;
|
|
19
21
|
contentComponents: UIComponentFactory[] | undefined;
|
|
20
22
|
pluginHooks: ReactHookFactory[] | undefined;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { jsx } from '@emotion/react';
|
|
7
|
+
import type { BreakoutMarkAttrs } from '@atlaskit/adf-schema';
|
|
8
|
+
import type { WidthPluginState } from '@atlaskit/editor-plugins/width';
|
|
9
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
|
+
export type Props = {
|
|
11
|
+
visible: boolean;
|
|
12
|
+
children?: React.ReactElement;
|
|
13
|
+
};
|
|
14
|
+
type EditorWidth = WidthPluginState & {
|
|
15
|
+
contentBreakoutModes: BreakoutMarkAttrs['mode'][];
|
|
16
|
+
containerWidth?: number;
|
|
17
|
+
};
|
|
18
|
+
export declare const shouldPanelBePositionedOverEditor: (editorWidth: EditorWidth, panelWidth: number, editorView?: EditorView) => boolean;
|
|
19
|
+
export declare const panel: import("@emotion/react").SerializedStyles;
|
|
20
|
+
export declare const content: import("@emotion/react").SerializedStyles;
|
|
21
|
+
type SwappableContentAreaProps = {
|
|
22
|
+
pluginContent?: React.ReactNode;
|
|
23
|
+
editorView?: EditorView;
|
|
24
|
+
editorWidth?: EditorWidth;
|
|
25
|
+
} & Props;
|
|
26
|
+
type State = {
|
|
27
|
+
mounted: boolean;
|
|
28
|
+
currentPluginContent?: React.ReactNode;
|
|
29
|
+
};
|
|
30
|
+
export declare class SwappableContentArea extends React.PureComponent<SwappableContentAreaProps, State> {
|
|
31
|
+
state: {
|
|
32
|
+
mounted: boolean;
|
|
33
|
+
currentPluginContent: undefined;
|
|
34
|
+
};
|
|
35
|
+
static getDerivedStateFromProps(props: SwappableContentAreaProps, state: State): State | null;
|
|
36
|
+
private unsetPluginContent;
|
|
37
|
+
focusEditor: () => void;
|
|
38
|
+
componentDidMount(): void;
|
|
39
|
+
showPluginContent: () => jsx.JSX.Element | undefined;
|
|
40
|
+
showProvidedContent: (isVisible: boolean) => jsx.JSX.Element | undefined;
|
|
41
|
+
render(): jsx.JSX.Element;
|
|
42
|
+
}
|
|
43
|
+
export default function ContextPanel(props: Props): jsx.JSX.Element;
|
|
44
|
+
export {};
|
|
@@ -4,24 +4,19 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
6
|
import { jsx } from '@emotion/react';
|
|
7
|
-
import type {
|
|
8
|
-
import type
|
|
7
|
+
import type { OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
8
|
+
import { type ContextPanelPlugin } from '@atlaskit/editor-plugins/context-panel';
|
|
9
9
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
10
|
export type Props = {
|
|
11
11
|
visible: boolean;
|
|
12
|
+
editorAPI: PublicPluginAPI<[OptionalPlugin<ContextPanelPlugin>]> | undefined;
|
|
12
13
|
children?: React.ReactElement;
|
|
13
14
|
};
|
|
14
|
-
type EditorWidth = WidthPluginState & {
|
|
15
|
-
contentBreakoutModes: BreakoutMarkAttrs['mode'][];
|
|
16
|
-
containerWidth?: number;
|
|
17
|
-
};
|
|
18
|
-
export declare const shouldPanelBePositionedOverEditor: (editorWidth: EditorWidth, panelWidth: number, editorView?: EditorView) => boolean;
|
|
19
15
|
export declare const panel: import("@emotion/react").SerializedStyles;
|
|
20
16
|
export declare const content: import("@emotion/react").SerializedStyles;
|
|
21
17
|
type SwappableContentAreaProps = {
|
|
22
18
|
pluginContent?: React.ReactNode;
|
|
23
19
|
editorView?: EditorView;
|
|
24
|
-
editorWidth?: EditorWidth;
|
|
25
20
|
} & Props;
|
|
26
21
|
type State = {
|
|
27
22
|
mounted: boolean;
|
|
@@ -40,5 +35,6 @@ export declare class SwappableContentArea extends React.PureComponent<SwappableC
|
|
|
40
35
|
showProvidedContent: (isVisible: boolean) => jsx.JSX.Element | undefined;
|
|
41
36
|
render(): jsx.JSX.Element;
|
|
42
37
|
}
|
|
43
|
-
export
|
|
38
|
+
export declare function ContextPanel(props: Props): jsx.JSX.Element;
|
|
39
|
+
export default function ContextPanelDefault(props: Props): jsx.JSX.Element;
|
|
44
40
|
export {};
|