@atlaskit/editor-plugin-copy-button 0.1.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/.eslintrc.js ADDED
@@ -0,0 +1,14 @@
1
+ module.exports = {
2
+ rules: {
3
+ '@typescript-eslint/no-duplicate-imports': 'error',
4
+ '@typescript-eslint/no-explicit-any': 'error',
5
+ },
6
+ overrides: [
7
+ {
8
+ files: ['**/__tests__/**/*.{js,ts,tsx}', '**/examples/**/*.{js,ts,tsx}'],
9
+ rules: {
10
+ '@typescript-eslint/no-explicit-any': 'off',
11
+ },
12
+ },
13
+ ],
14
+ };
package/CHANGELOG.md ADDED
@@ -0,0 +1 @@
1
+ # @atlaskit/editor-plugin-copy-button
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,30 @@
1
+ # Editor plugin copy-button
2
+
3
+ Analytics plugin for @atlaskit/editor-core
4
+
5
+ **Note:** This component is designed for internal Atlassian development.
6
+ External contributors will be able to use this component but will not be able to submit issues.
7
+
8
+ ## Install
9
+ ---
10
+ - **Install** - *yarn add @atlaskit/editor-plugin-copy-button*
11
+ - **npm** - [@atlaskit/editor-plugin-copy-button](https://www.npmjs.com/package/@atlaskit/editor-plugin-copy-button)
12
+ - **Source** - [Bitbucket](https://bitbucket.org/atlassian/atlassian-frontend/src/master/packages/editor/editor-plugin-copy-button)
13
+ - **Bundle** - [unpkg.com](https://unpkg.com/@atlaskit/editor-plugin-copy-button/dist/)
14
+
15
+ ## Usage
16
+ ---
17
+ **Internal use only**
18
+
19
+ @atlaskit/editor-plugin-copy-button is intended for internal use by the @atlaskit/editor-core and as a plugin dependency of the Editor within your product.
20
+
21
+ Direct use of this component is not supported.
22
+
23
+ Please see [Atlaskit - Editor plugin copy-button](https://atlaskit.atlassian.com/packages/editor/editor-plugin-copy-button) for documentation and examples for this package.
24
+
25
+ ## Support
26
+ ---
27
+ For internal Atlassian, visit the slack channel [#help-editor](https://atlassian.slack.com/archives/CFG3PSQ9E) for support or visit [go/editor-help](https://go/editor-help) to submit a bug.
28
+ ## License
29
+ ---
30
+ Please see [Atlassian Frontend - License](https://developer.atlassian.com/cloud/framework/atlassian-frontend/#license) for more licensing information.
@@ -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 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export type { CopyButtonPlugin, CopyButtonPluginState } from './types';
@@ -0,0 +1,11 @@
1
+ import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
+ import type { MarkType } from '@atlaskit/editor-prosemirror/model';
3
+ export type CopyButtonPlugin = NextEditorPlugin<'copyButton'>;
4
+ export type CopyButtonPluginState = {
5
+ copied: boolean;
6
+ markSelection?: {
7
+ start: number;
8
+ end: number;
9
+ markType: MarkType;
10
+ };
11
+ };
@@ -0,0 +1 @@
1
+ export type { CopyButtonPlugin, CopyButtonPluginState } from './types';
@@ -0,0 +1,11 @@
1
+ import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
+ import type { MarkType } from '@atlaskit/editor-prosemirror/model';
3
+ export type CopyButtonPlugin = NextEditorPlugin<'copyButton'>;
4
+ export type CopyButtonPluginState = {
5
+ copied: boolean;
6
+ markSelection?: {
7
+ start: number;
8
+ end: number;
9
+ markType: MarkType;
10
+ };
11
+ };
package/package.json ADDED
@@ -0,0 +1,83 @@
1
+ {
2
+ "name": "@atlaskit/editor-plugin-copy-button",
3
+ "version": "0.1.0",
4
+ "description": "editor-plugin-copy-button 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
+ "singleton": true,
13
+ "releaseModel": "continuous"
14
+ },
15
+ "repository": "https://bitbucket.org/atlassian/atlassian-frontend",
16
+ "main": "dist/cjs/index.js",
17
+ "module": "dist/esm/index.js",
18
+ "module:es2019": "dist/es2019/index.js",
19
+ "types": "dist/types/index.d.ts",
20
+ "typesVersions": {
21
+ ">=4.5 <4.9": {
22
+ "*": [
23
+ "dist/types-ts4.5/*",
24
+ "dist/types-ts4.5/index.d.ts"
25
+ ]
26
+ }
27
+ },
28
+ "sideEffects": false,
29
+ "atlaskit:src": "src/index.ts",
30
+ "af:exports": {
31
+ ".": "./src/index.ts"
32
+ },
33
+ "dependencies": {
34
+ "@atlaskit/editor-common": "^75.0.2",
35
+ "@atlaskit/editor-prosemirror": "1.1.0",
36
+ "@babel/runtime": "^7.0.0"
37
+ },
38
+ "peerDependencies": {
39
+ "react": "^16.8.0"
40
+ },
41
+ "devDependencies": {
42
+ "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
43
+ "@testing-library/react": "^12.1.5",
44
+ "react-dom": "^16.8.0",
45
+ "typescript": "~4.9.5"
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
+ "imports": [
78
+ "import-no-extraneous-disable-for-examples-and-docs"
79
+ ]
80
+ }
81
+ },
82
+ "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
83
+ }
package/report.api.md ADDED
@@ -0,0 +1,49 @@
1
+ <!-- API Report Version: 2.3 -->
2
+
3
+ ## API Report File for "@atlaskit/editor-plugin-copy-button"
4
+
5
+ > Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
6
+ > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
7
+
8
+ ### Table of contents
9
+
10
+ - [Main Entry Types](#main-entry-types)
11
+ - [Peer Dependencies](#peer-dependencies)
12
+
13
+ ### Main Entry Types
14
+
15
+ <!--SECTION START: Main Entry Types-->
16
+
17
+ ```ts
18
+ import type { MarkType } from '@atlaskit/editor-prosemirror/model';
19
+ import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
20
+
21
+ // @public (undocumented)
22
+ export type CopyButtonPlugin = NextEditorPlugin<'copyButton'>;
23
+
24
+ // @public (undocumented)
25
+ export type CopyButtonPluginState = {
26
+ copied: boolean;
27
+ markSelection?: {
28
+ start: number;
29
+ end: number;
30
+ markType: MarkType;
31
+ };
32
+ };
33
+
34
+ // (No @packageDocumentation comment for this package)
35
+ ```
36
+
37
+ <!--SECTION END: Main Entry Types-->
38
+
39
+ ### Peer Dependencies
40
+
41
+ <!--SECTION START: Peer Dependencies-->
42
+
43
+ ```json
44
+ {
45
+ "react": "^16.8.0"
46
+ }
47
+ ```
48
+
49
+ <!--SECTION END: Peer Dependencies-->
@@ -0,0 +1,25 @@
1
+ ## API Report File for "@atlaskit/editor-plugin-copy-button"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import type { MarkType } from '@atlaskit/editor-prosemirror/model';
8
+ import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
9
+
10
+ // @public (undocumented)
11
+ export type CopyButtonPlugin = NextEditorPlugin<'copyButton'>;
12
+
13
+ // @public (undocumented)
14
+ export type CopyButtonPluginState = {
15
+ copied: boolean;
16
+ markSelection?: {
17
+ start: number;
18
+ end: number;
19
+ markType: MarkType;
20
+ };
21
+ };
22
+
23
+ // (No @packageDocumentation comment for this package)
24
+
25
+ ```