@yoopta/themes-shadcn 6.0.0-beta.8 → 6.0.0-beta.9

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 (31) hide show
  1. package/dist/applyTheme.d.ts.map +1 -1
  2. package/dist/file/elements/file/file-element.d.ts +3 -0
  3. package/dist/file/elements/file/file-element.d.ts.map +1 -0
  4. package/dist/file/elements/file/file-icons.d.ts +14 -0
  5. package/dist/file/elements/file/file-icons.d.ts.map +1 -0
  6. package/dist/file/elements/file/file-inline-toolbar.d.ts +12 -0
  7. package/dist/file/elements/file/file-inline-toolbar.d.ts.map +1 -0
  8. package/dist/file/elements/file/file-placeholder.d.ts +15 -0
  9. package/dist/file/elements/file/file-placeholder.d.ts.map +1 -0
  10. package/dist/file/elements/file/file-render.d.ts +14 -0
  11. package/dist/file/elements/file/file-render.d.ts.map +1 -0
  12. package/dist/file/index.d.ts +6 -0
  13. package/dist/file/index.d.ts.map +1 -0
  14. package/dist/file/types.d.ts +3 -0
  15. package/dist/file/types.d.ts.map +1 -0
  16. package/dist/index.d.ts +3 -0
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +4 -4
  19. package/dist/mention/elements/mention/mention-avatar.d.ts +10 -0
  20. package/dist/mention/elements/mention/mention-avatar.d.ts.map +1 -0
  21. package/dist/mention/elements/mention/mention-dropdown.d.ts +8 -0
  22. package/dist/mention/elements/mention/mention-dropdown.d.ts.map +1 -0
  23. package/dist/mention/elements/mention/mention-element.d.ts +3 -0
  24. package/dist/mention/elements/mention/mention-element.d.ts.map +1 -0
  25. package/dist/mention/elements/mention/mention-item.d.ts +11 -0
  26. package/dist/mention/elements/mention/mention-item.d.ts.map +1 -0
  27. package/dist/mention/index.d.ts +11 -0
  28. package/dist/mention/index.d.ts.map +1 -0
  29. package/dist/mention/types.d.ts +17 -0
  30. package/dist/mention/types.d.ts.map +1 -0
  31. package/package.json +4 -3
@@ -0,0 +1,10 @@
1
+ type MentionAvatarSize = 'inline' | 'sm' | 'md' | 'lg';
2
+ type MentionAvatarProps = {
3
+ name: string;
4
+ avatar?: string;
5
+ size?: MentionAvatarSize;
6
+ className?: string;
7
+ };
8
+ export declare const MentionAvatar: ({ name, avatar, size, className }: MentionAvatarProps) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=mention-avatar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mention-avatar.d.ts","sourceRoot":"","sources":["../../../../src/mention/elements/mention/mention-avatar.tsx"],"names":[],"mappings":"AAIA,KAAK,iBAAiB,GAAG,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEvD,KAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AA+CF,eAAO,MAAM,aAAa,sCAAkD,kBAAkB,4CA2B7F,CAAC"}
@@ -0,0 +1,8 @@
1
+ type MentionDropdownProps = {
2
+ showTypeBadge?: boolean;
3
+ maxHeight?: number;
4
+ className?: string;
5
+ };
6
+ export declare const MentionDropdown: ({ showTypeBadge, maxHeight, className, }: MentionDropdownProps) => import("react/jsx-runtime").JSX.Element | null;
7
+ export {};
8
+ //# sourceMappingURL=mention-dropdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mention-dropdown.d.ts","sourceRoot":"","sources":["../../../../src/mention/elements/mention/mention-dropdown.tsx"],"names":[],"mappings":"AAOA,KAAK,oBAAoB,GAAG;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,eAAe,6CAIzB,oBAAoB,mDAgHtB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { PluginElementRenderProps } from '@yoopta/editor';
2
+ export declare const MentionElement: (props: PluginElementRenderProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=mention-element.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mention-element.d.ts","sourceRoot":"","sources":["../../../../src/mention/elements/mention/mention-element.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAiC/D,eAAO,MAAM,cAAc,UAAW,wBAAwB,4CA4K7D,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { MentionItem as MentionItemType } from '@yoopta/mention';
2
+ type MentionItemProps<TMeta = Record<string, unknown>> = {
3
+ item: MentionItemType<TMeta>;
4
+ selected: boolean;
5
+ onSelect: () => void;
6
+ onMouseEnter?: () => void;
7
+ showTypeBadge?: boolean;
8
+ };
9
+ export declare const MentionItem: (props: MentionItemProps) => import("react/jsx-runtime").JSX.Element;
10
+ export {};
11
+ //# sourceMappingURL=mention-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mention-item.d.ts","sourceRoot":"","sources":["../../../../src/mention/elements/mention/mention-item.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAMtE,KAAK,gBAAgB,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;IACvD,IAAI,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC;IAC7B,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,WAAW,UAAW,gBAAgB,4CAkClD,CAAC"}
@@ -0,0 +1,11 @@
1
+ export { MentionDropdown } from './elements/mention/mention-dropdown';
2
+ export { MentionItem } from './elements/mention/mention-item';
3
+ export { MentionAvatar } from './elements/mention/mention-avatar';
4
+ export { MentionElement } from './elements/mention/mention-element';
5
+ export type { MentionThemeConfig, MentionItemRenderProps } from './types';
6
+ export declare const MentionUI: {
7
+ mention: {
8
+ render: (props: import("@yoopta/editor/dist/plugins/types").PluginElementExtendRenderProps) => import("react/jsx-runtime").JSX.Element;
9
+ };
10
+ };
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mention/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,YAAY,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAE1E,eAAO,MAAM,SAAS;;;;CAIrB,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { MentionItem, MentionType } from '@yoopta/mention';
2
+ export type MentionThemeConfig = {
3
+ /** Show avatar in mention element */
4
+ showAvatar?: boolean;
5
+ /** Show type badge */
6
+ showTypeBadge?: boolean;
7
+ /** Custom colors per mention type */
8
+ typeColors?: Partial<Record<MentionType, string>>;
9
+ };
10
+ export type MentionItemRenderProps<TMeta = Record<string, unknown>> = {
11
+ item: MentionItem<TMeta>;
12
+ index: number;
13
+ selected: boolean;
14
+ onSelect: () => void;
15
+ };
16
+ export declare const DEFAULT_TYPE_COLORS: Record<string, string>;
17
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/mention/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEhE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,qCAAqC;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sBAAsB;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,qCAAqC;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC;CACnD,CAAC;AAEF,MAAM,MAAM,sBAAsB,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;IACpE,IAAI,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAKtD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoopta/themes-shadcn",
3
- "version": "6.0.0-beta.8",
3
+ "version": "6.0.0-beta.9",
4
4
  "description": "Shadcn UI theme for Yoopta Editor plugins",
5
5
  "author": "Darginec05 <devopsbanda@gmail.com>",
6
6
  "homepage": "https://github.com/Darginec05/Yoopta-Editor#readme",
@@ -16,7 +16,8 @@
16
16
  "peerDependencies": {
17
17
  "@yoopta/code": "^6.0.0-beta.4",
18
18
  "@yoopta/editor": "^6.0.0-beta.4",
19
- "@yoopta/embed": "*",
19
+ "@yoopta/embed": "^6.0.0-beta.4",
20
+ "@yoopta/file": "^6.0.0-beta.4",
20
21
  "@yoopta/image": "^6.0.0-beta.4",
21
22
  "@yoopta/lists": "^6.0.0-beta.4",
22
23
  "@yoopta/steps": "^6.0.0-beta.4",
@@ -71,5 +72,5 @@
71
72
  "bugs": {
72
73
  "url": "https://github.com/Darginec05/Yoopta-Editor/issues"
73
74
  },
74
- "gitHead": "dca941dd88adfad95b7c0f2b51c65ada6dd91b49"
75
+ "gitHead": "4a55643c3f8ffc0d0373ff2643cf12099976c28e"
75
76
  }