@portabletext/editor 7.11.0 → 7.12.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.
- package/README.md +57 -67
- package/lib/{behavior.types.action-DXkAaEGS.d.ts → behavior.types.action-DH6ujvaH.d.ts} +244 -16
- package/lib/behavior.types.action-DH6ujvaH.d.ts.map +1 -0
- package/lib/behaviors/index.d.ts +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +281 -89
- package/lib/index.js.map +1 -1
- package/lib/plugins/index.d.ts +3 -3
- package/lib/plugins/index.js +2 -2
- package/lib/plugins/index.js.map +1 -1
- package/lib/selectors/index.d.ts +1 -1
- package/lib/traversal/index.d.ts +1 -1
- package/lib/utils/index.d.ts +1 -1
- package/package.json +1 -1
- package/lib/behavior.types.action-DXkAaEGS.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ In order to set up an editor you'll need to:
|
|
|
17
17
|
|
|
18
18
|
- Create a schema that defines the rich text and block content elements.
|
|
19
19
|
- Create a toolbar to toggle and insert these elements.
|
|
20
|
-
-
|
|
20
|
+
- Set up rendering for each element type in the editor, including text blocks and inline formatting.
|
|
21
21
|
- Render the editor.
|
|
22
22
|
|
|
23
23
|
Check out the [Portable Text Playground](../../apps/playground/) for a comprehensive example of the editor in action.
|
|
@@ -41,16 +41,14 @@ Next, in your app or the component you're building, import `EditorProvider`, `Po
|
|
|
41
41
|
```tsx
|
|
42
42
|
// App.tsx
|
|
43
43
|
import {
|
|
44
|
+
defineDecorator,
|
|
44
45
|
defineSchema,
|
|
46
|
+
defineTextBlock,
|
|
45
47
|
EditorProvider,
|
|
46
48
|
PortableTextEditable,
|
|
47
49
|
} from '@portabletext/editor'
|
|
48
|
-
import type {
|
|
49
|
-
|
|
50
|
-
RenderDecoratorFunction,
|
|
51
|
-
RenderStyleFunction,
|
|
52
|
-
} from '@portabletext/editor'
|
|
53
|
-
import {EventListenerPlugin} from '@portabletext/editor/plugins'
|
|
50
|
+
import type {PortableTextBlock} from '@portabletext/editor'
|
|
51
|
+
import {EventListenerPlugin, NodePlugin} from '@portabletext/editor/plugins'
|
|
54
52
|
```
|
|
55
53
|
|
|
56
54
|
### Define the schema
|
|
@@ -103,16 +101,14 @@ Add `useState` from React, then scaffold out a basic application component. For
|
|
|
103
101
|
```tsx
|
|
104
102
|
// app.tsx
|
|
105
103
|
import {
|
|
104
|
+
defineDecorator,
|
|
106
105
|
defineSchema,
|
|
106
|
+
defineTextBlock,
|
|
107
107
|
EditorProvider,
|
|
108
108
|
PortableTextEditable,
|
|
109
109
|
} from '@portabletext/editor'
|
|
110
|
-
import type {
|
|
111
|
-
|
|
112
|
-
RenderDecoratorFunction,
|
|
113
|
-
RenderStyleFunction,
|
|
114
|
-
} from '@portabletext/editor'
|
|
115
|
-
import {EventListenerPlugin} from '@portabletext/editor/plugins'
|
|
110
|
+
import type {PortableTextBlock} from '@portabletext/editor'
|
|
111
|
+
import {EventListenerPlugin, NodePlugin} from '@portabletext/editor/plugins'
|
|
116
112
|
import {useState} from 'react'
|
|
117
113
|
|
|
118
114
|
const schemaDefinition = defineSchema({
|
|
@@ -154,80 +150,77 @@ export default App
|
|
|
154
150
|
|
|
155
151
|
Include the `App` component in your application and run it. You should see an outlined editor that accepts text, but doesn't do much else.
|
|
156
152
|
|
|
157
|
-
###
|
|
158
|
-
|
|
159
|
-
> [!WARNING]
|
|
160
|
-
> The block-level render props (`renderStyle`, `renderBlock`, `renderListItem`, `renderChild`) are deprecated and will be removed in future major versions in favor of node registrations (`defineTextBlock`, `defineBlockObject`, `defineInlineObject`, `defineSpan`). See the [migration guide](https://www.portabletext.org/editor/guides/migrate-render-props/). The span-level props (`renderDecorator`, `renderAnnotation`, `renderPlaceholder`) are not deprecated.
|
|
153
|
+
### Set up rendering for schema elements
|
|
161
154
|
|
|
162
|
-
At this point the
|
|
155
|
+
At this point the editor renders every text block as plain text, whatever its style. Fix that by registering a `defineTextBlock` node for the text blocks and `defineDecorator`/`defineAnnotation` nodes for the marks. If your editor still renders through the deprecated `renderStyle`, `renderBlock`, `renderListItem`, `renderChild`, `renderDecorator`, and `renderAnnotation` props, see the [migration guide](https://www.portabletext.org/editor/guides/migrate-render-props/) to move to node registrations instead.
|
|
163
156
|
|
|
164
|
-
Start by
|
|
157
|
+
Start by registering the text block render with `defineTextBlock`. The editor dispatches every text block to this callback. Your callback owns the block's wrapper element, so spread `props.attributes` on the outermost element you return, and use the block's `style` to pick the element.
|
|
165
158
|
|
|
166
159
|
```tsx
|
|
167
|
-
const
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
}
|
|
160
|
+
const textBlock = defineTextBlock({
|
|
161
|
+
type: 'block',
|
|
162
|
+
render: (props) => {
|
|
163
|
+
if (props.node.style === 'h1') {
|
|
164
|
+
return <h1 {...props.attributes}>{props.children}</h1>
|
|
165
|
+
}
|
|
166
|
+
if (props.node.style === 'h2') {
|
|
167
|
+
return <h2 {...props.attributes}>{props.children}</h2>
|
|
168
|
+
}
|
|
169
|
+
if (props.node.style === 'h3') {
|
|
170
|
+
return <h3 {...props.attributes}>{props.children}</h3>
|
|
171
|
+
}
|
|
172
|
+
if (props.node.style === 'blockquote') {
|
|
173
|
+
return <blockquote {...props.attributes}>{props.children}</blockquote>
|
|
174
|
+
}
|
|
175
|
+
return <div {...props.attributes}>{props.children}</div>
|
|
176
|
+
},
|
|
177
|
+
})
|
|
182
178
|
```
|
|
183
179
|
|
|
184
|
-
|
|
180
|
+
Marks (decorators and annotations) join the same `nodes` array. Registrations all follow the same shape.
|
|
185
181
|
|
|
186
182
|
- They take in props and return JSX elements.
|
|
187
|
-
- They
|
|
188
|
-
- They return JSX
|
|
183
|
+
- They decide what to render from the registration's `type` and the node itself, not a separate schema-type argument.
|
|
184
|
+
- They return JSX that renders `children` somewhere inside it, the editable content the registration wraps.
|
|
189
185
|
|
|
190
186
|
With this in mind, continue for the remaining schema types.
|
|
191
187
|
|
|
192
|
-
|
|
188
|
+
Register a decorator with `defineDecorator`, one per decorator name.
|
|
193
189
|
|
|
194
190
|
```tsx
|
|
195
|
-
const
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
}
|
|
191
|
+
const strong = defineDecorator({
|
|
192
|
+
type: 'strong',
|
|
193
|
+
render: ({children}) => <strong>{children}</strong>,
|
|
194
|
+
})
|
|
195
|
+
const em = defineDecorator({
|
|
196
|
+
type: 'em',
|
|
197
|
+
render: ({children}) => <em>{children}</em>,
|
|
198
|
+
})
|
|
199
|
+
const underline = defineDecorator({
|
|
200
|
+
type: 'underline',
|
|
201
|
+
render: ({children}) => <u>{children}</u>,
|
|
202
|
+
})
|
|
203
|
+
|
|
204
|
+
const nodes = [textBlock, strong, em, underline]
|
|
207
205
|
```
|
|
208
206
|
|
|
209
207
|
> [!NOTE]
|
|
210
|
-
> By default, text is rendered as an inline `span` element in the editor.
|
|
211
|
-
|
|
212
|
-
Update the `PortableTextEditable` with each corresponding function to attach them to the editor.
|
|
208
|
+
> By default, text is rendered as an inline `span` element in the editor. A decorator's render can pass `children` through unwrapped, but the registered text block render must return a block-level element, like a `<div>`.
|
|
213
209
|
|
|
214
|
-
|
|
210
|
+
Mount every registration through one `NodePlugin`, inside the `EditorProvider`. Keep the `nodes` array itself at module scope, as above: a fresh array on every render would make `NodePlugin` unregister and re-register on every keystroke. You can learn more about [customizing the rendering](https://www.portabletext.org/editor/guides/custom-rendering/) in the documentation.
|
|
215
211
|
|
|
216
212
|
```tsx
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
renderBlock={(props) => <div>{props.children}</div>}
|
|
222
|
-
renderListItem={(props) => <>{props.children}</>}
|
|
223
|
-
/>
|
|
213
|
+
<>
|
|
214
|
+
<NodePlugin nodes={nodes} />
|
|
215
|
+
<PortableTextEditable style={{border: '1px solid black', padding: '0.5em'}} />
|
|
216
|
+
</>
|
|
224
217
|
```
|
|
225
218
|
|
|
226
219
|
Before you can see if anything changed, you need a way to interact with the editor.
|
|
227
220
|
|
|
228
221
|
### Create a toolbar
|
|
229
222
|
|
|
230
|
-
A toolbar is a collection of UI elements for interacting with the editor.
|
|
223
|
+
A toolbar is a collection of UI elements for interacting with the editor. [`@portabletext/toolbar`](../toolbar/) provides ready-made hooks (`useStyleSelector`, `useDecoratorButton`, and more) for common toolbar UI; see the [toolbar customization guide](https://www.portabletext.org/editor/guides/customize-toolbar/) to use them. What follows here is the lower-level approach: sending events to the editor directly.
|
|
231
224
|
|
|
232
225
|
1. Create a `Toolbar` component in the same file.
|
|
233
226
|
2. Import the `useEditor` hook, and declare an `editor` constant in the component.
|
|
@@ -296,7 +289,7 @@ The `useEditor` hook gives you access to the active editor. `send` lets you send
|
|
|
296
289
|
|
|
297
290
|
### Bring it all together
|
|
298
291
|
|
|
299
|
-
With
|
|
292
|
+
With the registrations created and a toolbar in place, you can fully render the editor. Add the `Toolbar` inside the `EditorProvider`.
|
|
300
293
|
|
|
301
294
|
```tsx
|
|
302
295
|
// App.tsx
|
|
@@ -322,12 +315,9 @@ function App() {
|
|
|
322
315
|
}}
|
|
323
316
|
/>
|
|
324
317
|
<Toolbar />
|
|
318
|
+
<NodePlugin nodes={nodes} />
|
|
325
319
|
<PortableTextEditable
|
|
326
320
|
style={{border: '1px solid black', padding: '0.5em'}}
|
|
327
|
-
renderStyle={renderStyle}
|
|
328
|
-
renderDecorator={renderDecorator}
|
|
329
|
-
renderBlock={(props) => <div>{props.children}</div>}
|
|
330
|
-
renderListItem={(props) => <>{props.children}</>}
|
|
331
321
|
/>
|
|
332
322
|
</EditorProvider>
|
|
333
323
|
</>
|
|
@@ -117,7 +117,7 @@ type ContainerRenderProps = {
|
|
|
117
117
|
* inside a custom render to fall back to or wrap the default:
|
|
118
118
|
*
|
|
119
119
|
* ```ts
|
|
120
|
-
* render: (
|
|
120
|
+
* render: (props) => props.renderDefault(props)
|
|
121
121
|
* ```
|
|
122
122
|
*
|
|
123
123
|
* The default is the engine's minimal wrapper. It does not chain
|
|
@@ -136,7 +136,10 @@ type ContainerRender = (props: ContainerRenderProps) => ReactElement;
|
|
|
136
136
|
*
|
|
137
137
|
* A span's render function. Receives a portable text span node and
|
|
138
138
|
* wraps it. `children` carries the styled text already decorated by
|
|
139
|
-
* `
|
|
139
|
+
* the decorator/annotation renders (registered via `defineDecorator`/
|
|
140
|
+
* `defineAnnotation`, or the legacy `renderDecorator`/`renderAnnotation`
|
|
141
|
+
* props). Range decorations wrap this render's output from the
|
|
142
|
+
* outside, so they are not part of `children`.
|
|
140
143
|
*/
|
|
141
144
|
type SpanRenderProps = {
|
|
142
145
|
attributes: Record<string, unknown>;
|
|
@@ -156,6 +159,83 @@ type SpanRenderProps = {
|
|
|
156
159
|
* @public
|
|
157
160
|
*/
|
|
158
161
|
type SpanRender = (props: SpanRenderProps) => ReactElement;
|
|
162
|
+
/**
|
|
163
|
+
* @public
|
|
164
|
+
*
|
|
165
|
+
* A decorator's render function. Receives the decorator name and
|
|
166
|
+
* wraps the styled text it applies to. Range and selection decorations
|
|
167
|
+
* can split one span into several leaves, so this fires once per
|
|
168
|
+
* decorator on each leaf, not once per span, nested in the span's
|
|
169
|
+
* `marks` order alongside any decorators still rendered by the legacy
|
|
170
|
+
* `renderDecorator` prop.
|
|
171
|
+
*
|
|
172
|
+
* The render is a plain function call, not a component: do not call
|
|
173
|
+
* hooks in it. When you need hooks, return an element of your own
|
|
174
|
+
* component: `render: (props) => <MyDecorator {...props} />`.
|
|
175
|
+
*/
|
|
176
|
+
type DecoratorRenderProps = {
|
|
177
|
+
children: ReactElement;
|
|
178
|
+
/**
|
|
179
|
+
* The decorator name, e.g. `'strong'`. A `'*'` render
|
|
180
|
+
* discriminates on this.
|
|
181
|
+
*/
|
|
182
|
+
decorator: string;
|
|
183
|
+
focused: boolean;
|
|
184
|
+
/**
|
|
185
|
+
* Path of the span carrying the decorator.
|
|
186
|
+
*/
|
|
187
|
+
path: Path;
|
|
188
|
+
readOnly: boolean;
|
|
189
|
+
selected: boolean;
|
|
190
|
+
/**
|
|
191
|
+
* Render this position with the engine's default wrapper.
|
|
192
|
+
* See {@link ContainerRenderProps.renderDefault}. The default is
|
|
193
|
+
* identity: the engine applies no decorator markup of its own.
|
|
194
|
+
*/
|
|
195
|
+
renderDefault: (props: DecoratorRenderProps) => ReactElement;
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* @public
|
|
199
|
+
*/
|
|
200
|
+
type DecoratorRender = (props: DecoratorRenderProps) => ReactElement;
|
|
201
|
+
/**
|
|
202
|
+
* @public
|
|
203
|
+
*
|
|
204
|
+
* An annotation's render function. Receives the annotation's `markDef`
|
|
205
|
+
* object and wraps the styled text it applies to. The engine anchors
|
|
206
|
+
* the text in a `<span>` outside this render regardless of whether a
|
|
207
|
+
* render is registered, kept for structural parity with the legacy
|
|
208
|
+
* `renderAnnotation` path (which hands that anchor to consumers as
|
|
209
|
+
* `editorElementRef`); this render's job is the styling wrapper only.
|
|
210
|
+
*
|
|
211
|
+
* The render is a plain function call, not a component: do not call
|
|
212
|
+
* hooks in it. When you need hooks, return an element of your own
|
|
213
|
+
* component: `render: (props) => <MyAnnotation {...props} />`.
|
|
214
|
+
*/
|
|
215
|
+
type AnnotationRenderProps = {
|
|
216
|
+
/**
|
|
217
|
+
* The annotation's `markDef` object: `{_key, _type, ...fields}`.
|
|
218
|
+
* Named `annotation`, not `node`, because `path` addresses the span
|
|
219
|
+
* leaf carrying the annotation; the markDef itself lives in the block's
|
|
220
|
+
* `markDefs` array.
|
|
221
|
+
*/
|
|
222
|
+
annotation: PortableTextObject;
|
|
223
|
+
children: ReactElement;
|
|
224
|
+
focused: boolean;
|
|
225
|
+
path: Path;
|
|
226
|
+
readOnly: boolean;
|
|
227
|
+
selected: boolean;
|
|
228
|
+
/**
|
|
229
|
+
* Render this position with the engine's default wrapper.
|
|
230
|
+
* See {@link ContainerRenderProps.renderDefault}. The default is
|
|
231
|
+
* identity: the engine applies no annotation markup of its own.
|
|
232
|
+
*/
|
|
233
|
+
renderDefault: (props: AnnotationRenderProps) => ReactElement;
|
|
234
|
+
};
|
|
235
|
+
/**
|
|
236
|
+
* @public
|
|
237
|
+
*/
|
|
238
|
+
type AnnotationRender = (props: AnnotationRenderProps) => ReactElement;
|
|
159
239
|
/**
|
|
160
240
|
* @public
|
|
161
241
|
*
|
|
@@ -274,8 +354,13 @@ type TextBlock = {
|
|
|
274
354
|
* Inline-content positional overrides. A `Span` or `InlineObject`
|
|
275
355
|
* placed here scopes the inline render to this text block (or any
|
|
276
356
|
* text block of this `type` if registered at the top level).
|
|
357
|
+
* `Decorator` and `Annotation` entries scope those renders the
|
|
358
|
+
* same way: the decorator or annotation renders through this entry
|
|
359
|
+
* inside the text block, and through the global registration (or
|
|
360
|
+
* the legacy `renderDecorator`/`renderAnnotation` prop) everywhere
|
|
361
|
+
* else.
|
|
277
362
|
*/
|
|
278
|
-
of?: ReadonlyArray<Span | InlineObject>;
|
|
363
|
+
of?: ReadonlyArray<Span | InlineObject | Decorator | Annotation>;
|
|
279
364
|
};
|
|
280
365
|
/**
|
|
281
366
|
* @public
|
|
@@ -323,6 +408,43 @@ type Span = {
|
|
|
323
408
|
*/
|
|
324
409
|
render?: SpanRender;
|
|
325
410
|
};
|
|
411
|
+
/**
|
|
412
|
+
* @public
|
|
413
|
+
*
|
|
414
|
+
* A decorator registration. `type` is a decorator name declared in
|
|
415
|
+
* the schema's `decorators` array, or `'*'` to match every decorator.
|
|
416
|
+
*/
|
|
417
|
+
type Decorator = {
|
|
418
|
+
kind: 'decorator';
|
|
419
|
+
type: string;
|
|
420
|
+
/**
|
|
421
|
+
* Outer render. Two modes:
|
|
422
|
+
* - omitted: fall through to global registered render (or identity,
|
|
423
|
+
* the engine default, if no global registration exists)
|
|
424
|
+
* - function: use this render. The function receives a `renderDefault`
|
|
425
|
+
* prop that returns identity when called.
|
|
426
|
+
*/
|
|
427
|
+
render?: DecoratorRender;
|
|
428
|
+
};
|
|
429
|
+
/**
|
|
430
|
+
* @public
|
|
431
|
+
*
|
|
432
|
+
* An annotation registration. `type` is an annotation `_type` declared
|
|
433
|
+
* in the schema's `annotations` array, or `'*'` to match every
|
|
434
|
+
* annotation type.
|
|
435
|
+
*/
|
|
436
|
+
type Annotation = {
|
|
437
|
+
kind: 'annotation';
|
|
438
|
+
type: string;
|
|
439
|
+
/**
|
|
440
|
+
* Outer render. Two modes:
|
|
441
|
+
* - omitted: fall through to global registered render (or identity,
|
|
442
|
+
* the engine default, if no global registration exists)
|
|
443
|
+
* - function: use this render. The function receives a `renderDefault`
|
|
444
|
+
* prop that returns identity when called.
|
|
445
|
+
*/
|
|
446
|
+
render?: AnnotationRender;
|
|
447
|
+
};
|
|
326
448
|
/**
|
|
327
449
|
* @public
|
|
328
450
|
*
|
|
@@ -363,7 +485,7 @@ type InlineObject = {
|
|
|
363
485
|
* The discriminated union of every registration accepted by
|
|
364
486
|
* `editor.registerNode` and the `<NodePlugin>` component.
|
|
365
487
|
*/
|
|
366
|
-
type RegistrableNode = Container | TextBlock | Span | BlockObject | InlineObject;
|
|
488
|
+
type RegistrableNode = Container | TextBlock | Span | BlockObject | InlineObject | Decorator | Annotation;
|
|
367
489
|
/**
|
|
368
490
|
* @public
|
|
369
491
|
*
|
|
@@ -437,6 +559,56 @@ declare function defineSpan<const TType extends string>(config: {
|
|
|
437
559
|
type: TType extends 'block' ? "Error: defineSpan({type: 'block'}) is forbidden -- 'block' is always a text block, use defineTextBlock" : TType;
|
|
438
560
|
render?: SpanRender;
|
|
439
561
|
}): Span;
|
|
562
|
+
/**
|
|
563
|
+
* @public
|
|
564
|
+
*
|
|
565
|
+
* Define a decorator renderer for a decorator name declared in the
|
|
566
|
+
* schema's `decorators` array, or `'*'` to match every decorator.
|
|
567
|
+
* The returned registration is mounted via the `<NodePlugin>`
|
|
568
|
+
* component.
|
|
569
|
+
*
|
|
570
|
+
* Decorator names live in a different namespace than node
|
|
571
|
+
* `_type`s, so `type` has no forbidden values here (unlike
|
|
572
|
+
* `defineSpan`/`defineTextBlock`).
|
|
573
|
+
*
|
|
574
|
+
* @example
|
|
575
|
+
* ```ts
|
|
576
|
+
* defineDecorator({
|
|
577
|
+
* type: 'strong',
|
|
578
|
+
* render: ({children}) => <strong>{children}</strong>,
|
|
579
|
+
* })
|
|
580
|
+
* ```
|
|
581
|
+
*/
|
|
582
|
+
declare function defineDecorator(config: {
|
|
583
|
+
type: string;
|
|
584
|
+
render?: DecoratorRender;
|
|
585
|
+
}): Decorator;
|
|
586
|
+
/**
|
|
587
|
+
* @public
|
|
588
|
+
*
|
|
589
|
+
* Define an annotation renderer for a `_type` declared in the
|
|
590
|
+
* schema's `annotations` array, or `'*'` to match every annotation
|
|
591
|
+
* type. The returned registration is mounted via the `<NodePlugin>`
|
|
592
|
+
* component.
|
|
593
|
+
*
|
|
594
|
+
* Annotation `_type`s live in a different namespace than node
|
|
595
|
+
* `_type`s, so `type` has no forbidden values here (unlike
|
|
596
|
+
* `defineInlineObject`/`defineBlockObject`).
|
|
597
|
+
*
|
|
598
|
+
* @example
|
|
599
|
+
* ```ts
|
|
600
|
+
* defineAnnotation({
|
|
601
|
+
* type: 'link',
|
|
602
|
+
* render: ({annotation, children}) => (
|
|
603
|
+
* <a href={(annotation as {href?: string}).href}>{children}</a>
|
|
604
|
+
* ),
|
|
605
|
+
* })
|
|
606
|
+
* ```
|
|
607
|
+
*/
|
|
608
|
+
declare function defineAnnotation(config: {
|
|
609
|
+
type: string;
|
|
610
|
+
render?: AnnotationRender;
|
|
611
|
+
}): Annotation;
|
|
440
612
|
/**
|
|
441
613
|
* @public
|
|
442
614
|
*
|
|
@@ -518,7 +690,7 @@ declare function defineInlineObject<const TType extends string>(config: {
|
|
|
518
690
|
declare function defineTextBlock<const TType extends string>(config: {
|
|
519
691
|
type: TType extends 'span' ? "Error: defineTextBlock({type: 'span'}) is forbidden -- 'span' is always a span, use defineSpan" : TType;
|
|
520
692
|
render?: TextBlockRender;
|
|
521
|
-
of?: ReadonlyArray<Span | InlineObject>;
|
|
693
|
+
of?: ReadonlyArray<Span | InlineObject | Decorator | Annotation>;
|
|
522
694
|
}): TextBlock;
|
|
523
695
|
/**
|
|
524
696
|
* @internal
|
|
@@ -528,6 +700,22 @@ declare function defineTextBlock<const TType extends string>(config: {
|
|
|
528
700
|
type SpanConfig = {
|
|
529
701
|
span: Span;
|
|
530
702
|
};
|
|
703
|
+
/**
|
|
704
|
+
* @internal
|
|
705
|
+
*
|
|
706
|
+
* Resolved decorator config.
|
|
707
|
+
*/
|
|
708
|
+
type DecoratorConfig = {
|
|
709
|
+
decorator: Decorator;
|
|
710
|
+
};
|
|
711
|
+
/**
|
|
712
|
+
* @internal
|
|
713
|
+
*
|
|
714
|
+
* Resolved annotation config.
|
|
715
|
+
*/
|
|
716
|
+
type AnnotationConfig = {
|
|
717
|
+
annotation: Annotation;
|
|
718
|
+
};
|
|
531
719
|
/**
|
|
532
720
|
* @internal
|
|
533
721
|
*
|
|
@@ -560,12 +748,13 @@ type ContainerConfig = {
|
|
|
560
748
|
* @internal
|
|
561
749
|
*
|
|
562
750
|
* Resolved text block config. The optional `of` carries resolved
|
|
563
|
-
* inline-content positional overrides (spans, inline-objects
|
|
564
|
-
*
|
|
751
|
+
* inline-content positional overrides (spans, inline-objects, and
|
|
752
|
+
* per-decorator and per-annotation overrides) for children rendered
|
|
753
|
+
* inside this text block.
|
|
565
754
|
*/
|
|
566
755
|
type TextBlockConfig = {
|
|
567
756
|
textBlock: TextBlock;
|
|
568
|
-
of?: ReadonlyArray<SpanConfig | InlineObjectConfig>;
|
|
757
|
+
of?: ReadonlyArray<SpanConfig | InlineObjectConfig | DecoratorConfig | AnnotationConfig>;
|
|
569
758
|
};
|
|
570
759
|
/**
|
|
571
760
|
* Public view of a registered editable container, surfaced on
|
|
@@ -1128,6 +1317,11 @@ type PortableTextEditableProps = Omit<TextareaHTMLAttributes<HTMLDivElement>, 'o
|
|
|
1128
1317
|
onPaste?: OnPasteFn;
|
|
1129
1318
|
onCopy?: OnCopyFn;
|
|
1130
1319
|
rangeDecorations?: RangeDecoration[];
|
|
1320
|
+
/**
|
|
1321
|
+
* @deprecated Register your annotations with `defineAnnotation`
|
|
1322
|
+
* mounted through `NodePlugin` instead. See the migration guide:
|
|
1323
|
+
* https://www.portabletext.org/editor/guides/migrate-render-props/
|
|
1324
|
+
*/
|
|
1131
1325
|
renderAnnotation?: RenderAnnotationFunction;
|
|
1132
1326
|
/**
|
|
1133
1327
|
* @deprecated Register your block objects and text blocks with
|
|
@@ -1143,6 +1337,11 @@ type PortableTextEditableProps = Omit<TextareaHTMLAttributes<HTMLDivElement>, 'o
|
|
|
1143
1337
|
* https://www.portabletext.org/editor/guides/migrate-render-props/
|
|
1144
1338
|
*/
|
|
1145
1339
|
renderChild?: RenderChildFunction;
|
|
1340
|
+
/**
|
|
1341
|
+
* @deprecated Register your decorators with `defineDecorator` mounted
|
|
1342
|
+
* through `NodePlugin` instead. See the migration guide:
|
|
1343
|
+
* https://www.portabletext.org/editor/guides/migrate-render-props/
|
|
1344
|
+
*/
|
|
1146
1345
|
renderDecorator?: RenderDecoratorFunction;
|
|
1147
1346
|
/**
|
|
1148
1347
|
* @deprecated Render list items with `defineTextBlock` mounted through
|
|
@@ -1353,7 +1552,14 @@ interface BlockChildRenderProps {
|
|
|
1353
1552
|
schemaType: InlineObjectSchemaType;
|
|
1354
1553
|
value: PortableTextChild;
|
|
1355
1554
|
}
|
|
1356
|
-
/**
|
|
1555
|
+
/**
|
|
1556
|
+
* @beta
|
|
1557
|
+
* @deprecated `BlockAnnotationRenderProps` is deprecated together with the
|
|
1558
|
+
* `renderAnnotation` render prop it serves. Type against
|
|
1559
|
+
* `AnnotationRenderProps` from the node registration API instead. See the
|
|
1560
|
+
* migration guide:
|
|
1561
|
+
* https://www.portabletext.org/editor/guides/migrate-render-props/
|
|
1562
|
+
*/
|
|
1357
1563
|
interface BlockAnnotationRenderProps {
|
|
1358
1564
|
block: PortableTextBlock;
|
|
1359
1565
|
children: ReactElement<any>;
|
|
@@ -1364,7 +1570,14 @@ interface BlockAnnotationRenderProps {
|
|
|
1364
1570
|
selected: boolean;
|
|
1365
1571
|
value: PortableTextObject;
|
|
1366
1572
|
}
|
|
1367
|
-
/**
|
|
1573
|
+
/**
|
|
1574
|
+
* @beta
|
|
1575
|
+
* @deprecated `BlockDecoratorRenderProps` is deprecated together with the
|
|
1576
|
+
* `renderDecorator` render prop it serves. Type against
|
|
1577
|
+
* `DecoratorRenderProps` from the node registration API instead. See the
|
|
1578
|
+
* migration guide:
|
|
1579
|
+
* https://www.portabletext.org/editor/guides/migrate-render-props/
|
|
1580
|
+
*/
|
|
1368
1581
|
interface BlockDecoratorRenderProps {
|
|
1369
1582
|
children: ReactElement<any>;
|
|
1370
1583
|
editorElementRef: RefObject<HTMLElement | null>;
|
|
@@ -1412,7 +1625,13 @@ type RenderBlockFunction = (props: BlockRenderProps) => JSX.Element;
|
|
|
1412
1625
|
type RenderChildFunction = (props: BlockChildRenderProps) => JSX.Element;
|
|
1413
1626
|
/** @public */
|
|
1414
1627
|
type RenderEditableFunction = (props: PortableTextEditableProps) => JSX.Element;
|
|
1415
|
-
/**
|
|
1628
|
+
/**
|
|
1629
|
+
* @beta
|
|
1630
|
+
* @deprecated The `renderAnnotation` render prop is deprecated. Register
|
|
1631
|
+
* your annotations with `defineAnnotation` mounted through `NodePlugin`
|
|
1632
|
+
* instead. See the migration guide:
|
|
1633
|
+
* https://www.portabletext.org/editor/guides/migrate-render-props/
|
|
1634
|
+
*/
|
|
1416
1635
|
type RenderAnnotationFunction = (props: BlockAnnotationRenderProps) => JSX.Element;
|
|
1417
1636
|
/** @public */
|
|
1418
1637
|
type RenderPlaceholderFunction = () => React.ReactNode;
|
|
@@ -1451,7 +1670,13 @@ interface BlockStyleRenderProps {
|
|
|
1451
1670
|
* https://www.portabletext.org/editor/guides/migrate-render-props/
|
|
1452
1671
|
*/
|
|
1453
1672
|
type RenderListItemFunction = (props: BlockListItemRenderProps) => JSX.Element;
|
|
1454
|
-
/**
|
|
1673
|
+
/**
|
|
1674
|
+
* @beta
|
|
1675
|
+
* @deprecated The `renderDecorator` render prop is deprecated. Register
|
|
1676
|
+
* your decorators with `defineDecorator` mounted through `NodePlugin`
|
|
1677
|
+
* instead. See the migration guide:
|
|
1678
|
+
* https://www.portabletext.org/editor/guides/migrate-render-props/
|
|
1679
|
+
*/
|
|
1455
1680
|
type RenderDecoratorFunction = (props: BlockDecoratorRenderProps) => JSX.Element;
|
|
1456
1681
|
/** @public */
|
|
1457
1682
|
type ScrollSelectionIntoViewFunction = (editor: PortableTextEditor, domRange: globalThis.Range) => void;
|
|
@@ -1929,7 +2154,9 @@ interface PortableTextEditorEngine extends DOMEditor {
|
|
|
1929
2154
|
_key: 'editor';
|
|
1930
2155
|
_type: 'editor';
|
|
1931
2156
|
containers: ResolvedContainers;
|
|
2157
|
+
annotations: Map<string, AnnotationConfig>;
|
|
1932
2158
|
blockObjects: Map<string, BlockObjectConfig>;
|
|
2159
|
+
decorators: Map<string, DecoratorConfig>;
|
|
1933
2160
|
inlineObjects: Map<string, InlineObjectConfig>;
|
|
1934
2161
|
spans: Map<string, SpanConfig>;
|
|
1935
2162
|
textBlocks: Map<string, TextBlockConfig>;
|
|
@@ -2256,8 +2483,9 @@ type Editor = {
|
|
|
2256
2483
|
/**
|
|
2257
2484
|
* Register a node renderer. The `node` argument is the result of one
|
|
2258
2485
|
* of the `defineX` factories (`defineContainer`, `defineTextBlock`,
|
|
2259
|
-
* `defineSpan`, `defineBlockObject`, `defineInlineObject
|
|
2260
|
-
* a function that
|
|
2486
|
+
* `defineSpan`, `defineBlockObject`, `defineInlineObject`,
|
|
2487
|
+
* `defineDecorator`, `defineAnnotation`). Returns a function that
|
|
2488
|
+
* unregisters the node when called.
|
|
2261
2489
|
*
|
|
2262
2490
|
* @public
|
|
2263
2491
|
*/
|
|
@@ -3441,5 +3669,5 @@ type BehaviorActionSet<TBehaviorEvent, TGuardResponse> = (payload: {
|
|
|
3441
3669
|
event: TBehaviorEvent;
|
|
3442
3670
|
dom: EditorDom;
|
|
3443
3671
|
}, guardResponse: TGuardResponse) => Array<BehaviorAction>;
|
|
3444
|
-
export { BehaviorGuard as $,
|
|
3445
|
-
//# sourceMappingURL=behavior.types.action-
|
|
3672
|
+
export { BehaviorGuard as $, DecoratorRender as $t, PortableTextSpan$1 as A, PortableTextEditableProps as At, usePortableTextEditor as B, RegisteredInlineObject as Bt, ListDefinition as C, PathSegment as Cn, RenderDecoratorFunction as Ct, PortableTextBlock$1 as D, RenderStyleFunction as Dt, Patch$1 as E, RenderPlaceholderFunction as Et, defineSchema as F, Node$1 as Ft, Editor as G, AnnotationRenderProps as Gt, useEditorSelector as H, RegisteredSpan as Ht, BlockOffset as I, EditorSchema as It, EditorEmittedEvent as J, BlockObjectRenderProps as Jt, EditorConfig as K, BlockObject as Kt, useEditor as L, Containers as Lt, SchemaDefinition$1 as M, PortableTextEditor as Mt, StyleDefinition as N, resolveContainerAt as Nt, PortableTextChild$1 as O, ScrollSelectionIntoViewFunction as Ot, StyleSchemaType$1 as P, TraversalSnapshot as Pt, defineBehavior as Q, Decorator as Qt, defaultKeyGenerator as R, RegisteredBlockObject as Rt, InlineObjectSchemaType$1 as S, Path as Sn, RenderChildFunction as St, OfDefinition$1 as T, RenderListItemFunction as Tt, EditorProvider as U, Annotation as Ut, EditorSelector as V, RegisteredPositional as Vt, EditorProviderProps as W, AnnotationRender as Wt, Operation as X, ContainerRender as Xt, MutationEvent as Y, Container as Yt, Behavior as Z, ContainerRenderProps as Zt, BlockObjectSchemaType$1 as _, defineTextBlock as _n, PasteData as _t, forward as a, Span as an, BlockDecoratorRenderProps as at, FieldDefinition$1 as b, ChildPath as bn, RenderAnnotationFunction as bt, CustomBehaviorEvent as c, TextBlock as cn, BlockStyleRenderProps as ct, SyntheticBehaviorEvent as d, defineAnnotation as dn, EditorSelectionPoint as dt, DecoratorRenderProps as en, EditorContext as et, PatchesEvent as f, defineBlockObject as fn, InvalidValueResolution as ft, BlockObjectDefinition as g, defineSpan as gn, OnPasteResultOrPromise as gt, BaseDefinition as h, defineInlineObject as hn, OnPasteResult as ht, execute as i, RegistrableNode as in, BlockChildRenderProps as it, PortableTextTextBlock$1 as j, HotkeyOptions as jt, PortableTextObject$1 as k, PortableTextEditable as kt, InsertPlacement as l, TextBlockRender as ln, EditableAPIDeleteOptions as lt, AnnotationSchemaType$1 as m, defineDecorator as mn, OnPasteFn as mt, BehaviorActionSet as n, InlineObjectRender as nn, AddedAnnotationPaths as nt, raise$1 as o, SpanRender as on, BlockListItemRenderProps as ot, AnnotationDefinition as p, defineContainer as pn, OnCopyFn as pt, EditorEvent as q, BlockObjectRender as qt, effect as r, InlineObjectRenderProps as rn, BlockAnnotationRenderProps as rt, BehaviorEvent as s, SpanRenderProps as sn, BlockRenderProps as st, BehaviorAction as t, InlineObject as tn, EditorSnapshot as tt, NativeBehaviorEvent as u, TextBlockRenderProps as un, EditorSelection as ut, DecoratorDefinition as v, AnnotationPath as vn, RangeDecoration as vt, ListSchemaType$1 as w, RenderEditableFunction as wt, InlineObjectDefinition as x, KeyedSegment as xn, RenderBlockFunction as xt, DecoratorSchemaType$1 as y, BlockPath as yn, RangeDecorationOnMovedDetails as yt, usePortableTextEditorSelection as z, RegisteredContainer as zt };
|
|
3673
|
+
//# sourceMappingURL=behavior.types.action-DH6ujvaH.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"behavior.types.action-DH6ujvaH.d.ts","names":[],"sources":["../src/internal-utils/mime-type.ts","../src/type-utils.ts","../src/converters/converter.types.ts","../src/types/paths.ts","../src/renderers/renderer.types.ts","../src/schema/container-types.ts","../src/editor/editor-schema.ts","../src/engine/interfaces/node.ts","../src/traversal/traversal-snapshot.ts","../src/schema/resolve-container-at.ts","../src/editor/PortableTextEditor.tsx","../src/types/options.ts","../src/editor/Editable.tsx","../src/types/editor.ts","../src/engine/types/types.ts","../src/engine/interfaces/point.ts","../src/engine/interfaces/range.ts","../src/engine/interfaces/operation.ts","../src/editor/range-decorations-machine.ts","../src/engine/core/operation-channel.ts","../src/engine/interfaces/location.ts","../src/engine/interfaces/path-ref.ts","../src/engine/interfaces/point-ref.ts","../src/engine/interfaces/range-ref.ts","../src/engine/interfaces/editor.ts","../src/engine/dom/utils/diff-text.ts","../src/engine/dom/utils/dom.ts","../src/engine/dom/plugin/dom-editor.ts","../src/types/editor-engine.ts","../src/editor/editor-snapshot.ts","../src/behaviors/behavior.types.guard.ts","../src/behaviors/behavior.types.behavior.ts","../src/types/operation.ts","../src/editor/relay.ts","../src/editor.ts","../src/editor/editor-provider.tsx","../src/editor/editor-selector.ts","../src/editor/usePortableTextEditor.ts","../src/editor/usePortableTextEditorSelection.tsx","../src/utils/key-generator.ts","../src/editor/use-editor.ts","../src/types/block-offset.ts","../src/priority/priority.types.ts","../src/behaviors/behavior.config.ts","../src/editor/editor-machine.ts","../src/internal-utils/event-position.ts","../src/types/block-with-optional-key.ts","../src/behaviors/behavior.types.event.ts","../src/editor/editor-dom.ts","../src/behaviors/behavior.types.action.ts"],"mappings":";;;;KAAY;;;;KCGA,cACV,QACA,sBAAsB,QACtB,oBAAoB,OAAO,YACzB,eAAe,OAAO,SAAS,eAAe;KAWtC,eAAe,QAAQ,6BAA6B;EAC9D,YAAY;OAGP,WAAW,SAAS,sBACd,cAAc,wBACjB,OAAO;KAIL,cAAc,GAAG,UAAU,KAAK;KCvBhC,UAAU,kBAAkB,WAAW;EACjD,UAAU;EACV,WAAW,WAAW;EACtB,aAAa,aAAa;;KASvB,eAAe,kBAAkB,WAAW;EAE3C;EACA;;EAGA;EACA,UAAU;EACV;EACA;;EAGA;EACA;EACA,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,sBAC/B,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA8CD,OACd,QAAQ,cAAc,8CACrB,cAAc;;;;KAOL,kBAAkB,gBAAgB,mBAC5C;EACE,UAAU;EACV,OAAO;EACP,KAAK;GAEP,eAAe,mBACZ,MAAM"}
|
package/lib/behaviors/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as BehaviorGuard, Q as defineBehavior, Z as Behavior, a as forward, c as CustomBehaviorEvent, d as SyntheticBehaviorEvent, i as execute, l as InsertPlacement, n as BehaviorActionSet, o as raise, r as effect, s as BehaviorEvent, t as BehaviorAction, u as NativeBehaviorEvent } from "../behavior.types.action-
|
|
1
|
+
import { $ as BehaviorGuard, Q as defineBehavior, Z as Behavior, a as forward, c as CustomBehaviorEvent, d as SyntheticBehaviorEvent, i as execute, l as InsertPlacement, n as BehaviorActionSet, o as raise, r as effect, s as BehaviorEvent, t as BehaviorAction, u as NativeBehaviorEvent } from "../behavior.types.action-DH6ujvaH.js";
|
|
2
2
|
export { type Behavior, type BehaviorAction, type BehaviorActionSet, type BehaviorEvent, type BehaviorGuard, type CustomBehaviorEvent, type InsertPlacement, type NativeBehaviorEvent, type SyntheticBehaviorEvent, defineBehavior, effect, execute, forward, raise };
|