@atlaskit/editor-plugin-primary-toolbar 12.0.14 → 12.0.15

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/editor-plugin-primary-toolbar
2
2
 
3
+ ## 12.0.15
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 12.0.14
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-primary-toolbar",
3
- "version": "12.0.14",
3
+ "version": "12.0.15",
4
4
  "description": "Primary toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,7 +34,7 @@
34
34
  "dependencies": {
35
35
  "@atlaskit/editor-prosemirror": "^7.3.0",
36
36
  "@atlaskit/platform-feature-flags": "^1.1.0",
37
- "@atlaskit/tmp-editor-statsig": "^102.0.0",
37
+ "@atlaskit/tmp-editor-statsig": "^103.0.0",
38
38
  "@babel/runtime": "^7.0.0",
39
39
  "@emotion/react": "^11.7.1"
40
40
  },
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/primary-toolbar-plugin.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/primary-toolbar-plugin.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/primary-toolbar-plugin.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/primary-toolbar-plugin-type.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/primary-toolbar-plugin-type.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/primary-toolbar-plugin-type.d.ts"
17
10
  }
@@ -1,6 +0,0 @@
1
- import type { ToolbarUIComponentFactory } from '@atlaskit/editor-common/types';
2
- import type { ComponentRegistry, ToolbarElementNames } from '../primaryToolbarPluginType';
3
- export declare const registerComponent: (componentRegistry: ComponentRegistry) => ({ name, component, }: {
4
- component: ToolbarUIComponentFactory;
5
- name: ToolbarElementNames;
6
- }) => void;
@@ -1 +0,0 @@
1
- export type { PrimaryToolbarPlugin, PrimaryToolbarPluginOptions, PrimaryToolbarPluginState, ToolbarElementNames, } from '../primaryToolbarPluginType';
@@ -1 +0,0 @@
1
- export { primaryToolbarPlugin } from '../primaryToolbarPlugin';
@@ -1,2 +0,0 @@
1
- export { primaryToolbarPlugin } from './primaryToolbarPlugin';
2
- export type { PrimaryToolbarPlugin, PrimaryToolbarPluginOptions, PrimaryToolbarPluginState, ToolbarElementNames, } from './primaryToolbarPluginType';
@@ -1,10 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
- import type { ComponentRegistry, PrimaryToolbarPluginState } from '../primaryToolbarPluginType';
4
- export declare const primaryToolbarPluginKey: PluginKey<PrimaryToolbarPluginState>;
5
- type PluginConfig = {
6
- componentRegistry: ComponentRegistry;
7
- contextualFormattingEnabled?: boolean;
8
- };
9
- export declare const createPlugin: ({ componentRegistry, contextualFormattingEnabled, }: PluginConfig) => SafePlugin<PrimaryToolbarPluginState>;
10
- export {};
@@ -1,10 +0,0 @@
1
- import type { ToolbarUIComponentFactory } from '@atlaskit/editor-common/types';
2
- import type { EditorState } from '@atlaskit/editor-prosemirror/state';
3
- import type { ComponentRegistry } from '../primaryToolbarPluginType';
4
- type GetToolbarComponentsOptions = {
5
- componentRegistry: ComponentRegistry;
6
- contextualFormattingEnabled?: boolean;
7
- editorState: EditorState;
8
- };
9
- export declare const getToolbarComponents: ({ componentRegistry, editorState, contextualFormattingEnabled, }: GetToolbarComponentsOptions) => ToolbarUIComponentFactory[];
10
- export {};
@@ -1,2 +0,0 @@
1
- import type { PrimaryToolbarPlugin } from './primaryToolbarPluginType';
2
- export declare const primaryToolbarPlugin: PrimaryToolbarPlugin;
@@ -1,24 +0,0 @@
1
- import type { NextEditorPlugin, ToolbarUIComponentFactory } from '@atlaskit/editor-common/types';
2
- import type { EditorState } from '@atlaskit/editor-prosemirror/state';
3
- export interface PrimaryToolbarPluginOptions {
4
- contextualFormattingEnabled?: boolean;
5
- }
6
- export type PrimaryToolbarPlugin = NextEditorPlugin<'primaryToolbar', {
7
- actions: {
8
- registerComponent: ({ name, component, }: {
9
- component: ToolbarUIComponentFactory;
10
- name: ToolbarElementNames;
11
- }) => void;
12
- };
13
- pluginConfiguration?: PrimaryToolbarPluginOptions;
14
- sharedState: PrimaryToolbarPluginState | undefined;
15
- }>;
16
- export type ComponentRegistry = Map<string, ToolbarUIComponentFactory>;
17
- export type ToolbarElementNames = 'aiExperience' | 'aiSimplified' | 'alignment' | 'avatarGroup' | 'beforePrimaryToolbar' | 'blockType' | 'findReplace' | 'highlight' | 'hyperlink' | 'insertBlock' | 'loom' | 'overflowMenu' | 'pinToolbar' | 'selectionExtension' | 'separator' | 'spellCheck' | 'textColor' | 'textFormatting' | 'toolbarListsIndentation' | 'trackChanges' | 'undoRedoPlugin';
18
- export type ToolbarElementConfig = {
19
- enabled?: (componentRegistry: ComponentRegistry, editorState: EditorState) => boolean;
20
- name: ToolbarElementNames;
21
- };
22
- export type PrimaryToolbarPluginState = {
23
- components: ToolbarUIComponentFactory[];
24
- };
@@ -1,7 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
6
- declare const _default: () => jsx.JSX.Element;
7
- export default _default;