@oliasoft-open-source/react-ui-library 9.1.0-beta-1 → 9.1.0-beta-2

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 (30) hide show
  1. package/dist/components/icon/named-icon.d.ts.map +1 -1
  2. package/dist/components/rich-text-input/rich-text-input.d.ts +2 -12
  3. package/dist/components/rich-text-input/rich-text-input.d.ts.map +1 -1
  4. package/dist/components/rich-text-input/rich-text-input.stories.d.ts +0 -1
  5. package/dist/components/rich-text-input/rich-text-input.stories.d.ts.map +1 -1
  6. package/dist/components/rich-text-input/rich-text-toolbar/enum.d.ts +1 -2
  7. package/dist/components/rich-text-input/rich-text-toolbar/enum.d.ts.map +1 -1
  8. package/dist/components/rich-text-input/rich-text-toolbar/rich-text-toolbar.d.ts +1 -2
  9. package/dist/components/rich-text-input/rich-text-toolbar/rich-text-toolbar.d.ts.map +1 -1
  10. package/dist/components/select/custom-select/hooks/use-custom-select-logic.d.ts +1 -1
  11. package/dist/components/table/table-virtual-scroll-wrapper.d.ts.map +1 -1
  12. package/dist/components/table/table.d.ts +1 -0
  13. package/dist/components/table/table.d.ts.map +1 -1
  14. package/dist/components/table/table.stories-data.d.ts +53 -0
  15. package/dist/components/table/table.stories-data.d.ts.map +1 -1
  16. package/dist/components/table/table.stories.d.ts +1 -0
  17. package/dist/components/table/table.stories.d.ts.map +1 -1
  18. package/dist/global.css +1 -1
  19. package/dist/helpers/floating-layer/hooks/use-floating-layer.d.ts +1 -2
  20. package/dist/helpers/floating-layer/hooks/use-floating-layer.d.ts.map +1 -1
  21. package/dist/index.d.ts +1 -2
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +2327 -2482
  24. package/package.json +1 -2
  25. package/dist/components/rich-text-input/mention/create-mention-extension.d.ts +0 -38
  26. package/dist/components/rich-text-input/mention/create-mention-extension.d.ts.map +0 -1
  27. package/dist/components/rich-text-input/mention/mention-suggestions.d.ts +0 -13
  28. package/dist/components/rich-text-input/mention/mention-suggestions.d.ts.map +0 -1
  29. package/dist/components/rich-text-input/mention/mention.interface.d.ts +0 -11
  30. package/dist/components/rich-text-input/mention/mention.interface.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "9.1.0-beta-1",
3
+ "version": "9.1.0-beta-2",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {
@@ -35,7 +35,6 @@
35
35
  "@radix-ui/react-slider": "^1.4.1",
36
36
  "@sentry/react": "^10.70.0",
37
37
  "@tanstack/react-virtual": "^3.13.24",
38
- "@tiptap/extension-mention": "^3.23.4",
39
38
  "@tiptap/extension-placeholder": "^3.23.4",
40
39
  "@tiptap/markdown": "^3.23.4",
41
40
  "@tiptap/react": "^3.23.4",
@@ -1,38 +0,0 @@
1
- import { MentionOptions } from '@tiptap/extension-mention';
2
- import { Editor } from '@tiptap/react';
3
- import { IMentionItem, IMentionsConfig } from './mention.interface';
4
- type TMentionResolver = () => IMentionsConfig | undefined;
5
- type TMentionSuggestionRender = NonNullable<NonNullable<MentionOptions<IMentionItem>['suggestion']>['render']>;
6
- export type TMentionSuggestionProps = Parameters<NonNullable<ReturnType<TMentionSuggestionRender>['onStart']>>[0];
7
- /**
8
- * Read a mention out of the start of a markdown source string.
9
- * @param src The markdown source to read from
10
- * @returns The mention's raw text, id and label, or undefined when `src` does not start with a mention
11
- */
12
- export declare const matchMentionMarkdown: (src: string) => {
13
- raw: string;
14
- id: string;
15
- label: string;
16
- } | undefined;
17
- /**
18
- * Collect the ids of every mention node currently in the document, in document order and without duplicates.
19
- * @param editor The editor to read, or null before it is created
20
- * @returns The mentioned ids
21
- */
22
- export declare const getMentionedIds: (editor: Editor | null) => string[];
23
- /**
24
- * Serialise a mention to the markdown link the tokenizer below reads back.
25
- * @param label The mention's display label
26
- * @param id The mentioned entity's id
27
- * @returns The markdown for the mention
28
- */
29
- export declare const renderMentionMarkdown: (label: string, id: string) => string;
30
- /**
31
- * Build the mention node extension, wiring the suggestion popup to the consumer's item resolver.
32
- * @param mentions Resolves the consumer's latest mention configuration
33
- * @param render The suggestion popup renderer
34
- * @returns The configured Mention extension
35
- */
36
- export declare const createMentionExtension: (mentions: TMentionResolver, render: TMentionSuggestionRender) => import('@tiptap/core').Node<MentionOptions<any, import('@tiptap/extension-mention').MentionNodeAttrs>, any>;
37
- export {};
38
- //# sourceMappingURL=create-mention-extension.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-mention-extension.d.ts","sourceRoot":"","sources":["../../../../src/components/rich-text-input/mention/create-mention-extension.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,cAAc,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAMpE,KAAK,gBAAgB,GAAG,MAAM,eAAe,GAAG,SAAS,CAAC;AAI1D,KAAK,wBAAwB,GAAG,WAAW,CAAC,WAAW,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;AAE/G,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,WAAW,CAAC,UAAU,CAAC,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAQlH;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAAI,KAAK,MAAM;;;;aAU/C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,QAAQ,MAAM,GAAG,IAAI,KAAG,MAAM,EAc7D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,GAAI,OAAO,MAAM,EAAE,IAAI,MAAM,WACK,CAAC;AAErE;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,GAAI,UAAU,gBAAgB,EAAE,QAAQ,wBAAwB,gHA+B/F,CAAC"}
@@ -1,13 +0,0 @@
1
- import { IMentionItem } from './mention.interface';
2
- export interface IMentionSuggestionsHandle {
3
- onKeyDown: (event: KeyboardEvent) => boolean;
4
- }
5
- export interface IMentionSuggestionsProps {
6
- editable: HTMLElement | null;
7
- getRect: (() => DOMRect | null) | null;
8
- items: IMentionItem[];
9
- onDismiss: () => void;
10
- onSelect: (item: IMentionItem) => void;
11
- }
12
- export declare const MentionSuggestions: import('react').ForwardRefExoticComponent<IMentionSuggestionsProps & import('react').RefAttributes<IMentionSuggestionsHandle>>;
13
- //# sourceMappingURL=mention-suggestions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mention-suggestions.d.ts","sourceRoot":"","sources":["../../../../src/components/rich-text-input/mention/mention-suggestions.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGnD,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,OAAO,CAAC;CAC9C;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,WAAW,GAAG,IAAI,CAAC;IAC7B,OAAO,EAAE,CAAC,MAAM,OAAO,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;IACvC,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;CACxC;AAED,eAAO,MAAM,kBAAkB,gIAqH9B,CAAC"}
@@ -1,11 +0,0 @@
1
- export interface IMentionItem {
2
- id: string;
3
- label: string;
4
- }
5
- export interface IMentionsConfig {
6
- getItems: (query: string, context: {
7
- mentionedIds: string[];
8
- }) => IMentionItem[] | Promise<IMentionItem[]>;
9
- showMentionButton?: boolean;
10
- }
11
- //# sourceMappingURL=mention.interface.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mention.interface.d.ts","sourceRoot":"","sources":["../../../../src/components/rich-text-input/mention/mention.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE;QAAE,YAAY,EAAE,MAAM,EAAE,CAAA;KAAE,KAAK,YAAY,EAAE,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;IAC3G,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B"}