@contentful/field-editor-rich-text 3.4.7 → 3.4.9

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.
@@ -0,0 +1,16 @@
1
+ import { NavigatorAPI } from '@contentful/app-sdk';
2
+ /**
3
+ * Allows to observe when the current slide-in navigation slide gets e.g.
4
+ * re-activated after opening another slide on top. This is useful as the sdk
5
+ * does not give full insights into e.g. whether sdk.dialogs.selectSingleEntry()
6
+ * with `withCreate: true` option opens the slide-in navigation to edit the
7
+ * created entry after returning it.
8
+ */
9
+ export declare function watchCurrentSlide(navigator: NavigatorAPI): {
10
+ status: () => {
11
+ wasClosed: boolean;
12
+ isActive: boolean;
13
+ };
14
+ onActive: (cb: Function) => (...args: any[]) => void;
15
+ unwatch: () => void;
16
+ };
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * Add items as needed. Don't forget to adjust hyperscript.d.ts
5
5
  */
6
- export declare const jsx: <S extends "text" | "anchor" | "editor" | "focus" | "cursor" | "element" | "selection" | "fragment">(tagName: S, attributes?: Object | undefined, ...children: any[]) => ReturnType<({
6
+ export declare const jsx: <S extends "focus" | "text" | "anchor" | "editor" | "cursor" | "element" | "selection" | "fragment">(tagName: S, attributes?: Object | undefined, ...children: any[]) => ReturnType<({
7
7
  anchor: typeof import("slate-hyperscript/dist/creators").createAnchor;
8
8
  cursor: typeof import("slate-hyperscript/dist/creators").createCursor;
9
9
  editor: (tagName: string, attributes: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/field-editor-rich-text",
3
- "version": "3.4.7",
3
+ "version": "3.4.9",
4
4
  "source": "./src/index.tsx",
5
5
  "main": "./dist/index.js",
6
6
  "module": "dist/field-editor-rich-text.esm.js",
@@ -74,5 +74,5 @@
74
74
  "@udecode/plate-test-utils": "^3.2.0",
75
75
  "react": ">=16.14.0"
76
76
  },
77
- "gitHead": "320c8066c77ca41cde74d4c17dc9708188432088"
77
+ "gitHead": "242b1d0f3dd4485581f0012d44bb7f79321f6dd6"
78
78
  }