@atlaskit/editor-plugin-floating-toolbar 0.2.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 ADDED
@@ -0,0 +1 @@
1
+ # @atlaskit/editor-plugin-floating-toolbar
package/LICENSE.md ADDED
@@ -0,0 +1,13 @@
1
+ Copyright 2023 Atlassian Pty Ltd
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # EditorPluginFloatingToolbar
2
+
3
+ Floating toolbar plugin for @atlaskit/editor-core.
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "@atlaskit/editor-plugin-floating-toolbar",
3
+ "version": "0.2.0",
4
+ "sideEffects": false
5
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "@atlaskit/editor-plugin-floating-toolbar",
3
+ "version": "0.2.0",
4
+ "sideEffects": false
5
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "@atlaskit/editor-plugin-floating-toolbar",
3
+ "version": "0.2.0",
4
+ "sideEffects": false
5
+ }
@@ -0,0 +1 @@
1
+ export type { FloatingToolbarPlugin, ForceFocusSelector } from './types';
@@ -0,0 +1,11 @@
1
+ import type { EditorView } from 'prosemirror-view';
2
+ import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
3
+ import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
4
+ import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
5
+ export type ForceFocusSelector = (selector: string | null, view?: EditorView) => void;
6
+ export type FloatingToolbarPlugin = NextEditorPlugin<'floatingToolbar', {
7
+ dependencies: [typeof featureFlagsPlugin, typeof decorationsPlugin];
8
+ actions: {
9
+ forceFocusSelector: ForceFocusSelector;
10
+ };
11
+ }>;
@@ -0,0 +1 @@
1
+ export type { FloatingToolbarPlugin, ForceFocusSelector } from './types';
@@ -0,0 +1,14 @@
1
+ import type { EditorView } from 'prosemirror-view';
2
+ import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
3
+ import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
4
+ import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
5
+ export type ForceFocusSelector = (selector: string | null, view?: EditorView) => void;
6
+ export type FloatingToolbarPlugin = NextEditorPlugin<'floatingToolbar', {
7
+ dependencies: [
8
+ typeof featureFlagsPlugin,
9
+ typeof decorationsPlugin
10
+ ];
11
+ actions: {
12
+ forceFocusSelector: ForceFocusSelector;
13
+ };
14
+ }>;
package/package.json ADDED
@@ -0,0 +1,80 @@
1
+ {
2
+ "name": "@atlaskit/editor-plugin-floating-toolbar",
3
+ "version": "0.2.0",
4
+ "description": "Floating toolbar plugin for @atlaskit/editor-core",
5
+ "author": "Atlassian Pty Ltd",
6
+ "license": "Apache-2.0",
7
+ "publishConfig": {
8
+ "registry": "https://registry.npmjs.org/"
9
+ },
10
+ "atlassian": {
11
+ "team": "Editor",
12
+ "releaseModel": "scheduled"
13
+ },
14
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend",
15
+ "main": "dist/cjs/index.js",
16
+ "module": "dist/esm/index.js",
17
+ "module:es2019": "dist/es2019/index.js",
18
+ "types": "dist/types/index.d.ts",
19
+ "sideEffects": false,
20
+ "atlaskit:src": "src/index.ts",
21
+ "af:exports": {
22
+ ".": "./src/index.ts"
23
+ },
24
+ "dependencies": {
25
+ "@atlaskit/editor-common": "^74.2.0",
26
+ "@atlaskit/editor-plugin-decorations": "^0.1.0",
27
+ "@atlaskit/editor-plugin-feature-flags": "^0.1.0",
28
+ "@babel/runtime": "^7.0.0",
29
+ "prosemirror-view": "1.23.7"
30
+ },
31
+ "peerDependencies": {
32
+ "react": "^16.8.0"
33
+ },
34
+ "devDependencies": {
35
+ "@atlaskit/docs": "*",
36
+ "@atlaskit/editor-core": "^185.1.6",
37
+ "@atlaskit/editor-test-helpers": "^18.5.0",
38
+ "@atlaskit/ssr": "*",
39
+ "@atlaskit/visual-regression": "*",
40
+ "@atlaskit/webdriver-runner": "*",
41
+ "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
42
+ "@testing-library/react": "^12.1.5",
43
+ "react-dom": "^16.8.0",
44
+ "typescript": "~4.9.5",
45
+ "wait-for-expect": "^1.2.0"
46
+ },
47
+ "techstack": {
48
+ "@atlassian/frontend": {
49
+ "import-structure": [
50
+ "atlassian-conventions"
51
+ ],
52
+ "circular-dependencies": [
53
+ "file-and-folder-level"
54
+ ]
55
+ },
56
+ "@repo/internal": {
57
+ "dom-events": "use-bind-event-listener",
58
+ "analytics": [
59
+ "analytics-next"
60
+ ],
61
+ "design-tokens": [
62
+ "color"
63
+ ],
64
+ "theming": [
65
+ "react-context"
66
+ ],
67
+ "ui-components": [
68
+ "lite-mode"
69
+ ],
70
+ "deprecation": [
71
+ "no-deprecated-imports"
72
+ ],
73
+ "styling": [
74
+ "static",
75
+ "emotion"
76
+ ]
77
+ }
78
+ },
79
+ "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
80
+ }