@atlaskit/editor-plugin-loom 7.1.2 → 7.1.3
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 +7 -0
- package/dist/cjs/pm-plugins/commands.js +0 -10
- package/dist/cjs/pm-plugins/main.js +1 -10
- package/dist/es2019/pm-plugins/commands.js +0 -12
- package/dist/es2019/pm-plugins/main.js +0 -11
- package/dist/esm/pm-plugins/commands.js +0 -12
- package/dist/esm/pm-plugins/main.js +0 -11
- package/dist/types/pm-plugins/commands.d.ts +1 -6
- package/dist/types/pm-plugins/main.d.ts +1 -6
- package/dist/types-ts4.5/pm-plugins/commands.d.ts +1 -6
- package/dist/types-ts4.5/pm-plugins/main.d.ts +1 -6
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-loom
|
|
2
2
|
|
|
3
|
+
## 7.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ab0293065a3db`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ab0293065a3db) -
|
|
8
|
+
Bump @loomhq/record-sdk to ^4.2.3 and update imports
|
|
9
|
+
|
|
3
10
|
## 7.1.2
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -11,16 +11,6 @@ var _analytics = require("@atlaskit/editor-common/analytics");
|
|
|
11
11
|
var _monitoring = require("@atlaskit/editor-common/monitoring");
|
|
12
12
|
var _quickInsert = require("../ui/quickInsert");
|
|
13
13
|
var _main = require("./main");
|
|
14
|
-
// TODO: ED-26959 - removed to support TypeScript bundler mode
|
|
15
|
-
// import type { SDKUnsupportedReasons } from '@loomhq/record-sdk';
|
|
16
|
-
// copied from @loomhq/record-sdk
|
|
17
|
-
// TODO: ED-26959 - remove once @loomhq/record-sdk get updated to support "package exports"
|
|
18
|
-
var SDKUnsupportedReasons = /*#__PURE__*/function (SDKUnsupportedReasons) {
|
|
19
|
-
SDKUnsupportedReasons["IncompatibleBrowser"] = "incompatible-browser";
|
|
20
|
-
SDKUnsupportedReasons["ThirdPartyCookiesDisabled"] = "third-party-cookies-disabled";
|
|
21
|
-
SDKUnsupportedReasons["NoMediaStreamsSupport"] = "no-media-streams-support";
|
|
22
|
-
return SDKUnsupportedReasons;
|
|
23
|
-
}(SDKUnsupportedReasons || {});
|
|
24
14
|
var enableLoom = exports.enableLoom = function enableLoom(_ref) {
|
|
25
15
|
var loomButton = _ref.loomButton;
|
|
26
16
|
return function (_ref2) {
|
|
@@ -10,16 +10,7 @@ var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
|
10
10
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
11
11
|
var _commands = require("./commands");
|
|
12
12
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
|
-
// import type { SDKUnsupportedReasons } from '@loomhq/record-sdk';
|
|
15
|
-
// copied from @loomhq/record-sdk
|
|
16
|
-
// TODO: ED-26959 - remove once @loomhq/record-sdk get updated to support "package exports"
|
|
17
|
-
var SDKUnsupportedReasons = /*#__PURE__*/function (SDKUnsupportedReasons) {
|
|
18
|
-
SDKUnsupportedReasons["IncompatibleBrowser"] = "incompatible-browser";
|
|
19
|
-
SDKUnsupportedReasons["ThirdPartyCookiesDisabled"] = "third-party-cookies-disabled";
|
|
20
|
-
SDKUnsupportedReasons["NoMediaStreamsSupport"] = "no-media-streams-support";
|
|
21
|
-
return SDKUnsupportedReasons;
|
|
22
|
-
}(SDKUnsupportedReasons || {});
|
|
13
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
23
14
|
var LoomPluginAction = exports.LoomPluginAction = /*#__PURE__*/function (LoomPluginAction) {
|
|
24
15
|
LoomPluginAction[LoomPluginAction["ENABLE"] = 0] = "ENABLE";
|
|
25
16
|
LoomPluginAction[LoomPluginAction["DISABLE"] = 1] = "DISABLE";
|
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
// TODO: ED-26959 - removed to support TypeScript bundler mode
|
|
2
|
-
// import type { SDKUnsupportedReasons } from '@loomhq/record-sdk';
|
|
3
|
-
|
|
4
1
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
2
|
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
6
3
|
import { getQuickInsertItem } from '../ui/quickInsert';
|
|
7
4
|
import { LoomPluginAction, loomPluginKey } from './main';
|
|
8
|
-
|
|
9
|
-
// copied from @loomhq/record-sdk
|
|
10
|
-
// TODO: ED-26959 - remove once @loomhq/record-sdk get updated to support "package exports"
|
|
11
|
-
var SDKUnsupportedReasons = /*#__PURE__*/function (SDKUnsupportedReasons) {
|
|
12
|
-
SDKUnsupportedReasons["IncompatibleBrowser"] = "incompatible-browser";
|
|
13
|
-
SDKUnsupportedReasons["ThirdPartyCookiesDisabled"] = "third-party-cookies-disabled";
|
|
14
|
-
SDKUnsupportedReasons["NoMediaStreamsSupport"] = "no-media-streams-support";
|
|
15
|
-
return SDKUnsupportedReasons;
|
|
16
|
-
}(SDKUnsupportedReasons || {});
|
|
17
5
|
export const enableLoom = ({
|
|
18
6
|
loomButton
|
|
19
7
|
}) => ({
|
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
// TODO: ED-26959 - removed to support TypeScript bundler mode
|
|
2
|
-
// import type { SDKUnsupportedReasons } from '@loomhq/record-sdk';
|
|
3
|
-
|
|
4
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
5
2
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
6
|
-
// copied from @loomhq/record-sdk
|
|
7
|
-
// TODO: ED-26959 - remove once @loomhq/record-sdk get updated to support "package exports"
|
|
8
|
-
var SDKUnsupportedReasons = /*#__PURE__*/function (SDKUnsupportedReasons) {
|
|
9
|
-
SDKUnsupportedReasons["IncompatibleBrowser"] = "incompatible-browser";
|
|
10
|
-
SDKUnsupportedReasons["ThirdPartyCookiesDisabled"] = "third-party-cookies-disabled";
|
|
11
|
-
SDKUnsupportedReasons["NoMediaStreamsSupport"] = "no-media-streams-support";
|
|
12
|
-
return SDKUnsupportedReasons;
|
|
13
|
-
}(SDKUnsupportedReasons || {});
|
|
14
3
|
import { setupLoom } from './commands';
|
|
15
4
|
export let LoomPluginAction = /*#__PURE__*/function (LoomPluginAction) {
|
|
16
5
|
LoomPluginAction[LoomPluginAction["ENABLE"] = 0] = "ENABLE";
|
|
@@ -1,21 +1,9 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
-
// TODO: ED-26959 - removed to support TypeScript bundler mode
|
|
4
|
-
// import type { SDKUnsupportedReasons } from '@loomhq/record-sdk';
|
|
5
|
-
|
|
6
3
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
7
4
|
import { logException } from '@atlaskit/editor-common/monitoring';
|
|
8
5
|
import { getQuickInsertItem } from '../ui/quickInsert';
|
|
9
6
|
import { LoomPluginAction, loomPluginKey } from './main';
|
|
10
|
-
|
|
11
|
-
// copied from @loomhq/record-sdk
|
|
12
|
-
// TODO: ED-26959 - remove once @loomhq/record-sdk get updated to support "package exports"
|
|
13
|
-
var SDKUnsupportedReasons = /*#__PURE__*/function (SDKUnsupportedReasons) {
|
|
14
|
-
SDKUnsupportedReasons["IncompatibleBrowser"] = "incompatible-browser";
|
|
15
|
-
SDKUnsupportedReasons["ThirdPartyCookiesDisabled"] = "third-party-cookies-disabled";
|
|
16
|
-
SDKUnsupportedReasons["NoMediaStreamsSupport"] = "no-media-streams-support";
|
|
17
|
-
return SDKUnsupportedReasons;
|
|
18
|
-
}(SDKUnsupportedReasons || {});
|
|
19
7
|
export var enableLoom = function enableLoom(_ref) {
|
|
20
8
|
var loomButton = _ref.loomButton;
|
|
21
9
|
return function (_ref2) {
|
|
@@ -1,19 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
// TODO: ED-26959 - removed to support TypeScript bundler mode
|
|
5
|
-
// import type { SDKUnsupportedReasons } from '@loomhq/record-sdk';
|
|
6
|
-
|
|
7
4
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
8
5
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
9
|
-
// copied from @loomhq/record-sdk
|
|
10
|
-
// TODO: ED-26959 - remove once @loomhq/record-sdk get updated to support "package exports"
|
|
11
|
-
var SDKUnsupportedReasons = /*#__PURE__*/function (SDKUnsupportedReasons) {
|
|
12
|
-
SDKUnsupportedReasons["IncompatibleBrowser"] = "incompatible-browser";
|
|
13
|
-
SDKUnsupportedReasons["ThirdPartyCookiesDisabled"] = "third-party-cookies-disabled";
|
|
14
|
-
SDKUnsupportedReasons["NoMediaStreamsSupport"] = "no-media-streams-support";
|
|
15
|
-
return SDKUnsupportedReasons;
|
|
16
|
-
}(SDKUnsupportedReasons || {});
|
|
17
6
|
import { setupLoom } from './commands';
|
|
18
7
|
export var LoomPluginAction = /*#__PURE__*/function (LoomPluginAction) {
|
|
19
8
|
LoomPluginAction[LoomPluginAction["ENABLE"] = 0] = "ENABLE";
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
+
import type { SDKUnsupportedReasons } from '@loomhq/record-sdk';
|
|
1
2
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
3
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
4
|
import type { EditorCommand, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
6
|
import type { LoomPlugin } from '../loomPluginType';
|
|
6
7
|
import type { LoomProviderOptions, PositionType, VideoMeta } from '../types';
|
|
7
|
-
declare enum SDKUnsupportedReasons {
|
|
8
|
-
IncompatibleBrowser = "incompatible-browser",
|
|
9
|
-
ThirdPartyCookiesDisabled = "third-party-cookies-disabled",
|
|
10
|
-
NoMediaStreamsSupport = "no-media-streams-support"
|
|
11
|
-
}
|
|
12
8
|
export declare const enableLoom: ({ loomButton }: {
|
|
13
9
|
loomButton: HTMLButtonElement;
|
|
14
10
|
}) => EditorCommand;
|
|
@@ -37,4 +33,3 @@ export declare const setupLoom: (loomProvider: LoomProviderOptions, api: Extract
|
|
|
37
33
|
initViaCommand?: boolean) => Promise<{
|
|
38
34
|
error?: string;
|
|
39
35
|
}>;
|
|
40
|
-
export {};
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
+
import type { SDKUnsupportedReasons } from '@loomhq/record-sdk';
|
|
1
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
3
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
4
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
4
5
|
import type { LoomPlugin } from '../loomPluginType';
|
|
5
6
|
import type { LoomPluginOptions } from '../types';
|
|
6
|
-
declare enum SDKUnsupportedReasons {
|
|
7
|
-
IncompatibleBrowser = "incompatible-browser",
|
|
8
|
-
ThirdPartyCookiesDisabled = "third-party-cookies-disabled",
|
|
9
|
-
NoMediaStreamsSupport = "no-media-streams-support"
|
|
10
|
-
}
|
|
11
7
|
export interface LoomPluginState {
|
|
12
8
|
error: SDKUnsupportedReasons | undefined;
|
|
13
9
|
isEnabled: boolean;
|
|
@@ -25,4 +21,3 @@ export declare const createPlugin: ({ config, api, }: {
|
|
|
25
21
|
api: ExtractInjectionAPI<LoomPlugin> | undefined;
|
|
26
22
|
config: LoomPluginOptions;
|
|
27
23
|
}) => SafePlugin<LoomPluginState>;
|
|
28
|
-
export {};
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
+
import type { SDKUnsupportedReasons } from '@loomhq/record-sdk';
|
|
1
2
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
3
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
4
|
import type { EditorCommand, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
5
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
6
|
import type { LoomPlugin } from '../loomPluginType';
|
|
6
7
|
import type { LoomProviderOptions, PositionType, VideoMeta } from '../types';
|
|
7
|
-
declare enum SDKUnsupportedReasons {
|
|
8
|
-
IncompatibleBrowser = "incompatible-browser",
|
|
9
|
-
ThirdPartyCookiesDisabled = "third-party-cookies-disabled",
|
|
10
|
-
NoMediaStreamsSupport = "no-media-streams-support"
|
|
11
|
-
}
|
|
12
8
|
export declare const enableLoom: ({ loomButton }: {
|
|
13
9
|
loomButton: HTMLButtonElement;
|
|
14
10
|
}) => EditorCommand;
|
|
@@ -37,4 +33,3 @@ export declare const setupLoom: (loomProvider: LoomProviderOptions, api: Extract
|
|
|
37
33
|
initViaCommand?: boolean) => Promise<{
|
|
38
34
|
error?: string;
|
|
39
35
|
}>;
|
|
40
|
-
export {};
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
+
import type { SDKUnsupportedReasons } from '@loomhq/record-sdk';
|
|
1
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
3
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
4
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
4
5
|
import type { LoomPlugin } from '../loomPluginType';
|
|
5
6
|
import type { LoomPluginOptions } from '../types';
|
|
6
|
-
declare enum SDKUnsupportedReasons {
|
|
7
|
-
IncompatibleBrowser = "incompatible-browser",
|
|
8
|
-
ThirdPartyCookiesDisabled = "third-party-cookies-disabled",
|
|
9
|
-
NoMediaStreamsSupport = "no-media-streams-support"
|
|
10
|
-
}
|
|
11
7
|
export interface LoomPluginState {
|
|
12
8
|
error: SDKUnsupportedReasons | undefined;
|
|
13
9
|
isEnabled: boolean;
|
|
@@ -25,4 +21,3 @@ export declare const createPlugin: ({ config, api, }: {
|
|
|
25
21
|
api: ExtractInjectionAPI<LoomPlugin> | undefined;
|
|
26
22
|
config: LoomPluginOptions;
|
|
27
23
|
}) => SafePlugin<LoomPluginState>;
|
|
28
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-loom",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.3",
|
|
4
4
|
"description": "Loom plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -42,17 +42,17 @@
|
|
|
42
42
|
"@atlaskit/editor-plugin-width": "^6.0.0",
|
|
43
43
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
44
44
|
"@atlaskit/editor-toolbar": "^0.9.0",
|
|
45
|
-
"@atlaskit/icon": "^28.
|
|
45
|
+
"@atlaskit/icon": "^28.2.0",
|
|
46
46
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags-react": "^0.3.0",
|
|
48
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
48
|
+
"@atlaskit/tmp-editor-statsig": "^12.28.0",
|
|
49
49
|
"@atlaskit/tokens": "^6.3.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@emotion/react": "^11.7.1",
|
|
52
|
-
"@loomhq/record-sdk": "^2.
|
|
52
|
+
"@loomhq/record-sdk": "^4.2.3"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
|
-
"@atlaskit/editor-common": "^109.
|
|
55
|
+
"@atlaskit/editor-common": "^109.11.0",
|
|
56
56
|
"react": "^18.2.0",
|
|
57
57
|
"react-dom": "^18.2.0",
|
|
58
58
|
"react-intl-next": "npm:react-intl@^5.18.1"
|