@tnkrai/tnkr-editor 0.3.9 → 0.4.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/dist/core/components/tiptap-icons/callout-icons.d.ts +16 -0
- package/dist/core/components/tiptap-icons/callout-icons.d.ts.map +1 -0
- package/dist/core/components/tiptap-icons/video-icon.d.ts +4 -0
- package/dist/core/components/tiptap-icons/video-icon.d.ts.map +1 -0
- package/dist/core/components/tiptap-node/callout-node/callout-node-extension.d.ts +26 -0
- package/dist/core/components/tiptap-node/callout-node/callout-node-extension.d.ts.map +1 -0
- package/dist/core/components/tiptap-node/callout-node/callout-node-view.d.ts +4 -0
- package/dist/core/components/tiptap-node/callout-node/callout-node-view.d.ts.map +1 -0
- package/dist/core/components/tiptap-node/callout-node/index.d.ts +4 -0
- package/dist/core/components/tiptap-node/callout-node/index.d.ts.map +1 -0
- package/dist/core/components/tiptap-node/image-node/image-node-extension.d.ts.map +1 -1
- package/dist/core/components/tiptap-node/image-node/image-node-view.d.ts +2 -0
- package/dist/core/components/tiptap-node/image-node/image-node-view.d.ts.map +1 -1
- package/dist/core/components/tiptap-node/image-upload-node/image-upload-node.d.ts.map +1 -1
- package/dist/core/components/tiptap-node/video-node/video-node-extension.d.ts +19 -0
- package/dist/core/components/tiptap-node/video-node/video-node-extension.d.ts.map +1 -0
- package/dist/core/components/tiptap-node/video-node/video-node-view.d.ts +15 -0
- package/dist/core/components/tiptap-node/video-node/video-node-view.d.ts.map +1 -0
- package/dist/core/components/tiptap-node/video-upload-node/index.d.ts +2 -0
- package/dist/core/components/tiptap-node/video-upload-node/index.d.ts.map +1 -0
- package/dist/core/components/tiptap-node/video-upload-node/video-upload-node-extension.d.ts +60 -0
- package/dist/core/components/tiptap-node/video-upload-node/video-upload-node-extension.d.ts.map +1 -0
- package/dist/core/components/tiptap-node/video-upload-node/video-upload-node.d.ts +26 -0
- package/dist/core/components/tiptap-node/video-upload-node/video-upload-node.d.ts.map +1 -0
- package/dist/core/components/tiptap-ui/drag-context-menu/drag-context-menu-hooks.d.ts.map +1 -1
- package/dist/core/components/tiptap-ui/drag-context-menu/drag-context-menu-types.d.ts +1 -0
- package/dist/core/components/tiptap-ui/drag-context-menu/drag-context-menu-types.d.ts.map +1 -1
- package/dist/core/components/tiptap-ui/drag-context-menu/drag-context-menu.d.ts.map +1 -1
- package/dist/core/components/tiptap-ui/slash-dropdown-menu/use-slash-dropdown-menu.d.ts +54 -0
- package/dist/core/components/tiptap-ui/slash-dropdown-menu/use-slash-dropdown-menu.d.ts.map +1 -1
- package/dist/core/components/tiptap-ui-primitive/combobox/combobox.d.ts +4 -4
- package/dist/core/components/tiptap-ui-primitive/menu/menu.d.ts +4 -4
- package/dist/core/extensions/default-extensions.d.ts.map +1 -1
- package/dist/core/extensions/index.d.ts +3 -0
- package/dist/core/extensions/index.d.ts.map +1 -1
- package/dist/index.cjs +1500 -393
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1498 -394
- package/dist/index.js.map +1 -1
- package/dist/src/components/ui/Button.d.ts +1 -1
- package/dist/tnkreditor/styles.css +1 -1
- package/dist/tnkreditor/styles.css.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const InfoCalloutIcon: React.FC<{
|
|
2
|
+
className?: string;
|
|
3
|
+
}>;
|
|
4
|
+
export declare const NoteCalloutIcon: React.FC<{
|
|
5
|
+
className?: string;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const TipCalloutIcon: React.FC<{
|
|
8
|
+
className?: string;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const WarningCalloutIcon: React.FC<{
|
|
11
|
+
className?: string;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const DangerCalloutIcon: React.FC<{
|
|
14
|
+
className?: string;
|
|
15
|
+
}>;
|
|
16
|
+
//# sourceMappingURL=callout-icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callout-icons.d.ts","sourceRoot":"","sources":["../../../../core/components/tiptap-icons/callout-icons.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAE5D,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAE5D,CAAA;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAE3D,CAAA;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAE/D,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAE9D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-icon.d.ts","sourceRoot":"","sources":["../../../../core/components/tiptap-icons/video-icon.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAEtD,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Node } from "@tiptap/core";
|
|
2
|
+
export type CalloutType = "info" | "note" | "tip" | "warning" | "danger";
|
|
3
|
+
export interface CalloutOptions {
|
|
4
|
+
HTMLAttributes: Record<string, any>;
|
|
5
|
+
}
|
|
6
|
+
declare module "@tiptap/core" {
|
|
7
|
+
interface Commands<ReturnType> {
|
|
8
|
+
callout: {
|
|
9
|
+
/**
|
|
10
|
+
* Set a callout node
|
|
11
|
+
*/
|
|
12
|
+
setCallout: (options?: {
|
|
13
|
+
type?: CalloutType;
|
|
14
|
+
}) => ReturnType;
|
|
15
|
+
/**
|
|
16
|
+
* Toggle a callout node
|
|
17
|
+
*/
|
|
18
|
+
toggleCallout: (options?: {
|
|
19
|
+
type?: CalloutType;
|
|
20
|
+
}) => ReturnType;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export declare const Callout: Node<CalloutOptions, any>;
|
|
25
|
+
export default Callout;
|
|
26
|
+
//# sourceMappingURL=callout-node-extension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callout-node-extension.d.ts","sourceRoot":"","sources":["../../../../../core/components/tiptap-node/callout-node/callout-node-extension.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAA;AAIpD,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,QAAQ,CAAA;AAExE,MAAM,WAAW,cAAc;IAC7B,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CACpC;AAED,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,QAAQ,CAAC,UAAU;QAC3B,OAAO,EAAE;YACP;;eAEG;YACH,UAAU,EAAE,CAAC,OAAO,CAAC,EAAE;gBAAE,IAAI,CAAC,EAAE,WAAW,CAAA;aAAE,KAAK,UAAU,CAAA;YAC5D;;eAEG;YACH,aAAa,EAAE,CAAC,OAAO,CAAC,EAAE;gBAAE,IAAI,CAAC,EAAE,WAAW,CAAA;aAAE,KAAK,UAAU,CAAA;SAChE,CAAA;KACF;CACF;AAED,eAAO,MAAM,OAAO,2BAiElB,CAAA;AAEF,eAAe,OAAO,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { NodeViewProps } from "@tiptap/react";
|
|
2
|
+
export type CalloutType = "info" | "note" | "tip" | "warning" | "danger";
|
|
3
|
+
export declare function CalloutNodeView(props: NodeViewProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=callout-node-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callout-node-view.d.ts","sourceRoot":"","sources":["../../../../../core/components/tiptap-node/callout-node/callout-node-view.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAMlD,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,QAAQ,CAAA;AA0CxE,wBAAgB,eAAe,CAAC,KAAK,EAAE,aAAa,2CAgCnD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../core/components/tiptap-node/callout-node/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,YAAY,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-node-extension.d.ts","sourceRoot":"","sources":["../../../../../core/components/tiptap-node/image-node/image-node-extension.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAI3D,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"image-node-extension.d.ts","sourceRoot":"","sources":["../../../../../core/components/tiptap-node/image-node/image-node-extension.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAI3D,eAAO,MAAM,KAAK,gDAiDhB,CAAA;AAEF,eAAe,KAAK,CAAA"}
|
|
@@ -8,12 +8,14 @@ export interface ResizeParams {
|
|
|
8
8
|
export interface ResizableImageProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
9
9
|
src: string;
|
|
10
10
|
alt?: string;
|
|
11
|
+
caption?: string;
|
|
11
12
|
editor?: Editor;
|
|
12
13
|
minWidth?: number;
|
|
13
14
|
maxWidth?: number;
|
|
14
15
|
align?: "left" | "center" | "right";
|
|
15
16
|
initialWidth?: number;
|
|
16
17
|
onImageResize?: (width?: number) => void;
|
|
18
|
+
onCaptionChange?: (caption: string) => void;
|
|
17
19
|
}
|
|
18
20
|
export declare function ImageNodeView(props: NodeViewProps): import("react/jsx-runtime").JSX.Element;
|
|
19
21
|
export declare const ResizableImage: React.FC<ResizableImageProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-node-view.d.ts","sourceRoot":"","sources":["../../../../../core/components/tiptap-node/image-node/image-node-view.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"image-node-view.d.ts","sourceRoot":"","sources":["../../../../../core/components/tiptap-node/image-node/image-node-view.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAG1D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAK9B,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,GAAG,OAAO,CAAA;IAC5B,YAAY,EAAE,MAAM,CAAA;IACpB,cAAc,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,mBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC5C,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAA;IACnC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,aAAa,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACxC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CAC5C;AAmRD,wBAAgB,aAAa,CAAC,KAAK,EAAE,aAAa,2CA4CjD;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA0NxD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-upload-node.d.ts","sourceRoot":"","sources":["../../../../../core/components/tiptap-node/image-upload-node/image-upload-node.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"image-upload-node.d.ts","sourceRoot":"","sources":["../../../../../core/components/tiptap-node/image-upload-node/image-upload-node.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAOlD,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,IAAI,EAAE,IAAI,CAAA;IACV;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;;OAGG;IACH,MAAM,EAAE,WAAW,GAAG,SAAS,GAAG,OAAO,CAAA;IAEzC;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;OAGG;IACH,eAAe,CAAC,EAAE,eAAe,CAAA;CAClC;AAED,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;;;;;OAMG;IACH,MAAM,EAAE,CACN,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,CAAC,KAAK,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,EACjD,MAAM,EAAE,WAAW,KAChB,OAAO,CAAC,MAAM,GAAG;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC1D;;;;OAIG;IACH,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC;;;;OAIG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CACjC;AA6QD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAiUnD,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Node } from "@tiptap/core";
|
|
2
|
+
export interface VideoOptions {
|
|
3
|
+
inline: boolean;
|
|
4
|
+
allowBase64: boolean;
|
|
5
|
+
HTMLAttributes: Record<string, any>;
|
|
6
|
+
}
|
|
7
|
+
declare module "@tiptap/core" {
|
|
8
|
+
interface Commands<ReturnType> {
|
|
9
|
+
video: {
|
|
10
|
+
setVideo: (options?: {
|
|
11
|
+
src?: string;
|
|
12
|
+
caption?: string;
|
|
13
|
+
}) => ReturnType;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export declare const Video: Node<VideoOptions, any>;
|
|
18
|
+
export default Video;
|
|
19
|
+
//# sourceMappingURL=video-node-extension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-node-extension.d.ts","sourceRoot":"","sources":["../../../../../core/components/tiptap-node/video-node/video-node-extension.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAmB,MAAM,cAAc,CAAA;AAIpD,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,OAAO,CAAA;IACf,WAAW,EAAE,OAAO,CAAA;IACpB,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CACpC;AAED,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,QAAQ,CAAC,UAAU;QAC3B,KAAK,EAAE;YACL,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE;gBAAE,GAAG,CAAC,EAAE,MAAM,CAAC;gBAAC,OAAO,CAAC,EAAE,MAAM,CAAA;aAAE,KAAK,UAAU,CAAA;SACvE,CAAA;KACF;CACF;AAED,eAAO,MAAM,KAAK,yBAwGhB,CAAA;AAEF,eAAe,KAAK,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { NodeViewProps } from "@tiptap/react";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
interface VideoNodeProps {
|
|
4
|
+
src?: string;
|
|
5
|
+
caption?: string;
|
|
6
|
+
onDelete?: () => void;
|
|
7
|
+
onCaptionChange?: (caption: string) => void;
|
|
8
|
+
onVideoChange?: (src: string) => void;
|
|
9
|
+
isOpen?: boolean;
|
|
10
|
+
onToggleOpen?: (isOpen: boolean) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const VideoNodeComponent: React.FC<VideoNodeProps>;
|
|
13
|
+
export declare function VideoNodeView(props: NodeViewProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=video-node-view.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-node-view.d.ts","sourceRoot":"","sources":["../../../../../core/components/tiptap-node/video-node/video-node-view.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAGlD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAyC9B,UAAU,cAAc;IACtB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;IACrB,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3C,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAA;CACzC;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAwUvD,CAAA;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,aAAa,2CA+BjD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../core/components/tiptap-node/video-upload-node/index.tsx"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAA"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Node } from "@tiptap/react";
|
|
2
|
+
import type { NodeType } from "@tiptap/pm/model";
|
|
3
|
+
export type UploadFunction = (file: File, onProgress?: (event: {
|
|
4
|
+
progress: number;
|
|
5
|
+
}) => void, abortSignal?: AbortSignal) => Promise<string | {
|
|
6
|
+
src: string;
|
|
7
|
+
signedUrl?: string;
|
|
8
|
+
}>;
|
|
9
|
+
export interface VideoUploadNodeOptions {
|
|
10
|
+
/**
|
|
11
|
+
* The type of the node.
|
|
12
|
+
* @default 'video'
|
|
13
|
+
*/
|
|
14
|
+
type?: string | NodeType | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Acceptable file types for upload.
|
|
17
|
+
* @default 'video/*'
|
|
18
|
+
*/
|
|
19
|
+
accept?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Maximum number of files that can be uploaded.
|
|
22
|
+
* @default 1
|
|
23
|
+
*/
|
|
24
|
+
limit?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Maximum file size in bytes (0 for unlimited).
|
|
27
|
+
* @default 0
|
|
28
|
+
*/
|
|
29
|
+
maxSize?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Function to handle the upload process.
|
|
32
|
+
*/
|
|
33
|
+
upload?: UploadFunction;
|
|
34
|
+
/**
|
|
35
|
+
* Callback for upload errors.
|
|
36
|
+
*/
|
|
37
|
+
onError?: (error: Error) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Callback for successful uploads.
|
|
40
|
+
*/
|
|
41
|
+
onSuccess?: (url: string) => void;
|
|
42
|
+
/**
|
|
43
|
+
* HTML attributes to add to the video element.
|
|
44
|
+
* @default {}
|
|
45
|
+
*/
|
|
46
|
+
HTMLAttributes: Record<string, any>;
|
|
47
|
+
}
|
|
48
|
+
declare module "@tiptap/react" {
|
|
49
|
+
interface Commands<ReturnType> {
|
|
50
|
+
videoUpload: {
|
|
51
|
+
setVideoUploadNode: (options?: VideoUploadNodeOptions) => ReturnType;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* A Tiptap node extension that creates a video upload component.
|
|
57
|
+
*/
|
|
58
|
+
export declare const VideoUploadNode: Node<VideoUploadNodeOptions, any>;
|
|
59
|
+
export default VideoUploadNode;
|
|
60
|
+
//# sourceMappingURL=video-upload-node-extension.d.ts.map
|
package/dist/core/components/tiptap-node/video-upload-node/video-upload-node-extension.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-upload-node-extension.d.ts","sourceRoot":"","sources":["../../../../../core/components/tiptap-node/video-upload-node/video-upload-node-extension.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,IAAI,EAAE,MAAM,eAAe,CAAA;AAGrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAEhD,MAAM,MAAM,cAAc,GAAG,CAC3B,IAAI,EAAE,IAAI,EACV,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,KAAK,IAAI,EAClD,WAAW,CAAC,EAAE,WAAW,KACtB,OAAO,CAAC,MAAM,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAA;AAE1D,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAA;IACpC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,cAAc,CAAA;IACvB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CACpC;AAED,OAAO,QAAQ,eAAe,CAAC;IAC7B,UAAU,QAAQ,CAAC,UAAU;QAC3B,WAAW,EAAE;YACX,kBAAkB,EAAE,CAAC,OAAO,CAAC,EAAE,sBAAsB,KAAK,UAAU,CAAA;SACrE,CAAA;KACF;CACF;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,mCAwF1B,CAAA;AAEF,eAAe,eAAe,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { NodeViewProps } from "@tiptap/react";
|
|
3
|
+
export interface FileItem {
|
|
4
|
+
id: string;
|
|
5
|
+
file: File;
|
|
6
|
+
progress: number;
|
|
7
|
+
status: "uploading" | "success" | "error";
|
|
8
|
+
url?: string;
|
|
9
|
+
signedUrl?: string;
|
|
10
|
+
abortController?: AbortController;
|
|
11
|
+
}
|
|
12
|
+
export interface UploadOptions {
|
|
13
|
+
maxSize: number;
|
|
14
|
+
limit: number;
|
|
15
|
+
accept: string;
|
|
16
|
+
upload: (file: File, onProgress: (event: {
|
|
17
|
+
progress: number;
|
|
18
|
+
}) => void, signal: AbortSignal) => Promise<string | {
|
|
19
|
+
src: string;
|
|
20
|
+
signedUrl?: string;
|
|
21
|
+
}>;
|
|
22
|
+
onSuccess?: (url: string) => void;
|
|
23
|
+
onError?: (error: Error) => void;
|
|
24
|
+
}
|
|
25
|
+
export declare const VideoUploadNode: React.FC<NodeViewProps>;
|
|
26
|
+
//# sourceMappingURL=video-upload-node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"video-upload-node.d.ts","sourceRoot":"","sources":["../../../../../core/components/tiptap-node/video-upload-node/video-upload-node.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAOlD,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,IAAI,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,WAAW,GAAG,SAAS,GAAG,OAAO,CAAA;IACzC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,eAAe,CAAA;CAClC;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,CACN,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,CAAC,KAAK,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,EACjD,MAAM,EAAE,WAAW,KAChB,OAAO,CAAC,MAAM,GAAG;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC1D,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CACjC;AA8PD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAkUnD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drag-context-menu-hooks.d.ts","sourceRoot":"","sources":["../../../../../core/components/tiptap-ui/drag-context-menu/drag-context-menu-hooks.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAErE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAG3C,eAAO,MAAM,uBAAuB,GAClC,QAAQ,MAAM,GAAG,IAAI,KACpB,
|
|
1
|
+
{"version":3,"file":"drag-context-menu-hooks.d.ts","sourceRoot":"","sources":["../../../../../core/components/tiptap-ui/drag-context-menu/drag-context-menu-hooks.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAErE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAG3C,eAAO,MAAM,uBAAuB,GAClC,QAAQ,MAAM,GAAG,IAAI,KACpB,oBA6CF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drag-context-menu-types.d.ts","sourceRoot":"","sources":["../../../../../core/components/tiptap-ui/drag-context-menu/drag-context-menu-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AAC1E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,WAAW,oBACf,SAAQ,IAAI,CAAC,eAAe,EAAE,QAAQ,GAAG,UAAU,CAAC;IACpD,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,IAAI,GAAG,IAAI,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;KAAE,CAAC,CAAA;IAC9E,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAChC;AAED,MAAM,WAAW,oBAAoB;IACnC,kBAAkB,EAAE,OAAO,CAAA;IAC3B,eAAe,EAAE,OAAO,CAAA;IACxB,mBAAmB,EAAE,OAAO,CAAA;IAC5B,kBAAkB,EAAE,OAAO,CAAA;IAC3B,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;CACxC"}
|
|
1
|
+
{"version":3,"file":"drag-context-menu-types.d.ts","sourceRoot":"","sources":["../../../../../core/components/tiptap-ui/drag-context-menu/drag-context-menu-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AAC1E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,MAAM,WAAW,oBACf,SAAQ,IAAI,CAAC,eAAe,EAAE,QAAQ,GAAG,UAAU,CAAC;IACpD,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAED,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,IAAI,GAAG,IAAI,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;KAAE,CAAC,CAAA;IAC9E,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAChC;AAED,MAAM,WAAW,oBAAoB;IACnC,kBAAkB,EAAE,OAAO,CAAA;IAC3B,eAAe,EAAE,OAAO,CAAA;IACxB,mBAAmB,EAAE,OAAO,CAAA;IAC5B,kBAAkB,EAAE,OAAO,CAAA;IAC3B,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;CACxC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drag-context-menu.d.ts","sourceRoot":"","sources":["../../../../../core/components/tiptap-ui/drag-context-menu/drag-context-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAuE9B,OAAO,KAAK,EAEV,oBAAoB,EAGrB,MAAM,2BAA2B,CAAA;
|
|
1
|
+
{"version":3,"file":"drag-context-menu.d.ts","sourceRoot":"","sources":["../../../../../core/components/tiptap-ui/drag-context-menu/drag-context-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAuE9B,OAAO,KAAK,EAEV,oBAAoB,EAGrB,MAAM,2BAA2B,CAAA;AA0rBlC,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA8M1D,CAAA"}
|
|
@@ -115,6 +115,15 @@ declare const texts: {
|
|
|
115
115
|
badge: React.MemoExoticComponent<({ className, ...props }: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element>;
|
|
116
116
|
group: string;
|
|
117
117
|
};
|
|
118
|
+
video: {
|
|
119
|
+
title: string;
|
|
120
|
+
subtext: string;
|
|
121
|
+
aliases: string[];
|
|
122
|
+
badge: React.FC<{
|
|
123
|
+
className?: string;
|
|
124
|
+
}>;
|
|
125
|
+
group: string;
|
|
126
|
+
};
|
|
118
127
|
table: {
|
|
119
128
|
title: string;
|
|
120
129
|
subtext: string;
|
|
@@ -143,6 +152,51 @@ declare const texts: {
|
|
|
143
152
|
badge: React.MemoExoticComponent<({ className, ...props }: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element>;
|
|
144
153
|
group: string;
|
|
145
154
|
};
|
|
155
|
+
callout_info: {
|
|
156
|
+
title: string;
|
|
157
|
+
subtext: string;
|
|
158
|
+
aliases: string[];
|
|
159
|
+
badge: React.FC<{
|
|
160
|
+
className?: string;
|
|
161
|
+
}>;
|
|
162
|
+
group: string;
|
|
163
|
+
};
|
|
164
|
+
callout_note: {
|
|
165
|
+
title: string;
|
|
166
|
+
subtext: string;
|
|
167
|
+
aliases: string[];
|
|
168
|
+
badge: React.FC<{
|
|
169
|
+
className?: string;
|
|
170
|
+
}>;
|
|
171
|
+
group: string;
|
|
172
|
+
};
|
|
173
|
+
callout_tip: {
|
|
174
|
+
title: string;
|
|
175
|
+
subtext: string;
|
|
176
|
+
aliases: string[];
|
|
177
|
+
badge: React.FC<{
|
|
178
|
+
className?: string;
|
|
179
|
+
}>;
|
|
180
|
+
group: string;
|
|
181
|
+
};
|
|
182
|
+
callout_warning: {
|
|
183
|
+
title: string;
|
|
184
|
+
subtext: string;
|
|
185
|
+
aliases: string[];
|
|
186
|
+
badge: React.FC<{
|
|
187
|
+
className?: string;
|
|
188
|
+
}>;
|
|
189
|
+
group: string;
|
|
190
|
+
};
|
|
191
|
+
callout_danger: {
|
|
192
|
+
title: string;
|
|
193
|
+
subtext: string;
|
|
194
|
+
aliases: string[];
|
|
195
|
+
badge: React.FC<{
|
|
196
|
+
className?: string;
|
|
197
|
+
}>;
|
|
198
|
+
group: string;
|
|
199
|
+
};
|
|
146
200
|
};
|
|
147
201
|
export type SlashMenuItemType = keyof typeof texts;
|
|
148
202
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-slash-dropdown-menu.d.ts","sourceRoot":"","sources":["../../../../../core/components/tiptap-ui/slash-dropdown-menu/use-slash-dropdown-menu.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"use-slash-dropdown-menu.d.ts","sourceRoot":"","sources":["../../../../../core/components/tiptap-ui/slash-dropdown-menu/use-slash-dropdown-menu.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAwC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAA;AAIlF,MAAM,WAAW,eAAe;IAC9B,YAAY,CAAC,EAAE,iBAAiB,EAAE,CAAA;IAClC,WAAW,CAAC,EAAE,cAAc,EAAE,CAAA;IAC9B,UAAU,CAAC,EAAE;SACV,GAAG,IAAI,iBAAiB,CAAC,CAAC,EAAE,MAAM;KACpC,CAAA;IACD,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAED,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgNV,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,KAAK,CAAA;AAwRlD;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,CAAC,EAAE,eAAe;gCAEhD,MAAM;;EA2ClB"}
|
|
@@ -2,22 +2,22 @@ import * as React from "react";
|
|
|
2
2
|
import * as Ariakit from "@ariakit/react";
|
|
3
3
|
export declare function ComboboxProvider({ ...props }: Ariakit.ComboboxProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export declare const ComboboxList: React.ForwardRefExoticComponent<Omit<Ariakit.ComboboxListOptions<"div"> & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
5
|
-
ref?:
|
|
5
|
+
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
6
6
|
}, keyof Ariakit.ComboboxListOptions<T>> & {
|
|
7
7
|
[index: `data-${string}`]: unknown;
|
|
8
8
|
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
9
|
export declare const ComboboxPopover: React.ForwardRefExoticComponent<Omit<Ariakit.ComboboxPopoverOptions<"div"> & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
10
|
-
ref?:
|
|
10
|
+
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
11
11
|
}, keyof Ariakit.ComboboxPopoverOptions<T>> & {
|
|
12
12
|
[index: `data-${string}`]: unknown;
|
|
13
13
|
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
14
14
|
export declare const Combobox: React.ForwardRefExoticComponent<Omit<Ariakit.ComboboxOptions<"input"> & Omit<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
|
|
15
|
-
ref?:
|
|
15
|
+
ref?: ((instance: HTMLInputElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLInputElement> | null | undefined;
|
|
16
16
|
}, keyof Ariakit.ComboboxOptions<T>> & {
|
|
17
17
|
[index: `data-${string}`]: unknown;
|
|
18
18
|
}, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
19
19
|
export declare const ComboboxItem: React.ForwardRefExoticComponent<Omit<Ariakit.ComboboxItemOptions<"div"> & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
20
|
-
ref?:
|
|
20
|
+
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
21
21
|
}, keyof Ariakit.ComboboxItemOptions<T>> & {
|
|
22
22
|
[index: `data-${string}`]: unknown;
|
|
23
23
|
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -4,7 +4,7 @@ import type { MenuProps, MenuContentProps, MenuItemProps } from "@/components/ti
|
|
|
4
4
|
export declare function Menu({ children, trigger, value, onOpenChange, onValueChange, onValuesChange, ...props }: MenuProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export declare function MenuContent({ children, className, ref, onClickOutside, ...props }: MenuContentProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare const MenuButton: React.ForwardRefExoticComponent<Omit<Ariakit.MenuButtonOptions<"div" | "button"> & Omit<(Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
|
-
ref?:
|
|
7
|
+
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
8
8
|
}) | (Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
9
9
|
ref?: ((instance: HTMLButtonElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
10
10
|
}), keyof Ariakit.MenuButtonOptions<T>> & {
|
|
@@ -16,12 +16,12 @@ export declare const MenuButtonArrow: React.ForwardRefExoticComponent<Omit<Ariak
|
|
|
16
16
|
[index: `data-${string}`]: unknown;
|
|
17
17
|
}, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
18
18
|
export declare const MenuGroup: React.ForwardRefExoticComponent<Omit<Ariakit.MenuGroupOptions<"div"> & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
19
|
-
ref?:
|
|
19
|
+
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
20
20
|
}, keyof Ariakit.MenuGroupOptions<T>> & {
|
|
21
21
|
[index: `data-${string}`]: unknown;
|
|
22
22
|
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
23
23
|
export declare const MenuGroupLabel: React.ForwardRefExoticComponent<Omit<Ariakit.MenuGroupLabelOptions<"div"> & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
24
|
-
ref?:
|
|
24
|
+
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
25
25
|
}, keyof Ariakit.MenuGroupLabelOptions<T>> & {
|
|
26
26
|
[index: `data-${string}`]: unknown;
|
|
27
27
|
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -31,7 +31,7 @@ export declare const MenuItemCheck: React.ForwardRefExoticComponent<Omit<Ariakit
|
|
|
31
31
|
[index: `data-${string}`]: unknown;
|
|
32
32
|
}, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
33
33
|
export declare const MenuItemRadio: React.ForwardRefExoticComponent<Omit<Ariakit.MenuItemRadioOptions<"div"> & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
34
|
-
ref?:
|
|
34
|
+
ref?: ((instance: HTMLDivElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
35
35
|
}, keyof Ariakit.MenuItemRadioOptions<T>> & {
|
|
36
36
|
[index: `data-${string}`]: unknown;
|
|
37
37
|
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-extensions.d.ts","sourceRoot":"","sources":["../../../core/extensions/default-extensions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"default-extensions.d.ts","sourceRoot":"","sources":["../../../core/extensions/default-extensions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAoEhD;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,gBAAgB,CAwFrD;AAED;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,gBAAgB,CAmE7D;AAED,wBAAgB,oBAAoB,IAAI,gBAAgB,CA8NvD;AAGD;;GAEG;AACH,wBAAgB,uBAAuB,IAAI,gBAAgB,CA+D1D"}
|
|
@@ -21,6 +21,9 @@ export { HorizontalRule } from "../components/tiptap-node/horizontal-rule-node/h
|
|
|
21
21
|
export { UiState } from "../components/tiptap-extension/ui-state-extension";
|
|
22
22
|
export { Image as CustomImage } from "../components/tiptap-node/image-node/image-node-extension";
|
|
23
23
|
export { ImageUploadNode, type UploadFunction } from "../components/tiptap-node/image-upload-node/image-upload-node-extension";
|
|
24
|
+
export { Video } from "../components/tiptap-node/video-node/video-node-extension";
|
|
25
|
+
export { VideoUploadNode } from "../components/tiptap-node/video-upload-node/video-upload-node-extension";
|
|
24
26
|
export { UtilityCard, type UtilityCardOptions } from "../components/tiptap-node/utility-card-node/utility-card-node-extension";
|
|
25
27
|
export { TabsNode, type TabsOptions, type TabData } from "../components/tiptap-node/tabs-node/tabs-node-extension";
|
|
28
|
+
export { Callout, type CalloutType } from "../components/tiptap-node/callout-node/callout-node-extension";
|
|
26
29
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../core/extensions/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AACrI,YAAY,EACV,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAGlD,OAAO,EAAE,cAAc,EAAE,MAAM,+EAA+E,CAAC;AAC/G,OAAO,EAAE,OAAO,EAAE,MAAM,mDAAmD,CAAC;AAC5E,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,2DAA2D,CAAC;AACjG,OAAO,EACL,eAAe,EACf,KAAK,cAAc,EACpB,MAAM,yEAAyE,CAAC;AACjF,OAAO,EACL,WAAW,EACX,KAAK,kBAAkB,EACxB,MAAM,yEAAyE,CAAC;AACjF,OAAO,EACL,QAAQ,EACR,KAAK,WAAW,EAChB,KAAK,OAAO,EACb,MAAM,yDAAyD,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../core/extensions/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,uBAAuB,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AACrI,YAAY,EACV,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAC,SAAS,EAAC,MAAM,oBAAoB,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAGlD,OAAO,EAAE,cAAc,EAAE,MAAM,+EAA+E,CAAC;AAC/G,OAAO,EAAE,OAAO,EAAE,MAAM,mDAAmD,CAAC;AAC5E,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,2DAA2D,CAAC;AACjG,OAAO,EACL,eAAe,EACf,KAAK,cAAc,EACpB,MAAM,yEAAyE,CAAC;AACjF,OAAO,EAAE,KAAK,EAAE,MAAM,2DAA2D,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,yEAAyE,CAAC;AAC1G,OAAO,EACL,WAAW,EACX,KAAK,kBAAkB,EACxB,MAAM,yEAAyE,CAAC;AACjF,OAAO,EACL,QAAQ,EACR,KAAK,WAAW,EAChB,KAAK,OAAO,EACb,MAAM,yDAAyD,CAAC;AACjE,OAAO,EACL,OAAO,EACP,KAAK,WAAW,EACjB,MAAM,+DAA+D,CAAC"}
|