vobi_document 1.0.0 → 1.0.2

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/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ComponentConfig, Config, Data, IframeConfig, ComponentData, Metadata } from '@puckeditor/core';
2
- export { ActionBar, ComponentData, Data, registerOverlayPortal, usePuck } from '@puckeditor/core';
2
+ export { ActionBar, ComponentData, Data, createUsePuck, registerOverlayPortal, useGetPuck, usePuck } from '@puckeditor/core';
3
3
  import * as react from 'react';
4
4
  import { ReactNode, ComponentType, CSSProperties, MutableRefObject } from 'react';
5
5
  import { ZodObject, ZodRawShape, z } from 'zod';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ComponentConfig, Config, Data, IframeConfig, ComponentData, Metadata } from '@puckeditor/core';
2
- export { ActionBar, ComponentData, Data, registerOverlayPortal, usePuck } from '@puckeditor/core';
2
+ export { ActionBar, ComponentData, Data, createUsePuck, registerOverlayPortal, useGetPuck, usePuck } from '@puckeditor/core';
3
3
  import * as react from 'react';
4
4
  import { ReactNode, ComponentType, CSSProperties, MutableRefObject } from 'react';
5
5
  import { ZodObject, ZodRawShape, z } from 'zod';
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { ActionBar, registerOverlayPortal, usePuck } from './chunk-SY4NYXKN.js';
1
+ export { ActionBar, createUsePuck, registerOverlayPortal, useGetPuck, usePuck } from './chunk-GVBGVF6Y.js';
2
2
  import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
3
3
  import styled6, { ServerStyleSheet } from 'styled-components';
4
4
  import e, { useRef, useMemo, useEffect, createContext, useContext, createElement, useState, useCallback, Fragment, useLayoutEffect } from 'react';
@@ -1523,7 +1523,7 @@ function ColorPicker({
1523
1523
  const wrapperRef = useRef(null);
1524
1524
  const effective = value ?? fallback ?? "#000000";
1525
1525
  if (presets.length % 6 !== 0) {
1526
- console.warn(`[document-generator] paleta com ${presets.length} cores n\xE3o fecha linhas de 6 (docs/theme.md).`);
1526
+ console.warn(`[vobi-document] paleta com ${presets.length} cores n\xE3o fecha linhas de 6 (docs/theme.md).`);
1527
1527
  }
1528
1528
  useEffect(() => {
1529
1529
  if (!open) return void 0;
@@ -2299,6 +2299,7 @@ var CoverFrame = styled6.div`
2299
2299
  font-family: ${(p2) => p2.$font};
2300
2300
  background: ${(p2) => p2.$bg ?? "#FFFFFF"};
2301
2301
  color: ${(p2) => p2.$color ?? "#111827"};
2302
+ overflow-wrap: break-word;
2302
2303
 
2303
2304
  [data-cover-field][contenteditable] {
2304
2305
  cursor: text;
@@ -2654,6 +2655,7 @@ var Head4 = styled6.div`
2654
2655
  var DateChip = styled6(CoverField)`
2655
2656
  display: inline-block;
2656
2657
  align-self: flex-start;
2658
+ max-width: 100%;
2657
2659
  background: ${(p2) => p2.$accent};
2658
2660
  border-radius: 1000px;
2659
2661
  padding: 1.18cqw 2.94cqw;
@@ -2664,6 +2666,7 @@ var DateChip = styled6(CoverField)`
2664
2666
  `;
2665
2667
  var Title4 = styled6(CoverField)`
2666
2668
  display: block;
2669
+ align-self: stretch;
2667
2670
  margin-top: 3.5cqw;
2668
2671
  font-size: 14.1cqw;
2669
2672
  font-weight: 300;
@@ -2678,6 +2681,7 @@ var Footer = styled6.div`
2678
2681
  `;
2679
2682
  var Party = styled6.div`
2680
2683
  flex: 1;
2684
+ min-width: 0;
2681
2685
  `;
2682
2686
  var Label3 = styled6.div`
2683
2687
  font-size: 3.53cqw;
@@ -2757,6 +2761,7 @@ var Logo5 = styled6(CoverLogoImg)`
2757
2761
  `;
2758
2762
  var TextCol = styled6.div`
2759
2763
  flex: 1;
2764
+ min-width: 0;
2760
2765
  `;
2761
2766
  var Title5 = styled6(CoverField)`
2762
2767
  display: block;