@atlaskit/editor-core 203.2.1 → 203.2.3
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 +23 -0
- package/dist/cjs/composable-editor/core-editor.js +2 -0
- package/dist/cjs/composable-editor/editor-internal.js +2 -3
- package/dist/cjs/composable-editor/temp_useTrackDangerousPlugins.js +35 -0
- package/dist/cjs/create-editor/ReactEditorViewNext.js +1 -1
- package/dist/cjs/ui/ContentStyles/layout.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/core-editor.js +2 -0
- package/dist/es2019/composable-editor/editor-internal.js +2 -3
- package/dist/es2019/composable-editor/temp_useTrackDangerousPlugins.js +27 -0
- package/dist/es2019/create-editor/ReactEditorViewNext.js +1 -1
- package/dist/es2019/ui/ContentStyles/layout.js +1 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/core-editor.js +2 -0
- package/dist/esm/composable-editor/editor-internal.js +2 -3
- package/dist/esm/composable-editor/temp_useTrackDangerousPlugins.js +29 -0
- package/dist/esm/create-editor/ReactEditorViewNext.js +1 -1
- package/dist/esm/ui/ContentStyles/layout.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/composable-editor/temp_useTrackDangerousPlugins.d.ts +3 -0
- package/dist/types/create-editor/create-universal-preset.d.ts +244 -19
- package/dist/types/presets/default.d.ts +174 -14
- package/dist/types/presets/universal.d.ts +244 -19
- package/dist/types/presets/useUniversalPreset.d.ts +244 -19
- package/dist/types-ts4.5/composable-editor/temp_useTrackDangerousPlugins.d.ts +3 -0
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +276 -18
- package/dist/types-ts4.5/presets/default.d.ts +198 -14
- package/dist/types-ts4.5/presets/universal.d.ts +276 -18
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +276 -18
- package/package.json +20 -9
- package/dist/cjs/nodeviews/context-adapter.js +0 -78
- package/dist/es2019/nodeviews/context-adapter.js +0 -48
- package/dist/esm/nodeviews/context-adapter.js +0 -71
- package/dist/types/nodeviews/context-adapter.d.ts +0 -2
- package/dist/types-ts4.5/nodeviews/context-adapter.d.ts +0 -2
|
@@ -527,7 +527,23 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
527
527
|
query?: string | undefined;
|
|
528
528
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
529
529
|
};
|
|
530
|
-
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined
|
|
530
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>,
|
|
531
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"annotation", {
|
|
532
|
+
sharedState: {
|
|
533
|
+
annotations: import("@atlaskit/editor-plugin-annotation").InlineCommentMap;
|
|
534
|
+
isVisible: boolean;
|
|
535
|
+
bookmark?: import("prosemirror-state").SelectionBookmark | undefined;
|
|
536
|
+
mouseData: {
|
|
537
|
+
isSelecting: boolean;
|
|
538
|
+
};
|
|
539
|
+
};
|
|
540
|
+
actions: {
|
|
541
|
+
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod) => import("@atlaskit/editor-common/types").Command;
|
|
542
|
+
};
|
|
543
|
+
}, undefined>>,
|
|
544
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
545
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState;
|
|
546
|
+
}, undefined>>
|
|
531
547
|
];
|
|
532
548
|
sharedState: import("@atlaskit/editor-plugin-emoji").EmojiPluginSharedState | undefined;
|
|
533
549
|
commands: {
|
|
@@ -557,7 +573,13 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
557
573
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
558
574
|
};
|
|
559
575
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
560
|
-
}, import("@atlaskit/editor-plugin-selection").SelectionPluginOptions | undefined
|
|
576
|
+
}, import("@atlaskit/editor-plugin-selection").SelectionPluginOptions | undefined>>,
|
|
577
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"annotation", {
|
|
578
|
+
sharedState: import("@atlaskit/editor-plugin-annotation").InlineCommentPluginState;
|
|
579
|
+
actions: {
|
|
580
|
+
setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
|
|
581
|
+
};
|
|
582
|
+
}, undefined>>
|
|
561
583
|
];
|
|
562
584
|
sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
|
|
563
585
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
@@ -966,7 +988,23 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
966
988
|
query?: string | undefined;
|
|
967
989
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
968
990
|
};
|
|
969
|
-
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined
|
|
991
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>,
|
|
992
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"annotation", {
|
|
993
|
+
sharedState: {
|
|
994
|
+
annotations: import("@atlaskit/editor-plugin-annotation").InlineCommentMap;
|
|
995
|
+
isVisible: boolean;
|
|
996
|
+
bookmark?: import("prosemirror-state").SelectionBookmark | undefined;
|
|
997
|
+
mouseData: {
|
|
998
|
+
isSelecting: boolean;
|
|
999
|
+
};
|
|
1000
|
+
};
|
|
1001
|
+
actions: {
|
|
1002
|
+
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod) => import("@atlaskit/editor-common/types").Command;
|
|
1003
|
+
};
|
|
1004
|
+
}, undefined>>,
|
|
1005
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
1006
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState;
|
|
1007
|
+
}, undefined>>
|
|
970
1008
|
];
|
|
971
1009
|
sharedState: import("@atlaskit/editor-plugin-emoji").EmojiPluginSharedState | undefined;
|
|
972
1010
|
commands: {
|
|
@@ -1870,7 +1908,25 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
1870
1908
|
}, import("@atlaskit/editor-common/types").FeatureFlags>>
|
|
1871
1909
|
];
|
|
1872
1910
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
1873
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions
|
|
1911
|
+
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>>,
|
|
1912
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"annotation", {
|
|
1913
|
+
actions: {
|
|
1914
|
+
setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
|
|
1915
|
+
};
|
|
1916
|
+
sharedState: {
|
|
1917
|
+
annotations: Record<string, boolean>;
|
|
1918
|
+
isVisible: boolean;
|
|
1919
|
+
bookmark: boolean;
|
|
1920
|
+
mouseData: {
|
|
1921
|
+
isSelecting: boolean;
|
|
1922
|
+
};
|
|
1923
|
+
};
|
|
1924
|
+
}, undefined>>,
|
|
1925
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
1926
|
+
sharedState: {
|
|
1927
|
+
mode: "edit" | "view";
|
|
1928
|
+
};
|
|
1929
|
+
}, undefined>>
|
|
1874
1930
|
];
|
|
1875
1931
|
pluginConfiguration: import("@atlaskit/editor-plugin-status").StatusPluginOptions | undefined;
|
|
1876
1932
|
actions: {
|
|
@@ -2265,7 +2321,23 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
2265
2321
|
query?: string | undefined;
|
|
2266
2322
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2267
2323
|
};
|
|
2268
|
-
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined
|
|
2324
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>,
|
|
2325
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"annotation", {
|
|
2326
|
+
sharedState: {
|
|
2327
|
+
annotations: import("@atlaskit/editor-plugin-annotation").InlineCommentMap;
|
|
2328
|
+
isVisible: boolean;
|
|
2329
|
+
bookmark?: import("prosemirror-state").SelectionBookmark | undefined;
|
|
2330
|
+
mouseData: {
|
|
2331
|
+
isSelecting: boolean;
|
|
2332
|
+
};
|
|
2333
|
+
};
|
|
2334
|
+
actions: {
|
|
2335
|
+
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod) => import("@atlaskit/editor-common/types").Command;
|
|
2336
|
+
};
|
|
2337
|
+
}, undefined>>,
|
|
2338
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
2339
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState;
|
|
2340
|
+
}, undefined>>
|
|
2269
2341
|
];
|
|
2270
2342
|
sharedState: import("@atlaskit/editor-plugin-emoji").EmojiPluginSharedState | undefined;
|
|
2271
2343
|
commands: {
|
|
@@ -2295,7 +2367,13 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
2295
2367
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2296
2368
|
};
|
|
2297
2369
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
2298
|
-
}, import("@atlaskit/editor-plugin-selection").SelectionPluginOptions | undefined
|
|
2370
|
+
}, import("@atlaskit/editor-plugin-selection").SelectionPluginOptions | undefined>>,
|
|
2371
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"annotation", {
|
|
2372
|
+
sharedState: import("@atlaskit/editor-plugin-annotation").InlineCommentPluginState;
|
|
2373
|
+
actions: {
|
|
2374
|
+
setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
|
|
2375
|
+
};
|
|
2376
|
+
}, undefined>>
|
|
2299
2377
|
];
|
|
2300
2378
|
sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
|
|
2301
2379
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
@@ -2310,6 +2388,14 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
2310
2388
|
removeDecoration: import("@atlaskit/editor-common/types").Command;
|
|
2311
2389
|
};
|
|
2312
2390
|
}, undefined>,
|
|
2391
|
+
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
|
|
2392
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-selection").SelectionPluginOptions | undefined;
|
|
2393
|
+
actions: import("@atlaskit/editor-plugin-selection").EditorSelectionAPI;
|
|
2394
|
+
commands: {
|
|
2395
|
+
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
2396
|
+
};
|
|
2397
|
+
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
2398
|
+
}, import("@atlaskit/editor-plugin-selection").SelectionPluginOptions | undefined>,
|
|
2313
2399
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
2314
2400
|
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
2315
2401
|
sharedState: {
|
|
@@ -2894,7 +2980,23 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
2894
2980
|
query?: string | undefined;
|
|
2895
2981
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
2896
2982
|
};
|
|
2897
|
-
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined
|
|
2983
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>,
|
|
2984
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"annotation", {
|
|
2985
|
+
sharedState: {
|
|
2986
|
+
annotations: import("@atlaskit/editor-plugin-annotation").InlineCommentMap;
|
|
2987
|
+
isVisible: boolean;
|
|
2988
|
+
bookmark?: import("prosemirror-state").SelectionBookmark | undefined;
|
|
2989
|
+
mouseData: {
|
|
2990
|
+
isSelecting: boolean;
|
|
2991
|
+
};
|
|
2992
|
+
};
|
|
2993
|
+
actions: {
|
|
2994
|
+
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod) => import("@atlaskit/editor-common/types").Command;
|
|
2995
|
+
};
|
|
2996
|
+
}, undefined>>,
|
|
2997
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
2998
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState;
|
|
2999
|
+
}, undefined>>
|
|
2898
3000
|
];
|
|
2899
3001
|
sharedState: import("@atlaskit/editor-plugin-emoji").EmojiPluginSharedState | undefined;
|
|
2900
3002
|
commands: {
|
|
@@ -3363,7 +3465,23 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
3363
3465
|
query?: string | undefined;
|
|
3364
3466
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
3365
3467
|
};
|
|
3366
|
-
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined
|
|
3468
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>,
|
|
3469
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"annotation", {
|
|
3470
|
+
sharedState: {
|
|
3471
|
+
annotations: import("@atlaskit/editor-plugin-annotation").InlineCommentMap;
|
|
3472
|
+
isVisible: boolean;
|
|
3473
|
+
bookmark?: import("prosemirror-state").SelectionBookmark | undefined;
|
|
3474
|
+
mouseData: {
|
|
3475
|
+
isSelecting: boolean;
|
|
3476
|
+
};
|
|
3477
|
+
};
|
|
3478
|
+
actions: {
|
|
3479
|
+
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod) => import("@atlaskit/editor-common/types").Command;
|
|
3480
|
+
};
|
|
3481
|
+
}, undefined>>,
|
|
3482
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
3483
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState;
|
|
3484
|
+
}, undefined>>
|
|
3367
3485
|
];
|
|
3368
3486
|
sharedState: import("@atlaskit/editor-plugin-emoji").EmojiPluginSharedState | undefined;
|
|
3369
3487
|
commands: {
|
|
@@ -3969,7 +4087,23 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
3969
4087
|
query?: string | undefined;
|
|
3970
4088
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
3971
4089
|
};
|
|
3972
|
-
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined
|
|
4090
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>,
|
|
4091
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"annotation", {
|
|
4092
|
+
sharedState: {
|
|
4093
|
+
annotations: import("@atlaskit/editor-plugin-annotation").InlineCommentMap;
|
|
4094
|
+
isVisible: boolean;
|
|
4095
|
+
bookmark?: import("prosemirror-state").SelectionBookmark | undefined;
|
|
4096
|
+
mouseData: {
|
|
4097
|
+
isSelecting: boolean;
|
|
4098
|
+
};
|
|
4099
|
+
};
|
|
4100
|
+
actions: {
|
|
4101
|
+
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod) => import("@atlaskit/editor-common/types").Command;
|
|
4102
|
+
};
|
|
4103
|
+
}, undefined>>,
|
|
4104
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
4105
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState;
|
|
4106
|
+
}, undefined>>
|
|
3973
4107
|
];
|
|
3974
4108
|
sharedState: import("@atlaskit/editor-plugin-emoji").EmojiPluginSharedState | undefined;
|
|
3975
4109
|
commands: {
|
|
@@ -4501,7 +4635,23 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
4501
4635
|
query?: string | undefined;
|
|
4502
4636
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
4503
4637
|
};
|
|
4504
|
-
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined
|
|
4638
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>,
|
|
4639
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"annotation", {
|
|
4640
|
+
sharedState: {
|
|
4641
|
+
annotations: import("@atlaskit/editor-plugin-annotation").InlineCommentMap;
|
|
4642
|
+
isVisible: boolean;
|
|
4643
|
+
bookmark?: import("prosemirror-state").SelectionBookmark | undefined;
|
|
4644
|
+
mouseData: {
|
|
4645
|
+
isSelecting: boolean;
|
|
4646
|
+
};
|
|
4647
|
+
};
|
|
4648
|
+
actions: {
|
|
4649
|
+
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod) => import("@atlaskit/editor-common/types").Command;
|
|
4650
|
+
};
|
|
4651
|
+
}, undefined>>,
|
|
4652
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
4653
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState;
|
|
4654
|
+
}, undefined>>
|
|
4505
4655
|
];
|
|
4506
4656
|
sharedState: import("@atlaskit/editor-plugin-emoji").EmojiPluginSharedState | undefined;
|
|
4507
4657
|
commands: {
|
|
@@ -5087,7 +5237,23 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
5087
5237
|
query?: string | undefined;
|
|
5088
5238
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
5089
5239
|
};
|
|
5090
|
-
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined
|
|
5240
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>,
|
|
5241
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"annotation", {
|
|
5242
|
+
sharedState: {
|
|
5243
|
+
annotations: import("@atlaskit/editor-plugin-annotation").InlineCommentMap;
|
|
5244
|
+
isVisible: boolean;
|
|
5245
|
+
bookmark?: import("prosemirror-state").SelectionBookmark | undefined;
|
|
5246
|
+
mouseData: {
|
|
5247
|
+
isSelecting: boolean;
|
|
5248
|
+
};
|
|
5249
|
+
};
|
|
5250
|
+
actions: {
|
|
5251
|
+
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod) => import("@atlaskit/editor-common/types").Command;
|
|
5252
|
+
};
|
|
5253
|
+
}, undefined>>,
|
|
5254
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
5255
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState;
|
|
5256
|
+
}, undefined>>
|
|
5091
5257
|
];
|
|
5092
5258
|
sharedState: import("@atlaskit/editor-plugin-emoji").EmojiPluginSharedState | undefined;
|
|
5093
5259
|
commands: {
|
|
@@ -6200,7 +6366,23 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
6200
6366
|
query?: string | undefined;
|
|
6201
6367
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
6202
6368
|
};
|
|
6203
|
-
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined
|
|
6369
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>,
|
|
6370
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"annotation", {
|
|
6371
|
+
sharedState: {
|
|
6372
|
+
annotations: import("@atlaskit/editor-plugin-annotation").InlineCommentMap;
|
|
6373
|
+
isVisible: boolean;
|
|
6374
|
+
bookmark?: import("prosemirror-state").SelectionBookmark | undefined;
|
|
6375
|
+
mouseData: {
|
|
6376
|
+
isSelecting: boolean;
|
|
6377
|
+
};
|
|
6378
|
+
};
|
|
6379
|
+
actions: {
|
|
6380
|
+
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod) => import("@atlaskit/editor-common/types").Command;
|
|
6381
|
+
};
|
|
6382
|
+
}, undefined>>,
|
|
6383
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
6384
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState;
|
|
6385
|
+
}, undefined>>
|
|
6204
6386
|
];
|
|
6205
6387
|
sharedState: import("@atlaskit/editor-plugin-emoji").EmojiPluginSharedState | undefined;
|
|
6206
6388
|
commands: {
|
|
@@ -6634,7 +6816,23 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
6634
6816
|
query?: string | undefined;
|
|
6635
6817
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
6636
6818
|
};
|
|
6637
|
-
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined
|
|
6819
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>,
|
|
6820
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"annotation", {
|
|
6821
|
+
sharedState: {
|
|
6822
|
+
annotations: import("@atlaskit/editor-plugin-annotation").InlineCommentMap;
|
|
6823
|
+
isVisible: boolean;
|
|
6824
|
+
bookmark?: import("prosemirror-state").SelectionBookmark | undefined;
|
|
6825
|
+
mouseData: {
|
|
6826
|
+
isSelecting: boolean;
|
|
6827
|
+
};
|
|
6828
|
+
};
|
|
6829
|
+
actions: {
|
|
6830
|
+
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod) => import("@atlaskit/editor-common/types").Command;
|
|
6831
|
+
};
|
|
6832
|
+
}, undefined>>,
|
|
6833
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
6834
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState;
|
|
6835
|
+
}, undefined>>
|
|
6638
6836
|
];
|
|
6639
6837
|
sharedState: import("@atlaskit/editor-plugin-emoji").EmojiPluginSharedState | undefined;
|
|
6640
6838
|
commands: {
|
|
@@ -7402,7 +7600,23 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
7402
7600
|
query?: string | undefined;
|
|
7403
7601
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
7404
7602
|
};
|
|
7405
|
-
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined
|
|
7603
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>,
|
|
7604
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"annotation", {
|
|
7605
|
+
sharedState: {
|
|
7606
|
+
annotations: import("@atlaskit/editor-plugin-annotation").InlineCommentMap;
|
|
7607
|
+
isVisible: boolean;
|
|
7608
|
+
bookmark?: import("prosemirror-state").SelectionBookmark | undefined;
|
|
7609
|
+
mouseData: {
|
|
7610
|
+
isSelecting: boolean;
|
|
7611
|
+
};
|
|
7612
|
+
};
|
|
7613
|
+
actions: {
|
|
7614
|
+
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod) => import("@atlaskit/editor-common/types").Command;
|
|
7615
|
+
};
|
|
7616
|
+
}, undefined>>,
|
|
7617
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
7618
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState;
|
|
7619
|
+
}, undefined>>
|
|
7406
7620
|
];
|
|
7407
7621
|
sharedState: import("@atlaskit/editor-plugin-emoji").EmojiPluginSharedState | undefined;
|
|
7408
7622
|
commands: {
|
|
@@ -7432,7 +7646,13 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
7432
7646
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
7433
7647
|
};
|
|
7434
7648
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
7435
|
-
}, import("@atlaskit/editor-plugin-selection").SelectionPluginOptions | undefined
|
|
7649
|
+
}, import("@atlaskit/editor-plugin-selection").SelectionPluginOptions | undefined>>,
|
|
7650
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"annotation", {
|
|
7651
|
+
sharedState: import("@atlaskit/editor-plugin-annotation").InlineCommentPluginState;
|
|
7652
|
+
actions: {
|
|
7653
|
+
setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
|
|
7654
|
+
};
|
|
7655
|
+
}, undefined>>
|
|
7436
7656
|
];
|
|
7437
7657
|
sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
|
|
7438
7658
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
@@ -8126,7 +8346,23 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
8126
8346
|
query?: string | undefined;
|
|
8127
8347
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
8128
8348
|
};
|
|
8129
|
-
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined
|
|
8349
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>,
|
|
8350
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"annotation", {
|
|
8351
|
+
sharedState: {
|
|
8352
|
+
annotations: import("@atlaskit/editor-plugin-annotation").InlineCommentMap;
|
|
8353
|
+
isVisible: boolean;
|
|
8354
|
+
bookmark?: import("prosemirror-state").SelectionBookmark | undefined;
|
|
8355
|
+
mouseData: {
|
|
8356
|
+
isSelecting: boolean;
|
|
8357
|
+
};
|
|
8358
|
+
};
|
|
8359
|
+
actions: {
|
|
8360
|
+
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod) => import("@atlaskit/editor-common/types").Command;
|
|
8361
|
+
};
|
|
8362
|
+
}, undefined>>,
|
|
8363
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
8364
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState;
|
|
8365
|
+
}, undefined>>
|
|
8130
8366
|
];
|
|
8131
8367
|
sharedState: import("@atlaskit/editor-plugin-emoji").EmojiPluginSharedState | undefined;
|
|
8132
8368
|
commands: {
|
|
@@ -8156,7 +8392,13 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
8156
8392
|
displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
|
|
8157
8393
|
};
|
|
8158
8394
|
sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
|
|
8159
|
-
}, import("@atlaskit/editor-plugin-selection").SelectionPluginOptions | undefined
|
|
8395
|
+
}, import("@atlaskit/editor-plugin-selection").SelectionPluginOptions | undefined>>,
|
|
8396
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"annotation", {
|
|
8397
|
+
sharedState: import("@atlaskit/editor-plugin-annotation").InlineCommentPluginState;
|
|
8398
|
+
actions: {
|
|
8399
|
+
setInlineCommentDraftState: (isDraft: boolean, inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
|
|
8400
|
+
};
|
|
8401
|
+
}, undefined>>
|
|
8160
8402
|
];
|
|
8161
8403
|
sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
|
|
8162
8404
|
actions: import("@atlaskit/editor-common/card").CardPluginActions;
|
|
@@ -8565,7 +8807,23 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
|
|
|
8565
8807
|
query?: string | undefined;
|
|
8566
8808
|
}) => (tr: import("prosemirror-state").Transaction) => boolean;
|
|
8567
8809
|
};
|
|
8568
|
-
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined
|
|
8810
|
+
}, import("@atlaskit/editor-plugin-type-ahead").TypeAheadPluginOptions | undefined>,
|
|
8811
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"annotation", {
|
|
8812
|
+
sharedState: {
|
|
8813
|
+
annotations: import("@atlaskit/editor-plugin-annotation").InlineCommentMap;
|
|
8814
|
+
isVisible: boolean;
|
|
8815
|
+
bookmark?: import("prosemirror-state").SelectionBookmark | undefined;
|
|
8816
|
+
mouseData: {
|
|
8817
|
+
isSelecting: boolean;
|
|
8818
|
+
};
|
|
8819
|
+
};
|
|
8820
|
+
actions: {
|
|
8821
|
+
setInlineCommentDraftState: (drafting: boolean, inputMethod: import("@atlaskit/editor-plugin-annotation").InlineCommentInputMethod) => import("@atlaskit/editor-common/types").Command;
|
|
8822
|
+
};
|
|
8823
|
+
}, undefined>>,
|
|
8824
|
+
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
|
|
8825
|
+
sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState;
|
|
8826
|
+
}, undefined>>
|
|
8569
8827
|
];
|
|
8570
8828
|
sharedState: import("@atlaskit/editor-plugin-emoji").EmojiPluginSharedState | undefined;
|
|
8571
8829
|
commands: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "203.2.
|
|
3
|
+
"version": "203.2.3",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
44
44
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
45
45
|
"@atlaskit/button": "^20.3.0",
|
|
46
|
-
"@atlaskit/editor-common": "^96.
|
|
46
|
+
"@atlaskit/editor-common": "^96.3.0",
|
|
47
47
|
"@atlaskit/editor-json-transformer": "^8.21.0",
|
|
48
48
|
"@atlaskit/editor-plugin-quick-insert": "1.8.0",
|
|
49
49
|
"@atlaskit/editor-plugins": "^5.8.0",
|
|
50
50
|
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
51
51
|
"@atlaskit/editor-shared-styles": "^3.2.0",
|
|
52
52
|
"@atlaskit/emoji": "^67.11.0",
|
|
53
|
-
"@atlaskit/icon": "^23.
|
|
53
|
+
"@atlaskit/icon": "^23.1.0",
|
|
54
54
|
"@atlaskit/media-card": "^78.15.0",
|
|
55
55
|
"@atlaskit/mention": "^23.4.0",
|
|
56
56
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
@@ -84,26 +84,26 @@
|
|
|
84
84
|
"@atlaskit/adf-utils": "^19.14.0",
|
|
85
85
|
"@atlaskit/analytics-listeners": "^8.13.0",
|
|
86
86
|
"@atlaskit/collab-provider": "10.2.1",
|
|
87
|
-
"@atlaskit/editor-plugin-annotation": "1.26.
|
|
88
|
-
"@atlaskit/editor-plugin-card": "^4.
|
|
87
|
+
"@atlaskit/editor-plugin-annotation": "1.26.1",
|
|
88
|
+
"@atlaskit/editor-plugin-card": "^4.5.0",
|
|
89
89
|
"@atlaskit/editor-plugin-list": "^3.9.0",
|
|
90
90
|
"@atlaskit/editor-plugin-paste": "^2.0.0",
|
|
91
|
-
"@atlaskit/link-provider": "^1.
|
|
92
|
-
"@atlaskit/logo": "^15.
|
|
91
|
+
"@atlaskit/link-provider": "^1.18.0",
|
|
92
|
+
"@atlaskit/logo": "^15.1.0",
|
|
93
93
|
"@atlaskit/media-core": "^34.3.0",
|
|
94
94
|
"@atlaskit/media-integration-test-helpers": "^3.1.0",
|
|
95
95
|
"@atlaskit/media-test-helpers": "^34.7.0",
|
|
96
96
|
"@atlaskit/modal-dialog": "^12.18.0",
|
|
97
97
|
"@atlaskit/primitives": "^13.3.0",
|
|
98
98
|
"@atlaskit/renderer": "^112.6.0",
|
|
99
|
-
"@atlaskit/smart-card": "^32.
|
|
99
|
+
"@atlaskit/smart-card": "^32.6.0",
|
|
100
100
|
"@atlaskit/synchrony-test-helpers": "^3.0.0",
|
|
101
101
|
"@atlaskit/toggle": "^13.4.0",
|
|
102
102
|
"@atlaskit/util-data-test": "^17.13.0",
|
|
103
103
|
"@atlaskit/visual-regression": "*",
|
|
104
104
|
"@atlassian/adf-schema-json": "^1.22.0",
|
|
105
105
|
"@atlassian/feature-flags-test-utils": "*",
|
|
106
|
-
"@atlassian/search-provider": "3.0.
|
|
106
|
+
"@atlassian/search-provider": "3.0.4",
|
|
107
107
|
"@emotion/jest": "^11.8.0",
|
|
108
108
|
"@storybook/addon-knobs": "^6.4.0",
|
|
109
109
|
"@testing-library/react": "^12.1.5",
|
|
@@ -175,6 +175,9 @@
|
|
|
175
175
|
"type": "boolean",
|
|
176
176
|
"referenceOnly": "true"
|
|
177
177
|
},
|
|
178
|
+
"platform_editor_track_dangerous_append_plugins": {
|
|
179
|
+
"type": "boolean"
|
|
180
|
+
},
|
|
178
181
|
"platform_editor_core_increase_full_page_guttering": {
|
|
179
182
|
"type": "boolean"
|
|
180
183
|
},
|
|
@@ -357,6 +360,14 @@
|
|
|
357
360
|
"platform_editor_advanced_layouts_post_fix_patch_1": {
|
|
358
361
|
"type": "boolean",
|
|
359
362
|
"referenceOnly": true
|
|
363
|
+
},
|
|
364
|
+
"platform_editor_fix_drag_and_drop_lists": {
|
|
365
|
+
"type": "boolean",
|
|
366
|
+
"referenceOnly": true
|
|
367
|
+
},
|
|
368
|
+
"platform_editor_nested_tables_renderer_styles": {
|
|
369
|
+
"type": "boolean",
|
|
370
|
+
"referenceOnly": true
|
|
360
371
|
}
|
|
361
372
|
},
|
|
362
373
|
"stricter": {
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.ContextAdapter = void 0;
|
|
8
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
9
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
11
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
12
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
13
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
|
-
var _react = _interopRequireDefault(require("react"));
|
|
16
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
|
-
var _analyticsNextStableReactContext = _interopRequireDefault(require("@atlaskit/analytics-next-stable-react-context"));
|
|
18
|
-
var _linkProvider = require("@atlaskit/link-provider");
|
|
19
|
-
function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
|
|
20
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
21
|
-
function useContextMemoized(reactContext) {
|
|
22
|
-
var value = _react.default.useContext(reactContext);
|
|
23
|
-
var context = _react.default.useMemo(function () {
|
|
24
|
-
return {
|
|
25
|
-
Provider: reactContext.Provider,
|
|
26
|
-
Consumer: reactContext.Consumer,
|
|
27
|
-
value: value
|
|
28
|
-
};
|
|
29
|
-
}, [value, reactContext]);
|
|
30
|
-
return context;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
// injects contexts via old context API to children
|
|
34
|
-
// and gives access to the original Provider so that
|
|
35
|
-
// the child can re-emit it
|
|
36
|
-
var ContextAdapter = exports.ContextAdapter = function ContextAdapter(_ref) {
|
|
37
|
-
var children = _ref.children;
|
|
38
|
-
var card = useContextMemoized(_linkProvider.SmartCardContext);
|
|
39
|
-
var analytics = useContextMemoized(_analyticsNextStableReactContext.default);
|
|
40
|
-
return /*#__PURE__*/_react.default.createElement(LegacyContextAdapter, {
|
|
41
|
-
card: card,
|
|
42
|
-
analytics: analytics
|
|
43
|
-
}, children);
|
|
44
|
-
};
|
|
45
|
-
var LegacyContextAdapter = /*#__PURE__*/function (_React$PureComponent) {
|
|
46
|
-
(0, _inherits2.default)(LegacyContextAdapter, _React$PureComponent);
|
|
47
|
-
var _super = _createSuper(LegacyContextAdapter);
|
|
48
|
-
function LegacyContextAdapter() {
|
|
49
|
-
var _this;
|
|
50
|
-
(0, _classCallCheck2.default)(this, LegacyContextAdapter);
|
|
51
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
52
|
-
args[_key] = arguments[_key];
|
|
53
|
-
}
|
|
54
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
55
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "contextState", {});
|
|
56
|
-
return _this;
|
|
57
|
-
}
|
|
58
|
-
(0, _createClass2.default)(LegacyContextAdapter, [{
|
|
59
|
-
key: "getChildContext",
|
|
60
|
-
value: function getChildContext() {
|
|
61
|
-
return {
|
|
62
|
-
contextAdapter: {
|
|
63
|
-
card: this.props.card,
|
|
64
|
-
analytics: this.props.analytics
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
}, {
|
|
69
|
-
key: "render",
|
|
70
|
-
value: function render() {
|
|
71
|
-
return this.props.children;
|
|
72
|
-
}
|
|
73
|
-
}]);
|
|
74
|
-
return LegacyContextAdapter;
|
|
75
|
-
}(_react.default.PureComponent);
|
|
76
|
-
(0, _defineProperty2.default)(LegacyContextAdapter, "childContextTypes", {
|
|
77
|
-
contextAdapter: _propTypes.default.object
|
|
78
|
-
});
|