@sovann72-dev/lynqify-ui 1.0.10 → 1.0.11

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.
Files changed (20) hide show
  1. package/dist/components/RichTextEditor/Extension/{batch-segment-images.types.d.ts → BatchSegmentImages/batch-segment-images.types.d.ts} +13 -1
  2. package/dist/components/RichTextEditor/Extension/Image/ImageResize/image-resize.d.ts +1 -2
  3. package/dist/components/RichTextEditor/Extension/List/custom-list-item.extension.d.ts +3 -17
  4. package/dist/components/RichTextEditor/Extension/custom-image.extension.d.ts +2 -4
  5. package/dist/components/RichTextEditor/Extension/custom-link.extension.d.ts +1 -3
  6. package/dist/components/RichTextEditor/Extension/custom-mention.extension.d.ts +1 -3
  7. package/dist/components/RichTextEditor/Extension/custom-paragraph.extension.d.ts +1 -3
  8. package/dist/components/RichTextEditor/Extension/extensions.d.ts +2 -4
  9. package/dist/components/RichTextEditor/Videos/types.d.ts +22 -0
  10. package/dist/components/RichTextEditor/Videos/video.extension.d.ts +23 -0
  11. package/dist/{core-DSeuwlI1.js → core-CEwYiOza.js} +683 -667
  12. package/dist/{index-BCEcU3oG.js → index-C2VhDZqf.js} +1 -2
  13. package/dist/index.d.ts +8 -2
  14. package/dist/lynqify-ui.js +1751 -1535
  15. package/dist/tiptap/core.js +1 -1
  16. package/dist/tiptap/react.js +2 -2
  17. package/package.json +2 -1
  18. package/dist/components/NoteEditor/BatchImageGalleryNodeView.d.ts +0 -19
  19. package/dist/components/RichTextEditor/Extension/file-filtering.extension.d.ts +0 -1
  20. /package/dist/components/RichTextEditor/Extension/{batch-segment-images.extension.d.ts → BatchSegmentImages/batch-segment-images.extension.d.ts} +0 -0
@@ -1,16 +1,28 @@
1
1
  import { Editor } from '@tiptap/react';
2
+ import * as React from 'react';
2
3
  export interface BatchImage {
3
4
  id: string;
4
5
  src: string;
5
6
  alt?: string;
6
7
  title?: string;
7
8
  }
9
+ export interface BatchImageGalleryProps {
10
+ batchId: string;
11
+ images: BatchImage[];
12
+ maxImageAmount?: number;
13
+ height?: number;
14
+ focusedImageIndex: number | null;
15
+ onAdd: () => void;
16
+ onDelete: (index: number) => void;
17
+ onImageClick: (image: BatchImage) => void;
18
+ }
8
19
  export interface BatchSegmentImagesOptions {
9
20
  initialImageRegistry?: Map<string, BatchImage[]>;
10
21
  maxImageAmount?: number;
11
22
  height?: number;
23
+ nodeView?: React.ComponentType<BatchImageGalleryProps>;
12
24
  onAdd?: (params: {
13
- position: 'last';
25
+ position: 'first' | 'last';
14
26
  batchId: string;
15
27
  currentImages: BatchImage[];
16
28
  getPos: () => number | undefined;
@@ -1,5 +1,4 @@
1
1
  import { ImageOptions } from '@tiptap/extension-image';
2
- import { Node } from '@tiptap/core';
3
2
  declare module '@tiptap/core' {
4
3
  interface Commands<ReturnType> {
5
4
  imageResize: {
@@ -19,4 +18,4 @@ export interface ImageResizeOptions extends ImageOptions {
19
18
  minWidth?: number;
20
19
  maxWidth?: number;
21
20
  }
22
- export declare const ImageResize: Node<ImageResizeOptions, any>;
21
+ export declare const ImageResize: import('@tiptap/core').Node<ImageResizeOptions, any>;
@@ -1,17 +1,3 @@
1
- import { Node } from '@tiptap/core';
2
- import { BulletListOptions, OrderedListOptions, ListItemOptions } from '@tiptap/extension-list';
3
- /**
4
- * Custom List Extensions: Indent Attribute Support
5
- *
6
- * Extends TipTap list nodes (BulletList, OrderedList, ListItem) with indent attributes.
7
- *
8
- * Per FR-020: ListItem receives transferred indent from paragraph
9
- * Per FR-021: Paragraph children inside lists must NOT have indent
10
- * Per FR-022: List-level indent separate from item indent
11
- * Per FR-030: Backward compatibility via attribute defaults
12
- *
13
- * @see specs/001-richtext-indent-lists/data-model.md
14
- */
15
- export declare const CustomBulletList: Node<BulletListOptions, any>;
16
- export declare const CustomOrderedList: Node<OrderedListOptions, any>;
17
- export declare const CustomListItem: Node<ListItemOptions, any>;
1
+ export declare const CustomBulletList: import('@tiptap/core').Node<import('@tiptap/extension-list').BulletListOptions, any>;
2
+ export declare const CustomOrderedList: import('@tiptap/core').Node<import('@tiptap/extension-list').OrderedListOptions, any>;
3
+ export declare const CustomListItem: import('@tiptap/core').Node<import('@tiptap/extension-list').ListItemOptions, any>;
@@ -1,4 +1,2 @@
1
- import { Node } from '@tiptap/core';
2
- import { ImageOptions } from '@tiptap/extension-image';
3
- /** Image extension that persist `id` prop. */
4
- export declare const CustomImage: Node<ImageOptions, any>;
1
+ /** @deprecated */
2
+ export declare const CustomImage: import('@tiptap/core').Node<import('@tiptap/extension-image').ImageOptions, any>;
@@ -1,3 +1 @@
1
- import { Mark } from '@tiptap/core';
2
- import { LinkOptions } from '@tiptap/extension-link';
3
- export declare const CustomLink: Mark<LinkOptions, any>;
1
+ export declare const CustomLink: import('@tiptap/core').Mark<import('@tiptap/extension-link').LinkOptions, any>;
@@ -1,3 +1 @@
1
- import { Node } from '@tiptap/core';
2
- import { MentionOptions, MentionNodeAttrs } from '@tiptap/extension-mention';
3
- export declare const CustomMention: Node<MentionOptions<any, MentionNodeAttrs>, any>;
1
+ export declare const CustomMention: import('@tiptap/core').Node<import('@tiptap/extension-mention').MentionOptions<any, import('@tiptap/extension-mention').MentionNodeAttrs>, any>;
@@ -1,6 +1,4 @@
1
- import { Node } from '@tiptap/core';
2
- import { ParagraphOptions } from '@tiptap/extension-paragraph';
3
1
  /**
4
2
  * Custom Paragraph Extension: Selectable Indent Spacing
5
3
  */
6
- export declare const CustomParagraph: Node<ParagraphOptions, any>;
4
+ export declare const CustomParagraph: import('@tiptap/core').Node<import('@tiptap/extension-paragraph').ParagraphOptions, any>;
@@ -1,4 +1,2 @@
1
- import { Node, Extension, Mark } from '@tiptap/core';
2
- import { BoldOptions } from '@tiptap/extension-bold';
3
- export declare const ALL_EXTENSIONS: ( Node<any, any> | Extension<any, any> | Mark<BoldOptions, any>)[];
4
- export declare const BASE_EXTENSIONS: ( Node<any, any> | Extension<any, any> | Mark<BoldOptions, any>)[];
1
+ export declare const ALL_EXTENSIONS: (import('@tiptap/core').Node<any, any> | import('@tiptap/core').Extension<any, any> | import('@tiptap/core').Mark<import('@tiptap/extension-bold').BoldOptions, any>)[];
2
+ export declare const BASE_EXTENSIONS: (import('@tiptap/core').Node<any, any> | import('@tiptap/core').Extension<any, any> | import('@tiptap/core').Mark<import('@tiptap/extension-bold').BoldOptions, any>)[];
@@ -0,0 +1,22 @@
1
+ export interface SubtitleTrack {
2
+ src: string;
3
+ label: string;
4
+ srclang: string;
5
+ }
6
+ export interface VideoAttributes {
7
+ src: string;
8
+ type: 'embed' | 'hosted';
9
+ mediaType: 'video' | 'audio';
10
+ poster?: string;
11
+ width?: number | string;
12
+ align?: 'left' | 'center' | 'right' | 'full';
13
+ autoplay?: boolean;
14
+ loop?: boolean;
15
+ controls?: boolean;
16
+ muted?: boolean;
17
+ subtitles?: SubtitleTrack[];
18
+ }
19
+ export interface VideoExtensionOptions {
20
+ inline: boolean;
21
+ HTMLAttributes: Record<string, any>;
22
+ }
@@ -0,0 +1,23 @@
1
+ import { Node } from '@tiptap/core';
2
+ import { VideoAttributes, VideoExtensionOptions } from './types';
3
+ declare module '@tiptap/core' {
4
+ interface Commands<ReturnType> {
5
+ video: {
6
+ /**
7
+ * Inserts a new video or audio node into the document at the current selection.
8
+ */
9
+ setVideo: (options: Partial<VideoAttributes> & {
10
+ src: string;
11
+ }) => ReturnType;
12
+ /**
13
+ * Updates the attributes (e.g., toggling autoplay, changing width) of the currently selected video node.
14
+ */
15
+ updateVideo: (options: Partial<VideoAttributes>) => ReturnType;
16
+ };
17
+ }
18
+ }
19
+ /**
20
+ * Tiptap extension for rendering and managing video and audio content.
21
+ * Supports native HTML5 <video> and <audio> tags, as well as <iframe> embeds.
22
+ */
23
+ export declare const Video: Node<VideoExtensionOptions, any>;