@deneb-ui/ui 2.0.12 → 2.0.14

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.
@@ -16,8 +16,7 @@ export interface DialogProps extends React.HTMLAttributes<HTMLDivElement> {
16
16
  * and optional live visual editing for title and description.
17
17
  */
18
18
  export declare function EditableDialog({ open, onClose, title, description, titleFieldPath, descriptionFieldPath, size, showCloseButton, footerSlot, children, className, style, ...props }: DialogProps): React.JSX.Element | null;
19
- export interface DialogContentProps extends React.HTMLAttributes<HTMLDivElement> {
20
- }
19
+ export type DialogContentProps = React.HTMLAttributes<HTMLDivElement>;
21
20
  export declare function DialogHeader({ className, style, children, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
22
21
  export declare function DialogTitle({ className, style, children, ...props }: React.HTMLAttributes<HTMLHeadingElement>): React.JSX.Element;
23
22
  export declare function DialogDescription({ className, style, children, ...props }: React.HTMLAttributes<HTMLParagraphElement>): React.JSX.Element;
@@ -301,11 +301,12 @@ function getFieldStyle(content, path) {
301
301
  }
302
302
  function useFieldStyle(path) {
303
303
  const siteData = useSiteData();
304
+ const content = siteData?.content;
304
305
  return (0, react_1.useMemo)(() => {
305
- if (!path || !siteData?.content)
306
+ if (!path || !content)
306
307
  return null;
307
- return getFieldStyle(siteData.content, path);
308
- }, [siteData?.content, path]);
308
+ return getFieldStyle(content, path);
309
+ }, [content, path]);
309
310
  }
310
311
  /**
311
312
  * Official DENEB UI data aliases for modern storefront development.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deneb-ui/ui",
3
- "version": "2.0.12",
3
+ "version": "2.0.14",
4
4
  "description": "DENEB UI - The premier visual-first React component framework for the modern web. Created by Chamika Gayashan & Induranga Kawishwara.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",