@atlaskit/editor-common 94.6.1 → 94.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/afm-cc/tsconfig.json +3 -0
- package/dist/cjs/i18n/cs.js +11 -3
- package/dist/cjs/i18n/da.js +11 -3
- package/dist/cjs/i18n/de.js +11 -3
- package/dist/cjs/i18n/en.js +14 -3
- package/dist/cjs/i18n/en_GB.js +14 -3
- package/dist/cjs/i18n/en_ZZ.js +14 -3
- package/dist/cjs/i18n/es.js +11 -3
- package/dist/cjs/i18n/fi.js +11 -3
- package/dist/cjs/i18n/fr.js +11 -3
- package/dist/cjs/i18n/hu.js +11 -3
- package/dist/cjs/i18n/index.js +7 -0
- package/dist/cjs/i18n/it.js +11 -3
- package/dist/cjs/i18n/ja.js +11 -3
- package/dist/cjs/i18n/ko.js +11 -3
- package/dist/cjs/i18n/languages.js +2 -0
- package/dist/cjs/i18n/nb.js +11 -3
- package/dist/cjs/i18n/nl.js +11 -3
- package/dist/cjs/i18n/pl.js +11 -3
- package/dist/cjs/i18n/pt_BR.js +11 -3
- package/dist/cjs/i18n/ru.js +11 -3
- package/dist/cjs/i18n/sv.js +11 -3
- package/dist/cjs/i18n/th.js +11 -3
- package/dist/cjs/i18n/tr.js +11 -3
- package/dist/cjs/i18n/uk.js +11 -3
- package/dist/cjs/i18n/vi.js +11 -3
- package/dist/cjs/i18n/zh.js +11 -3
- package/dist/cjs/i18n/zh_TW.js +11 -3
- package/dist/cjs/messages/annotation.js +10 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +5 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/FloatingToolbar/Button.js +29 -8
- package/dist/cjs/ui/FloatingToolbar/ButtonSpotlightCard.js +39 -0
- package/dist/cjs/ui-menu/DropdownMenu/index.js +0 -3
- package/dist/es2019/i18n/cs.js +11 -3
- package/dist/es2019/i18n/da.js +11 -3
- package/dist/es2019/i18n/de.js +11 -3
- package/dist/es2019/i18n/en.js +14 -3
- package/dist/es2019/i18n/en_GB.js +14 -3
- package/dist/es2019/i18n/en_ZZ.js +14 -3
- package/dist/es2019/i18n/es.js +11 -3
- package/dist/es2019/i18n/fi.js +11 -3
- package/dist/es2019/i18n/fr.js +11 -3
- package/dist/es2019/i18n/hu.js +11 -3
- package/dist/es2019/i18n/index.js +1 -0
- package/dist/es2019/i18n/it.js +11 -3
- package/dist/es2019/i18n/ja.js +11 -3
- package/dist/es2019/i18n/ko.js +11 -3
- package/dist/es2019/i18n/languages.js +2 -0
- package/dist/es2019/i18n/nb.js +11 -3
- package/dist/es2019/i18n/nl.js +11 -3
- package/dist/es2019/i18n/pl.js +11 -3
- package/dist/es2019/i18n/pt_BR.js +11 -3
- package/dist/es2019/i18n/ru.js +11 -3
- package/dist/es2019/i18n/sv.js +11 -3
- package/dist/es2019/i18n/th.js +11 -3
- package/dist/es2019/i18n/tr.js +11 -3
- package/dist/es2019/i18n/uk.js +11 -3
- package/dist/es2019/i18n/vi.js +11 -3
- package/dist/es2019/i18n/zh.js +11 -3
- package/dist/es2019/i18n/zh_TW.js +11 -3
- package/dist/es2019/messages/annotation.js +10 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +5 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/FloatingToolbar/Button.js +22 -9
- package/dist/es2019/ui/FloatingToolbar/ButtonSpotlightCard.js +29 -0
- package/dist/es2019/ui-menu/DropdownMenu/index.js +0 -3
- package/dist/esm/i18n/cs.js +11 -3
- package/dist/esm/i18n/da.js +11 -3
- package/dist/esm/i18n/de.js +11 -3
- package/dist/esm/i18n/en.js +14 -3
- package/dist/esm/i18n/en_GB.js +14 -3
- package/dist/esm/i18n/en_ZZ.js +14 -3
- package/dist/esm/i18n/es.js +11 -3
- package/dist/esm/i18n/fi.js +11 -3
- package/dist/esm/i18n/fr.js +11 -3
- package/dist/esm/i18n/hu.js +11 -3
- package/dist/esm/i18n/index.js +1 -0
- package/dist/esm/i18n/it.js +11 -3
- package/dist/esm/i18n/ja.js +11 -3
- package/dist/esm/i18n/ko.js +11 -3
- package/dist/esm/i18n/languages.js +2 -0
- package/dist/esm/i18n/nb.js +11 -3
- package/dist/esm/i18n/nl.js +11 -3
- package/dist/esm/i18n/pl.js +11 -3
- package/dist/esm/i18n/pt_BR.js +11 -3
- package/dist/esm/i18n/ru.js +11 -3
- package/dist/esm/i18n/sv.js +11 -3
- package/dist/esm/i18n/th.js +11 -3
- package/dist/esm/i18n/tr.js +11 -3
- package/dist/esm/i18n/uk.js +11 -3
- package/dist/esm/i18n/vi.js +11 -3
- package/dist/esm/i18n/zh.js +11 -3
- package/dist/esm/i18n/zh_TW.js +11 -3
- package/dist/esm/messages/annotation.js +10 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/react-node-view/getInlineNodeViewProducer.js +5 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/FloatingToolbar/Button.js +30 -9
- package/dist/esm/ui/FloatingToolbar/ButtonSpotlightCard.js +32 -0
- package/dist/esm/ui-menu/DropdownMenu/index.js +0 -3
- package/dist/types/i18n/cs.d.ts +10 -2
- package/dist/types/i18n/da.d.ts +10 -2
- package/dist/types/i18n/de.d.ts +10 -2
- package/dist/types/i18n/en.d.ts +13 -2
- package/dist/types/i18n/en_GB.d.ts +13 -2
- package/dist/types/i18n/en_ZZ.d.ts +13 -2
- package/dist/types/i18n/es.d.ts +10 -2
- package/dist/types/i18n/fi.d.ts +10 -2
- package/dist/types/i18n/fr.d.ts +10 -2
- package/dist/types/i18n/hu.d.ts +10 -2
- package/dist/types/i18n/index.d.ts +1 -0
- package/dist/types/i18n/it.d.ts +10 -2
- package/dist/types/i18n/ja.d.ts +10 -2
- package/dist/types/i18n/ko.d.ts +10 -2
- package/dist/types/i18n/languages.d.ts +1 -0
- package/dist/types/i18n/nb.d.ts +10 -2
- package/dist/types/i18n/nl.d.ts +10 -2
- package/dist/types/i18n/pl.d.ts +10 -2
- package/dist/types/i18n/pt_BR.d.ts +10 -2
- package/dist/types/i18n/ru.d.ts +10 -2
- package/dist/types/i18n/sv.d.ts +10 -2
- package/dist/types/i18n/th.d.ts +10 -2
- package/dist/types/i18n/tr.d.ts +10 -2
- package/dist/types/i18n/uk.d.ts +10 -2
- package/dist/types/i18n/vi.d.ts +10 -2
- package/dist/types/i18n/zh.d.ts +10 -2
- package/dist/types/i18n/zh_TW.d.ts +10 -2
- package/dist/types/messages/annotation.d.ts +10 -0
- package/dist/types/types/floating-toolbar.d.ts +12 -0
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/ui/DropList/index.d.ts +1 -4
- package/dist/types/ui/FloatingToolbar/Button.d.ts +4 -1
- package/dist/types/ui/FloatingToolbar/ButtonSpotlightCard.d.ts +10 -0
- package/dist/types-ts4.5/i18n/cs.d.ts +10 -2
- package/dist/types-ts4.5/i18n/da.d.ts +10 -2
- package/dist/types-ts4.5/i18n/de.d.ts +10 -2
- package/dist/types-ts4.5/i18n/en.d.ts +13 -2
- package/dist/types-ts4.5/i18n/en_GB.d.ts +13 -2
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +13 -2
- package/dist/types-ts4.5/i18n/es.d.ts +10 -2
- package/dist/types-ts4.5/i18n/fi.d.ts +10 -2
- package/dist/types-ts4.5/i18n/fr.d.ts +10 -2
- package/dist/types-ts4.5/i18n/hu.d.ts +10 -2
- package/dist/types-ts4.5/i18n/index.d.ts +1 -0
- package/dist/types-ts4.5/i18n/it.d.ts +10 -2
- package/dist/types-ts4.5/i18n/ja.d.ts +10 -2
- package/dist/types-ts4.5/i18n/ko.d.ts +10 -2
- package/dist/types-ts4.5/i18n/languages.d.ts +1 -0
- package/dist/types-ts4.5/i18n/nb.d.ts +10 -2
- package/dist/types-ts4.5/i18n/nl.d.ts +10 -2
- package/dist/types-ts4.5/i18n/pl.d.ts +10 -2
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +10 -2
- package/dist/types-ts4.5/i18n/ru.d.ts +10 -2
- package/dist/types-ts4.5/i18n/sv.d.ts +10 -2
- package/dist/types-ts4.5/i18n/th.d.ts +10 -2
- package/dist/types-ts4.5/i18n/tr.d.ts +10 -2
- package/dist/types-ts4.5/i18n/uk.d.ts +10 -2
- package/dist/types-ts4.5/i18n/vi.d.ts +10 -2
- package/dist/types-ts4.5/i18n/zh.d.ts +10 -2
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +10 -2
- package/dist/types-ts4.5/messages/annotation.d.ts +10 -0
- package/dist/types-ts4.5/types/floating-toolbar.d.ts +12 -0
- package/dist/types-ts4.5/types/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/DropList/index.d.ts +1 -4
- package/dist/types-ts4.5/ui/FloatingToolbar/Button.d.ts +4 -1
- package/dist/types-ts4.5/ui/FloatingToolbar/ButtonSpotlightCard.d.ts +10 -0
- package/package.json +3 -2
|
@@ -12,7 +12,7 @@ export type { FeatureFlags, FeatureFlagKey, GetEditorFeatureFlags } from './feat
|
|
|
12
12
|
export type { Browsers, Range, DisableSpellcheckByBrowser } from './supported-browsers';
|
|
13
13
|
export type { EditorContainerWidth, GetEditorContainerWidth } from './editor-container-width';
|
|
14
14
|
export type { EmptyStateHandler, EmptyStateHandlerParams } from './empty-state-handler';
|
|
15
|
-
export type { RenderOptionsPropsT, DropdownOptionT, DropdownOptions, SelectOption, ButtonAppearance, Icon, RenderOptionsProps, AlignType, ConfirmDialogChildInfo, ConfirmDialogOptions, ConfirmationDialogProps, FloatingToolbarButton, FloatingToolbarCopyButton, FloatingToolbarInput, FloatingToolbarCustom, FloatingToolbarListPicker, FloatingToolbarColorPicker, FloatingToolbarEmojiPicker, FloatingToolbarDatePicker, FloatingToolbarSelect, FloatingToolbarSeparator, FloatingToolbarDropdown, FloatingToolbarFallbackItem, FloatingToolbarItem, FloatingToolbarConfig, FloatingToolbarHandler, } from './floating-toolbar';
|
|
15
|
+
export type { RenderOptionsPropsT, DropdownOptionT, DropdownOptions, SelectOption, ButtonAppearance, Icon, RenderOptionsProps, AlignType, ConfirmDialogChildInfo, ConfirmDialogOptions, ConfirmationDialogProps, FloatingToolbarButton, FloatingToolbarCopyButton, FloatingToolbarInput, FloatingToolbarCustom, FloatingToolbarListPicker, FloatingToolbarColorPicker, FloatingToolbarEmojiPicker, FloatingToolbarDatePicker, FloatingToolbarSelect, FloatingToolbarSeparator, FloatingToolbarDropdown, FloatingToolbarFallbackItem, FloatingToolbarItem, FloatingToolbarConfig, FloatingToolbarHandler, FloatingToolbarButtonSpotlightConfig, } from './floating-toolbar';
|
|
16
16
|
export type { MarkOptions, NodeOptions } from './copy-button';
|
|
17
17
|
export type { ContextPanelHandler } from './context-panel';
|
|
18
18
|
export type { EditorAppearance } from './editor-appearance';
|
|
@@ -6,9 +6,6 @@ import type { ReactNode } from 'react';
|
|
|
6
6
|
import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
7
7
|
export interface Props extends WithAnalyticsEventsProps {
|
|
8
8
|
isOpen?: boolean;
|
|
9
|
-
appearance?: string;
|
|
10
|
-
shouldFlip?: boolean;
|
|
11
|
-
isTriggerNotTabbable?: boolean;
|
|
12
9
|
trigger?: React.ReactNode;
|
|
13
10
|
position: string;
|
|
14
11
|
onOpenChange?: (event: OpenChangedEvent) => void;
|
|
@@ -23,5 +20,5 @@ export type OpenChangedEvent = {
|
|
|
23
20
|
isOpen: boolean;
|
|
24
21
|
event: MouseEvent | KeyboardEvent;
|
|
25
22
|
};
|
|
26
|
-
declare const _default: import("react").ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "
|
|
23
|
+
declare const _default: import("react").ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "position" | "key" | "id" | "children" | "testId" | "analyticsContext" | "shouldFitContainer" | "onPositioned" | "isOpen" | "trigger" | "onOpenChange" | "onDroplistRef"> & import("react").RefAttributes<any>>;
|
|
27
24
|
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type TooltipProps } from '@atlaskit/tooltip';
|
|
3
3
|
import type { ButtonAppearance } from '../../types';
|
|
4
|
+
import type { FloatingToolbarButtonSpotlightConfig } from '../../types/floating-toolbar';
|
|
4
5
|
export type { ButtonAppearance };
|
|
5
6
|
export interface Props {
|
|
6
7
|
title?: string;
|
|
@@ -13,6 +14,7 @@ export interface Props {
|
|
|
13
14
|
onFocus?: <T>(event: React.FocusEvent<T>) => void;
|
|
14
15
|
onBlur?: <T>(event: React.FocusEvent<T>) => void;
|
|
15
16
|
onMount?: () => void;
|
|
17
|
+
onUnmount?: () => void;
|
|
16
18
|
selected?: boolean;
|
|
17
19
|
disabled?: boolean;
|
|
18
20
|
appearance?: ButtonAppearance;
|
|
@@ -31,6 +33,7 @@ export interface Props {
|
|
|
31
33
|
isRadioButton?: boolean;
|
|
32
34
|
/** If true, the component will have pulse onboarding effect around it. */
|
|
33
35
|
pulse?: boolean;
|
|
36
|
+
spotlightConfig?: FloatingToolbarButtonSpotlightConfig;
|
|
34
37
|
}
|
|
35
|
-
declare const _default: ({ title, icon, iconAfter, onClick, onKeyDown, onMouseEnter, onMouseLeave, onFocus, onBlur, onMount, selected, disabled, href, target, appearance, children, className, tooltipContent, tooltipStyle, testId, hideTooltipOnClick, ariaHasPopup, tabIndex, areaControls, ariaLabel, isRadioButton, pulse, }: Props) => JSX.Element;
|
|
38
|
+
declare const _default: ({ title, icon, iconAfter, onClick, onKeyDown, onMouseEnter, onMouseLeave, onFocus, onBlur, onMount, onUnmount, selected, disabled, href, target, appearance, children, className, tooltipContent, tooltipStyle, testId, hideTooltipOnClick, ariaHasPopup, tabIndex, areaControls, ariaLabel, isRadioButton, pulse, spotlightConfig, }: Props) => JSX.Element;
|
|
36
39
|
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
import { SpotlightCard } from '@atlaskit/onboarding';
|
|
3
|
+
import { type Placement } from '@atlaskit/popper';
|
|
4
|
+
type PropsFromSpotlightCard = ComponentProps<typeof SpotlightCard>;
|
|
5
|
+
export type ButtonSpotlightCardProps = PropsFromSpotlightCard & {
|
|
6
|
+
referenceElement: HTMLElement;
|
|
7
|
+
placement?: Placement;
|
|
8
|
+
};
|
|
9
|
+
export declare const ButtonSpotlightCard: (props: ButtonSpotlightCardProps) => JSX.Element;
|
|
10
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "94.
|
|
3
|
+
"version": "94.8.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/"
|
|
@@ -135,13 +135,14 @@
|
|
|
135
135
|
"@atlaskit/media-client-react": "^2.2.0",
|
|
136
136
|
"@atlaskit/media-common": "^11.7.0",
|
|
137
137
|
"@atlaskit/media-file-preview": "^0.9.0",
|
|
138
|
-
"@atlaskit/media-picker": "^
|
|
138
|
+
"@atlaskit/media-picker": "^67.0.0",
|
|
139
139
|
"@atlaskit/media-ui": "^26.0.0",
|
|
140
140
|
"@atlaskit/media-viewer": "49.2.3",
|
|
141
141
|
"@atlaskit/mention": "^23.3.0",
|
|
142
142
|
"@atlaskit/menu": "^2.13.0",
|
|
143
143
|
"@atlaskit/onboarding": "^11.16.0",
|
|
144
144
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
145
|
+
"@atlaskit/popper": "^6.3.0",
|
|
145
146
|
"@atlaskit/primitives": "^12.2.0",
|
|
146
147
|
"@atlaskit/profilecard": "^20.8.0",
|
|
147
148
|
"@atlaskit/section-message": "^6.6.0",
|