@atlaskit/editor-plugin-card 16.7.2 → 16.8.1
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 +19 -0
- package/cardPlugin/package.json +17 -0
- package/cardPluginType/package.json +17 -0
- package/dist/cjs/entry-points/cardPlugin.js +12 -0
- package/dist/cjs/entry-points/cardPluginType.js +1 -0
- package/dist/cjs/entry-points/types.js +1 -0
- package/dist/cjs/ui/ResizableEmbedCard.js +1 -2
- package/dist/es2019/entry-points/cardPlugin.js +2 -0
- package/dist/es2019/entry-points/cardPluginType.js +0 -0
- package/dist/es2019/entry-points/types.js +0 -0
- package/dist/es2019/ui/ResizableEmbedCard.js +1 -2
- package/dist/esm/entry-points/cardPlugin.js +2 -0
- package/dist/esm/entry-points/cardPluginType.js +0 -0
- package/dist/esm/entry-points/types.js +0 -0
- package/dist/esm/ui/ResizableEmbedCard.js +1 -2
- package/dist/types/entry-points/cardPlugin.d.ts +1 -0
- package/dist/types/entry-points/cardPluginType.d.ts +1 -0
- package/dist/types/entry-points/types.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/cardPlugin.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/cardPluginType.d.ts +1 -0
- package/dist/types-ts4.5/entry-points/types.d.ts +1 -0
- package/package.json +9 -12
- package/types/package.json +17 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-card
|
|
2
2
|
|
|
3
|
+
## 16.8.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`4c459a2718b67`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4c459a2718b67) -
|
|
8
|
+
Clean up synced block feature gates
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 16.8.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- [`f1eebdf4ed96b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f1eebdf4ed96b) -
|
|
16
|
+
Autofix: add explicit package exports (barrel removal)
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 16.7.2
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-plugin-card/cardPlugin",
|
|
3
|
+
"main": "../dist/cjs/entry-points/cardPlugin.js",
|
|
4
|
+
"module": "../dist/esm/entry-points/cardPlugin.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/entry-points/cardPlugin.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/entry-points/cardPlugin.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.9": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../dist/types-ts4.5/entry-points/cardPlugin.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-plugin-card/cardPluginType",
|
|
3
|
+
"main": "../dist/cjs/entry-points/cardPluginType.js",
|
|
4
|
+
"module": "../dist/esm/entry-points/cardPluginType.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/entry-points/cardPluginType.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/entry-points/cardPluginType.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.9": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../dist/types-ts4.5/entry-points/cardPluginType.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "cardPlugin", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _cardPlugin.cardPlugin;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _cardPlugin = require("../cardPlugin");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -18,7 +18,6 @@ var _ui = require("@atlaskit/editor-common/ui");
|
|
|
18
18
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
19
19
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
20
20
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
21
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
22
21
|
var _smartCard = require("@atlaskit/smart-card");
|
|
23
22
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
24
23
|
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; }
|
|
@@ -405,7 +404,7 @@ var ResizableEmbedCard = exports.default = /*#__PURE__*/function (_React$Compone
|
|
|
405
404
|
scaleFactor: !this.wrappedLayout && !this.insideInlineLike ? 2 : 1,
|
|
406
405
|
highlights: this.highlights,
|
|
407
406
|
nodeType: "embed",
|
|
408
|
-
onResizeStart: (0, _experiments.editorExperiment)('platform_synced_block', true)
|
|
407
|
+
onResizeStart: (0, _experiments.editorExperiment)('platform_synced_block', true) ? this.handleResizeStart : undefined,
|
|
409
408
|
handleStyles: nestedInTableHandleStyles(this.isNestedInTable())
|
|
410
409
|
// Ignored via go/ees005
|
|
411
410
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
File without changes
|
|
File without changes
|
|
@@ -12,7 +12,6 @@ import { calcColumnsFromPx, calcMediaPxWidth, calcPctFromPx, calcPxFromColumns,
|
|
|
12
12
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
13
13
|
import { findParentNodeOfTypeClosestToPos, hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
14
14
|
import { akEditorBreakoutPadding, akEditorMediaResizeHandlerPadding, akEditorWideLayoutWidth, breakoutWideScaleRatio, DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
|
|
15
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
15
|
import { embedHeaderHeight } from '@atlaskit/smart-card';
|
|
17
16
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
18
17
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
@@ -387,7 +386,7 @@ export default class ResizableEmbedCard extends React.Component {
|
|
|
387
386
|
scaleFactor: !this.wrappedLayout && !this.insideInlineLike ? 2 : 1,
|
|
388
387
|
highlights: this.highlights,
|
|
389
388
|
nodeType: "embed",
|
|
390
|
-
onResizeStart: editorExperiment('platform_synced_block', true)
|
|
389
|
+
onResizeStart: editorExperiment('platform_synced_block', true) ? this.handleResizeStart : undefined,
|
|
391
390
|
handleStyles: nestedInTableHandleStyles(this.isNestedInTable())
|
|
392
391
|
// Ignored via go/ees005
|
|
393
392
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
File without changes
|
|
File without changes
|
|
@@ -21,7 +21,6 @@ import { calcColumnsFromPx, calcMediaPxWidth, calcPctFromPx, calcPxFromColumns,
|
|
|
21
21
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
22
22
|
import { findParentNodeOfTypeClosestToPos, hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
23
23
|
import { akEditorBreakoutPadding, akEditorMediaResizeHandlerPadding, akEditorWideLayoutWidth, breakoutWideScaleRatio, DEFAULT_EMBED_CARD_HEIGHT, DEFAULT_EMBED_CARD_WIDTH } from '@atlaskit/editor-shared-styles';
|
|
24
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
25
24
|
import { embedHeaderHeight } from '@atlaskit/smart-card';
|
|
26
25
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
27
26
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
@@ -401,7 +400,7 @@ var ResizableEmbedCard = /*#__PURE__*/function (_React$Component) {
|
|
|
401
400
|
scaleFactor: !this.wrappedLayout && !this.insideInlineLike ? 2 : 1,
|
|
402
401
|
highlights: this.highlights,
|
|
403
402
|
nodeType: "embed",
|
|
404
|
-
onResizeStart: editorExperiment('platform_synced_block', true)
|
|
403
|
+
onResizeStart: editorExperiment('platform_synced_block', true) ? this.handleResizeStart : undefined,
|
|
405
404
|
handleStyles: nestedInTableHandleStyles(this.isNestedInTable())
|
|
406
405
|
// Ignored via go/ees005
|
|
407
406
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { cardPlugin } from '../cardPlugin';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CardPlugin, CardPluginDependencies } from '../cardPluginType';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { Request, CardPluginOptions, CardPluginState } from '../types/index';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { cardPlugin } from '../cardPlugin';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { CardPlugin, CardPluginDependencies } from '../cardPluginType';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { Request, CardPluginOptions, CardPluginState } from '../types/index';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.8.1",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,18 +34,18 @@
|
|
|
34
34
|
"@atlaskit/custom-steps": "^0.16.0",
|
|
35
35
|
"@atlaskit/editor-card-provider": "^6.7.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^10.0.0",
|
|
37
|
-
"@atlaskit/editor-plugin-base": "^11.
|
|
38
|
-
"@atlaskit/editor-plugin-connectivity": "^10.
|
|
37
|
+
"@atlaskit/editor-plugin-base": "^11.1.0",
|
|
38
|
+
"@atlaskit/editor-plugin-connectivity": "^10.1.0",
|
|
39
39
|
"@atlaskit/editor-plugin-decorations": "^10.1.0",
|
|
40
40
|
"@atlaskit/editor-plugin-editor-disabled": "^10.1.0",
|
|
41
41
|
"@atlaskit/editor-plugin-editor-viewmode": "^12.1.0",
|
|
42
42
|
"@atlaskit/editor-plugin-feature-flags": "^9.1.0",
|
|
43
43
|
"@atlaskit/editor-plugin-floating-toolbar": "^12.1.0",
|
|
44
44
|
"@atlaskit/editor-plugin-grid": "^10.2.0",
|
|
45
|
-
"@atlaskit/editor-plugin-toolbar": "^7.
|
|
46
|
-
"@atlaskit/editor-plugin-width": "^11.
|
|
45
|
+
"@atlaskit/editor-plugin-toolbar": "^7.3.0",
|
|
46
|
+
"@atlaskit/editor-plugin-width": "^11.1.0",
|
|
47
47
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
48
|
-
"@atlaskit/editor-shared-styles": "^3.
|
|
48
|
+
"@atlaskit/editor-shared-styles": "^3.11.0",
|
|
49
49
|
"@atlaskit/editor-smart-link-draggable": "^0.5.0",
|
|
50
50
|
"@atlaskit/frontend-utilities": "^3.3.0",
|
|
51
51
|
"@atlaskit/icon": "^34.5.0",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"@atlaskit/platform-feature-flags-react": "^0.5.0",
|
|
62
62
|
"@atlaskit/primitives": "^19.0.0",
|
|
63
63
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
64
|
-
"@atlaskit/smart-card": "^44.
|
|
65
|
-
"@atlaskit/tmp-editor-statsig": "^80.
|
|
64
|
+
"@atlaskit/smart-card": "^44.11.0",
|
|
65
|
+
"@atlaskit/tmp-editor-statsig": "^80.3.0",
|
|
66
66
|
"@atlaskit/tokens": "^13.0.0",
|
|
67
67
|
"@babel/runtime": "^7.0.0",
|
|
68
68
|
"@emotion/react": "^11.7.1",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"uuid": "^3.1.0"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
|
-
"@atlaskit/editor-common": "^114.
|
|
75
|
+
"@atlaskit/editor-common": "^114.32.0",
|
|
76
76
|
"@atlaskit/link-provider": "^4.4.0",
|
|
77
77
|
"react": "^18.2.0",
|
|
78
78
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
@@ -123,9 +123,6 @@
|
|
|
123
123
|
"platform_editor_adf_with_localid": {
|
|
124
124
|
"type": "boolean"
|
|
125
125
|
},
|
|
126
|
-
"platform_synced_block_patch_9": {
|
|
127
|
-
"type": "boolean"
|
|
128
|
-
},
|
|
129
126
|
"jim-lower-ranking-in-jira-macro-search": {
|
|
130
127
|
"type": "boolean"
|
|
131
128
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-plugin-card/types",
|
|
3
|
+
"main": "../dist/cjs/entry-points/types.js",
|
|
4
|
+
"module": "../dist/esm/entry-points/types.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/entry-points/types.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"*.compiled.css"
|
|
8
|
+
],
|
|
9
|
+
"types": "../dist/types/entry-points/types.d.ts",
|
|
10
|
+
"typesVersions": {
|
|
11
|
+
">=4.5 <5.9": {
|
|
12
|
+
"*": [
|
|
13
|
+
"../dist/types-ts4.5/entry-points/types.d.ts"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|