@newtonedev/editor 0.1.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/Editor.d.ts +3 -0
- package/dist/Editor.d.ts.map +1 -0
- package/dist/components/CodeBlock.d.ts +7 -0
- package/dist/components/CodeBlock.d.ts.map +1 -0
- package/dist/components/EditorHeader.d.ts +16 -0
- package/dist/components/EditorHeader.d.ts.map +1 -0
- package/dist/components/EditorShell.d.ts +10 -0
- package/dist/components/EditorShell.d.ts.map +1 -0
- package/dist/components/FontPicker.d.ts +11 -0
- package/dist/components/FontPicker.d.ts.map +1 -0
- package/dist/components/PresetSelector.d.ts +14 -0
- package/dist/components/PresetSelector.d.ts.map +1 -0
- package/dist/components/PreviewWindow.d.ts +11 -0
- package/dist/components/PreviewWindow.d.ts.map +1 -0
- package/dist/components/RightSidebar.d.ts +12 -0
- package/dist/components/RightSidebar.d.ts.map +1 -0
- package/dist/components/Sidebar.d.ts +25 -0
- package/dist/components/Sidebar.d.ts.map +1 -0
- package/dist/components/TableOfContents.d.ts +9 -0
- package/dist/components/TableOfContents.d.ts.map +1 -0
- package/dist/components/ThemeBar.d.ts +8 -0
- package/dist/components/ThemeBar.d.ts.map +1 -0
- package/dist/components/sections/ColorsSection.d.ts +14 -0
- package/dist/components/sections/ColorsSection.d.ts.map +1 -0
- package/dist/components/sections/DynamicRangeSection.d.ts +9 -0
- package/dist/components/sections/DynamicRangeSection.d.ts.map +1 -0
- package/dist/components/sections/FontsSection.d.ts +9 -0
- package/dist/components/sections/FontsSection.d.ts.map +1 -0
- package/dist/components/sections/IconsSection.d.ts +9 -0
- package/dist/components/sections/IconsSection.d.ts.map +1 -0
- package/dist/components/sections/OthersSection.d.ts +9 -0
- package/dist/components/sections/OthersSection.d.ts.map +1 -0
- package/dist/components/sections/index.d.ts +6 -0
- package/dist/components/sections/index.d.ts.map +1 -0
- package/dist/hooks/useEditorState.d.ts +53 -0
- package/dist/hooks/useEditorState.d.ts.map +1 -0
- package/dist/hooks/useHover.d.ts +8 -0
- package/dist/hooks/useHover.d.ts.map +1 -0
- package/dist/hooks/usePresets.d.ts +33 -0
- package/dist/hooks/usePresets.d.ts.map +1 -0
- package/dist/index.cjs +3846 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3819 -0
- package/dist/index.js.map +1 -0
- package/dist/preview/CategoryView.d.ts +7 -0
- package/dist/preview/CategoryView.d.ts.map +1 -0
- package/dist/preview/ComponentDetailView.d.ts +9 -0
- package/dist/preview/ComponentDetailView.d.ts.map +1 -0
- package/dist/preview/ComponentRenderer.d.ts +7 -0
- package/dist/preview/ComponentRenderer.d.ts.map +1 -0
- package/dist/preview/OverviewView.d.ts +7 -0
- package/dist/preview/OverviewView.d.ts.map +1 -0
- package/dist/types.d.ts +69 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils/presets.d.ts +5 -0
- package/dist/utils/presets.d.ts.map +1 -0
- package/package.json +51 -0
- package/src/Editor.tsx +128 -0
- package/src/components/CodeBlock.tsx +58 -0
- package/src/components/EditorHeader.tsx +86 -0
- package/src/components/EditorShell.tsx +67 -0
- package/src/components/FontPicker.tsx +351 -0
- package/src/components/PresetSelector.tsx +455 -0
- package/src/components/PreviewWindow.tsx +69 -0
- package/src/components/RightSidebar.tsx +374 -0
- package/src/components/Sidebar.tsx +332 -0
- package/src/components/TableOfContents.tsx +152 -0
- package/src/components/ThemeBar.tsx +76 -0
- package/src/components/sections/ColorsSection.tsx +485 -0
- package/src/components/sections/DynamicRangeSection.tsx +399 -0
- package/src/components/sections/FontsSection.tsx +132 -0
- package/src/components/sections/IconsSection.tsx +66 -0
- package/src/components/sections/OthersSection.tsx +70 -0
- package/src/components/sections/index.ts +5 -0
- package/src/hooks/useEditorState.ts +381 -0
- package/src/hooks/useHover.ts +8 -0
- package/src/hooks/usePresets.ts +254 -0
- package/src/index.ts +52 -0
- package/src/preview/CategoryView.tsx +134 -0
- package/src/preview/ComponentDetailView.tsx +126 -0
- package/src/preview/ComponentRenderer.tsx +107 -0
- package/src/preview/OverviewView.tsx +177 -0
- package/src/types.ts +77 -0
- package/src/utils/presets.ts +24 -0
package/dist/Editor.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { EditorProps } from "./types";
|
|
2
|
+
export declare function Editor({ initialState, initialIsPublished, initialPresets, initialActivePresetId, initialPublishedPresetId, defaultState, chromeThemeConfig, persistence, headerSlots, onNavigate, initialPreviewView, }: EditorProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=Editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Editor.d.ts","sourceRoot":"","sources":["../src/Editor.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,wBAAgB,MAAM,CAAC,EACrB,YAAY,EACZ,kBAAkB,EAClB,cAAc,EACd,qBAAqB,EACrB,wBAAwB,EACxB,YAAY,EACZ,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,UAAU,EACV,kBAAkB,GACnB,EAAE,WAAW,2CAwGb"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function CopyButton({ text }: {
|
|
2
|
+
readonly text: string;
|
|
3
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function CodeBlock({ code, }: {
|
|
5
|
+
readonly code: string;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=CodeBlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeBlock.d.ts","sourceRoot":"","sources":["../../src/components/CodeBlock.tsx"],"names":[],"mappings":"AAIA,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,2CAc7D;AAED,wBAAgB,SAAS,CAAC,EACxB,IAAI,GACL,EAAE;IACD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,2CAiCA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { SaveStatus } from "../types";
|
|
3
|
+
interface EditorHeaderProps {
|
|
4
|
+
readonly saveStatus: SaveStatus;
|
|
5
|
+
readonly isPublished: boolean;
|
|
6
|
+
readonly publishing: boolean;
|
|
7
|
+
readonly onPublish: () => void;
|
|
8
|
+
readonly onRetry: () => void;
|
|
9
|
+
readonly headerSlots?: {
|
|
10
|
+
readonly left?: ReactNode;
|
|
11
|
+
readonly right?: ReactNode;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export declare function EditorHeader({ saveStatus, isPublished, publishing, onPublish, onRetry, headerSlots, }: EditorHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=EditorHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorHeader.d.ts","sourceRoot":"","sources":["../../src/components/EditorHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,UAAU,iBAAiB;IACzB,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAChC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,SAAS,EAAE,MAAM,IAAI,CAAC;IAC/B,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;IAC7B,QAAQ,CAAC,WAAW,CAAC,EAAE;QACrB,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;QAC1B,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;KAC5B,CAAC;CACH;AASD,wBAAgB,YAAY,CAAC,EAC3B,UAAU,EACV,WAAW,EACX,UAAU,EACV,SAAS,EACT,OAAO,EACP,WAAW,GACZ,EAAE,iBAAiB,2CAsDnB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
interface EditorShellProps {
|
|
3
|
+
readonly sidebar: ReactNode;
|
|
4
|
+
readonly navbar: ReactNode;
|
|
5
|
+
readonly content: ReactNode;
|
|
6
|
+
readonly rightPanel: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare function EditorShell({ sidebar, navbar, content, rightPanel, }: EditorShellProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=EditorShell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditorShell.d.ts","sourceRoot":"","sources":["../../src/components/EditorShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,UAAU,gBAAgB;IACxB,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;IAC5B,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC;CAChC;AAED,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,MAAM,EACN,OAAO,EACP,UAAU,GACX,EAAE,gBAAgB,2CAgDlB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { FontConfig } from "@newtonedev/components";
|
|
2
|
+
type FontSlot = "default" | "display" | "mono";
|
|
3
|
+
interface FontPickerProps {
|
|
4
|
+
readonly label: string;
|
|
5
|
+
readonly slot: FontSlot;
|
|
6
|
+
readonly currentFont: FontConfig;
|
|
7
|
+
readonly onSelect: (font: FontConfig) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function FontPicker({ label, slot, currentFont, onSelect, }: FontPickerProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=FontPicker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FontPicker.d.ts","sourceRoot":"","sources":["../../src/components/FontPicker.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAoC,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAG3F,KAAK,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;AAE/C,UAAU,eAAe;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,WAAW,EAAE,UAAU,CAAC;IACjC,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;CAC/C;AAqDD,wBAAgB,UAAU,CAAC,EACzB,KAAK,EACL,IAAI,EACJ,WAAW,EACX,QAAQ,GACT,EAAE,eAAe,2CAsOjB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Preset } from "../types";
|
|
2
|
+
interface PresetSelectorProps {
|
|
3
|
+
readonly presets: readonly Preset[];
|
|
4
|
+
readonly activePresetId: string;
|
|
5
|
+
readonly publishedPresetId: string | null;
|
|
6
|
+
readonly onSwitchPreset: (presetId: string) => void;
|
|
7
|
+
readonly onCreatePreset: (name: string) => Promise<string>;
|
|
8
|
+
readonly onRenamePreset: (presetId: string, name: string) => void;
|
|
9
|
+
readonly onDeletePreset: (presetId: string) => Promise<void>;
|
|
10
|
+
readonly onDuplicatePreset: (presetId: string, name: string) => Promise<string>;
|
|
11
|
+
}
|
|
12
|
+
export declare function PresetSelector({ presets, activePresetId, publishedPresetId, onSwitchPreset, onCreatePreset, onRenamePreset, onDeletePreset, onDuplicatePreset, }: PresetSelectorProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=PresetSelector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PresetSelector.d.ts","sourceRoot":"","sources":["../../src/components/PresetSelector.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGvC,UAAU,mBAAmB;IAC3B,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,QAAQ,CAAC,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD,QAAQ,CAAC,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAC3D,QAAQ,CAAC,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClE,QAAQ,CAAC,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7D,QAAQ,CAAC,iBAAiB,EAAE,CAC1B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,KACT,OAAO,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,iBAAiB,GAClB,EAAE,mBAAmB,2CAyarB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { PreviewView } from "../types";
|
|
2
|
+
interface PreviewWindowProps {
|
|
3
|
+
readonly view: PreviewView;
|
|
4
|
+
readonly selectedVariantId: string | null;
|
|
5
|
+
readonly propOverrides?: Record<string, unknown>;
|
|
6
|
+
readonly onNavigate: (view: PreviewView) => void;
|
|
7
|
+
readonly onSelectVariant: (variantId: string) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare function PreviewWindow({ view, selectedVariantId, propOverrides, onNavigate, onSelectVariant, }: PreviewWindowProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=PreviewWindow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PreviewWindow.d.ts","sourceRoot":"","sources":["../../src/components/PreviewWindow.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjD,QAAQ,CAAC,UAAU,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IACjD,QAAQ,CAAC,eAAe,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CACvD;AAED,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,iBAAiB,EACjB,aAAa,EACb,UAAU,EACV,eAAe,GAChB,EAAE,kBAAkB,2CA8CpB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { SidebarSelection } from "../types";
|
|
2
|
+
interface RightSidebarProps {
|
|
3
|
+
readonly selection: SidebarSelection;
|
|
4
|
+
readonly propOverrides: Record<string, unknown>;
|
|
5
|
+
readonly onPropOverride: (name: string, value: unknown) => void;
|
|
6
|
+
readonly onResetOverrides: () => void;
|
|
7
|
+
readonly onClose: () => void;
|
|
8
|
+
readonly onScopeToComponent: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function RightSidebar({ selection, propOverrides, onPropOverride, onResetOverrides, onClose, onScopeToComponent, }: RightSidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=RightSidebar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RightSidebar.d.ts","sourceRoot":"","sources":["../../src/components/RightSidebar.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjD,UAAU,iBAAiB;IACzB,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAC;IACrC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChD,QAAQ,CAAC,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAChE,QAAQ,CAAC,gBAAgB,EAAE,MAAM,IAAI,CAAC;IACtC,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;IAC7B,QAAQ,CAAC,kBAAkB,EAAE,MAAM,IAAI,CAAC;CACzC;AAED,wBAAgB,YAAY,CAAC,EAC3B,SAAS,EACT,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,OAAO,EACP,kBAAkB,GACnB,EAAE,iBAAiB,2CAuMnB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ColorMode } from "@newtonedev/components";
|
|
2
|
+
import type { ColorResult } from "newtone";
|
|
3
|
+
import type { ConfiguratorState } from "@newtonedev/configurator";
|
|
4
|
+
import type { ConfiguratorAction } from "@newtonedev/configurator";
|
|
5
|
+
import type { Preset } from "../types";
|
|
6
|
+
interface SidebarProps {
|
|
7
|
+
readonly state: ConfiguratorState;
|
|
8
|
+
readonly dispatch: (action: ConfiguratorAction) => void;
|
|
9
|
+
readonly previewColors: readonly (readonly ColorResult[])[];
|
|
10
|
+
readonly isDirty: boolean;
|
|
11
|
+
readonly onRevert: () => void;
|
|
12
|
+
readonly presets: readonly Preset[];
|
|
13
|
+
readonly activePresetId: string;
|
|
14
|
+
readonly publishedPresetId: string | null;
|
|
15
|
+
readonly onSwitchPreset: (presetId: string) => void;
|
|
16
|
+
readonly onCreatePreset: (name: string) => Promise<string>;
|
|
17
|
+
readonly onRenamePreset: (presetId: string, name: string) => void;
|
|
18
|
+
readonly onDeletePreset: (presetId: string) => Promise<void>;
|
|
19
|
+
readonly onDuplicatePreset: (presetId: string, name: string) => Promise<string>;
|
|
20
|
+
readonly colorMode: ColorMode;
|
|
21
|
+
readonly onColorModeChange: (mode: ColorMode) => void;
|
|
22
|
+
}
|
|
23
|
+
export declare function Sidebar({ state, dispatch, previewColors, isDirty, onRevert, presets, activePresetId, publishedPresetId, onSwitchPreset, onCreatePreset, onRenamePreset, onDeletePreset, onDuplicatePreset, colorMode, onColorModeChange, }: SidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=Sidebar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../src/components/Sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AASnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAsFvC,UAAU,YAAY;IACpB,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACxD,QAAQ,CAAC,aAAa,EAAE,SAAS,CAAC,SAAS,WAAW,EAAE,CAAC,EAAE,CAAC;IAC5D,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,IAAI,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,QAAQ,CAAC,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD,QAAQ,CAAC,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IAC3D,QAAQ,CAAC,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClE,QAAQ,CAAC,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7D,QAAQ,CAAC,iBAAiB,EAAE,CAC1B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,KACT,OAAO,CAAC,MAAM,CAAC,CAAC;IACrB,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,iBAAiB,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;CACvD;AAED,wBAAgB,OAAO,CAAC,EACtB,KAAK,EACL,QAAQ,EACR,aAAa,EACb,OAAO,EACP,QAAQ,EACR,OAAO,EACP,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,SAAS,EACT,iBAAiB,GAClB,EAAE,YAAY,2CAiMd"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { PreviewView } from "../types";
|
|
2
|
+
interface TableOfContentsProps {
|
|
3
|
+
readonly activeView: PreviewView;
|
|
4
|
+
readonly selectedComponentId: string | null;
|
|
5
|
+
readonly onNavigate: (view: PreviewView) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function TableOfContents({ activeView, selectedComponentId, onNavigate, }: TableOfContentsProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=TableOfContents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableOfContents.d.ts","sourceRoot":"","sources":["../../src/components/TableOfContents.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC;IACjC,QAAQ,CAAC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5C,QAAQ,CAAC,UAAU,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;CAClD;AAID,wBAAgB,eAAe,CAAC,EAC9B,UAAU,EACV,mBAAmB,EACnB,UAAU,GACX,EAAE,oBAAoB,2CAkItB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ThemeName } from "../types";
|
|
2
|
+
interface ThemeBarProps {
|
|
3
|
+
readonly activeTheme: ThemeName;
|
|
4
|
+
readonly onThemeChange: (theme: ThemeName) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function ThemeBar({ activeTheme, onThemeChange }: ThemeBarProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=ThemeBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThemeBar.d.ts","sourceRoot":"","sources":["../../src/components/ThemeBar.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,UAAU,aAAa;IACrB,QAAQ,CAAC,WAAW,EAAE,SAAS,CAAC;IAChC,QAAQ,CAAC,aAAa,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;CACpD;AASD,wBAAgB,QAAQ,CAAC,EAAE,WAAW,EAAE,aAAa,EAAE,EAAE,aAAa,2CA0DrE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ColorMode } from "@newtonedev/components";
|
|
2
|
+
import type { ColorResult } from "newtone";
|
|
3
|
+
import type { ConfiguratorState } from "@newtonedev/configurator";
|
|
4
|
+
import type { ConfiguratorAction } from "@newtonedev/configurator";
|
|
5
|
+
interface ColorsSectionProps {
|
|
6
|
+
readonly state: ConfiguratorState;
|
|
7
|
+
readonly dispatch: (action: ConfiguratorAction) => void;
|
|
8
|
+
readonly previewColors: readonly (readonly ColorResult[])[];
|
|
9
|
+
readonly colorMode: ColorMode;
|
|
10
|
+
readonly onColorModeChange: (mode: ColorMode) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function ColorsSection({ state, dispatch, previewColors, colorMode, onColorModeChange, }: ColorsSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=ColorsSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorsSection.d.ts","sourceRoot":"","sources":["../../../src/components/sections/ColorsSection.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,KAAK,EAAE,WAAW,EAAgB,MAAM,SAAS,CAAC;AAEzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAenE,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACxD,QAAQ,CAAC,aAAa,EAAE,SAAS,CAAC,SAAS,WAAW,EAAE,CAAC,EAAE,CAAC;IAC5D,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B,QAAQ,CAAC,iBAAiB,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;CACvD;AAYD,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,QAAQ,EACR,aAAa,EACb,SAAS,EACT,iBAAiB,GAClB,EAAE,kBAAkB,2CA8apB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ConfiguratorState } from "@newtonedev/configurator";
|
|
2
|
+
import type { ConfiguratorAction } from "@newtonedev/configurator";
|
|
3
|
+
interface DynamicRangeSectionProps {
|
|
4
|
+
readonly state: ConfiguratorState;
|
|
5
|
+
readonly dispatch: (action: ConfiguratorAction) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function DynamicRangeSection({ state, dispatch, }: DynamicRangeSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=DynamicRangeSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DynamicRangeSection.d.ts","sourceRoot":"","sources":["../../../src/components/sections/DynamicRangeSection.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAuQnE,UAAU,wBAAwB;IAChC,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACzD;AAED,wBAAgB,mBAAmB,CAAC,EAClC,KAAK,EACL,QAAQ,GACT,EAAE,wBAAwB,2CA0H1B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ConfiguratorState } from "@newtonedev/configurator";
|
|
2
|
+
import type { ConfiguratorAction } from "@newtonedev/configurator";
|
|
3
|
+
interface FontsSectionProps {
|
|
4
|
+
readonly state: ConfiguratorState;
|
|
5
|
+
readonly dispatch: (action: ConfiguratorAction) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function FontsSection({ state, dispatch }: FontsSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=FontsSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FontsSection.d.ts","sourceRoot":"","sources":["../../../src/components/sections/FontsSection.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAuBnE,UAAU,iBAAiB;IACzB,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACzD;AAED,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,iBAAiB,2CAmGlE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ConfiguratorState } from "@newtonedev/configurator";
|
|
2
|
+
import type { ConfiguratorAction } from "@newtonedev/configurator";
|
|
3
|
+
interface IconsSectionProps {
|
|
4
|
+
readonly state: ConfiguratorState;
|
|
5
|
+
readonly dispatch: (action: ConfiguratorAction) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function IconsSection({ state, dispatch }: IconsSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=IconsSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconsSection.d.ts","sourceRoot":"","sources":["../../../src/components/sections/IconsSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAkBnE,UAAU,iBAAiB;IACzB,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACzD;AAED,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,iBAAiB,2CAwClE"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ConfiguratorState } from "@newtonedev/configurator";
|
|
2
|
+
import type { ConfiguratorAction } from "@newtonedev/configurator";
|
|
3
|
+
interface OthersSectionProps {
|
|
4
|
+
readonly state: ConfiguratorState;
|
|
5
|
+
readonly dispatch: (action: ConfiguratorAction) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function OthersSection({ state, dispatch }: OthersSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=OthersSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OthersSection.d.ts","sourceRoot":"","sources":["../../../src/components/sections/OthersSection.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAEnE,UAAU,kBAAkB;IAC1B,QAAQ,CAAC,KAAK,EAAE,iBAAiB,CAAC;IAClC,QAAQ,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;CACzD;AAED,wBAAgB,aAAa,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,kBAAkB,2CA2DpE"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { ColorsSection } from "./ColorsSection";
|
|
2
|
+
export { DynamicRangeSection } from "./DynamicRangeSection";
|
|
3
|
+
export { IconsSection } from "./IconsSection";
|
|
4
|
+
export { FontsSection } from "./FontsSection";
|
|
5
|
+
export { OthersSection } from "./OthersSection";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/sections/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { ColorMode } from "@newtonedev/components";
|
|
2
|
+
import type { ConfiguratorState } from "@newtonedev/configurator";
|
|
3
|
+
import type { Preset, SaveStatus, ThemeName, PreviewView, SidebarSelection, EditorPersistence } from "../types";
|
|
4
|
+
interface UseEditorStateOptions {
|
|
5
|
+
readonly initialState: ConfiguratorState;
|
|
6
|
+
readonly initialIsPublished: boolean;
|
|
7
|
+
readonly initialPresets: readonly Preset[];
|
|
8
|
+
readonly initialActivePresetId: string;
|
|
9
|
+
readonly initialPublishedPresetId: string | null;
|
|
10
|
+
readonly defaultState: ConfiguratorState;
|
|
11
|
+
readonly persistence: EditorPersistence;
|
|
12
|
+
readonly onNavigate?: (view: PreviewView) => void;
|
|
13
|
+
readonly initialPreviewView?: PreviewView;
|
|
14
|
+
}
|
|
15
|
+
export declare function useEditorState({ initialState, initialIsPublished, initialPresets, initialActivePresetId, initialPublishedPresetId, defaultState, persistence, onNavigate, initialPreviewView, }: UseEditorStateOptions): {
|
|
16
|
+
readonly configuratorState: ConfiguratorState;
|
|
17
|
+
readonly dispatch: (action: import("@newtonedev/configurator").ConfiguratorAction) => void;
|
|
18
|
+
readonly themeConfig: import("@newtonedev/components").NewtoneThemeConfig;
|
|
19
|
+
readonly previewColors: readonly (readonly import("@newtonedev/components").ColorResult[])[];
|
|
20
|
+
readonly saveStatus: SaveStatus;
|
|
21
|
+
readonly isPublished: boolean;
|
|
22
|
+
readonly publishing: boolean;
|
|
23
|
+
readonly handlePublish: () => Promise<void>;
|
|
24
|
+
readonly saveDraft: (state: ConfiguratorState) => Promise<void>;
|
|
25
|
+
readonly previewView: PreviewView;
|
|
26
|
+
readonly colorMode: ColorMode;
|
|
27
|
+
readonly activeTheme: ThemeName;
|
|
28
|
+
readonly handlePreviewNavigate: (view: PreviewView) => void;
|
|
29
|
+
readonly handleSelectVariant: (variantId: string) => void;
|
|
30
|
+
readonly handleThemeChange: (theme: ThemeName) => void;
|
|
31
|
+
readonly handleColorModeChange: (mode: ColorMode) => void;
|
|
32
|
+
readonly sidebarSelection: SidebarSelection;
|
|
33
|
+
readonly selectedComponentId: string | null;
|
|
34
|
+
readonly selectedVariantId: string | null;
|
|
35
|
+
readonly propOverrides: Record<string, unknown>;
|
|
36
|
+
readonly handlePropOverride: (propName: string, value: unknown) => void;
|
|
37
|
+
readonly handleResetOverrides: () => void;
|
|
38
|
+
readonly handleCloseSidebar: () => void;
|
|
39
|
+
readonly handleScopeToComponent: () => void;
|
|
40
|
+
readonly presets: readonly Preset[];
|
|
41
|
+
readonly activePresetId: string;
|
|
42
|
+
readonly publishedPresetId: string | null;
|
|
43
|
+
readonly switchPreset: (presetId: string) => Promise<void>;
|
|
44
|
+
readonly createPreset: (name: string) => Promise<string>;
|
|
45
|
+
readonly renamePreset: (presetId: string, name: string) => void;
|
|
46
|
+
readonly deletePreset: (presetId: string) => Promise<void>;
|
|
47
|
+
readonly duplicatePreset: (presetId: string, newName: string) => Promise<string>;
|
|
48
|
+
readonly isDirty: boolean;
|
|
49
|
+
readonly handleRevert: () => void;
|
|
50
|
+
readonly latestStateRef: import("react").MutableRefObject<ConfiguratorState>;
|
|
51
|
+
};
|
|
52
|
+
export {};
|
|
53
|
+
//# sourceMappingURL=useEditorState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEditorState.d.ts","sourceRoot":"","sources":["../../src/hooks/useEditorState.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,OAAO,KAAK,EACV,MAAM,EACN,UAAU,EACV,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAElB,UAAU,qBAAqB;IAC7B,QAAQ,CAAC,YAAY,EAAE,iBAAiB,CAAC;IACzC,QAAQ,CAAC,kBAAkB,EAAE,OAAO,CAAC;IACrC,QAAQ,CAAC,cAAc,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3C,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,wBAAwB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjD,QAAQ,CAAC,YAAY,EAAE,iBAAiB,CAAC;IACzC,QAAQ,CAAC,WAAW,EAAE,iBAAiB,CAAC;IACxC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;IAClD,QAAQ,CAAC,kBAAkB,CAAC,EAAE,WAAW,CAAC;CAC3C;AAED,wBAAgB,cAAc,CAAC,EAC7B,YAAY,EACZ,kBAAkB,EAClB,cAAc,EACd,qBAAqB,EACrB,wBAAwB,EACxB,YAAY,EACZ,WAAW,EACX,UAAU,EACV,kBAAkB,GACnB,EAAE,qBAAqB;;;;;;;;;gCA0LN,iBAAiB;;;;2CA/DxB,WAAW;8CAmBN,MAAM;wCA+EV,SAAS;2CAQV,SAAS;;;;;4CA3DgC,MAAM,SAAS,OAAO;;;;;;;;;;;;;;;EA6KzE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useHover.d.ts","sourceRoot":"","sources":["../../src/hooks/useHover.ts"],"names":[],"mappings":"AAEA,wBAAgB,QAAQ;;;;;;EAKvB"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ConfiguratorState } from "@newtonedev/configurator";
|
|
2
|
+
import type { Preset } from "../types";
|
|
3
|
+
interface UsePresetsOptions {
|
|
4
|
+
readonly initialPresets: readonly Preset[];
|
|
5
|
+
readonly initialActivePresetId: string;
|
|
6
|
+
readonly initialPublishedPresetId: string | null;
|
|
7
|
+
readonly defaultState: ConfiguratorState;
|
|
8
|
+
readonly onPresetSwitch: (newState: ConfiguratorState) => void;
|
|
9
|
+
readonly getCurrentState: () => ConfiguratorState;
|
|
10
|
+
readonly flushPendingSave: () => Promise<void>;
|
|
11
|
+
readonly persistPresets: (params: {
|
|
12
|
+
readonly presets: readonly Preset[];
|
|
13
|
+
readonly activePresetId: string;
|
|
14
|
+
readonly publishedPresetId: string | null;
|
|
15
|
+
}) => Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
interface UsePresetsReturn {
|
|
18
|
+
readonly presets: readonly Preset[];
|
|
19
|
+
readonly activePresetId: string;
|
|
20
|
+
readonly publishedPresetId: string | null;
|
|
21
|
+
readonly activePreset: Preset;
|
|
22
|
+
readonly switchPreset: (presetId: string) => Promise<void>;
|
|
23
|
+
readonly createPreset: (name: string) => Promise<string>;
|
|
24
|
+
readonly renamePreset: (presetId: string, name: string) => void;
|
|
25
|
+
readonly deletePreset: (presetId: string) => Promise<void>;
|
|
26
|
+
readonly duplicatePreset: (presetId: string, newName: string) => Promise<string>;
|
|
27
|
+
readonly updateActivePresetDraftState: (state: ConfiguratorState) => readonly Preset[];
|
|
28
|
+
readonly publishActivePreset: (state: ConfiguratorState) => readonly Preset[];
|
|
29
|
+
readonly revertActivePreset: () => ConfiguratorState | null;
|
|
30
|
+
}
|
|
31
|
+
export declare function usePresets({ initialPresets, initialActivePresetId, initialPublishedPresetId, defaultState, onPresetSwitch, getCurrentState, flushPendingSave, persistPresets, }: UsePresetsOptions): UsePresetsReturn;
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=usePresets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePresets.d.ts","sourceRoot":"","sources":["../../src/hooks/usePresets.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,UAAU,iBAAiB;IACzB,QAAQ,CAAC,cAAc,EAAE,SAAS,MAAM,EAAE,CAAC;IAC3C,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,wBAAwB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjD,QAAQ,CAAC,YAAY,EAAE,iBAAiB,CAAC;IACzC,QAAQ,CAAC,cAAc,EAAE,CAAC,QAAQ,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC/D,QAAQ,CAAC,eAAe,EAAE,MAAM,iBAAiB,CAAC;IAClD,QAAQ,CAAC,gBAAgB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/C,QAAQ,CAAC,cAAc,EAAE,CAAC,MAAM,EAAE;QAChC,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;QACpC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;QAChC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;KAC3C,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACrB;AAED,UAAU,gBAAgB;IACxB,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3D,QAAQ,CAAC,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;IACzD,QAAQ,CAAC,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChE,QAAQ,CAAC,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3D,QAAQ,CAAC,eAAe,EAAE,CACxB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,KACZ,OAAO,CAAC,MAAM,CAAC,CAAC;IACrB,QAAQ,CAAC,4BAA4B,EAAE,CACrC,KAAK,EAAE,iBAAiB,KACrB,SAAS,MAAM,EAAE,CAAC;IACvB,QAAQ,CAAC,mBAAmB,EAAE,CAC5B,KAAK,EAAE,iBAAiB,KACrB,SAAS,MAAM,EAAE,CAAC;IACvB,QAAQ,CAAC,kBAAkB,EAAE,MAAM,iBAAiB,GAAG,IAAI,CAAC;CAC7D;AAED,wBAAgB,UAAU,CAAC,EACzB,cAAc,EACd,qBAAqB,EACrB,wBAAwB,EACxB,YAAY,EACZ,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,cAAc,GACf,EAAE,iBAAiB,GAAG,gBAAgB,CA2MtC"}
|