@atlaskit/editor-plugin-loom 2.2.9 → 2.2.11
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 +15 -0
- package/dist/cjs/ui/ToolbarButton.js +10 -9
- package/dist/es2019/ui/ToolbarButton.js +9 -8
- package/dist/esm/ui/ToolbarButton.js +9 -8
- package/dist/types/plugin.d.ts +2 -0
- package/dist/types/ui/ToolbarButton.d.ts +69 -711
- package/dist/types-ts4.5/plugin.d.ts +2 -0
- package/dist/types-ts4.5/ui/ToolbarButton.d.ts +371 -1143
- package/package.json +106 -106
- package/dist/cjs/hooks/useWindowWidth.js +0 -29
- package/dist/es2019/hooks/useWindowWidth.js +0 -16
- package/dist/esm/hooks/useWindowWidth.js +0 -22
- package/dist/types/hooks/useWindowWidth.d.ts +0 -1
- package/dist/types-ts4.5/hooks/useWindowWidth.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,107 +1,107 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
2
|
+
"name": "@atlaskit/editor-plugin-loom",
|
|
3
|
+
"version": "2.2.11",
|
|
4
|
+
"description": "Loom 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: Lego",
|
|
12
|
+
"inPublicMirror": false,
|
|
13
|
+
"releaseModel": "continuous",
|
|
14
|
+
"website": {
|
|
15
|
+
"name": "EditorPluginLoom",
|
|
16
|
+
"category": "Components"
|
|
17
|
+
},
|
|
18
|
+
"runReact18": false
|
|
19
|
+
},
|
|
20
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
21
|
+
"main": "dist/cjs/index.js",
|
|
22
|
+
"module": "dist/esm/index.js",
|
|
23
|
+
"module:es2019": "dist/es2019/index.js",
|
|
24
|
+
"types": "dist/types/index.d.ts",
|
|
25
|
+
"typesVersions": {
|
|
26
|
+
">=4.5 <4.9": {
|
|
27
|
+
"*": [
|
|
28
|
+
"dist/types-ts4.5/*",
|
|
29
|
+
"dist/types-ts4.5/index.d.ts"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"sideEffects": false,
|
|
34
|
+
"atlaskit:src": "src/index.ts",
|
|
35
|
+
"af:exports": {
|
|
36
|
+
".": "./src/index.ts"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@atlaskit/editor-common": "^83.0.0",
|
|
40
|
+
"@atlaskit/editor-plugin-analytics": "^1.3.0",
|
|
41
|
+
"@atlaskit/editor-plugin-hyperlink": "^2.2.0",
|
|
42
|
+
"@atlaskit/editor-plugin-width": "^1.1.0",
|
|
43
|
+
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
44
|
+
"@atlaskit/logo": "^14.1.0",
|
|
45
|
+
"@atlaskit/platform-feature-flags": "0.2.5",
|
|
46
|
+
"@babel/runtime": "^7.0.0",
|
|
47
|
+
"@emotion/react": "^11.7.1",
|
|
48
|
+
"@loomhq/record-sdk": "^2.36.18"
|
|
49
|
+
},
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"react": "^16.8.0",
|
|
52
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
53
|
+
},
|
|
54
|
+
"platform-feature-flags": {
|
|
55
|
+
"platform.editor.plugin.loom.responsive-menu_4at4a": {
|
|
56
|
+
"type": "boolean"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@atlaskit/editor-plugin-base": "^1.6.0",
|
|
61
|
+
"@atlaskit/editor-plugin-card": "^2.1.0",
|
|
62
|
+
"@atlaskit/editor-plugin-copy-button": "^1.1.0",
|
|
63
|
+
"@atlaskit/editor-plugin-decorations": "^1.1.0",
|
|
64
|
+
"@atlaskit/editor-plugin-editor-disabled": "^1.1.0",
|
|
65
|
+
"@atlaskit/editor-plugin-feature-flags": "^1.1.0",
|
|
66
|
+
"@atlaskit/editor-plugin-floating-toolbar": "^1.7.0",
|
|
67
|
+
"@atlaskit/editor-plugin-grid": "^1.1.0",
|
|
68
|
+
"@testing-library/react": "^12.1.5",
|
|
69
|
+
"@testing-library/user-event": "^14.4.3",
|
|
70
|
+
"raf-stub": "^2.0.1",
|
|
71
|
+
"react-dom": "^16.8.0",
|
|
72
|
+
"typescript": "~5.4.2"
|
|
73
|
+
},
|
|
74
|
+
"techstack": {
|
|
75
|
+
"@atlassian/frontend": {
|
|
76
|
+
"import-structure": [
|
|
77
|
+
"atlassian-conventions"
|
|
78
|
+
],
|
|
79
|
+
"circular-dependencies": [
|
|
80
|
+
"file-and-folder-level"
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
"@repo/internal": {
|
|
84
|
+
"dom-events": "use-bind-event-listener",
|
|
85
|
+
"analytics": [
|
|
86
|
+
"analytics-next"
|
|
87
|
+
],
|
|
88
|
+
"design-tokens": [
|
|
89
|
+
"color"
|
|
90
|
+
],
|
|
91
|
+
"theming": [
|
|
92
|
+
"react-context"
|
|
93
|
+
],
|
|
94
|
+
"ui-components": [
|
|
95
|
+
"lite-mode"
|
|
96
|
+
],
|
|
97
|
+
"deprecation": "no-deprecated-imports",
|
|
98
|
+
"styling": [
|
|
99
|
+
"emotion",
|
|
100
|
+
"emotion"
|
|
101
|
+
],
|
|
102
|
+
"imports": [
|
|
103
|
+
"import-no-extraneous-disable-for-examples-and-docs"
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.useWindowWidth = void 0;
|
|
8
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
|
-
var _react = require("react");
|
|
10
|
-
var _bindEventListener = require("bind-event-listener");
|
|
11
|
-
var useWindowWidth = exports.useWindowWidth = function useWindowWidth() {
|
|
12
|
-
var _useState = (0, _react.useState)(window.innerWidth),
|
|
13
|
-
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
14
|
-
windowWidth = _useState2[0],
|
|
15
|
-
setWindowWidth = _useState2[1];
|
|
16
|
-
(0, _react.useLayoutEffect)(function () {
|
|
17
|
-
function handleResize() {
|
|
18
|
-
setWindowWidth(window.innerWidth);
|
|
19
|
-
}
|
|
20
|
-
var unbind = (0, _bindEventListener.bind)(window, {
|
|
21
|
-
type: 'resize',
|
|
22
|
-
listener: handleResize
|
|
23
|
-
});
|
|
24
|
-
return function () {
|
|
25
|
-
return unbind();
|
|
26
|
-
};
|
|
27
|
-
}, []);
|
|
28
|
-
return windowWidth;
|
|
29
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { useLayoutEffect, useState } from 'react';
|
|
2
|
-
import { bind } from 'bind-event-listener';
|
|
3
|
-
export const useWindowWidth = () => {
|
|
4
|
-
const [windowWidth, setWindowWidth] = useState(window.innerWidth);
|
|
5
|
-
useLayoutEffect(() => {
|
|
6
|
-
function handleResize() {
|
|
7
|
-
setWindowWidth(window.innerWidth);
|
|
8
|
-
}
|
|
9
|
-
const unbind = bind(window, {
|
|
10
|
-
type: 'resize',
|
|
11
|
-
listener: handleResize
|
|
12
|
-
});
|
|
13
|
-
return () => unbind();
|
|
14
|
-
}, []);
|
|
15
|
-
return windowWidth;
|
|
16
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
-
import { useLayoutEffect, useState } from 'react';
|
|
3
|
-
import { bind } from 'bind-event-listener';
|
|
4
|
-
export var useWindowWidth = function useWindowWidth() {
|
|
5
|
-
var _useState = useState(window.innerWidth),
|
|
6
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
7
|
-
windowWidth = _useState2[0],
|
|
8
|
-
setWindowWidth = _useState2[1];
|
|
9
|
-
useLayoutEffect(function () {
|
|
10
|
-
function handleResize() {
|
|
11
|
-
setWindowWidth(window.innerWidth);
|
|
12
|
-
}
|
|
13
|
-
var unbind = bind(window, {
|
|
14
|
-
type: 'resize',
|
|
15
|
-
listener: handleResize
|
|
16
|
-
});
|
|
17
|
-
return function () {
|
|
18
|
-
return unbind();
|
|
19
|
-
};
|
|
20
|
-
}, []);
|
|
21
|
-
return windowWidth;
|
|
22
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useWindowWidth: () => number;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useWindowWidth: () => number;
|