@atlaskit/editor-core 187.7.2 → 187.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.
Files changed (67) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/plugins/list/commands/indent-list.js +48 -45
  3. package/dist/cjs/plugins/list/commands/index.js +120 -109
  4. package/dist/cjs/plugins/list/commands/join-list-item-forward.js +47 -45
  5. package/dist/cjs/plugins/list/commands/listBackspace.js +33 -31
  6. package/dist/cjs/plugins/list/commands/outdent-list.js +51 -49
  7. package/dist/cjs/plugins/list/index.js +10 -5
  8. package/dist/cjs/plugins/list/pm-plugins/input-rules/create-list-input-rule.js +3 -4
  9. package/dist/cjs/plugins/list/pm-plugins/keymap.js +10 -11
  10. package/dist/cjs/plugins/toolbar-lists-indentation/index.js +4 -1
  11. package/dist/cjs/plugins/toolbar-lists-indentation/ui/index.js +4 -3
  12. package/dist/cjs/plugins/toolbar-lists-indentation/ui/onItemActivated.js +44 -41
  13. package/dist/cjs/version-wrapper.js +1 -1
  14. package/dist/cjs/version.json +1 -1
  15. package/dist/es2019/plugins/list/commands/indent-list.js +5 -5
  16. package/dist/es2019/plugins/list/commands/index.js +22 -22
  17. package/dist/es2019/plugins/list/commands/join-list-item-forward.js +4 -4
  18. package/dist/es2019/plugins/list/commands/listBackspace.js +4 -4
  19. package/dist/es2019/plugins/list/commands/outdent-list.js +5 -6
  20. package/dist/es2019/plugins/list/index.js +13 -6
  21. package/dist/es2019/plugins/list/pm-plugins/input-rules/create-list-input-rule.js +1 -1
  22. package/dist/es2019/plugins/list/pm-plugins/keymap.js +11 -11
  23. package/dist/es2019/plugins/toolbar-lists-indentation/index.js +4 -1
  24. package/dist/es2019/plugins/toolbar-lists-indentation/ui/index.js +4 -3
  25. package/dist/es2019/plugins/toolbar-lists-indentation/ui/onItemActivated.js +7 -7
  26. package/dist/es2019/version-wrapper.js +1 -1
  27. package/dist/es2019/version.json +1 -1
  28. package/dist/esm/plugins/list/commands/indent-list.js +46 -44
  29. package/dist/esm/plugins/list/commands/index.js +115 -103
  30. package/dist/esm/plugins/list/commands/join-list-item-forward.js +47 -45
  31. package/dist/esm/plugins/list/commands/listBackspace.js +33 -31
  32. package/dist/esm/plugins/list/commands/outdent-list.js +49 -48
  33. package/dist/esm/plugins/list/index.js +11 -6
  34. package/dist/esm/plugins/list/pm-plugins/input-rules/create-list-input-rule.js +1 -1
  35. package/dist/esm/plugins/list/pm-plugins/keymap.js +11 -11
  36. package/dist/esm/plugins/toolbar-lists-indentation/index.js +4 -1
  37. package/dist/esm/plugins/toolbar-lists-indentation/ui/index.js +4 -3
  38. package/dist/esm/plugins/toolbar-lists-indentation/ui/onItemActivated.js +42 -40
  39. package/dist/esm/version-wrapper.js +1 -1
  40. package/dist/esm/version.json +1 -1
  41. package/dist/types/plugins/list/commands/indent-list.d.ts +2 -2
  42. package/dist/types/plugins/list/commands/index.d.ts +7 -7
  43. package/dist/types/plugins/list/commands/join-list-item-forward.d.ts +2 -1
  44. package/dist/types/plugins/list/commands/listBackspace.d.ts +7 -6
  45. package/dist/types/plugins/list/commands/outdent-list.d.ts +2 -2
  46. package/dist/types/plugins/list/index.d.ts +7 -2
  47. package/dist/types/plugins/list/pm-plugins/keymap.d.ts +2 -1
  48. package/dist/types/plugins/toolbar-lists-indentation/index.d.ts +7 -2
  49. package/dist/types/plugins/toolbar-lists-indentation/types.d.ts +1 -1
  50. package/dist/types/plugins/toolbar-lists-indentation/ui/index.d.ts +3 -1
  51. package/dist/types/plugins/toolbar-lists-indentation/ui/onItemActivated.d.ts +5 -4
  52. package/dist/types/utils/list-commands.d.ts +5 -5
  53. package/dist/types-ts4.5/plugins/list/commands/indent-list.d.ts +2 -2
  54. package/dist/types-ts4.5/plugins/list/commands/index.d.ts +7 -7
  55. package/dist/types-ts4.5/plugins/list/commands/join-list-item-forward.d.ts +2 -1
  56. package/dist/types-ts4.5/plugins/list/commands/listBackspace.d.ts +7 -6
  57. package/dist/types-ts4.5/plugins/list/commands/outdent-list.d.ts +2 -2
  58. package/dist/types-ts4.5/plugins/list/index.d.ts +5 -2
  59. package/dist/types-ts4.5/plugins/list/pm-plugins/keymap.d.ts +2 -1
  60. package/dist/types-ts4.5/plugins/toolbar-lists-indentation/index.d.ts +5 -2
  61. package/dist/types-ts4.5/plugins/toolbar-lists-indentation/types.d.ts +1 -1
  62. package/dist/types-ts4.5/plugins/toolbar-lists-indentation/ui/index.d.ts +3 -1
  63. package/dist/types-ts4.5/plugins/toolbar-lists-indentation/ui/onItemActivated.d.ts +5 -4
  64. package/dist/types-ts4.5/utils/list-commands.d.ts +5 -5
  65. package/package.json +1 -1
  66. package/report.api.md +15 -31
  67. package/tmp/api-report-tmp.d.ts +4 -22
package/report.api.md CHANGED
@@ -1129,10 +1129,21 @@ export function getDefaultPresetOptionsFromEditorProps(
1129
1129
 
1130
1130
  // @public (undocumented)
1131
1131
  export const getListCommands: () => {
1132
- indentList: typeof indentList;
1133
- outdentList: typeof outdentList;
1134
- toggleOrderedList: typeof toggleOrderedList;
1135
- toggleBulletList: typeof toggleBulletList;
1132
+ indentList: (
1133
+ editorAnalyticsAPI: EditorAnalyticsAPI | undefined,
1134
+ ) => (inputMethod?: INPUT_METHOD | INPUT_METHOD) => Command;
1135
+ outdentList: (
1136
+ editorAnalyticsAPI: EditorAnalyticsAPI | undefined,
1137
+ ) => (
1138
+ inputMethod: (INPUT_METHOD | INPUT_METHOD) | undefined,
1139
+ featureFlags: EditorFeatureFlags,
1140
+ ) => Command;
1141
+ toggleOrderedList: (
1142
+ editorAnalyticsAPI: EditorAnalyticsAPI | undefined,
1143
+ ) => (view: EditorView, inputMethod?: ListInputMethod) => boolean;
1144
+ toggleBulletList: (
1145
+ editorAnalyticsAPI: EditorAnalyticsAPI | undefined,
1146
+ ) => (view: EditorView, inputMethod?: ListInputMethod) => boolean;
1136
1147
  };
1137
1148
 
1138
1149
  // @public (undocumented)
@@ -1158,9 +1169,6 @@ export interface HistoryPluginState {
1158
1169
  canUndo: boolean;
1159
1170
  }
1160
1171
 
1161
- // @public (undocumented)
1162
- function indentList(inputMethod?: InputMethod): Command;
1163
-
1164
1172
  // @public (undocumented)
1165
1173
  export type InlineCommentAnnotationProvider = AnnotationTypeProvider<
1166
1174
  AnnotationTypes.INLINE_COMMENT,
@@ -1190,12 +1198,6 @@ export type InlineCommentViewComponentProps = AnnotationComponentProps & {
1190
1198
 
1191
1199
  export { INPUT_METHOD };
1192
1200
 
1193
- // @public (undocumented)
1194
- type InputMethod = INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
1195
-
1196
- // @public (undocumented)
1197
- type InputMethod_2 = INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
1198
-
1199
1201
  // @public (undocumented)
1200
1202
  export type InsertBlockInputMethodToolbar =
1201
1203
  | INPUT_METHOD.INSERT_MENU
@@ -1696,12 +1698,6 @@ type OnEditorViewStateUpdated = (props: {
1696
1698
  // @public (undocumented)
1697
1699
  export const openDatePicker: () => Command;
1698
1700
 
1699
- // @public (undocumented)
1700
- function outdentList(
1701
- inputMethod: InputMethod_2 | undefined,
1702
- featureFlags: EditorFeatureFlags,
1703
- ): Command;
1704
-
1705
1701
  export { PaletteColor };
1706
1702
 
1707
1703
  // @public (undocumented)
@@ -2274,12 +2270,6 @@ interface TextSelectionData {
2274
2270
  type: 'text';
2275
2271
  }
2276
2272
 
2277
- // @public (undocumented)
2278
- function toggleBulletList(
2279
- view: EditorView,
2280
- inputMethod?: ListInputMethod,
2281
- ): boolean;
2282
-
2283
2273
  // @public (undocumented)
2284
2274
  export const toggleCode: () => Command_2;
2285
2275
 
@@ -2304,12 +2294,6 @@ export const toggleEmWithAnalytics: (
2304
2294
  inputMethod: TextFormattingInputMethodBasic;
2305
2295
  }) => Command_2;
2306
2296
 
2307
- // @public (undocumented)
2308
- function toggleOrderedList(
2309
- view: EditorView,
2310
- inputMethod?: ListInputMethod,
2311
- ): boolean;
2312
-
2313
2297
  // @public (undocumented)
2314
2298
  export const toggleStrike: () => Command_2;
2315
2299
 
@@ -1039,10 +1039,10 @@ export function getDefaultPresetOptionsFromEditorProps(props: EditorProps, creat
1039
1039
 
1040
1040
  // @public (undocumented)
1041
1041
  export const getListCommands: () => {
1042
- indentList: typeof indentList;
1043
- outdentList: typeof outdentList;
1044
- toggleOrderedList: typeof toggleOrderedList;
1045
- toggleBulletList: typeof toggleBulletList;
1042
+ indentList: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod?: INPUT_METHOD | INPUT_METHOD) => Command;
1043
+ outdentList: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod: (INPUT_METHOD | INPUT_METHOD) | undefined, featureFlags: EditorFeatureFlags) => Command;
1044
+ toggleOrderedList: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (view: EditorView, inputMethod?: ListInputMethod) => boolean;
1045
+ toggleBulletList: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (view: EditorView, inputMethod?: ListInputMethod) => boolean;
1046
1046
  };
1047
1047
 
1048
1048
  // @public (undocumented)
@@ -1068,9 +1068,6 @@ export interface HistoryPluginState {
1068
1068
  canUndo: boolean;
1069
1069
  }
1070
1070
 
1071
- // @public (undocumented)
1072
- function indentList(inputMethod?: InputMethod): Command;
1073
-
1074
1071
  // @public (undocumented)
1075
1072
  export type InlineCommentAnnotationProvider = AnnotationTypeProvider<AnnotationTypes.INLINE_COMMENT, InlineCommentState> & {
1076
1073
  createComponent?: React_2.ComponentType<InlineCommentCreateComponentProps>;
@@ -1097,12 +1094,6 @@ export type InlineCommentViewComponentProps = AnnotationComponentProps & {
1097
1094
 
1098
1095
  export { INPUT_METHOD }
1099
1096
 
1100
- // @public (undocumented)
1101
- type InputMethod = INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
1102
-
1103
- // @public (undocumented)
1104
- type InputMethod_2 = INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
1105
-
1106
1097
  // @public (undocumented)
1107
1098
  export type InsertBlockInputMethodToolbar = INPUT_METHOD.INSERT_MENU | INPUT_METHOD.TOOLBAR;
1108
1099
 
@@ -1524,9 +1515,6 @@ type OnEditorViewStateUpdated = (props: {
1524
1515
  // @public (undocumented)
1525
1516
  export const openDatePicker: () => Command;
1526
1517
 
1527
- // @public (undocumented)
1528
- function outdentList(inputMethod: InputMethod_2 | undefined, featureFlags: EditorFeatureFlags): Command;
1529
-
1530
1518
  export { PaletteColor }
1531
1519
 
1532
1520
  // @public (undocumented)
@@ -2042,9 +2030,6 @@ interface TextSelectionData {
2042
2030
  type: 'text';
2043
2031
  }
2044
2032
 
2045
- // @public (undocumented)
2046
- function toggleBulletList(view: EditorView, inputMethod?: ListInputMethod): boolean;
2047
-
2048
2033
  // @public (undocumented)
2049
2034
  export const toggleCode: () => Command_2;
2050
2035
 
@@ -2061,9 +2046,6 @@ export const toggleEmWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | un
2061
2046
  inputMethod: TextFormattingInputMethodBasic;
2062
2047
  }) => Command_2;
2063
2048
 
2064
- // @public (undocumented)
2065
- function toggleOrderedList(view: EditorView, inputMethod?: ListInputMethod): boolean;
2066
-
2067
2049
  // @public (undocumented)
2068
2050
  export const toggleStrike: () => Command_2;
2069
2051