@trycourier/react-designer 0.0.0-canary-20251229151230 → 0.0.0-canary-20260105172551
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/dist/cjs/index.js +57 -58
- package/dist/cjs/index.js.map +4 -4
- package/dist/cjs/styles.css +143 -242
- package/dist/components/Providers/useTemplateActions.d.ts +2 -2
- package/dist/components/TemplateEditor/Channels/Email/SideBar/SideBarItemDetails/SideBarItemDetails.d.ts +2 -1
- package/dist/components/TemplateEditor/index.d.ts +13 -1
- package/dist/components/TemplateEditor/store.d.ts +1 -1
- package/dist/components/extensions/Blockquote/BlockquoteForm.d.ts +2 -1
- package/dist/components/extensions/Button/ButtonForm.d.ts +2 -1
- package/dist/components/extensions/Column/ColumnForm.d.ts +2 -1
- package/dist/components/extensions/CustomCode/CustomCodeForm.d.ts +2 -1
- package/dist/components/extensions/Divider/DividerForm.d.ts +2 -1
- package/dist/components/extensions/ImageBlock/components/ImageBlockForm.d.ts +2 -1
- package/dist/components/extensions/TextBlock/TextBlockForm.d.ts +2 -1
- package/dist/components/extensions/index.d.ts +0 -2
- package/dist/components/ui/Blocks/index.d.ts +0 -1
- package/dist/components/ui/FormHeader/FormHeader.d.ts +3 -2
- package/dist/components/ui/VariableEditor/VariableChipBase.d.ts +0 -2
- package/dist/esm/index.js +57 -58
- package/dist/esm/index.js.map +4 -4
- package/dist/esm/styles.css +143 -242
- package/dist/index.d.ts +0 -13
- package/dist/lib/utils/index.d.ts +0 -1
- package/dist/styles.css +143 -242
- package/dist/types/elemental.types.d.ts +0 -4
- package/package.json +1 -1
- package/dist/components/extensions/List/List.d.ts +0 -15
- package/dist/components/extensions/List/List.types.d.ts +0 -9
- package/dist/components/extensions/List/ListComponent.d.ts +0 -9
- package/dist/components/extensions/List/ListForm.d.ts +0 -8
- package/dist/components/extensions/List/index.d.ts +0 -3
- package/dist/components/extensions/ListItem/ListItem.d.ts +0 -34
- package/dist/components/extensions/ListItem/ListItem.types.d.ts +0 -7
- package/dist/components/extensions/ListItem/ListItemComponent.d.ts +0 -7
- package/dist/components/extensions/ListItem/index.d.ts +0 -2
- package/dist/components/ui/Blocks/ListBlock/ListBlock.d.ts +0 -3
- package/dist/components/ui/Blocks/ListBlock/index.d.ts +0 -1
|
@@ -25,10 +25,6 @@ export interface ElementalListNode extends IsElementalNode {
|
|
|
25
25
|
/** Allows bullets to be rendered using an image */
|
|
26
26
|
imgSrc?: string;
|
|
27
27
|
imgHref?: string;
|
|
28
|
-
/** Locale-specific content overrides */
|
|
29
|
-
locales?: ElementalLocales<{
|
|
30
|
-
elements?: ElementalListItemNode[];
|
|
31
|
-
}>;
|
|
32
28
|
}
|
|
33
29
|
export interface ElementalListItemNode extends IsElementalNode {
|
|
34
30
|
type: "list-item";
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Node } from "@tiptap/core";
|
|
2
|
-
import type { ListProps } from "./List.types";
|
|
3
|
-
declare module "@tiptap/core" {
|
|
4
|
-
interface Commands<ReturnType> {
|
|
5
|
-
list: {
|
|
6
|
-
setList: (props?: Partial<ListProps>) => ReturnType;
|
|
7
|
-
toggleList: () => ReturnType;
|
|
8
|
-
toggleOrderedList: () => ReturnType;
|
|
9
|
-
toggleBulletList: () => ReturnType;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
export declare const defaultListProps: ListProps;
|
|
14
|
-
export declare const List: Node<any, any>;
|
|
15
|
-
export default List;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export interface ListProps {
|
|
2
|
-
/** Whether the list is ordered (numbered) or unordered (bulleted) */
|
|
3
|
-
listType: "ordered" | "unordered";
|
|
4
|
-
/** Unique identifier for the list node */
|
|
5
|
-
id?: string;
|
|
6
|
-
/** Locale-specific content overrides */
|
|
7
|
-
locales?: Record<string, unknown>;
|
|
8
|
-
}
|
|
9
|
-
export declare const defaultListProps: ListProps;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type NodeViewProps } from "@tiptap/react";
|
|
2
|
-
/**
|
|
3
|
-
* List NodeView component that renders the list.
|
|
4
|
-
*
|
|
5
|
-
* Uses SortableItemWrapper for proper drag-and-drop reordering,
|
|
6
|
-
* selection styling, and action buttons (duplicate, delete).
|
|
7
|
-
*/
|
|
8
|
-
export declare const ListComponentNode: (props: NodeViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export default ListComponentNode;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Editor } from "@tiptap/core";
|
|
2
|
-
import type { Node } from "@tiptap/pm/model";
|
|
3
|
-
interface ListFormProps {
|
|
4
|
-
element: Node;
|
|
5
|
-
editor: Editor | null;
|
|
6
|
-
}
|
|
7
|
-
export declare const ListForm: ({ element, editor }: ListFormProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
8
|
-
export default ListForm;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Node } from "@tiptap/core";
|
|
2
|
-
import type { ListItemProps } from "./ListItem.types";
|
|
3
|
-
declare module "@tiptap/core" {
|
|
4
|
-
interface Commands<ReturnType> {
|
|
5
|
-
listItem: {
|
|
6
|
-
/** Split the list item at the current cursor position */
|
|
7
|
-
splitListItem: (typeOrName: string) => ReturnType;
|
|
8
|
-
/** Lift the list item out of the list (outdent) */
|
|
9
|
-
liftListItem: (typeOrName: string) => ReturnType;
|
|
10
|
-
/** Sink the list item into a nested list (indent) */
|
|
11
|
-
sinkListItem: (typeOrName: string) => ReturnType;
|
|
12
|
-
/** Wrap selection in a list */
|
|
13
|
-
wrapInList: (typeOrName: string, attrs?: Record<string, unknown>) => ReturnType;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
export declare const defaultListItemProps: ListItemProps;
|
|
18
|
-
/**
|
|
19
|
-
* Custom ListItem extension with prosemirror-schema-list commands.
|
|
20
|
-
*
|
|
21
|
-
* Provides commands:
|
|
22
|
-
* - splitListItem: Split list item at cursor (creates new bullet)
|
|
23
|
-
* - liftListItem: Lift list item out of list (outdent)
|
|
24
|
-
* - sinkListItem: Sink list item into nested list (indent)
|
|
25
|
-
* - wrapInList: Wrap selection in a list
|
|
26
|
-
*
|
|
27
|
-
* Keyboard shortcuts:
|
|
28
|
-
* - Enter: Split list item (handled in List extension)
|
|
29
|
-
* - Tab: Sink list item (handled in List extension)
|
|
30
|
-
* - Shift-Tab: Lift list item (handled in List extension)
|
|
31
|
-
* - Shift-Enter: Add a hard break (new line within the paragraph)
|
|
32
|
-
*/
|
|
33
|
-
export declare const ListItem: Node<any, any>;
|
|
34
|
-
export default ListItem;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type NodeViewProps } from "@tiptap/react";
|
|
2
|
-
/**
|
|
3
|
-
* Simple ListItem NodeView that renders as a standard <li> element.
|
|
4
|
-
* Uses NodeViewContent to allow prosemirror to manage the content.
|
|
5
|
-
*/
|
|
6
|
-
export declare const ListItemComponentNode: (props: NodeViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default ListItemComponentNode;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./ListBlock";
|