@atlaskit/editor-common 60.2.0 → 62.0.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 +105 -0
- package/card/package.json +7 -0
- package/dist/cjs/card/cardOptions.js +5 -0
- package/dist/cjs/emoji.js +23 -0
- package/dist/cjs/extensions/extension-fields-helpers.js +1 -1
- package/dist/cjs/extensions/index.js +46 -40
- package/dist/cjs/extensions/manifest-helpers.js +3 -1
- package/dist/cjs/extensions/module-helpers.js +3 -1
- package/dist/cjs/extensions/types/field-definitions.js +7 -1
- package/dist/cjs/extensions/types/index.js +14 -8
- package/dist/cjs/extensions.js +38 -32
- package/dist/cjs/i18n/cs.js +1 -0
- package/dist/cjs/i18n/da.js +1 -0
- package/dist/cjs/i18n/de.js +1 -0
- package/dist/cjs/i18n/es.js +1 -0
- package/dist/cjs/i18n/fi.js +1 -0
- package/dist/cjs/i18n/fr.js +1 -0
- package/dist/cjs/i18n/hu.js +1 -0
- package/dist/cjs/i18n/index.js +26 -26
- package/dist/cjs/i18n/it.js +1 -0
- package/dist/cjs/i18n/ja.js +1 -0
- package/dist/cjs/i18n/ko.js +1 -0
- package/dist/cjs/i18n/nb.js +1 -0
- package/dist/cjs/i18n/nl.js +1 -0
- package/dist/cjs/i18n/pl.js +1 -0
- package/dist/cjs/i18n/pt_BR.js +1 -0
- package/dist/cjs/i18n/ru.js +1 -0
- package/dist/cjs/i18n/sv.js +1 -0
- package/dist/cjs/i18n/th.js +1 -0
- package/dist/cjs/i18n/tr.js +1 -0
- package/dist/cjs/i18n/uk.js +1 -0
- package/dist/cjs/i18n/vi.js +1 -0
- package/dist/cjs/i18n/zh.js +1 -1
- package/dist/cjs/i18n/zh_TW.js +1 -0
- package/dist/cjs/in-product.js +14 -14
- package/dist/cjs/index.js +330 -300
- package/dist/cjs/mention.js +23 -0
- package/dist/cjs/messages/codeBidiWarning.js +21 -0
- package/dist/cjs/messages/index.js +8 -0
- package/dist/cjs/messages/link.js +2 -2
- package/dist/cjs/messages/unsupportedContent.js +2 -2
- package/dist/cjs/provider-factory/context.js +1 -1
- package/dist/cjs/provider-factory.js +6 -6
- package/dist/cjs/provider-helpers/promise-helpers.js +1 -1
- package/dist/cjs/styles/index.js +86 -80
- package/dist/cjs/styles/shared/annotation.js +1 -1
- package/dist/cjs/styles/shared/media-single.js +1 -1
- package/dist/cjs/styles/shared/panel.js +90 -37
- package/dist/cjs/styles/shared/table.js +2 -2
- package/dist/cjs/type-ahead/index.js +1 -1
- package/dist/cjs/types/annotation/emitter.js +1 -1
- package/dist/cjs/ufo/experience-store.js +3 -2
- package/dist/cjs/ufo/index.js +4 -4
- package/dist/cjs/ui/BaseTheme/index.js +2 -2
- package/dist/cjs/ui/Caption/index.js +2 -2
- package/dist/cjs/ui/Caption/messages.js +2 -2
- package/dist/cjs/ui/Expand/index.js +3 -3
- package/dist/cjs/ui/IntlLegacyFallbackProvider/index.js +60 -0
- package/dist/cjs/ui/IntlNextErrorBoundary/index.js +90 -0
- package/dist/cjs/ui/LegacyToNextIntlProvider/index.js +67 -0
- package/dist/cjs/ui/MediaSingle/grid.js +2 -2
- package/dist/cjs/ui/MediaSingle/index.js +2 -1
- package/dist/cjs/ui/MediaSingle/styled.js +1 -1
- package/dist/cjs/ui/Messages/index.js +1 -1
- package/dist/cjs/ui/Popup/index.js +1 -1
- package/dist/cjs/ui/Popup/utils.js +5 -5
- package/dist/cjs/ui/UnsupportedBlock/index.js +2 -2
- package/dist/cjs/ui/UnsupportedInline/index.js +2 -2
- package/dist/cjs/ui/WidthProvider/index.js +2 -2
- package/dist/cjs/ui/index.js +92 -62
- package/dist/cjs/utils/analytics.js +6 -5
- package/dist/cjs/utils/breakout.js +1 -1
- package/dist/cjs/utils/compareNodes.js +6 -0
- package/dist/cjs/utils/date.js +3 -4
- package/dist/cjs/utils/index.js +123 -109
- package/dist/cjs/utils/performance/measure-tti.js +2 -2
- package/dist/cjs/utils/performance/measure.js +1 -1
- package/dist/cjs/utils/table.js +1 -1
- package/dist/cjs/utils/validate-using-spec.js +1 -1
- package/dist/cjs/utils/validator.js +13 -16
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/card/cardOptions.js +1 -0
- package/dist/es2019/emoji.js +2 -0
- package/dist/es2019/extensions/index.js +1 -1
- package/dist/es2019/extensions/types/field-definitions.js +3 -0
- package/dist/es2019/extensions/types/index.js +1 -1
- package/dist/es2019/extensions.js +1 -1
- package/dist/es2019/i18n/cs.js +1 -0
- package/dist/es2019/i18n/da.js +1 -0
- package/dist/es2019/i18n/de.js +1 -0
- package/dist/es2019/i18n/es.js +1 -0
- package/dist/es2019/i18n/fi.js +1 -0
- package/dist/es2019/i18n/fr.js +1 -0
- package/dist/es2019/i18n/hu.js +1 -0
- package/dist/es2019/i18n/it.js +1 -0
- package/dist/es2019/i18n/ja.js +1 -0
- package/dist/es2019/i18n/ko.js +1 -0
- package/dist/es2019/i18n/nb.js +1 -0
- package/dist/es2019/i18n/nl.js +1 -0
- package/dist/es2019/i18n/pl.js +1 -0
- package/dist/es2019/i18n/pt_BR.js +1 -0
- package/dist/es2019/i18n/ru.js +1 -0
- package/dist/es2019/i18n/sv.js +1 -0
- package/dist/es2019/i18n/th.js +1 -0
- package/dist/es2019/i18n/tr.js +1 -0
- package/dist/es2019/i18n/uk.js +1 -0
- package/dist/es2019/i18n/vi.js +1 -0
- package/dist/es2019/i18n/zh.js +1 -1
- package/dist/es2019/i18n/zh_TW.js +1 -0
- package/dist/es2019/index.js +26 -8
- package/dist/es2019/mention.js +2 -0
- package/dist/es2019/messages/codeBidiWarning.js +12 -0
- package/dist/es2019/messages/index.js +1 -0
- package/dist/es2019/messages/link.js +1 -1
- package/dist/es2019/messages/unsupportedContent.js +1 -1
- package/dist/es2019/styles/index.js +4 -2
- package/dist/es2019/styles/shared/media-single.js +10 -0
- package/dist/es2019/styles/shared/panel.js +97 -38
- package/dist/es2019/styles/shared/table.js +1 -0
- package/dist/es2019/ufo/experience-store.js +2 -1
- package/dist/es2019/ui/Caption/index.js +1 -1
- package/dist/es2019/ui/Caption/messages.js +1 -1
- package/dist/es2019/ui/Expand/index.js +1 -1
- package/dist/es2019/ui/IntlLegacyFallbackProvider/index.js +21 -0
- package/dist/es2019/ui/IntlNextErrorBoundary/index.js +43 -0
- package/dist/es2019/ui/LegacyToNextIntlProvider/index.js +24 -0
- package/dist/es2019/ui/UnsupportedBlock/index.js +1 -1
- package/dist/es2019/ui/UnsupportedInline/index.js +1 -1
- package/dist/es2019/ui/index.js +12 -4
- package/dist/es2019/utils/compareNodes.js +6 -0
- package/dist/es2019/utils/date.js +2 -3
- package/dist/es2019/utils/index.js +2 -1
- package/dist/es2019/utils/validator.js +11 -13
- package/dist/es2019/version.json +1 -1
- package/dist/esm/card/cardOptions.js +1 -0
- package/dist/esm/emoji.js +2 -0
- package/dist/esm/extensions/index.js +1 -1
- package/dist/esm/extensions/types/field-definitions.js +3 -0
- package/dist/esm/extensions/types/index.js +1 -1
- package/dist/esm/extensions.js +1 -1
- package/dist/esm/i18n/cs.js +1 -0
- package/dist/esm/i18n/da.js +1 -0
- package/dist/esm/i18n/de.js +1 -0
- package/dist/esm/i18n/es.js +1 -0
- package/dist/esm/i18n/fi.js +1 -0
- package/dist/esm/i18n/fr.js +1 -0
- package/dist/esm/i18n/hu.js +1 -0
- package/dist/esm/i18n/it.js +1 -0
- package/dist/esm/i18n/ja.js +1 -0
- package/dist/esm/i18n/ko.js +1 -0
- package/dist/esm/i18n/nb.js +1 -0
- package/dist/esm/i18n/nl.js +1 -0
- package/dist/esm/i18n/pl.js +1 -0
- package/dist/esm/i18n/pt_BR.js +1 -0
- package/dist/esm/i18n/ru.js +1 -0
- package/dist/esm/i18n/sv.js +1 -0
- package/dist/esm/i18n/th.js +1 -0
- package/dist/esm/i18n/tr.js +1 -0
- package/dist/esm/i18n/uk.js +1 -0
- package/dist/esm/i18n/vi.js +1 -0
- package/dist/esm/i18n/zh.js +1 -1
- package/dist/esm/i18n/zh_TW.js +1 -0
- package/dist/esm/index.js +26 -8
- package/dist/esm/mention.js +2 -0
- package/dist/esm/messages/codeBidiWarning.js +12 -0
- package/dist/esm/messages/index.js +1 -0
- package/dist/esm/messages/link.js +1 -1
- package/dist/esm/messages/unsupportedContent.js +1 -1
- package/dist/esm/styles/index.js +4 -2
- package/dist/esm/styles/shared/media-single.js +1 -1
- package/dist/esm/styles/shared/panel.js +84 -37
- package/dist/esm/styles/shared/table.js +1 -1
- package/dist/esm/ufo/experience-store.js +2 -1
- package/dist/esm/ui/Caption/index.js +1 -1
- package/dist/esm/ui/Caption/messages.js +1 -1
- package/dist/esm/ui/Expand/index.js +1 -1
- package/dist/esm/ui/IntlLegacyFallbackProvider/index.js +45 -0
- package/dist/esm/ui/IntlNextErrorBoundary/index.js +73 -0
- package/dist/esm/ui/LegacyToNextIntlProvider/index.js +51 -0
- package/dist/esm/ui/UnsupportedBlock/index.js +1 -1
- package/dist/esm/ui/UnsupportedInline/index.js +1 -1
- package/dist/esm/ui/index.js +12 -4
- package/dist/esm/utils/compareNodes.js +6 -0
- package/dist/esm/utils/date.js +2 -3
- package/dist/esm/utils/index.js +2 -1
- package/dist/esm/utils/validator.js +12 -15
- package/dist/esm/version.json +1 -1
- package/dist/types/card/cardOptions.d.ts +9 -0
- package/dist/types/card/index.d.ts +1 -9
- package/dist/types/collab.d.ts +1 -1
- package/dist/types/emoji.d.ts +3 -0
- package/dist/types/extensions/index.d.ts +1 -1
- package/dist/types/extensions/types/extension-handler.d.ts +7 -2
- package/dist/types/extensions/types/extension-parameters.d.ts +1 -0
- package/dist/types/extensions/types/field-definitions.d.ts +2 -0
- package/dist/types/extensions/types/index.d.ts +1 -1
- package/dist/types/extensions.d.ts +1 -1
- package/dist/types/i18n/cs.d.ts +1 -0
- package/dist/types/i18n/da.d.ts +1 -0
- package/dist/types/i18n/de.d.ts +1 -0
- package/dist/types/i18n/es.d.ts +1 -0
- package/dist/types/i18n/fi.d.ts +1 -0
- package/dist/types/i18n/fr.d.ts +1 -0
- package/dist/types/i18n/hu.d.ts +1 -0
- package/dist/types/i18n/it.d.ts +1 -0
- package/dist/types/i18n/ja.d.ts +1 -0
- package/dist/types/i18n/ko.d.ts +1 -0
- package/dist/types/i18n/nb.d.ts +1 -0
- package/dist/types/i18n/nl.d.ts +1 -0
- package/dist/types/i18n/pl.d.ts +1 -0
- package/dist/types/i18n/pt_BR.d.ts +1 -0
- package/dist/types/i18n/ru.d.ts +1 -0
- package/dist/types/i18n/sv.d.ts +1 -0
- package/dist/types/i18n/th.d.ts +1 -0
- package/dist/types/i18n/tr.d.ts +1 -0
- package/dist/types/i18n/uk.d.ts +1 -0
- package/dist/types/i18n/vi.d.ts +1 -0
- package/dist/types/i18n/zh.d.ts +1 -0
- package/dist/types/i18n/zh_TW.d.ts +1 -0
- package/dist/types/index.d.ts +6 -2
- package/dist/types/mention.d.ts +2 -0
- package/dist/types/messages/codeBidiWarning.d.ts +11 -0
- package/dist/types/messages/index.d.ts +1 -0
- package/dist/types/provider-factory.d.ts +1 -0
- package/dist/types/styles/index.d.ts +1 -1
- package/dist/types/styles/shared/panel.d.ts +2 -0
- package/dist/types/ufo/experience-store.d.ts +3 -2
- package/dist/types/ui/Caption/index.d.ts +4 -4
- package/dist/types/ui/IntlLegacyFallbackProvider/index.d.ts +8 -0
- package/dist/types/ui/IntlNextErrorBoundary/index.d.ts +15 -0
- package/dist/types/ui/LegacyToNextIntlProvider/index.d.ts +8 -0
- package/dist/types/ui/UnsupportedBlock/index.d.ts +3 -3
- package/dist/types/ui/UnsupportedInline/index.d.ts +3 -3
- package/dist/types/ui/index.d.ts +3 -0
- package/dist/types/ui/unsupported-content-helper.d.ts +2 -2
- package/dist/types/utils/date.d.ts +3 -3
- package/dist/types/utils/index.d.ts +1 -0
- package/emoji/package.json +7 -0
- package/mention/package.json +7 -0
- package/package.json +30 -19
- package/provider-helpers/package.json +7 -0
- package/types/package.json +7 -0
- package/ui/package.json +7 -0
- package/utils/package.json +7 -0
|
@@ -147,10 +147,12 @@ export interface Fieldset extends BaseFieldDefinition {
|
|
|
147
147
|
export declare type FieldDefinition = NestedFieldDefinition | Fieldset | GroupingField;
|
|
148
148
|
export declare const isFieldset: (field: FieldDefinition) => field is Fieldset;
|
|
149
149
|
export declare const isTabGroup: (field: FieldDefinition) => field is TabGroupField;
|
|
150
|
+
export declare const isTabField: (field: any) => field is TabField;
|
|
150
151
|
export declare const isExpand: (field: FieldDefinition) => field is ExpandField;
|
|
151
152
|
export declare const isDateRange: (value: any) => value is DateRangeResult;
|
|
152
153
|
export interface GroupedField extends BaseFieldDefinition {
|
|
153
154
|
fields: NestedFieldDefinition[];
|
|
155
|
+
hasGroupedValues?: boolean;
|
|
154
156
|
}
|
|
155
157
|
export interface ExpandField extends GroupedField {
|
|
156
158
|
type: 'expand';
|
|
@@ -4,5 +4,5 @@ export type { ExtensionAutoConvertHandler, ExtensionComponentProps, ExtensionKey
|
|
|
4
4
|
export type { ContextualToolbar, ToolbarItem, ExtensionToolbarButton, } from './extension-manifest-toolbar-item';
|
|
5
5
|
export type { Parameters, ParametersWithDuplicateFields, } from './extension-parameters';
|
|
6
6
|
export type { MenuItem, MenuItemMap } from './utils';
|
|
7
|
-
export { isFieldset, isTabGroup, isExpand, isDateRange, } from './field-definitions';
|
|
7
|
+
export { isFieldset, isTabGroup, isTabField, isExpand, isDateRange, } from './field-definitions';
|
|
8
8
|
export type { BooleanField, CustomField, ColorField, DateField, DateRangeField, DateRangeResult, EnumField, EnumCheckboxField, EnumRadioField, EnumSelectField, ExpandField, FieldDefinition, Fieldset, GroupingField, NativeField, NestedFieldDefinition, NumberField, Option, StringField, StringOneLineField, StringMultilineField, TabGroupField, TabField, UserField, UserFieldContext, FieldHandlerLink, } from './field-definitions';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DefaultExtensionProvider, combineExtensionProviders, createAutoConverterRunner, getExtensionAutoConvertersFromProvider, getExtensionKeyAndNodeKey, getExtensionModuleNode, getQuickInsertItemsFromModule, getNodeRenderer, getExtensionModuleNodePrivateProps, getContextualToolbarItemsFromModule, resolveImport, getCustomFieldResolver, getFieldSerializer, getFieldDeserializer, isFieldset, isTabGroup, isExpand, isDateRange, getUserFieldContextProvider, buildMenuItem, } from './extensions/index';
|
|
1
|
+
export { DefaultExtensionProvider, combineExtensionProviders, createAutoConverterRunner, getExtensionAutoConvertersFromProvider, getExtensionKeyAndNodeKey, getExtensionModuleNode, getQuickInsertItemsFromModule, getNodeRenderer, getExtensionModuleNodePrivateProps, getContextualToolbarItemsFromModule, resolveImport, getCustomFieldResolver, getFieldSerializer, getFieldDeserializer, isFieldset, isTabGroup, isTabField, isExpand, isDateRange, getUserFieldContextProvider, buildMenuItem, } from './extensions/index';
|
|
2
2
|
export type { ExtensionAutoConvertHandler, Extension, ExtensionComponentProps, ExtensionHandler, ExtensionHandlers, ExtensionKey, ExtensionManifest, ExtensionModule, ExtensionModuleAction, ExtensionModuleActionHandler, ExtensionModuleActionObject, ExtensionModuleNode, ExtensionModuleNodes, ExtensionQuickInsertModule, ExtensionModules, ExtensionParams, ExtensionProvider, ExtensionType, ExtensionToolbarButton, ToolbarItem, ContextualToolbar, Icon, MaybeADFEntity, MenuItem, MenuItemMap, UpdateExtension, Parameters, ParametersWithDuplicateFields, BooleanField, CustomField, CustomFieldResolver, ColorField, DateField, DateRangeField, DateRangeResult, EnumField, EnumCheckboxField, EnumRadioField, EnumSelectField, ExpandField, FieldDefinition, DynamicFieldDefinitions, Fieldset, GroupingField, NativeField, NestedFieldDefinition, NumberField, Option, StringField, StringOneLineField, StringMultilineField, TabGroupField, TabField, UserField, UserFieldContext, UserFieldContextProvider, FieldHandlerLink, OnSaveCallback, ExtensionAPI, TransformBefore, TransformAfter, ReferenceEntity, ParametersGetter, AsyncParametersGetter, } from './extensions/index';
|
package/dist/types/i18n/cs.d.ts
CHANGED
package/dist/types/i18n/da.d.ts
CHANGED
package/dist/types/i18n/de.d.ts
CHANGED
package/dist/types/i18n/es.d.ts
CHANGED
package/dist/types/i18n/fi.d.ts
CHANGED
package/dist/types/i18n/fr.d.ts
CHANGED
package/dist/types/i18n/hu.d.ts
CHANGED
package/dist/types/i18n/it.d.ts
CHANGED
package/dist/types/i18n/ja.d.ts
CHANGED
package/dist/types/i18n/ko.d.ts
CHANGED
package/dist/types/i18n/nb.d.ts
CHANGED
package/dist/types/i18n/nl.d.ts
CHANGED
package/dist/types/i18n/pl.d.ts
CHANGED
package/dist/types/i18n/ru.d.ts
CHANGED
package/dist/types/i18n/sv.d.ts
CHANGED
package/dist/types/i18n/th.d.ts
CHANGED
package/dist/types/i18n/tr.d.ts
CHANGED
package/dist/types/i18n/uk.d.ts
CHANGED
package/dist/types/i18n/vi.d.ts
CHANGED
package/dist/types/i18n/zh.d.ts
CHANGED
package/dist/types/index.d.ts
CHANGED
|
@@ -10,8 +10,12 @@ export type { ContextIdentifierProvider } from './provider-factory/context-ident
|
|
|
10
10
|
export { ProviderFactory, WithProviders } from './provider-factory';
|
|
11
11
|
export type { Providers, MediaProvider, SearchProvider, LinkContentType, QuickSearchResult, } from './provider-factory';
|
|
12
12
|
export { combineProviders } from './provider-helpers';
|
|
13
|
-
export { TableSharedCssClassName, blockMarksSharedStyles, blockquoteSharedStyles, calcTableWidth, codeMarkSharedStyles, columnLayoutSharedStyle, dateSharedStyle, DateSharedCssClassName, annotationSharedStyles, AnnotationSharedCSSByState, AnnotationSharedClassNames, headingsSharedStyles, indentationSharedStyles, inlineNodeSharedStyle, linkSharedStyle, listsSharedStyles, richMediaClassName, mediaSingleSharedStyle, getPanelTypeBackground, panelSharedStyles, PanelSharedCssClassName, PanelSharedSelectors, paragraphSharedStyles, ruleSharedStyles, shadowSharedStyle, tableCellBorderWidth, tableCellMinWidth, tableCellPadding, tableMarginBottom, tableMarginSides, tableMarginTop, tableNewColumnMinWidth, tableResizeHandleWidth, tableSharedStyle, tasksAndDecisionsStyles, TaskDecisionSharedCssClassName, whitespaceSharedStyles, MentionSharedCssClassName,
|
|
14
|
-
|
|
13
|
+
export { TableSharedCssClassName, blockMarksSharedStyles, blockquoteSharedStyles, calcTableWidth, codeMarkSharedStyles, columnLayoutSharedStyle, dateSharedStyle, DateSharedCssClassName, annotationSharedStyles, AnnotationSharedCSSByState, AnnotationSharedClassNames, headingsSharedStyles, indentationSharedStyles, inlineNodeSharedStyle, linkSharedStyle, listsSharedStyles, richMediaClassName, mediaSingleSharedStyle, getPanelTypeBackground, getPanelBackgroundDarkModeColors, panelSharedStyles, PanelSharedCssClassName, PanelSharedSelectors, paragraphSharedStyles, ruleSharedStyles, shadowSharedStyle, tableCellBorderWidth, tableCellMinWidth, tableCellPadding, tableMarginBottom, tableMarginSides, tableMarginTop, tableNewColumnMinWidth, tableResizeHandleWidth, tableSharedStyle, tasksAndDecisionsStyles, TaskDecisionSharedCssClassName, whitespaceSharedStyles, MentionSharedCssClassName, //exported from ./src/mention.ts
|
|
14
|
+
EmojiSharedCssClassName, //exported from ./src/emoji.ts
|
|
15
|
+
StatusSharedCssClassName, smartCardSharedStyles, SmartCardSharedCssClassName, } from './styles';
|
|
16
|
+
export { BaseTheme, Caption, ClearNextSiblingMarginTop, DEFAULT_IMAGE_HEIGHT, DEFAULT_IMAGE_WIDTH, Emoji, //exported from ./src/emoji.ts
|
|
17
|
+
ErrorMessage, ExpandIconWrapper, ExpandLayoutWrapper, HelperMessage, MediaSingle, MediaSingleDimensionHelper, Mention, //exported from ./src/mention.ts
|
|
18
|
+
Popup, UnsupportedBlock, UnsupportedInline, ValidMessage, WidthConsumer, WidthProvider, WithCreateAnalyticsEvent, calcColumnsFromPx, calcPctFromPx, calcPxFromColumns, calcPxFromPct, expandMessages, findOverflowScrollParent, getBreakpoint, layoutSupportsWidth, mapBreakpointToLayoutMaxWidth, overflowShadow, shadowClassNames, sharedExpandStyles, snapToGrid, withOuterListeners, MediaLink, wrappedLayouts, shouldAddDefaultWrappedWidth, IntlNextErrorBoundary, REACT_INTL_ERROR_MESSAGE, IntlLegacyFallbackProvider, LegacyToNextIntlProvider, } from './ui';
|
|
15
19
|
export type { CardEventClickHandler, CardSurroundings, EmojiProps, EventHandlers, LinkEventClickHandler, MediaSingleDimensionHelperProps, MediaSingleProps, MentionEventHandler, MentionEventHandlers, OverflowShadowOptions, OverflowShadowProps, OverflowShadowState, PopupPosition, PopupProps, SmartCardEventClickHandler, WidthConsumerContext, ExpandStyleProps, } from './ui';
|
|
16
20
|
export { linkMessages } from './messages/link';
|
|
17
21
|
export { validateADFEntity, validationErrorHandler, } from './utils/validate-using-spec';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const codeBidiWarningMessages: {
|
|
2
|
+
/**
|
|
3
|
+
* Message taken from
|
|
4
|
+
* https://hello.atlassian.net/wiki/spaces/~tswan/pages/1366555782/PSHELP-2943+Investigate+Trojan+Source+Attack+Vulnerability+design
|
|
5
|
+
*/
|
|
6
|
+
label: {
|
|
7
|
+
id: string;
|
|
8
|
+
defaultMessage: string;
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -10,3 +10,4 @@ export type { CardProvider, CardAppearance, CardAdf, } from './provider-factory/
|
|
|
10
10
|
export type { QuickInsertItem, QuickInsertItemId, QuickInsertActionInsert, QuickInsertProvider, } from './provider-factory/quick-insert-provider';
|
|
11
11
|
export type { TypeAheadItem, TypeAheadItemRenderProps, } from './types/type-ahead';
|
|
12
12
|
export type { AutoformatReplacement, AutoformattingProvider, AutoformatHandler, AutoformatRuleset, } from './provider-factory/autoformatting-provider';
|
|
13
|
+
export type { ContextIdentifierProvider } from './provider-factory/context-identifier-provider';
|
|
@@ -4,7 +4,7 @@ export { columnLayoutSharedStyle } from './shared/column-layout';
|
|
|
4
4
|
export { mediaSingleSharedStyle, richMediaClassName, } from './shared/media-single';
|
|
5
5
|
export { blockquoteSharedStyles } from './shared/blockquote';
|
|
6
6
|
export { headingsSharedStyles } from './shared/headings';
|
|
7
|
-
export { getPanelTypeBackground, panelSharedStyles, PanelSharedCssClassName, PanelSharedSelectors, } from './shared/panel';
|
|
7
|
+
export { getPanelTypeBackground, panelSharedStyles, PanelSharedCssClassName, PanelSharedSelectors, getPanelBackgroundDarkModeColors, } from './shared/panel';
|
|
8
8
|
export { ruleSharedStyles } from './shared/rule';
|
|
9
9
|
export { whitespaceSharedStyles } from './shared/whitespace';
|
|
10
10
|
export { paragraphSharedStyles } from './shared/paragraph';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { PanelType } from '@atlaskit/adf-schema';
|
|
2
2
|
import { ThemeProps } from '@atlaskit/theme/types';
|
|
3
|
+
export declare const getPanelBackgroundDarkModeColors: string;
|
|
4
|
+
export declare function getPanelDarkModeCSS(colorName: string, colorValue: string): string;
|
|
3
5
|
export declare const PanelSharedCssClassName: {
|
|
4
6
|
prefix: string;
|
|
5
7
|
content: string;
|
|
@@ -5,7 +5,8 @@ export declare const experienceConfig: ExperienceConfig;
|
|
|
5
5
|
export declare enum EditorExperience {
|
|
6
6
|
loadEditor = "load",
|
|
7
7
|
typing = "type",
|
|
8
|
-
interaction = "interact"
|
|
8
|
+
interaction = "interact",
|
|
9
|
+
editSession = "editSession"
|
|
9
10
|
}
|
|
10
11
|
export declare const RELIABILITY_INTERVAL = 30000;
|
|
11
12
|
declare type TypeOfEditorExperience = typeof EditorExperience;
|
|
@@ -23,7 +24,7 @@ export declare class ExperienceStore {
|
|
|
23
24
|
start(experienceId: ValueOfEditorExperience, startTime?: number): void;
|
|
24
25
|
addMetadata(experienceId: string, metadata: CustomData): void;
|
|
25
26
|
mark(experienceId: string, mark: string, value: number): void;
|
|
26
|
-
success(experienceId: string, metadata?: CustomData):
|
|
27
|
+
success(experienceId: string, metadata?: CustomData): Promise<boolean | null> | undefined;
|
|
27
28
|
fail(experienceId: string, metadata?: CustomData): void;
|
|
28
29
|
abort(experienceId: string, metadata?: CustomData): void;
|
|
29
30
|
abortAll(metadata?: CustomData): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
selected?: boolean;
|
|
5
5
|
hasContent?: boolean;
|
|
@@ -8,10 +8,10 @@ declare type Props = {
|
|
|
8
8
|
'data-renderer-start-pos': number;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
-
export declare class CaptionComponent extends React.Component<Props &
|
|
11
|
+
export declare class CaptionComponent extends React.Component<Props & WrappedComponentProps> {
|
|
12
12
|
render(): JSX.Element;
|
|
13
13
|
}
|
|
14
|
-
declare const _default: React.
|
|
15
|
-
WrappedComponent:
|
|
14
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
15
|
+
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
16
16
|
};
|
|
17
17
|
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ErrorBoundaryProps {
|
|
3
|
+
}
|
|
4
|
+
interface ErrorBoundaryState {
|
|
5
|
+
missingIntlProviderInAncestry: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const REACT_INTL_ERROR_MESSAGE = "<IntlProvider> needs to exist in the component ancestry";
|
|
8
|
+
export declare class IntlNextErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
9
|
+
state: {
|
|
10
|
+
missingIntlProviderInAncestry: boolean;
|
|
11
|
+
};
|
|
12
|
+
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
|
|
13
|
+
render(): {} | null | undefined;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Node as PMNode } from 'prosemirror-model';
|
|
3
|
-
import {
|
|
3
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
import { UnsupportedContentTooltipPayload } from '../../utils';
|
|
5
5
|
export interface Props {
|
|
6
6
|
node?: PMNode;
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
dispatchAnalyticsEvent?: (payload: UnsupportedContentTooltipPayload) => void;
|
|
9
9
|
}
|
|
10
|
-
declare const _default: React.
|
|
11
|
-
WrappedComponent:
|
|
10
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
11
|
+
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
12
12
|
};
|
|
13
13
|
export default _default;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Node as PMNode } from 'prosemirror-model';
|
|
3
|
-
import {
|
|
3
|
+
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
import { UnsupportedContentTooltipPayload } from '../../utils';
|
|
5
5
|
export interface Props {
|
|
6
6
|
node?: PMNode;
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
dispatchAnalyticsEvent?: (payload: UnsupportedContentTooltipPayload) => void;
|
|
9
9
|
}
|
|
10
|
-
declare const _default: React.
|
|
11
|
-
WrappedComponent:
|
|
10
|
+
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
11
|
+
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
12
12
|
};
|
|
13
13
|
export default _default;
|
package/dist/types/ui/index.d.ts
CHANGED
|
@@ -24,3 +24,6 @@ export { messages as expandMessages, sharedExpandStyles, ExpandIconWrapper, Expa
|
|
|
24
24
|
export type { StyleProps as ExpandStyleProps } from './Expand';
|
|
25
25
|
export { ErrorMessage, HelperMessage, ValidMessage } from './Messages';
|
|
26
26
|
export { ClearNextSiblingMarginTop } from './clear-next-sibling-margin-top';
|
|
27
|
+
export { IntlNextErrorBoundary, REACT_INTL_ERROR_MESSAGE, } from './IntlNextErrorBoundary';
|
|
28
|
+
export { IntlLegacyFallbackProvider } from './IntlLegacyFallbackProvider';
|
|
29
|
+
export { LegacyToNextIntlProvider } from './LegacyToNextIntlProvider';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Node as PMNode } from 'prosemirror-model';
|
|
2
|
-
import {
|
|
3
|
-
export declare function getUnsupportedContent(message: any, prefix: string, node?: PMNode, intl?:
|
|
2
|
+
import { IntlShape } from 'react-intl-next';
|
|
3
|
+
export declare function getUnsupportedContent(message: any, prefix: string, node?: PMNode, intl?: IntlShape): any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IntlShape } from 'react-intl-next';
|
|
2
2
|
declare enum FORMATS {
|
|
3
3
|
ISO_FORMAT = "YYYY-MM-DD",
|
|
4
4
|
CURRENT_YEAR_FORMAT_WITHOUT_YEAR = "CURRENT_YEAR_FORMAT_WITHOUT_YEAR",
|
|
@@ -11,8 +11,8 @@ export interface Date {
|
|
|
11
11
|
}
|
|
12
12
|
export declare const timestampToUTCDate: (timestamp: string | number) => Date;
|
|
13
13
|
export declare const todayTimestampInUTC: () => string;
|
|
14
|
-
export declare const timestampToString: (timestamp: string | number, intl:
|
|
14
|
+
export declare const timestampToString: (timestamp: string | number, intl: IntlShape | null, pattern?: FORMATS | undefined) => string;
|
|
15
15
|
export declare const timestampToIsoFormat: (timestamp: string | number) => string;
|
|
16
16
|
export declare const isPastDate: (timestamp: string | number) => boolean;
|
|
17
|
-
export declare const timestampToTaskContext: (timestamp: string | number, intl:
|
|
17
|
+
export declare const timestampToTaskContext: (timestamp: string | number, intl: IntlShape) => string;
|
|
18
18
|
export {};
|
|
@@ -31,3 +31,4 @@ export { getModeFromTheme } from './getModeFromTheme';
|
|
|
31
31
|
export type { UserBrowserExtensionResults } from './browser-extensions';
|
|
32
32
|
export { sniffUserBrowserExtensions } from './browser-extensions';
|
|
33
33
|
export { RenderCountProfiler } from './profiler/render-count';
|
|
34
|
+
export { validateADFEntity, validationErrorHandler, } from './validate-using-spec';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "62.0.0",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -31,31 +31,38 @@
|
|
|
31
31
|
"./in-product": "./src/in-product.ts",
|
|
32
32
|
"./cypress-config": "./src/cypress-config.ts",
|
|
33
33
|
"./type-ahead": "./src/type-ahead/index.ts",
|
|
34
|
-
"./ufo": "./src/ufo/index.ts"
|
|
34
|
+
"./ufo": "./src/ufo/index.ts",
|
|
35
|
+
"./types": "./src/types/index.ts",
|
|
36
|
+
"./ui": "./src/ui/index.tsx",
|
|
37
|
+
"./utils": "./src/utils/index.ts",
|
|
38
|
+
"./card": "./src/card/index.ts",
|
|
39
|
+
"./emoji": "./src/emoji.ts",
|
|
40
|
+
"./mention": "./src/mention.ts",
|
|
41
|
+
"./provider-helpers": "./src/provider-helpers/index.ts"
|
|
35
42
|
},
|
|
36
43
|
"dependencies": {
|
|
37
44
|
"@atlaskit/activity-provider": "^2.3.0",
|
|
38
|
-
"@atlaskit/adf-schema": "^
|
|
39
|
-
"@atlaskit/adf-utils": "^14.
|
|
45
|
+
"@atlaskit/adf-schema": "^20.0.0",
|
|
46
|
+
"@atlaskit/adf-utils": "^14.4.0",
|
|
40
47
|
"@atlaskit/analytics-namespaced-context": "^6.3.0",
|
|
41
48
|
"@atlaskit/analytics-next": "^8.2.0",
|
|
42
|
-
"@atlaskit/code": "^14.
|
|
43
|
-
"@atlaskit/editor-json-transformer": "^8.
|
|
49
|
+
"@atlaskit/code": "^14.3.0",
|
|
50
|
+
"@atlaskit/editor-json-transformer": "^8.7.0",
|
|
44
51
|
"@atlaskit/editor-shared-styles": "^1.6.0",
|
|
45
|
-
"@atlaskit/emoji": "^
|
|
52
|
+
"@atlaskit/emoji": "^64.0.0",
|
|
46
53
|
"@atlaskit/icon": "^21.9.0",
|
|
47
54
|
"@atlaskit/in-product-testing": "^0.1.0",
|
|
48
|
-
"@atlaskit/media-card": "^
|
|
55
|
+
"@atlaskit/media-card": "^73.0.0",
|
|
49
56
|
"@atlaskit/media-client": "^14.3.0",
|
|
50
|
-
"@atlaskit/media-picker": "^
|
|
57
|
+
"@atlaskit/media-picker": "^59.0.0",
|
|
51
58
|
"@atlaskit/mention": "^19.7.0",
|
|
52
|
-
"@atlaskit/profilecard": "^
|
|
53
|
-
"@atlaskit/smart-card": "^
|
|
59
|
+
"@atlaskit/profilecard": "^16.0.0",
|
|
60
|
+
"@atlaskit/smart-card": "^17.0.0",
|
|
54
61
|
"@atlaskit/task-decision": "^17.2.0",
|
|
55
62
|
"@atlaskit/theme": "^12.0.0",
|
|
56
63
|
"@atlaskit/tooltip": "^17.5.0",
|
|
57
64
|
"@atlaskit/ufo": "^0.0.6",
|
|
58
|
-
"@atlaskit/user-picker": "^
|
|
65
|
+
"@atlaskit/user-picker": "^8.0.0",
|
|
59
66
|
"@atlaskit/width-detector": "^3.0.0",
|
|
60
67
|
"@babel/runtime": "^7.0.0",
|
|
61
68
|
"@types/prosemirror-model": "^1.11.0",
|
|
@@ -66,10 +73,10 @@
|
|
|
66
73
|
"cypress-file-upload": "^5.0.2",
|
|
67
74
|
"date-fns": "^2.17.0",
|
|
68
75
|
"lodash": "^4.17.15",
|
|
69
|
-
"prosemirror-model": "1.
|
|
70
|
-
"prosemirror-state": "1.3.
|
|
71
|
-
"prosemirror-transform": "1.2
|
|
72
|
-
"prosemirror-view": "1.
|
|
76
|
+
"prosemirror-model": "1.14.3",
|
|
77
|
+
"prosemirror-state": "1.3.4",
|
|
78
|
+
"prosemirror-transform": "1.3.2",
|
|
79
|
+
"prosemirror-view": "1.23.1",
|
|
73
80
|
"raf-schd": "^2.1.0",
|
|
74
81
|
"react-loadable": "^5.1.0"
|
|
75
82
|
},
|
|
@@ -78,13 +85,14 @@
|
|
|
78
85
|
"react": "^16.8.0",
|
|
79
86
|
"react-dom": "^16.8.0",
|
|
80
87
|
"react-intl": "^2.6.0",
|
|
88
|
+
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
81
89
|
"styled-components": "^3.2.6"
|
|
82
90
|
},
|
|
83
91
|
"devDependencies": {
|
|
84
|
-
"@atlaskit/editor-json-transformer": "^8.
|
|
85
|
-
"@atlaskit/editor-test-helpers": "^
|
|
92
|
+
"@atlaskit/editor-json-transformer": "^8.7.0",
|
|
93
|
+
"@atlaskit/editor-test-helpers": "^16.0.0",
|
|
86
94
|
"@atlaskit/media-core": "^32.2.0",
|
|
87
|
-
"@atlaskit/util-data-test": "^
|
|
95
|
+
"@atlaskit/util-data-test": "^17.0.0",
|
|
88
96
|
"@atlaskit/visual-regression": "*",
|
|
89
97
|
"@atlaskit/webdriver-runner": "*",
|
|
90
98
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
@@ -104,6 +112,9 @@
|
|
|
104
112
|
"file-level"
|
|
105
113
|
],
|
|
106
114
|
"import-structure": "atlassian-conventions"
|
|
115
|
+
},
|
|
116
|
+
"@repo/internal": {
|
|
117
|
+
"deprecation": "no-deprecated-imports"
|
|
107
118
|
}
|
|
108
119
|
},
|
|
109
120
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/provider-helpers",
|
|
3
|
+
"main": "../dist/cjs/provider-helpers/index.js",
|
|
4
|
+
"module": "../dist/esm/provider-helpers/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/provider-helpers/index.js",
|
|
6
|
+
"types": "../dist/types/provider-helpers/index.d.ts"
|
|
7
|
+
}
|
package/ui/package.json
ADDED