@levo-so/studio 0.1.7 → 0.1.8

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.
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as C, jsxs as a } from "react/jsx-runtime";
3
3
  import r from "react";
4
- import { m as c } from "./index-CS6HcUVk.js";
4
+ import { m as c } from "./index-2NFcpkxw.js";
5
5
  const h = r.memo(
6
6
  ({
7
7
  className: o,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as l, jsxs as w } from "react/jsx-runtime";
3
3
  import h from "react";
4
- import { m as x } from "./index-CS6HcUVk.js";
4
+ import { m as x } from "./index-2NFcpkxw.js";
5
5
  const g = h.memo(
6
6
  ({
7
7
  className: i,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  import o from "react";
4
- import { m as r } from "./index-CS6HcUVk.js";
4
+ import { m as r } from "./index-2NFcpkxw.js";
5
5
  const s = o.memo(
6
6
  ({
7
7
  className: e,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as o, jsxs as g } from "react/jsx-runtime";
3
3
  import r from "react";
4
- import { m as d } from "./index-CS6HcUVk.js";
4
+ import { m as d } from "./index-2NFcpkxw.js";
5
5
  const p = r.memo(
6
6
  ({
7
7
  className: e,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { jsx as e, jsxs as a } from "react/jsx-runtime";
3
3
  import u from "react";
4
- import { m as d } from "./index-CS6HcUVk.js";
4
+ import { m as d } from "./index-2NFcpkxw.js";
5
5
  const g = u.memo(
6
6
  ({
7
7
  className: p,
@@ -51,18 +51,62 @@ const g = u.memo(
51
51
  xmlns: "http://www.w3.org/2000/svg",
52
52
  children: [
53
53
  /* @__PURE__ */ a("defs", { children: [
54
- /* @__PURE__ */ a("linearGradient", { id: "waveGradient1", x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
55
- /* @__PURE__ */ e("stop", { offset: "0%", stopColor: o, stopOpacity: "0.3" }),
56
- /* @__PURE__ */ e("stop", { offset: "100%", stopColor: n, stopOpacity: "0.1" })
57
- ] }),
58
- /* @__PURE__ */ a("linearGradient", { id: "waveGradient2", x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
59
- /* @__PURE__ */ e("stop", { offset: "0%", stopColor: n, stopOpacity: "0.2" }),
60
- /* @__PURE__ */ e("stop", { offset: "100%", stopColor: o, stopOpacity: "0.05" })
61
- ] }),
62
- /* @__PURE__ */ a("linearGradient", { id: "waveGradient3", x1: "0%", y1: "0%", x2: "100%", y2: "100%", children: [
63
- /* @__PURE__ */ e("stop", { offset: "0%", stopColor: o, stopOpacity: "0.1" }),
64
- /* @__PURE__ */ e("stop", { offset: "100%", stopColor: n, stopOpacity: "0.3" })
65
- ] })
54
+ /* @__PURE__ */ a(
55
+ "linearGradient",
56
+ {
57
+ id: "waveGradient1",
58
+ x1: "0%",
59
+ y1: "0%",
60
+ x2: "100%",
61
+ y2: "100%",
62
+ children: [
63
+ /* @__PURE__ */ e("stop", { offset: "0%", stopColor: o, stopOpacity: "0.3" }),
64
+ /* @__PURE__ */ e(
65
+ "stop",
66
+ {
67
+ offset: "100%",
68
+ stopColor: n,
69
+ stopOpacity: "0.1"
70
+ }
71
+ )
72
+ ]
73
+ }
74
+ ),
75
+ /* @__PURE__ */ a(
76
+ "linearGradient",
77
+ {
78
+ id: "waveGradient2",
79
+ x1: "0%",
80
+ y1: "0%",
81
+ x2: "100%",
82
+ y2: "100%",
83
+ children: [
84
+ /* @__PURE__ */ e("stop", { offset: "0%", stopColor: n, stopOpacity: "0.2" }),
85
+ /* @__PURE__ */ e("stop", { offset: "100%", stopColor: o, stopOpacity: "0.05" })
86
+ ]
87
+ }
88
+ ),
89
+ /* @__PURE__ */ a(
90
+ "linearGradient",
91
+ {
92
+ id: "waveGradient3",
93
+ x1: "0%",
94
+ y1: "0%",
95
+ x2: "100%",
96
+ y2: "100%",
97
+ children: [
98
+ /* @__PURE__ */ e("stop", { offset: "0%", stopColor: o, stopOpacity: "0.1" }),
99
+ /* @__PURE__ */ e(
100
+ "stop",
101
+ {
102
+ offset: "100%",
103
+ stopColor: n,
104
+ stopOpacity: "0.3"
105
+ }
106
+ )
107
+ ]
108
+ }
109
+ )
66
110
  ] }),
67
111
  f.map((t) => /* @__PURE__ */ e(
68
112
  d.path,
@@ -4,4 +4,16 @@ export declare const DATA_ATTRIBUTES: {
4
4
  readonly ITEM: "data-levo_group_item";
5
5
  readonly GROUP: "data-levo_group";
6
6
  };
7
+ export declare const MESSAGE_TYPES: {
8
+ readonly PREVIEW_READY: "PREVIEW_READY";
9
+ readonly PREVIEW_HOVER: "PREVIEW_HOVER";
10
+ readonly PREVIEW_SELECT: "PREVIEW_SELECT";
11
+ readonly PREVIEW_MOUSE_LEAVE: "PREVIEW_MOUSE_LEAVE";
12
+ readonly STUDIO_SELECT: "STUDIO_SELECT";
13
+ readonly STUDIO_HOVER: "STUDIO_HOVER";
14
+ readonly PREVIEW_TYPE: "PREVIEW_TYPE";
15
+ readonly LEVO_PAGE_DATA: "LEVO_PAGE_DATA";
16
+ readonly LEVO_BLOCK_DATA: "LEVO_BLOCK_DATA";
17
+ readonly FRAME_HEIGHT: "FRAME_HEIGHT";
18
+ };
7
19
  //# sourceMappingURL=constants.d.ts.map
@@ -2,4 +2,5 @@ export * from './PreviewHighlighter';
2
2
  export * from './types';
3
3
  export * from './constants';
4
4
  export * from './StudioPreview';
5
+ export { MESSAGE_TYPES } from './constants';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -3,5 +3,6 @@ export declare function getElementCoordinates(element: HTMLElement): HighlightRe
3
3
  export declare function getSelectionFromElement(element: HTMLElement): ISelection | null;
4
4
  export declare function findElementBySelection(selection: ISelection): HTMLElement | null;
5
5
  export declare function createSelectionState(element: HTMLElement, type: "selected" | "hovered"): SelectionState;
6
+ export declare function findParentElement(currentSelections: SelectionState): HTMLElement | null;
6
7
  export declare function updateSelectionRects(selections: SelectionState): SelectionState;
7
8
  //# sourceMappingURL=utils.d.ts.map
@@ -2,7 +2,7 @@ interface IAccessCardProps {
2
2
  logo?: string;
3
3
  siteName?: string;
4
4
  children: React.ReactNode;
5
- maxWidth?: 'sm' | 'md' | 'lg';
5
+ maxWidth?: "sm" | "md" | "lg";
6
6
  className?: string;
7
7
  }
8
8
  declare const AccessCard: React.FC<IAccessCardProps>;
@@ -5,6 +5,6 @@ interface BackgroundGradientProps {
5
5
  toColor?: string;
6
6
  direction?: string;
7
7
  }
8
- export declare const BackgroundGradient: React.MemoExoticComponent<({ className, fromColor, toColor, direction }: BackgroundGradientProps) => import("react/jsx-runtime").JSX.Element>;
8
+ export declare const BackgroundGradient: React.MemoExoticComponent<({ className, fromColor, toColor, direction, }: BackgroundGradientProps) => import("react/jsx-runtime").JSX.Element>;
9
9
  export {};
10
10
  //# sourceMappingURL=Gradient.d.ts.map
@@ -6,5 +6,5 @@
6
6
  */
7
7
  export { BUILT_IN_PRESETS, PRESET_CATEGORIES, PRESET_MAP, getPresetsByCategory, getAvailableCategories, } from './presets';
8
8
  export { getEffectConfigFromPresetId, type PresetOperationResult, } from './presetUtils';
9
- export type { BackgroundPreset, BackgroundEffectConfig } from '../../interfaces';
9
+ export type { BackgroundPreset, BackgroundEffectConfig, } from '../../interfaces';
10
10
  //# sourceMappingURL=presetSystem.d.ts.map
@@ -1,6 +1,7 @@
1
1
  import { BaseElementProps } from '../components/withBlockProps';
2
2
  interface BaseContainerProps extends BaseElementProps, Omit<React.HTMLAttributes<HTMLDivElement>, "content"> {
3
3
  }
4
+ export declare const BaseContainer: import('react').ForwardRefExoticComponent<BaseContainerProps & import('react').RefAttributes<HTMLDivElement>>;
4
5
  export declare const Container: import('../components/withBlockProps').WithBlockPropsComponent<BaseContainerProps & import('react').RefAttributes<HTMLDivElement>>;
5
6
  export default Container;
6
7
  //# sourceMappingURL=Container.d.ts.map
@@ -1,6 +1,6 @@
1
+ import { Accordion as AccordionPrimitive } from 'radix-ui';
1
2
  import { BaseElementProps } from '../../components/withBlockProps';
2
3
  import * as React from "react";
3
- import * as AccordionPrimitive from "@radix-ui/react-accordion";
4
4
  type TypeAccordionComponentProps = React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;
5
5
  interface BaseAccordionRootProps extends BaseElementProps, Omit<TypeAccordionComponentProps, "content"> {
6
6
  }
@@ -1,5 +1,5 @@
1
+ import { Dialog as DialogPrimitive } from 'radix-ui';
1
2
  import * as React from "react";
2
- import * as DialogPrimitive from "@radix-ui/react-dialog";
3
3
  declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
4
  declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
5
  declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
+ import { Popover as PopoverPrimitive } from 'radix-ui';
1
2
  import { BaseElementProps } from '../../components/withBlockProps';
2
- import * as PopoverPrimitive from "@radix-ui/react-popover";
3
3
  import * as React from "react";
4
4
  declare const PopoverRoot: React.FC<PopoverPrimitive.PopoverProps>;
5
5
  type TypePopoverTriggerComponentProps = React.ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger>;