@atlaskit/editor-common 114.32.4 → 114.33.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 CHANGED
@@ -1,5 +1,35 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 114.33.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 114.33.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`2e9c8b4281869`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2e9c8b4281869) -
14
+ [EDITOR-6965] Add `onlyInlineCards` option to the card plugin and enable inline Smart Links in the
15
+ Confluence markdown preset.
16
+ - `@atlaskit/editor-common`: add optional `onlyInlineCards?: boolean` to `CardOptions`. Defaults
17
+ to `false` (back-compat). When `true`, the card plugin contributes only the `inlineCard` node to
18
+ the schema and forces `allowBlockCards` / `allowEmbeds` to `false` at runtime regardless of
19
+ their explicit values.
20
+ - `@atlaskit/editor-plugin-card`: honour `onlyInlineCards` in both `nodes()` (skip `blockCard` /
21
+ `embedCard` entirely) and `pmPlugins()` (force the runtime gates so schema and runtime stay in
22
+ sync).
23
+ - `@atlassian/confluence-presets`: `markdownPreset` now `.maybeAdd`s `cardPlugin` after the
24
+ annotation block when `pluginOptions.card` is supplied, hard-coding `onlyInlineCards: true` so
25
+ the preset itself guarantees the inline-only constraint. Adds `'card'` to
26
+ `MarkdownPluginOptionsKeys` and `CardPlugin` to `MarkdownPresetPluginsReversed`. `cardPlugin` is
27
+ removed from the "intentionally excluded" comment block.
28
+
29
+ Existing callers of `cardPlugin` and `markdownPreset` are unaffected: `onlyInlineCards` defaults
30
+ to `false`, and `cardPlugin` is only added to the markdown preset when callers supply
31
+ `pluginOptions.card`.
32
+
3
33
  ## 114.32.4
4
34
 
5
35
  ### Patch Changes
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
19
19
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
20
20
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
21
21
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
22
- var packageVersion = "114.32.3";
22
+ var packageVersion = "0.0.0-development";
23
23
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
24
24
  // Remove URL as it has UGC
25
25
  // Ignored via go/ees007
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
24
24
  * @jsx jsx
25
25
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "114.32.3";
27
+ var packageVersion = "0.0.0-development";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var fadeIn = (0, _react2.keyframes)({
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
4
4
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
5
5
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
6
6
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
7
- const packageVersion = "114.32.3";
7
+ const packageVersion = "0.0.0-development";
8
8
  const sanitiseSentryEvents = (data, _hint) => {
9
9
  // Remove URL as it has UGC
10
10
  // Ignored via go/ees007
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import { fg } from '@atlaskit/platform-feature-flags';
15
15
  import Layer from '../Layer';
16
16
  const packageName = "@atlaskit/editor-common";
17
- const packageVersion = "114.32.3";
17
+ const packageVersion = "0.0.0-development";
18
18
  const halfFocusRing = 1;
19
19
  const dropOffset = '0, 8';
20
20
  const fadeIn = keyframes({
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
10
10
  import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
11
11
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
12
12
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
13
- var packageVersion = "114.32.3";
13
+ var packageVersion = "0.0.0-development";
14
14
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
15
15
  // Remove URL as it has UGC
16
16
  // Ignored via go/ees007
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
21
21
  import { fg } from '@atlaskit/platform-feature-flags';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "114.32.3";
24
+ var packageVersion = "0.0.0-development";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var fadeIn = keyframes({
@@ -71,6 +71,16 @@ export interface CardOptions {
71
71
  * Component: inline, block (card), embed
72
72
  */
73
73
  onClickCallback?: OnClickCallback;
74
+ /**
75
+ * Restrict the card plugin to inline cards only. When `true`, the plugin
76
+ * contributes only the `inlineCard` node to the schema (no `blockCard`,
77
+ * no `embedCard`) and forces `allowBlockCards` / `allowEmbeds` to `false`
78
+ * at runtime regardless of their explicit values.
79
+ * Default is false (back-compat).
80
+ *
81
+ * Component: inline
82
+ */
83
+ onlyInlineCards?: boolean;
74
84
  /**
75
85
  * A promise returning the instance of EditorCardProvider
76
86
  *
@@ -71,6 +71,16 @@ export interface CardOptions {
71
71
  * Component: inline, block (card), embed
72
72
  */
73
73
  onClickCallback?: OnClickCallback;
74
+ /**
75
+ * Restrict the card plugin to inline cards only. When `true`, the plugin
76
+ * contributes only the `inlineCard` node to the schema (no `blockCard`,
77
+ * no `embedCard`) and forces `allowBlockCards` / `allowEmbeds` to `false`
78
+ * at runtime regardless of their explicit values.
79
+ * Default is false (back-compat).
80
+ *
81
+ * Component: inline
82
+ */
83
+ onlyInlineCards?: boolean;
74
84
  /**
75
85
  * A promise returning the instance of EditorCardProvider
76
86
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "114.32.4",
3
+ "version": "114.33.1",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -70,7 +70,7 @@
70
70
  "@atlaskit/media-picker": "^71.3.0",
71
71
  "@atlaskit/media-ui": "^29.2.0",
72
72
  "@atlaskit/media-viewer": "^53.2.0",
73
- "@atlaskit/mention": "^25.1.0",
73
+ "@atlaskit/mention": "^26.0.0",
74
74
  "@atlaskit/menu": "^8.5.0",
75
75
  "@atlaskit/object": "^1.0.0",
76
76
  "@atlaskit/onboarding": "^14.6.0",