@omnitron-dev/prism 0.1.2 → 0.2.0
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/blocks/index.js +49 -9
- package/dist/blocks/index.js.map +1 -1
- package/dist/chunk-2FYNRDXR.js +192 -0
- package/dist/chunk-2FYNRDXR.js.map +1 -0
- package/dist/chunk-A2Z7NVGL.js +11496 -0
- package/dist/chunk-A2Z7NVGL.js.map +1 -0
- package/dist/{chunk-E3XANPTO.js → chunk-IZOIO7PA.js} +5 -191
- package/dist/{chunk-E3XANPTO.js.map → chunk-IZOIO7PA.js.map} +1 -1
- package/dist/{chunk-LAEY5USO.js → chunk-KTCWPGON.js} +55 -25
- package/dist/chunk-KTCWPGON.js.map +1 -0
- package/dist/{chunk-DXXZ3ITR.js → chunk-MEFT6XPH.js} +721 -455
- package/dist/chunk-MEFT6XPH.js.map +1 -0
- package/dist/{chunk-BTIT7WYH.js → chunk-SNKGGHBT.js} +2 -2
- package/dist/chunk-SNKGGHBT.js.map +1 -0
- package/dist/{chunk-UR6X3W5I.js → chunk-VAAIHNWQ.js} +3 -3
- package/dist/{chunk-UR6X3W5I.js.map → chunk-VAAIHNWQ.js.map} +1 -1
- package/dist/{chunk-GYDT5EKX.js → chunk-XQXGE2PW.js} +760 -472
- package/dist/chunk-XQXGE2PW.js.map +1 -0
- package/dist/{chunk-WC2WM2JD.js → chunk-XXP3ZGU6.js} +18 -8
- package/dist/chunk-XXP3ZGU6.js.map +1 -0
- package/dist/chunk-YJMAQL3S.js +1887 -0
- package/dist/chunk-YJMAQL3S.js.map +1 -0
- package/dist/cli/index.js +4 -4
- package/dist/cli/index.js.map +1 -1
- package/dist/components/editor/index.d.ts +107 -0
- package/dist/components/editor/index.js +4 -0
- package/dist/components/editor/index.js.map +1 -0
- package/dist/components/index.css +131 -0
- package/dist/components/index.css.map +1 -0
- package/dist/components/index.d.ts +7073 -0
- package/dist/components/index.js +13 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components-BCGZ-Rwt.d.ts +142 -0
- package/dist/{config-BA6IeTq9.d.ts → config-Pct0n_Kq.d.ts} +2 -2
- package/dist/core/index.d.ts +20 -5
- package/dist/core/index.js +2 -2
- package/dist/hooks/index.d.ts +3 -2
- package/dist/hooks/index.js +4 -3
- package/dist/{index-odhPSv9I.d.ts → index-nmJ8Muwg.d.ts} +4 -127
- package/dist/index.d.ts +265 -6615
- package/dist/index.js +119 -11662
- package/dist/index.js.map +1 -1
- package/dist/layouts/index.js +1 -1
- package/dist/popover-Dmw7SJLR.d.ts +127 -0
- package/dist/registry/index.d.ts +2 -2
- package/dist/{registry-BrDNftd5.d.ts → registry-DQcIzW2s.d.ts} +2 -2
- package/dist/{settings-plpR26Xk.d.ts → settings-CAC0qFjS.d.ts} +2 -2
- package/dist/state/index.d.ts +2 -2
- package/dist/state/index.js +1 -1
- package/dist/text-transform-D6MzzF7V.d.ts +165 -0
- package/dist/theme/index.d.ts +2 -2
- package/dist/theme/index.js +2 -2
- package/dist/{theme-CrXLfP1c.d.ts → theme-B4Q3Bg5o.d.ts} +1 -1
- package/dist/types/index.d.ts +6 -145
- package/package.json +46 -40
- package/dist/chunk-BTIT7WYH.js.map +0 -1
- package/dist/chunk-DXXZ3ITR.js.map +0 -1
- package/dist/chunk-GYDT5EKX.js.map +0 -1
- package/dist/chunk-LAEY5USO.js.map +0 -1
- package/dist/chunk-WC2WM2JD.js.map +0 -1
package/dist/layouts/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AuthCenteredContent, AuthCenteredLayout, AuthSimpleLayout, AuthSplitContent, AuthSplitIllustration, AuthSplitLayout, DEFAULT_LAYOUT_CSS_VARS, DRAWER_WIDTHS, DashboardContent, DashboardLayout, HEADER_HEIGHTS, HeaderSection, HeaderToolbar, LAYOUT_CSS_VARS, LayoutContext, LayoutGlobalStyles, LayoutProvider, LayoutSection, MainSection, MobileSidenav, Sidenav, SimpleCompactContent, defaultLayoutConfig, getBaseLayoutCssVars, getNavColorCssVars, mergeLayoutCssVars, useLayoutConfig, useLayoutContext, useNavActive, useSidenavVisible, useTopnavVisible } from '../chunk-
|
|
1
|
+
export { AuthCenteredContent, AuthCenteredLayout, AuthSimpleLayout, AuthSplitContent, AuthSplitIllustration, AuthSplitLayout, DEFAULT_LAYOUT_CSS_VARS, DRAWER_WIDTHS, DashboardContent, DashboardLayout, HEADER_HEIGHTS, HeaderSection, HeaderToolbar, LAYOUT_CSS_VARS, LayoutContext, LayoutGlobalStyles, LayoutProvider, LayoutSection, MainSection, MobileSidenav, Sidenav, SimpleCompactContent, defaultLayoutConfig, getBaseLayoutCssVars, getNavColorCssVars, mergeLayoutCssVars, useLayoutConfig, useLayoutContext, useNavActive, useSidenavVisible, useTopnavVisible } from '../chunk-XQXGE2PW.js';
|
|
2
2
|
import '../chunk-JDTC2SBY.js';
|
|
3
3
|
import '../chunk-DDY7TLUI.js';
|
|
4
4
|
import '../chunk-77KIJLPP.js';
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { ReactNode, MouseEvent, Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { PopoverProps } from '@mui/material/Popover';
|
|
3
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Popover Component
|
|
7
|
+
*
|
|
8
|
+
* Enhanced popover component with arrow support and useful hook.
|
|
9
|
+
*
|
|
10
|
+
* @module @omnitron-dev/prism/components/popover
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
type ArrowPlacement = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'left-top' | 'left-center' | 'left-bottom' | 'right-top' | 'right-center' | 'right-bottom';
|
|
14
|
+
interface PopoverArrowProps {
|
|
15
|
+
/** Hide the arrow */
|
|
16
|
+
hide?: boolean;
|
|
17
|
+
/** Arrow size in pixels */
|
|
18
|
+
size?: number;
|
|
19
|
+
/** Offset from edge */
|
|
20
|
+
offset?: number;
|
|
21
|
+
/** Arrow placement */
|
|
22
|
+
placement?: ArrowPlacement;
|
|
23
|
+
/** Additional styles */
|
|
24
|
+
sx?: SxProps<Theme>;
|
|
25
|
+
}
|
|
26
|
+
interface CustomPopoverProps extends Omit<PopoverProps, 'open'> {
|
|
27
|
+
/** Whether the popover is open */
|
|
28
|
+
open: boolean | Element | null;
|
|
29
|
+
/** Close handler */
|
|
30
|
+
onClose: () => void;
|
|
31
|
+
/** Arrow configuration */
|
|
32
|
+
arrow?: PopoverArrowProps;
|
|
33
|
+
/** Minimum width of the popover */
|
|
34
|
+
minWidth?: number | string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* CustomPopover - Enhanced popover with arrow support.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```tsx
|
|
41
|
+
* const popover = usePopover();
|
|
42
|
+
*
|
|
43
|
+
* <Button onClick={popover.onOpen}>Open Menu</Button>
|
|
44
|
+
*
|
|
45
|
+
* <CustomPopover
|
|
46
|
+
* open={popover.open}
|
|
47
|
+
* onClose={popover.onClose}
|
|
48
|
+
* anchorEl={popover.anchorEl}
|
|
49
|
+
* arrow={{ placement: 'top-right' }}
|
|
50
|
+
* >
|
|
51
|
+
* <MenuItem>Option 1</MenuItem>
|
|
52
|
+
* <MenuItem>Option 2</MenuItem>
|
|
53
|
+
* </CustomPopover>
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
declare function CustomPopover({ open, onClose, children, anchorEl, arrow, minWidth, slotProps, ...other }: CustomPopoverProps): ReactNode;
|
|
57
|
+
/**
|
|
58
|
+
* Return type for usePopover hook with generic element type.
|
|
59
|
+
*
|
|
60
|
+
* @typeParam T - The HTML element type (default: HTMLElement)
|
|
61
|
+
*/
|
|
62
|
+
interface UsePopoverReturn<T extends HTMLElement = HTMLElement> {
|
|
63
|
+
/** Whether the popover is open */
|
|
64
|
+
open: boolean;
|
|
65
|
+
/** The anchor element (typed to T) */
|
|
66
|
+
anchorEl: T | null;
|
|
67
|
+
/** Open the popover - accepts MouseEvent with typed currentTarget */
|
|
68
|
+
onOpen: (event: MouseEvent<T>) => void;
|
|
69
|
+
/** Close the popover */
|
|
70
|
+
onClose: () => void;
|
|
71
|
+
/** Set the anchor element directly (typed to T | null) */
|
|
72
|
+
setAnchorEl: Dispatch<SetStateAction<T | null>>;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* usePopover - Generic hook for managing popover state.
|
|
76
|
+
*
|
|
77
|
+
* Type-safe hook that accepts a generic type parameter for the anchor element.
|
|
78
|
+
* This ensures type safety when accessing `event.currentTarget` and `anchorEl`.
|
|
79
|
+
*
|
|
80
|
+
* @typeParam T - The HTML element type (default: HTMLElement)
|
|
81
|
+
* @returns Popover state and controls with typed elements
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* ```tsx
|
|
85
|
+
* // Basic usage with default HTMLElement
|
|
86
|
+
* function MenuButton() {
|
|
87
|
+
* const popover = usePopover();
|
|
88
|
+
*
|
|
89
|
+
* return (
|
|
90
|
+
* <>
|
|
91
|
+
* <IconButton onClick={popover.onOpen}>
|
|
92
|
+
* <MoreVertIcon />
|
|
93
|
+
* </IconButton>
|
|
94
|
+
*
|
|
95
|
+
* <CustomPopover
|
|
96
|
+
* open={popover.open}
|
|
97
|
+
* onClose={popover.onClose}
|
|
98
|
+
* anchorEl={popover.anchorEl}
|
|
99
|
+
* >
|
|
100
|
+
* <MenuItem onClick={popover.onClose}>Edit</MenuItem>
|
|
101
|
+
* <MenuItem onClick={popover.onClose}>Delete</MenuItem>
|
|
102
|
+
* </CustomPopover>
|
|
103
|
+
* </>
|
|
104
|
+
* );
|
|
105
|
+
* }
|
|
106
|
+
*
|
|
107
|
+
* // Type-safe usage with specific element type
|
|
108
|
+
* function TypedButton() {
|
|
109
|
+
* const popover = usePopover<HTMLButtonElement>();
|
|
110
|
+
*
|
|
111
|
+
* // TypeScript knows anchorEl is HTMLButtonElement | null
|
|
112
|
+
* // and onOpen accepts MouseEvent<HTMLButtonElement>
|
|
113
|
+
*
|
|
114
|
+
* return (
|
|
115
|
+
* <>
|
|
116
|
+
* <button onClick={popover.onOpen}>Click me</button>
|
|
117
|
+
* <Popover open={popover.open} anchorEl={popover.anchorEl} onClose={popover.onClose}>
|
|
118
|
+
* Content here
|
|
119
|
+
* </Popover>
|
|
120
|
+
* </>
|
|
121
|
+
* );
|
|
122
|
+
* }
|
|
123
|
+
* ```
|
|
124
|
+
*/
|
|
125
|
+
declare function usePopover<T extends HTMLElement = HTMLElement>(): UsePopoverReturn<T>;
|
|
126
|
+
|
|
127
|
+
export { type ArrowPlacement as A, CustomPopover as C, type PopoverArrowProps as P, type UsePopoverReturn as U, type CustomPopoverProps as a, usePopover as u };
|
package/dist/registry/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { R as RegistryConfig,
|
|
1
|
+
import { R as RegistryConfig, y as RegistrySchema, C as ComponentDefinition, e as BlockDefinition, P as PrismLockfile, x as InstalledComponent, I as InstalledBlock } from '../registry-DQcIzW2s.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
import '../theme-
|
|
3
|
+
import '../theme-B4Q3Bg5o.js';
|
|
4
4
|
import '@mui/material/styles';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { r as ThemePresetDefinition } from './theme-B4Q3Bg5o.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Block Type Definitions
|
|
@@ -571,4 +571,4 @@ interface PrismLockfile {
|
|
|
571
571
|
themes: string[];
|
|
572
572
|
}
|
|
573
573
|
|
|
574
|
-
export type { AuthContextValue as A,
|
|
574
|
+
export type { AuthContextValue as A, BlockCategory as B, ComponentDefinition as C, DashboardBlockProps as D, TopbarNavVariant as E, FormFieldSchema as F, GridCellParams as G, InstalledBlock as I, PrismLockfile as P, RegistryConfig as R, SidebarNavVariant as S, ThemeRegistryEntry as T, AuthProviderType as a, AuthState as b, AuthUser as c, BlockConfig as d, BlockDefinition as e, BlockDependencies as f, BlockFile as g, BlockFileType as h, BlockNavItem as i, BlockNavSection as j, ComponentDependencies as k, ComponentFile as l, ComponentFileType as m, DashboardNavType as n, DataGridProps as o, FormFieldType as p, FormSchema as q, FormSectionSchema as r, GridColumn as s, GridFilterItem as t, GridFilterModel as u, GridHeaderParams as v, GridSortModel as w, InstalledComponent as x, RegistrySchema as y, RemoteRegistryConfig as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as zustand from 'zustand';
|
|
2
|
-
import {
|
|
2
|
+
import { o as ThemeMode, q as ThemePreset, n as ThemeDirection, f as ComponentDensity } from './theme-B4Q3Bg5o.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Navigation layout options for dashboard.
|
|
@@ -452,4 +452,4 @@ declare const settingsStore: {
|
|
|
452
452
|
*/
|
|
453
453
|
declare function getDefaultSettings(): SettingsValues;
|
|
454
454
|
|
|
455
|
-
export { type NavColor as N, type
|
|
455
|
+
export { type NavColor as N, type SettingsState as S, type NavLayout as a, type SettingsValues as b, getDefaultSettings as g, settingsStore as s, useSettingsStore as u };
|
package/dist/state/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import * as immer from 'immer';
|
|
|
2
2
|
import * as zustand from 'zustand';
|
|
3
3
|
import { StateCreator, UseBoundStore, StoreApi } from 'zustand';
|
|
4
4
|
import { PersistOptions, StateStorage } from 'zustand/middleware';
|
|
5
|
-
import {
|
|
6
|
-
export { N as NavColor,
|
|
5
|
+
import { o as ThemeMode, n as ThemeDirection } from '../theme-B4Q3Bg5o.js';
|
|
6
|
+
export { N as NavColor, a as NavLayout, S as SettingsState, b as SettingsValues, g as getDefaultSettings, s as settingsStore, u as useSettingsStore } from '../settings-CAC0qFjS.js';
|
|
7
7
|
import '@mui/material/styles';
|
|
8
8
|
|
|
9
9
|
/**
|
package/dist/state/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { authStore, checkSettingsVersion, clearSettings, createAddFieldMigration, createMigration, createRemoveFieldMigration, createRenameMigration, createSettingsValidator, createTransformMigration, createVersionedPersistOptions, createVersionedStorage, exportSettings, getMigrationInfo, importSettings, runMigrations, themeStore, uiStore, useAuthStore, useThemeStore, useUIStore, validateMigrations } from '../chunk-
|
|
1
|
+
export { authStore, checkSettingsVersion, clearSettings, createAddFieldMigration, createMigration, createRemoveFieldMigration, createRenameMigration, createSettingsValidator, createTransformMigration, createVersionedPersistOptions, createVersionedStorage, exportSettings, getMigrationInfo, importSettings, runMigrations, themeStore, uiStore, useAuthStore, useThemeStore, useUIStore, validateMigrations } from '../chunk-SNKGGHBT.js';
|
|
2
2
|
export { createPersistedStore, createPrismStore, createSelectors, createUIStore, getDefaultSettings, settingsStore, useSettingsStore } from '../chunk-DDY7TLUI.js';
|
|
3
3
|
import '../chunk-77KIJLPP.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { BoxProps } from '@mui/material/Box';
|
|
3
|
+
import { SxProps, Theme } from '@mui/material/styles';
|
|
4
|
+
import { UseEditorOptions, Editor as Editor$1 } from '@tiptap/react';
|
|
5
|
+
import { ButtonBaseProps } from '@mui/material/ButtonBase';
|
|
6
|
+
import { Mark } from '@tiptap/core';
|
|
7
|
+
|
|
8
|
+
type ToolbarPreset = 'full' | 'standard' | 'compact' | 'minimal' | 'chat' | 'inline';
|
|
9
|
+
/**
|
|
10
|
+
* Individual toolbar items that can be toggled on/off.
|
|
11
|
+
*/
|
|
12
|
+
type ToolbarItem = 'bold' | 'italic' | 'underline' | 'strike' | 'code' | 'heading' | 'bulletList' | 'orderedList' | 'taskList' | 'alignLeft' | 'alignCenter' | 'alignRight' | 'alignJustify' | 'blockquote' | 'codeBlock' | 'horizontalRule' | 'link' | 'image' | 'hardBreak' | 'clearFormat' | 'undo' | 'redo' | 'fullscreen';
|
|
13
|
+
/**
|
|
14
|
+
* Toolbar configuration — either use a preset name or provide explicit items.
|
|
15
|
+
*/
|
|
16
|
+
type ToolbarConfig = ToolbarPreset | {
|
|
17
|
+
items: ToolbarItem[];
|
|
18
|
+
bubbleMenu?: boolean;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Resolved toolbar shape used internally.
|
|
22
|
+
*/
|
|
23
|
+
interface ResolvedToolbar {
|
|
24
|
+
items: Set<ToolbarItem>;
|
|
25
|
+
bubbleMenu: boolean;
|
|
26
|
+
}
|
|
27
|
+
type EditorOutputFormat = 'html' | 'json';
|
|
28
|
+
type EditorProps = Omit<UseEditorOptions, 'extensions' | 'content'> & {
|
|
29
|
+
/** HTML string or TipTap JSON document */
|
|
30
|
+
value?: string;
|
|
31
|
+
/** Controlled onChange — receives HTML string or JSON string depending on `format` */
|
|
32
|
+
onChange?: (value: string) => void;
|
|
33
|
+
/** Output format: 'html' returns HTML string, 'json' returns stringified TipTap JSON. @default 'json' */
|
|
34
|
+
format?: EditorOutputFormat;
|
|
35
|
+
/** Error state */
|
|
36
|
+
error?: boolean;
|
|
37
|
+
/** Helper text displayed below the editor */
|
|
38
|
+
helperText?: React.ReactNode;
|
|
39
|
+
/** Placeholder text */
|
|
40
|
+
placeholder?: string;
|
|
41
|
+
/** Toolbar preset or explicit config. @default 'standard' */
|
|
42
|
+
toolbar?: ToolbarConfig;
|
|
43
|
+
/** Enable bubble menu (floating toolbar on selection). @default true for standard+ */
|
|
44
|
+
bubbleMenu?: boolean;
|
|
45
|
+
/** Min height of editor content area in px. @default 160 */
|
|
46
|
+
minHeight?: number;
|
|
47
|
+
/** Max height of editor content area in px (enables scroll). @default undefined */
|
|
48
|
+
maxHeight?: number;
|
|
49
|
+
/** Whether content is editable. @default true */
|
|
50
|
+
editable?: boolean;
|
|
51
|
+
/** Reset content when value becomes empty. @default false */
|
|
52
|
+
resetValue?: boolean;
|
|
53
|
+
/** Additional TipTap extensions to merge with preset */
|
|
54
|
+
extraExtensions?: UseEditorOptions['extensions'];
|
|
55
|
+
/** CSS class name */
|
|
56
|
+
className?: string;
|
|
57
|
+
/** MUI sx prop */
|
|
58
|
+
sx?: SxProps<Theme>;
|
|
59
|
+
/** Slot props for wrapper */
|
|
60
|
+
slotProps?: {
|
|
61
|
+
wrapper?: BoxProps;
|
|
62
|
+
};
|
|
63
|
+
/** Ref to the content container */
|
|
64
|
+
ref?: React.RefObject<HTMLDivElement | null> | React.RefCallback<HTMLDivElement | null>;
|
|
65
|
+
};
|
|
66
|
+
type EditorToolbarProps = {
|
|
67
|
+
editor: Editor$1;
|
|
68
|
+
toolbar: ResolvedToolbar;
|
|
69
|
+
fullscreen: boolean;
|
|
70
|
+
onToggleFullscreen: () => void;
|
|
71
|
+
};
|
|
72
|
+
type EditorToolbarItemProps = ButtonBaseProps & {
|
|
73
|
+
label?: string;
|
|
74
|
+
active?: boolean;
|
|
75
|
+
icon?: React.ReactNode;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* PrismEditor — configurable rich text editor built on TipTap.
|
|
80
|
+
*
|
|
81
|
+
* Use `toolbar` prop to select a preset or provide custom toolbar items:
|
|
82
|
+
* - `"full"` — CMS pages, blog articles (all features)
|
|
83
|
+
* - `"standard"` — blog posts, forums (default)
|
|
84
|
+
* - `"compact"` — comments, replies
|
|
85
|
+
* - `"minimal"` — short feedback
|
|
86
|
+
* - `"chat"` — messaging
|
|
87
|
+
* - `"inline"` — no toolbar (titles, captions)
|
|
88
|
+
* - `{ items: [...], bubbleMenu: true }` — custom
|
|
89
|
+
*/
|
|
90
|
+
declare function Editor({ sx, error, onChange, slotProps, helperText, resetValue, className, toolbar: toolbarConfig, bubbleMenu: bubbleMenuProp, format, minHeight, maxHeight, editable, extraExtensions, placeholder, ref: contentRef, value: initialContent, ...other }: EditorProps): react_jsx_runtime.JSX.Element;
|
|
91
|
+
|
|
92
|
+
declare const editorClasses: {
|
|
93
|
+
root: string;
|
|
94
|
+
toolbar: {
|
|
95
|
+
root: string;
|
|
96
|
+
hr: string;
|
|
97
|
+
bold: string;
|
|
98
|
+
italic: string;
|
|
99
|
+
underline: string;
|
|
100
|
+
strike: string;
|
|
101
|
+
code: string;
|
|
102
|
+
codeBlock: string;
|
|
103
|
+
link: string;
|
|
104
|
+
unlink: string;
|
|
105
|
+
image: string;
|
|
106
|
+
alignLeft: string;
|
|
107
|
+
alignCenter: string;
|
|
108
|
+
alignRight: string;
|
|
109
|
+
alignJustify: string;
|
|
110
|
+
bulletList: string;
|
|
111
|
+
orderedList: string;
|
|
112
|
+
taskList: string;
|
|
113
|
+
blockquote: string;
|
|
114
|
+
hardBreak: string;
|
|
115
|
+
clear: string;
|
|
116
|
+
undo: string;
|
|
117
|
+
redo: string;
|
|
118
|
+
fullscreen: string;
|
|
119
|
+
};
|
|
120
|
+
content: {
|
|
121
|
+
root: string;
|
|
122
|
+
hr: string;
|
|
123
|
+
link: string;
|
|
124
|
+
image: string;
|
|
125
|
+
heading: string;
|
|
126
|
+
codeInline: string;
|
|
127
|
+
codeBlock: string;
|
|
128
|
+
langSelect: string;
|
|
129
|
+
blockquote: string;
|
|
130
|
+
bulletList: string;
|
|
131
|
+
orderedList: string;
|
|
132
|
+
listItem: string;
|
|
133
|
+
taskList: string;
|
|
134
|
+
taskItem: string;
|
|
135
|
+
placeholder: string;
|
|
136
|
+
};
|
|
137
|
+
state: {
|
|
138
|
+
error: string;
|
|
139
|
+
disabled: string;
|
|
140
|
+
fullscreen: string;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
declare function resolveToolbar(config: ToolbarConfig | undefined): ResolvedToolbar;
|
|
145
|
+
|
|
146
|
+
type TextTransformValue = 'uppercase' | 'lowercase' | 'capitalize';
|
|
147
|
+
interface TextTransformOptions {
|
|
148
|
+
allowedValues: TextTransformValue[];
|
|
149
|
+
defaultValue?: TextTransformValue;
|
|
150
|
+
}
|
|
151
|
+
interface TextTransformAttributes {
|
|
152
|
+
textTransform?: TextTransformValue;
|
|
153
|
+
}
|
|
154
|
+
declare module '@tiptap/core' {
|
|
155
|
+
interface Commands<ReturnType> {
|
|
156
|
+
textTransform: {
|
|
157
|
+
unsetTextTransform: () => ReturnType;
|
|
158
|
+
setTextTransform: (value: TextTransformValue) => ReturnType;
|
|
159
|
+
toggleTextTransform: (value: TextTransformValue) => ReturnType;
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
declare const TextTransform: Mark<TextTransformOptions, TextTransformAttributes>;
|
|
164
|
+
|
|
165
|
+
export { type EditorToolbarProps as E, type ResolvedToolbar as R, type TextTransformValue as T, type EditorToolbarItemProps as a, Editor as b, type EditorOutputFormat as c, type EditorProps as d, TextTransform as e, type ToolbarConfig as f, type ToolbarItem as g, type ToolbarPreset as h, editorClasses as i, resolveToolbar as r };
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as locales from '@mui/material/locale';
|
|
2
2
|
import { ThemeOptions, PaletteOptions, Shadows, Theme, CSSObject, Components } from '@mui/material/styles';
|
|
3
|
-
import {
|
|
4
|
-
export { B as BackgroundPalette,
|
|
3
|
+
import { a as ColorGroup, q as ThemePreset, o as ThemeMode, n as ThemeDirection, f as ComponentDensity, h as CssVariablesConfig, g as ComponentsConfig, k as PrismTheme, b as ColorScale, C as ChartPalette, i as PaletteColorWithChannels, V as VibrantPalette, p as ThemePalette, P as PaletteColor, c as ColorScaleWithChannels, s as ThemeTypography, r as ThemePresetDefinition } from '../theme-B4Q3Bg5o.js';
|
|
4
|
+
export { B as BackgroundPalette, d as ColorShadeKey } from '../theme-B4Q3Bg5o.js';
|
|
5
5
|
import { Components as Components$1, Theme as Theme$1 } from '@mui/material';
|
|
6
6
|
|
|
7
7
|
/**
|
package/dist/theme/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { applyPrimaryOverride, cssVariables, defaultPreset, generateCssVariables, generatePaletteChannel, getPreset, luxuryPreset, presetNames } from '../chunk-
|
|
2
|
-
export { COLOR_GROUPS, PRESET_DISPLAY_NAMES, PRESET_INHERENT_MODE, PRESET_NAMES, arcticPreset, baseColors, basic, blue, buildAction, buildBackground, buildChartColors, buildPalette, buildPaletteColor, buildText, buildVibrant, componentOverrides, createButtonBaseOverrides, createButtonGroupOverrides, createButtonOverrides, createPaletteColorFromScale, createPrismTheme, createShadows, createTypography, cssVarRgba, customScrollbarMixin, darkShadow, darken, defaultDarkPalette, defaultLightPalette, focusRingMixin, generateColorScale, generateColorScaleWithChannels, generatePaletteColorWithChannels, getContrastRatio, getContrastText, getLuminance, getPresetDisplayName, glassMixin, green, grey, hexToHsl, hexToRgb, hexToRgbChannel, hideScrollbarMixin, hslToHex, invertColorScale, isLightColor, lightBlue, lighten, luxuryColors, luxuryError, luxuryInfo, luxuryNeutral, luxuryPrimary, luxurySecondary, luxurySuccess, luxuryWarning, mix, mixins, multiLineEllipsisMixin, orange, purple, red, rgbToHex, rgba, shadows, textEllipsisMixin, typography } from '../chunk-
|
|
1
|
+
export { applyPrimaryOverride, cssVariables, defaultPreset, generateCssVariables, generatePaletteChannel, getPreset, luxuryPreset, presetNames } from '../chunk-VAAIHNWQ.js';
|
|
2
|
+
export { COLOR_GROUPS, PRESET_DISPLAY_NAMES, PRESET_INHERENT_MODE, PRESET_NAMES, arcticPreset, baseColors, basic, blue, buildAction, buildBackground, buildChartColors, buildPalette, buildPaletteColor, buildText, buildVibrant, componentOverrides, createButtonBaseOverrides, createButtonGroupOverrides, createButtonOverrides, createPaletteColorFromScale, createPrismTheme, createShadows, createTypography, cssVarRgba, customScrollbarMixin, darkShadow, darken, defaultDarkPalette, defaultLightPalette, focusRingMixin, generateColorScale, generateColorScaleWithChannels, generatePaletteColorWithChannels, getContrastRatio, getContrastText, getLuminance, getPresetDisplayName, glassMixin, green, grey, hexToHsl, hexToRgb, hexToRgbChannel, hideScrollbarMixin, hslToHex, invertColorScale, isLightColor, lightBlue, lighten, luxuryColors, luxuryError, luxuryInfo, luxuryNeutral, luxuryPrimary, luxurySecondary, luxurySuccess, luxuryWarning, mix, mixins, multiLineEllipsisMixin, orange, purple, red, rgbToHex, rgba, shadows, textEllipsisMixin, typography } from '../chunk-MEFT6XPH.js';
|
|
3
3
|
import '../chunk-77KIJLPP.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -386,4 +386,4 @@ declare module '@mui/material/styles' {
|
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
388
|
|
|
389
|
-
export type { ActionPalette as A, BackgroundPalette as B,
|
|
389
|
+
export type { ActionPalette as A, BackgroundPalette as B, ChartPalette as C, GreyScale as G, PaletteColor as P, SimplePaletteColor as S, TextPalette as T, VibrantPalette as V, ColorGroup as a, ColorScale as b, ColorScaleWithChannels as c, ColorShadeKey as d, CommonColors as e, ComponentDensity as f, ComponentsConfig as g, CssVariablesConfig as h, PaletteColorWithChannels as i, PresetPalette as j, PrismTheme as k, ThemeConfig as l, ThemeContextValue as m, ThemeDirection as n, ThemeMode as o, ThemePalette as p, ThemePreset as q, ThemePresetDefinition as r, ThemeTypography as s };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,146 +1,7 @@
|
|
|
1
|
-
export { A as ActionPalette, B as BackgroundPalette,
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
export { D as DefineConfigFn, F as FeaturesConfig, P as PartialPrismConfig, a as PathsConfig, b as PrismConfig, c as PrismConfigFile, S as StyleConfig, d as StyleFramework, e as defaultPrismConfig } from '../config-BA6IeTq9.js';
|
|
1
|
+
export { A as ActionPalette, B as BackgroundPalette, C as ChartPalette, a as ColorGroup, b as ColorScale, c as ColorScaleWithChannels, d as ColorShadeKey, e as CommonColors, f as ComponentDensity, g as ComponentsConfig, h as CssVariablesConfig, G as GreyScale, P as PaletteColor, i as PaletteColorWithChannels, j as PresetPalette, k as PrismTheme, S as SimplePaletteColor, T as TextPalette, l as ThemeConfig, m as ThemeContextValue, n as ThemeDirection, o as ThemeMode, p as ThemePalette, q as ThemePreset, r as ThemePresetDefinition, s as ThemeTypography, V as VibrantPalette } from '../theme-B4Q3Bg5o.js';
|
|
2
|
+
export { B as ButtonVariant, C as CommonComponentProps, a as ComponentColor, b as ComponentSize, D as DataDisplayProps, E as ExtractVariantProps, F as FormFieldProps, I as InputProps, L as LayoutProps, P as PolymorphicComponentProps, S as SelectOption, c as SlotProps, W as WithIconProps } from '../components-BCGZ-Rwt.js';
|
|
3
|
+
export { A as AuthContextValue, a as AuthProviderType, b as AuthState, c as AuthUser, B as BlockCategory, d as BlockConfig, e as BlockDefinition, f as BlockDependencies, g as BlockFile, h as BlockFileType, i as BlockNavItem, j as BlockNavSection, C as ComponentDefinition, k as ComponentDependencies, l as ComponentFile, m as ComponentFileType, D as DashboardBlockProps, n as DashboardNavType, o as DataGridProps, F as FormFieldSchema, p as FormFieldType, q as FormSchema, r as FormSectionSchema, G as GridCellParams, s as GridColumn, t as GridFilterItem, u as GridFilterModel, v as GridHeaderParams, w as GridSortModel, I as InstalledBlock, x as InstalledComponent, P as PrismLockfile, R as RegistryConfig, y as RegistrySchema, z as RemoteRegistryConfig, S as SidebarNavVariant, T as ThemeRegistryEntry, E as TopbarNavVariant } from '../registry-DQcIzW2s.js';
|
|
4
|
+
export { D as DefineConfigFn, F as FeaturesConfig, P as PartialPrismConfig, a as PathsConfig, b as PrismConfig, c as PrismConfigFile, S as StyleConfig, d as StyleFramework, e as defaultPrismConfig } from '../config-Pct0n_Kq.js';
|
|
6
5
|
import '@mui/material/styles';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* Component Type Definitions
|
|
10
|
-
*
|
|
11
|
-
* @module @omnitron-dev/prism/types/components
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Component size variants.
|
|
16
|
-
*/
|
|
17
|
-
type ComponentSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
18
|
-
/**
|
|
19
|
-
* Component color variants.
|
|
20
|
-
*/
|
|
21
|
-
type ComponentColor = 'default' | 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
|
|
22
|
-
/**
|
|
23
|
-
* Button variants.
|
|
24
|
-
*/
|
|
25
|
-
type ButtonVariant = 'default' | 'destructive' | 'outline' | 'secondary' | 'ghost' | 'link';
|
|
26
|
-
/**
|
|
27
|
-
* Base props for polymorphic components.
|
|
28
|
-
*/
|
|
29
|
-
type PolymorphicComponentProps<C extends ElementType, Props = object> = Props & Omit<ComponentPropsWithoutRef<C>, keyof Props> & {
|
|
30
|
-
as?: C;
|
|
31
|
-
};
|
|
32
|
-
/**
|
|
33
|
-
* Slot props for component customization.
|
|
34
|
-
*/
|
|
35
|
-
interface SlotProps<T = object> {
|
|
36
|
-
/** Custom slot content */
|
|
37
|
-
slotProps?: {
|
|
38
|
-
root?: T;
|
|
39
|
-
[key: string]: T | undefined;
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Common component props.
|
|
44
|
-
*/
|
|
45
|
-
interface CommonComponentProps {
|
|
46
|
-
/** Additional CSS classes */
|
|
47
|
-
className?: string;
|
|
48
|
-
/** Inline styles */
|
|
49
|
-
style?: React.CSSProperties;
|
|
50
|
-
/** Component children */
|
|
51
|
-
children?: ReactNode;
|
|
52
|
-
/** Disabled state */
|
|
53
|
-
disabled?: boolean;
|
|
54
|
-
/** Loading state */
|
|
55
|
-
loading?: boolean;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Props for components with icon support.
|
|
59
|
-
*/
|
|
60
|
-
interface WithIconProps {
|
|
61
|
-
/** Icon at start */
|
|
62
|
-
startIcon?: ReactNode;
|
|
63
|
-
/** Icon at end */
|
|
64
|
-
endIcon?: ReactNode;
|
|
65
|
-
/** Icon only (no text) */
|
|
66
|
-
iconOnly?: boolean;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Props for form field components.
|
|
70
|
-
*/
|
|
71
|
-
interface FormFieldProps {
|
|
72
|
-
/** Field name for form registration */
|
|
73
|
-
name: string;
|
|
74
|
-
/** Field label */
|
|
75
|
-
label?: ReactNode;
|
|
76
|
-
/** Helper text */
|
|
77
|
-
helperText?: ReactNode;
|
|
78
|
-
/** Required field */
|
|
79
|
-
required?: boolean;
|
|
80
|
-
/** Error state */
|
|
81
|
-
error?: boolean;
|
|
82
|
-
/** Error message */
|
|
83
|
-
errorMessage?: string;
|
|
84
|
-
/** Full width */
|
|
85
|
-
fullWidth?: boolean;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Props for input components.
|
|
89
|
-
*/
|
|
90
|
-
interface InputProps extends FormFieldProps {
|
|
91
|
-
/** Placeholder text */
|
|
92
|
-
placeholder?: string;
|
|
93
|
-
/** Input type */
|
|
94
|
-
type?: 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search';
|
|
95
|
-
/** Auto-focus */
|
|
96
|
-
autoFocus?: boolean;
|
|
97
|
-
/** Auto-complete */
|
|
98
|
-
autoComplete?: string;
|
|
99
|
-
/** Read-only */
|
|
100
|
-
readOnly?: boolean;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Props for select/dropdown components.
|
|
104
|
-
*/
|
|
105
|
-
interface SelectOption<T = string> {
|
|
106
|
-
/** Option value */
|
|
107
|
-
value: T;
|
|
108
|
-
/** Display label */
|
|
109
|
-
label: string;
|
|
110
|
-
/** Disabled option */
|
|
111
|
-
disabled?: boolean;
|
|
112
|
-
/** Group name for grouped options */
|
|
113
|
-
group?: string;
|
|
114
|
-
/** Optional icon */
|
|
115
|
-
icon?: ReactNode;
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Props for data display components.
|
|
119
|
-
*/
|
|
120
|
-
interface DataDisplayProps<T = unknown> {
|
|
121
|
-
/** Data to display */
|
|
122
|
-
data: T;
|
|
123
|
-
/** Loading state */
|
|
124
|
-
loading?: boolean;
|
|
125
|
-
/** Error state */
|
|
126
|
-
error?: Error | null;
|
|
127
|
-
/** Empty state message */
|
|
128
|
-
emptyMessage?: string;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Props for layout components.
|
|
132
|
-
*/
|
|
133
|
-
interface LayoutProps {
|
|
134
|
-
/** Gap between items */
|
|
135
|
-
gap?: number | string;
|
|
136
|
-
/** Padding */
|
|
137
|
-
padding?: number | string;
|
|
138
|
-
/** Max width */
|
|
139
|
-
maxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | false;
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Extract variant props from cva definition.
|
|
143
|
-
*/
|
|
144
|
-
type ExtractVariantProps<T extends (...args: unknown[]) => unknown> = VariantProps<T>;
|
|
145
|
-
|
|
146
|
-
export type { ButtonVariant, CommonComponentProps, ComponentColor, ComponentSize, DataDisplayProps, ExtractVariantProps, FormFieldProps, InputProps, LayoutProps, PolymorphicComponentProps, SelectOption, SlotProps, WithIconProps };
|
|
6
|
+
import 'class-variance-authority';
|
|
7
|
+
import 'react';
|