@atlaskit/editor-plugin-media-insert 1.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-media-insert
package/LICENSE.md ADDED
@@ -0,0 +1,11 @@
1
+ Copyright 2023 Atlassian Pty Ltd
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
4
+ compliance with the License. You may obtain a copy of the License at
5
+
6
+ http://www.apache.org/licenses/LICENSE-2.0
7
+
8
+ Unless required by applicable law or agreed to in writing, software distributed under the License is
9
+ distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
10
+ implied. See the License for the specific language governing permissions and limitations under the
11
+ License.
package/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # Editor plugin media insert
2
+
3
+ Media insert 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-media-insert*
11
+ - **npm** - [@atlaskit/editor-plugin-media-insert](https://www.npmjs.com/package/@atlaskit/editor-plugin-media-insert)
12
+ - **Source** - [Bitbucket](https://bitbucket.org/atlassian/atlassian-frontend/src/master/packages/editor/editor-plugin-media-insert)
13
+ - **Bundle** - [unpkg.com](https://unpkg.com/@atlaskit/editor-plugin-media-insert/dist/)
14
+
15
+ ## Usage
16
+ ---
17
+ **Internal use only**
18
+
19
+ @atlaskit/editor-plugin-media-insert 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 media-insert](https://atlaskit.atlassian.com/packages/editor/editor-plugin-media-insert) 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,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "mediaInsertPlugin", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _plugin.mediaInsertPlugin;
10
+ }
11
+ });
12
+ var _plugin = require("./plugin");
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.mediaInsertPlugin = void 0;
7
+ var mediaInsertPlugin = exports.mediaInsertPlugin = function mediaInsertPlugin() {
8
+ return {
9
+ name: 'mediaInsert',
10
+ pmPlugins: function pmPlugins() {
11
+ return [{
12
+ name: 'mediaInsert',
13
+ plugin: function plugin() {
14
+ return undefined;
15
+ }
16
+ }];
17
+ }
18
+ };
19
+ };
@@ -0,0 +1 @@
1
+ export { mediaInsertPlugin } from './plugin';
@@ -0,0 +1,11 @@
1
+ export const mediaInsertPlugin = () => {
2
+ return {
3
+ name: 'mediaInsert',
4
+ pmPlugins: () => [{
5
+ name: 'mediaInsert',
6
+ plugin: () => {
7
+ return undefined;
8
+ }
9
+ }]
10
+ };
11
+ };
@@ -0,0 +1 @@
1
+ export { mediaInsertPlugin } from './plugin';
@@ -0,0 +1,13 @@
1
+ export var mediaInsertPlugin = function mediaInsertPlugin() {
2
+ return {
3
+ name: 'mediaInsert',
4
+ pmPlugins: function pmPlugins() {
5
+ return [{
6
+ name: 'mediaInsert',
7
+ plugin: function plugin() {
8
+ return undefined;
9
+ }
10
+ }];
11
+ }
12
+ };
13
+ };
@@ -0,0 +1,2 @@
1
+ export { mediaInsertPlugin } from './plugin';
2
+ export type { MediaInsertPlugin } from './plugin';
@@ -0,0 +1,3 @@
1
+ import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
+ export type MediaInsertPlugin = NextEditorPlugin<'mediaInsert', {}>;
3
+ export declare const mediaInsertPlugin: MediaInsertPlugin;
@@ -0,0 +1,2 @@
1
+ export { mediaInsertPlugin } from './plugin';
2
+ export type { MediaInsertPlugin } from './plugin';
@@ -0,0 +1,3 @@
1
+ import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
+ export type MediaInsertPlugin = NextEditorPlugin<'mediaInsert', {}>;
3
+ export declare const mediaInsertPlugin: MediaInsertPlugin;
package/package.json ADDED
@@ -0,0 +1,77 @@
1
+ {
2
+ "name": "@atlaskit/editor-plugin-media-insert",
3
+ "version": "1.1.0",
4
+ "description": "Media Insert 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: Core Experiences",
12
+ "singleton": true,
13
+ "releaseModel": "continuous",
14
+ "runReact18": true
15
+ },
16
+ "repository": "https://stash.atlassian.com/projects/ATLASSIAN/repos/atlassian-frontend-monorepo",
17
+ "main": "dist/cjs/index.js",
18
+ "module": "dist/esm/index.js",
19
+ "module:es2019": "dist/es2019/index.js",
20
+ "types": "dist/types/index.d.ts",
21
+ "sideEffects": false,
22
+ "atlaskit:src": "src/index.ts",
23
+ "af:exports": {
24
+ ".": "./src/index.ts"
25
+ },
26
+ "dependencies": {
27
+ "@babel/runtime": "^7.0.0"
28
+ },
29
+ "peerDependencies": {
30
+ "@atlaskit/tokens": "^1.56.0",
31
+ "react": "^16.8.0"
32
+ },
33
+ "devDependencies": {
34
+ "typescript": "~5.4.2"
35
+ },
36
+ "techstack": {
37
+ "@atlassian/frontend": {
38
+ "import-structure": [
39
+ "atlassian-conventions"
40
+ ],
41
+ "circular-dependencies": [
42
+ "file-and-folder-level"
43
+ ]
44
+ },
45
+ "@repo/internal": {
46
+ "dom-events": "use-bind-event-listener",
47
+ "analytics": [
48
+ "analytics-next"
49
+ ],
50
+ "design-tokens": [
51
+ "color"
52
+ ],
53
+ "theming": [
54
+ "react-context"
55
+ ],
56
+ "ui-components": [
57
+ "lite-mode"
58
+ ],
59
+ "deprecation": [
60
+ "no-deprecated-imports"
61
+ ],
62
+ "styling": [
63
+ "static",
64
+ "compiled"
65
+ ],
66
+ "imports": [
67
+ "import-no-extraneous-disable-for-examples-and-docs"
68
+ ]
69
+ }
70
+ },
71
+ "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0",
72
+ "stricter": {
73
+ "no-unused-dependencies": {
74
+ "checkDevDependencies": true
75
+ }
76
+ }
77
+ }