@contentful/field-editor-rich-text 6.6.2 → 6.6.3-canary.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.
@@ -13,11 +13,11 @@ const _createHeadingPlugin = require("../createHeadingPlugin");
13
13
  id: "inline-entry"
14
14
  }), ' ', /*#__PURE__*/ (0, _testutils.jsx)("hlink", {
15
15
  uri: "https://contentful.com"
16
- }, "website"), ' ', /*#__PURE__*/ (0, _testutils.jsx)("hlink", {
16
+ }, "website"), " ", /*#__PURE__*/ (0, _testutils.jsx)("hlink", {
17
17
  entry: "entry-id"
18
18
  }, "entry"), ' ', /*#__PURE__*/ (0, _testutils.jsx)("hlink", {
19
19
  resource: "resource-urn"
20
- }, "resource"), ' ', /*#__PURE__*/ (0, _testutils.jsx)("hlink", {
20
+ }, "resource"), " ", /*#__PURE__*/ (0, _testutils.jsx)("hlink", {
21
21
  asset: "asset-id"
22
22
  }, "asset"), "some text after"), /*#__PURE__*/ (0, _testutils.jsx)("hp", null, /*#__PURE__*/ (0, _testutils.jsx)("htext", null)));
23
23
  (0, _testutils.assertOutput)({
@@ -11,11 +11,11 @@ const _testutils = require("../../../test-utils");
11
11
  id: "inline-entry"
12
12
  }), ' ', /*#__PURE__*/ (0, _testutils.jsx)("hlink", {
13
13
  uri: "https://contentful.com"
14
- }, "website"), ' ', /*#__PURE__*/ (0, _testutils.jsx)("hlink", {
14
+ }, "website"), " ", /*#__PURE__*/ (0, _testutils.jsx)("hlink", {
15
15
  entry: "entry-id"
16
16
  }, "entry"), ' ', /*#__PURE__*/ (0, _testutils.jsx)("hlink", {
17
17
  resource: "resource-urn"
18
- }, "resource"), ' ', /*#__PURE__*/ (0, _testutils.jsx)("hlink", {
18
+ }, "resource"), " ", /*#__PURE__*/ (0, _testutils.jsx)("hlink", {
19
19
  asset: "asset-id"
20
20
  }, "asset"), "some text after"));
21
21
  (0, _testutils.assertOutput)({
@@ -13,7 +13,7 @@ const _testutils = require("../../../test-utils");
13
13
  uri: "https://contentful.com"
14
14
  }, "website"), ' ', /*#__PURE__*/ (0, _testutils.jsx)("hlink", {
15
15
  entry: "entry-id"
16
- }, "entry"), ' ', /*#__PURE__*/ (0, _testutils.jsx)("hlink", {
16
+ }, "entry"), " ", /*#__PURE__*/ (0, _testutils.jsx)("hlink", {
17
17
  resource: "resource-urn"
18
18
  }, "resource"), ' ', /*#__PURE__*/ (0, _testutils.jsx)("hlink", {
19
19
  asset: "asset-id"
@@ -9,11 +9,11 @@ describe('normalization', ()=>{
9
9
  id: "inline-entry"
10
10
  }), ' ', /*#__PURE__*/ jsx("hlink", {
11
11
  uri: "https://contentful.com"
12
- }, "website"), ' ', /*#__PURE__*/ jsx("hlink", {
12
+ }, "website"), " ", /*#__PURE__*/ jsx("hlink", {
13
13
  entry: "entry-id"
14
14
  }, "entry"), ' ', /*#__PURE__*/ jsx("hlink", {
15
15
  resource: "resource-urn"
16
- }, "resource"), ' ', /*#__PURE__*/ jsx("hlink", {
16
+ }, "resource"), " ", /*#__PURE__*/ jsx("hlink", {
17
17
  asset: "asset-id"
18
18
  }, "asset"), "some text after"), /*#__PURE__*/ jsx("hp", null, /*#__PURE__*/ jsx("htext", null)));
19
19
  assertOutput({
@@ -7,11 +7,11 @@ describe('normalization', ()=>{
7
7
  id: "inline-entry"
8
8
  }), ' ', /*#__PURE__*/ jsx("hlink", {
9
9
  uri: "https://contentful.com"
10
- }, "website"), ' ', /*#__PURE__*/ jsx("hlink", {
10
+ }, "website"), " ", /*#__PURE__*/ jsx("hlink", {
11
11
  entry: "entry-id"
12
12
  }, "entry"), ' ', /*#__PURE__*/ jsx("hlink", {
13
13
  resource: "resource-urn"
14
- }, "resource"), ' ', /*#__PURE__*/ jsx("hlink", {
14
+ }, "resource"), " ", /*#__PURE__*/ jsx("hlink", {
15
15
  asset: "asset-id"
16
16
  }, "asset"), "some text after"));
17
17
  assertOutput({
@@ -9,7 +9,7 @@ describe('normalization', ()=>{
9
9
  uri: "https://contentful.com"
10
10
  }, "website"), ' ', /*#__PURE__*/ jsx("hlink", {
11
11
  entry: "entry-id"
12
- }, "entry"), ' ', /*#__PURE__*/ jsx("hlink", {
12
+ }, "entry"), " ", /*#__PURE__*/ jsx("hlink", {
13
13
  resource: "resource-urn"
14
14
  }, "resource"), ' ', /*#__PURE__*/ jsx("hlink", {
15
15
  asset: "asset-id"
@@ -46,6 +46,6 @@ type OpenHyperlinkDialogOptions = {
46
46
  allowedHyperlinkTypes?: LinkType[];
47
47
  entitySelectorConfigs?: EntitySelectorConfigs;
48
48
  };
49
- export declare function HyperlinkDialog({ sdk, labels, value, entitySelectorConfigs, allowedHyperlinkTypes, hideText, onClose }: HyperlinkDialogProps): React.JSX.Element;
50
- export declare const openHyperlinkDialog: (dialogs: DialogsAPI, { value, showTextInput, allowedHyperlinkTypes, entitySelectorConfigs }: OpenHyperlinkDialogOptions) => Promise<any>;
49
+ export declare function HyperlinkDialog({ sdk, labels, value, entitySelectorConfigs, allowedHyperlinkTypes, hideText, onClose, }: HyperlinkDialogProps): React.JSX.Element;
50
+ export declare const openHyperlinkDialog: (dialogs: DialogsAPI, { value, showTextInput, allowedHyperlinkTypes, entitySelectorConfigs, }: OpenHyperlinkDialogOptions) => Promise<any>;
51
51
  export {};
@@ -2,7 +2,7 @@
2
2
  import * as p from 'platejs';
3
3
  import type { PlateEditor as ContentfulEditor } from './types/editor';
4
4
  export * from 'platejs';
5
- export { Plate, PlateContent, useEditorRef, useEditorState, usePlateEditor, usePlateSet, useEditorValue, createPlatePlugin } from 'platejs/react';
5
+ export { Plate, PlateContent, useEditorRef, useEditorState, usePlateEditor, usePlateSet, useEditorValue, createPlatePlugin, } from 'platejs/react';
6
6
  export type { TPlateEditor, PlateContentProps, PlateProps } from 'platejs/react';
7
7
  export { createPlateEditor, mockPlugin } from './pluginAdapter';
8
8
  export type { CreatePlateEditorOptions } from './pluginAdapter';
@@ -8,5 +8,5 @@ type LinkPopoverProps = {
8
8
  handleCopyLink?: () => void;
9
9
  isEditorFocused: boolean;
10
10
  };
11
- export declare const LinkPopover: ({ isLinkFocused, popoverText, handleEditLink, handleRemoveLink, children, handleCopyLink, isEditorFocused }: LinkPopoverProps) => React.JSX.Element;
11
+ export declare const LinkPopover: ({ isLinkFocused, popoverText, handleEditLink, handleRemoveLink, children, handleCopyLink, isEditorFocused, }: LinkPopoverProps) => React.JSX.Element;
12
12
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-rich-text",
3
- "version": "6.6.2",
3
+ "version": "6.6.3-canary.0+98e4f98c",
4
4
  "source": "./src/index.tsx",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -46,8 +46,8 @@
46
46
  "@contentful/f36-icons": "^6.7.1",
47
47
  "@contentful/f36-tokens": "^6.1.2",
48
48
  "@contentful/f36-utils": "^6.1.0",
49
- "@contentful/field-editor-reference": "^8.5.0",
50
- "@contentful/field-editor-shared": "^4.6.0",
49
+ "@contentful/field-editor-reference": "^8.5.1-canary.7+98e4f98c",
50
+ "@contentful/field-editor-shared": "^4.6.1-canary.7+98e4f98c",
51
51
  "@contentful/rich-text-plain-text-renderer": "^17.0.0",
52
52
  "@contentful/rich-text-types": "^17.2.5",
53
53
  "@emotion/css": "^11.13.5",
@@ -79,7 +79,7 @@
79
79
  "react-dom": ">=18.3.1"
80
80
  },
81
81
  "devDependencies": {
82
- "@contentful/field-editor-test-utils": "^3.2.0",
82
+ "@contentful/field-editor-test-utils": "^3.2.1-canary.7+98e4f98c",
83
83
  "@contentful/rich-text-react-renderer": "^16.0.0",
84
84
  "@lingui/core": "5.3.0",
85
85
  "@platejs/test-utils": "53.3.10",
@@ -96,5 +96,5 @@
96
96
  "prettier --write"
97
97
  ]
98
98
  },
99
- "gitHead": "45b7609d804eedab259d7a06e99ea9bcc45edd5b"
99
+ "gitHead": "98e4f98c23571f17e08e02c80c7d7e249412fc49"
100
100
  }