react-smart-copy 1.24.0 → 1.25.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.
Files changed (156) hide show
  1. package/README.md +132 -1834
  2. package/dist/capture.cjs +3 -3
  3. package/dist/capture.d.cts +1 -1
  4. package/dist/capture.d.ts +1 -1
  5. package/dist/capture.js +3 -3
  6. package/dist/chunks/{clipboard-adapter-CtH4VELE.d.cts → clipboard-adapter-CfaIbZpv.d.cts} +2 -2
  7. package/dist/chunks/{clipboard-adapter-Ds0irroN.d.ts → clipboard-adapter-Chm6zq60.d.ts} +2 -2
  8. package/dist/chunks/{clipboard-adapter-DEXkXxwV.js → clipboard-adapter-CmKDTFdO.js} +3 -3
  9. package/dist/chunks/{clipboard-adapter-DEXkXxwV.js.map → clipboard-adapter-CmKDTFdO.js.map} +1 -1
  10. package/dist/chunks/{clipboard-adapter-Cfz-rzw3.cjs → clipboard-adapter-UIFc_Qso.cjs} +3 -3
  11. package/dist/chunks/{clipboard-adapter-Cfz-rzw3.cjs.map → clipboard-adapter-UIFc_Qso.cjs.map} +1 -1
  12. package/dist/chunks/{contrast-C6CVklEI.cjs → contrast-C9d8QuaF.cjs} +2 -2
  13. package/dist/chunks/{contrast-C6CVklEI.cjs.map → contrast-C9d8QuaF.cjs.map} +1 -1
  14. package/dist/chunks/{contrast-DpK2JIVu.js → contrast-DUaZq5SA.js} +2 -2
  15. package/dist/chunks/{contrast-DpK2JIVu.js.map → contrast-DUaZq5SA.js.map} +1 -1
  16. package/dist/chunks/{copy-interceptor-CZWzGOkL.d.cts → copy-interceptor-BClcHS_P.d.cts} +2 -2
  17. package/dist/chunks/{copy-interceptor-C6NABy1l.d.ts → copy-interceptor-D8c9EDnO.d.ts} +2 -2
  18. package/dist/chunks/{core-Cp2HSpaz.js → core-BH2uIumi.js} +5 -5
  19. package/dist/chunks/{core-Cp2HSpaz.js.map → core-BH2uIumi.js.map} +1 -1
  20. package/dist/chunks/{core-DYf_Lhbe.cjs → core-DmncxMt3.cjs} +5 -5
  21. package/dist/chunks/{core-DYf_Lhbe.cjs.map → core-DmncxMt3.cjs.map} +1 -1
  22. package/dist/chunks/{deadline-C29AlS_Q.js → deadline-CbwnZ3Oq.js} +2 -2
  23. package/dist/chunks/{deadline-C29AlS_Q.js.map → deadline-CbwnZ3Oq.js.map} +1 -1
  24. package/dist/chunks/{deadline-DkiB8ZHE.cjs → deadline-j2hD7JKz.cjs} +2 -2
  25. package/dist/chunks/{deadline-DkiB8ZHE.cjs.map → deadline-j2hD7JKz.cjs.map} +1 -1
  26. package/dist/chunks/{errors-9h8sdFFX.js → errors-CT-FfUtU.js} +2 -2
  27. package/dist/chunks/errors-CT-FfUtU.js.map +1 -0
  28. package/dist/chunks/{errors-BwOF6T_M.cjs → errors-DFmEAC4E.cjs} +2 -2
  29. package/dist/chunks/errors-DFmEAC4E.cjs.map +1 -0
  30. package/dist/chunks/{field-Bytz2WfN.cjs → field-B6SRWRbI.cjs} +59 -19
  31. package/dist/chunks/field-B6SRWRbI.cjs.map +1 -0
  32. package/dist/chunks/{field-BHo5y-t_.js → field-DsRKkbav.js} +54 -20
  33. package/dist/chunks/field-DsRKkbav.js.map +1 -0
  34. package/dist/chunks/{index-vz0iW5V2.d.cts → index-CqYzvxSN.d.cts} +4 -4
  35. package/dist/chunks/{index-mr7sSAgP.d.ts → index-Q_QeSwGr.d.ts} +4 -4
  36. package/dist/chunks/limits-9wi1f6xT.cjs +23 -0
  37. package/dist/chunks/limits-9wi1f6xT.cjs.map +1 -0
  38. package/dist/chunks/limits-BP9R5wnr.js +18 -0
  39. package/dist/chunks/limits-BP9R5wnr.js.map +1 -0
  40. package/dist/chunks/{paste-adapter--SPL4PRE.d.cts → paste-adapter-B6eucH3E.d.cts} +2 -2
  41. package/dist/chunks/{paste-adapter-uahXnTYk.d.ts → paste-adapter-CfIDT3mp.d.ts} +2 -2
  42. package/dist/chunks/{paste-reader-Bo01IMC_.cjs → paste-reader-BWQaYNaV.cjs} +2 -2
  43. package/dist/chunks/paste-reader-BWQaYNaV.cjs.map +1 -0
  44. package/dist/chunks/{paste-reader-D9i7yMXF.js → paste-reader-D6uOTDBM.js} +2 -2
  45. package/dist/chunks/paste-reader-D6uOTDBM.js.map +1 -0
  46. package/dist/chunks/{payload-DI5AorDz.js → payload-BWQ6sPtS.js} +3 -3
  47. package/dist/chunks/{payload-DI5AorDz.js.map → payload-BWQ6sPtS.js.map} +1 -1
  48. package/dist/chunks/{payload-DGw-JOo7.js → payload-BrQWGwyx.js} +2 -2
  49. package/dist/chunks/{payload-DGw-JOo7.js.map → payload-BrQWGwyx.js.map} +1 -1
  50. package/dist/chunks/{payload-Cl_8hCI5.d.ts → payload-CcvSx_Hq.d.ts} +4 -2
  51. package/dist/chunks/{payload-CcwKJ_bU.d.cts → payload-qkAWVXWA.d.cts} +4 -2
  52. package/dist/chunks/{payload-CUymxwim.cjs → payload-sBxkG7jH.cjs} +2 -2
  53. package/dist/chunks/{payload-CUymxwim.cjs.map → payload-sBxkG7jH.cjs.map} +1 -1
  54. package/dist/chunks/{payload-J6GjHuh3.cjs → payload-tTK6REua.cjs} +3 -3
  55. package/dist/chunks/{payload-J6GjHuh3.cjs.map → payload-tTK6REua.cjs.map} +1 -1
  56. package/dist/chunks/{share-Bop47Znn.js → share-CU91L4EK.js} +6 -6
  57. package/dist/chunks/{share-Bop47Znn.js.map → share-CU91L4EK.js.map} +1 -1
  58. package/dist/chunks/{share-e7FenIr2.d.ts → share-DVR_DhHc.d.ts} +3 -3
  59. package/dist/chunks/{share-C0esXvRK.d.cts → share-hIwth7Dh.d.cts} +3 -3
  60. package/dist/chunks/{share-ayDz974N.cjs → share-nx7M4Z0t.cjs} +6 -6
  61. package/dist/chunks/{share-ayDz974N.cjs.map → share-nx7M4Z0t.cjs.map} +1 -1
  62. package/dist/chunks/{url-D4PGsRm8.cjs → url-BrhVUwn7.cjs} +2 -2
  63. package/dist/chunks/{url-D4PGsRm8.cjs.map → url-BrhVUwn7.cjs.map} +1 -1
  64. package/dist/chunks/{url-BcMYVCXQ.js → url-COID0BLY.js} +2 -2
  65. package/dist/chunks/{url-BcMYVCXQ.js.map → url-COID0BLY.js.map} +1 -1
  66. package/dist/code.cjs +4 -8
  67. package/dist/code.cjs.map +1 -1
  68. package/dist/code.d.cts +1 -1
  69. package/dist/code.d.ts +1 -1
  70. package/dist/code.js +2 -6
  71. package/dist/code.js.map +1 -1
  72. package/dist/color.cjs +2 -2
  73. package/dist/color.d.cts +1 -1
  74. package/dist/color.d.ts +1 -1
  75. package/dist/color.js +2 -2
  76. package/dist/core.cjs +5 -5
  77. package/dist/core.d.cts +5 -5
  78. package/dist/core.d.ts +5 -5
  79. package/dist/core.js +5 -5
  80. package/dist/email.cjs +12 -8
  81. package/dist/email.cjs.map +1 -1
  82. package/dist/email.d.cts +9 -5
  83. package/dist/email.d.ts +9 -5
  84. package/dist/email.js +12 -9
  85. package/dist/email.js.map +1 -1
  86. package/dist/files.cjs +1 -1
  87. package/dist/files.cjs.map +1 -1
  88. package/dist/files.d.cts +3 -59
  89. package/dist/files.d.ts +3 -59
  90. package/dist/files.js +1 -1
  91. package/dist/files.js.map +1 -1
  92. package/dist/image.cjs +2 -2
  93. package/dist/image.cjs.map +1 -1
  94. package/dist/image.js +2 -2
  95. package/dist/image.js.map +1 -1
  96. package/dist/index.cjs +7 -7
  97. package/dist/index.cjs.map +1 -1
  98. package/dist/index.d.cts +43 -19
  99. package/dist/index.d.ts +43 -19
  100. package/dist/index.js +7 -7
  101. package/dist/index.js.map +1 -1
  102. package/dist/link.cjs +3 -3
  103. package/dist/link.d.cts +1 -1
  104. package/dist/link.d.ts +1 -1
  105. package/dist/link.js +3 -3
  106. package/dist/markdown.cjs +1 -1
  107. package/dist/markdown.cjs.map +1 -1
  108. package/dist/markdown.js +1 -1
  109. package/dist/markdown.js.map +1 -1
  110. package/dist/number.cjs +9 -4
  111. package/dist/number.cjs.map +1 -1
  112. package/dist/number.d.cts +9 -4
  113. package/dist/number.d.ts +9 -4
  114. package/dist/number.js +9 -5
  115. package/dist/number.js.map +1 -1
  116. package/dist/otp.cjs +2 -1
  117. package/dist/otp.d.cts +8 -3
  118. package/dist/otp.d.ts +8 -3
  119. package/dist/otp.js +1 -1
  120. package/dist/rich.cjs +3 -3
  121. package/dist/rich.cjs.map +1 -1
  122. package/dist/rich.d.cts +2 -2
  123. package/dist/rich.d.ts +2 -2
  124. package/dist/rich.js +3 -3
  125. package/dist/rich.js.map +1 -1
  126. package/dist/secrets.cjs +1 -1
  127. package/dist/secrets.cjs.map +1 -1
  128. package/dist/secrets.d.cts +1 -1
  129. package/dist/secrets.d.ts +1 -1
  130. package/dist/secrets.js +1 -1
  131. package/dist/secrets.js.map +1 -1
  132. package/dist/share.cjs +1 -1
  133. package/dist/share.d.cts +1 -1
  134. package/dist/share.d.ts +1 -1
  135. package/dist/share.js +1 -1
  136. package/dist/structured.cjs +2 -2
  137. package/dist/structured.cjs.map +1 -1
  138. package/dist/structured.js +2 -2
  139. package/dist/structured.js.map +1 -1
  140. package/dist/table.cjs +1 -1
  141. package/dist/table.cjs.map +1 -1
  142. package/dist/table.d.cts +1 -1
  143. package/dist/table.d.ts +1 -1
  144. package/dist/table.js +1 -1
  145. package/dist/table.js.map +1 -1
  146. package/dist/testing.cjs +2 -2
  147. package/dist/testing.d.cts +3 -3
  148. package/dist/testing.d.ts +3 -3
  149. package/dist/testing.js +2 -2
  150. package/package.json +10 -4
  151. package/dist/chunks/errors-9h8sdFFX.js.map +0 -1
  152. package/dist/chunks/errors-BwOF6T_M.cjs.map +0 -1
  153. package/dist/chunks/field-BHo5y-t_.js.map +0 -1
  154. package/dist/chunks/field-Bytz2WfN.cjs.map +0 -1
  155. package/dist/chunks/paste-reader-Bo01IMC_.cjs.map +0 -1
  156. package/dist/chunks/paste-reader-D9i7yMXF.js.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,13 +1,13 @@
1
1
 
2
- import { A as resolveMaxRetries, C as describeCopyError, D as toCopyError, E as isRetryableError, O as DEFAULT_MAX_RETRIES, S as createCopyError, T as isCopyFailure, _ as ClipboardOperation, a as CopySource, b as CopyFailure, c as ImagePayload, d as MultiPayloadItem, f as TextPayload, g as validatePayload, h as serializeJson, i as CopyPayloadKind, k as OperationContext, l as JsonPayload, m as normalizePayload, n as CopyInput, o as HtmlPayload, p as isBlob, r as CopyPayload, s as IMAGE_MIME_TYPE, t as BlobSource, u as MultiPayload, v as CopyError, w as describePasteError, x as copyFailure, y as CopyErrorType } from "./chunks/payload-CcwKJ_bU.cjs";
2
+ import { A as resolveMaxRetries, C as describeCopyError, D as toCopyError, E as isRetryableError, O as DEFAULT_MAX_RETRIES, S as createCopyError, T as isCopyFailure, _ as ClipboardOperation, a as CopySource, b as CopyFailure, c as ImagePayload, d as MultiPayloadItem, f as TextPayload, g as validatePayload, h as serializeJson, i as CopyPayloadKind, k as OperationContext, l as JsonPayload, m as normalizePayload, n as CopyInput, o as HtmlPayload, p as isBlob, r as CopyPayload, s as IMAGE_MIME_TYPE, t as BlobSource, u as MultiPayload, v as CopyError, w as describePasteError, x as copyFailure, y as CopyErrorType } from "./chunks/payload-qkAWVXWA.cjs";
3
3
  import { _ as resolvePasteReadOptions, a as DataTransferItemLike, c as PasteAcceptShorthand, d as PasteReadOptions, f as PasteReadResult, g as canAcceptDrag, h as ResolvedPasteReadOptions, i as DEFAULT_PASTE_MAX_ITEMS, l as PasteItem, m as PasteSource, n as DEFAULT_PASTE_ACCEPT, o as DataTransferLike, p as PasteResult, r as DEFAULT_PASTE_MAX_BYTES, s as PasteAccept, t as ClipboardItemLike, u as PasteLimits } from "./chunks/paste-reader-DcXnRWQr.cjs";
4
- import { $ as SVG_MIME_TYPE, A as RegisterDragCopyResult, B as CopyState, C as DragCopyPayload, D as DragEffectAllowed, E as DragCopyStatus, F as CopyIgnoredReason, G as IDLE_STATE, H as CopyingState, I as CopyMachine, J as createCopyMachine, K as IdleState, L as CopyMachineOptions, M as registerDragCopy, N as CopiedState, O as DragMultiPayload, P as CopyCancelReason, Q as RasterImageMimeType, R as CopyMachineOptionsSource, S as DragCopyPassReason, T as DragCopyState, U as DEFAULT_RESET_AFTER_MS, V as CopyStatus, W as ErrorState, X as CopyCoordinatorMember, Y as CopyCoordinator, Z as createCopyCoordinator, _ as createPasteMachine, a as PasteEventLike, at as normalizeMimeType, b as DragCopyOptions, c as PasteMachine, d as PasteOutcome, et as WEB_CUSTOM_FORMAT_PREFIX, f as PasteReadState, g as canRetryPasteState, h as PasteStatus, i as PasteErrorState, it as normalizeClipboardType, j as applyDragCopy, k as DragStartEventLike, l as PasteMachineOptions, m as PasteState, n as PasteCancelReason, nt as isWebCustomFormat, o as PasteIdleState, ot as sniffImageBytes, p as PasteReadingState, q as canRetryState, r as PasteDropEventLike, rt as matchesMimePattern, s as PasteIgnoredReason, st as sniffImageType, t as PASTE_IDLE_STATE, tt as isTextualMimeType, u as PasteMachineOptionsSource, v as DragCopyDecision, w as DragCopySource, x as DragCopyOutcome, y as DragCopyItem, z as CopyOutcome } from "./chunks/index-vz0iW5V2.cjs";
5
- import { a as ClipboardItemData, i as ClipboardItemConstructorLike, n as ClipboardAdapter, o as ClipboardLike, r as ClipboardEnvironment, s as createBrowserClipboardAdapter, t as BrowserClipboardAdapterOptions } from "./chunks/clipboard-adapter-CtH4VELE.cjs";
6
- import { _ as registerCopyInterceptor, a as CopyInterceptOptions, c as CopyInterceptTransform, d as DEFAULT_INTERCEPTED_EVENTS, f as InterceptedCopyKind, g as readCopySelection, h as interceptCopyEvent, i as CopyInterceptFailureMode, l as CopyInterceptorOptions, m as SyncMultiPayload, n as CopyEventLike, o as CopyInterceptOutcome, p as SyncCopyPayload, r as CopyInterceptDecision, s as CopyInterceptPassReason, t as ClipboardDataLike, u as CopySelection } from "./chunks/copy-interceptor-CZWzGOkL.cjs";
7
- import { a as createBrowserPasteAdapter, i as PasteEnvironment, n as PasteAdapter, r as PasteClipboardLike, t as BrowserPasteAdapterOptions } from "./chunks/paste-adapter--SPL4PRE.cjs";
8
- import { a as ShareMethod, c as ShareOutcome, i as ShareEnvironment, n as ResolvedShare, o as ShareMode, r as ShareContent, s as ShareOptions, t as CopyReason } from "./chunks/share-C0esXvRK.cjs";
4
+ import { $ as SVG_MIME_TYPE, A as RegisterDragCopyResult, B as CopyState, C as DragCopyPayload, D as DragEffectAllowed, E as DragCopyStatus, F as CopyIgnoredReason, G as IDLE_STATE, H as CopyingState, I as CopyMachine, J as createCopyMachine, K as IdleState, L as CopyMachineOptions, M as registerDragCopy, N as CopiedState, O as DragMultiPayload, P as CopyCancelReason, Q as RasterImageMimeType, R as CopyMachineOptionsSource, S as DragCopyPassReason, T as DragCopyState, U as DEFAULT_RESET_AFTER_MS, V as CopyStatus, W as ErrorState, X as CopyCoordinatorMember, Y as CopyCoordinator, Z as createCopyCoordinator, _ as createPasteMachine, a as PasteEventLike, at as normalizeMimeType, b as DragCopyOptions, c as PasteMachine, d as PasteOutcome, et as WEB_CUSTOM_FORMAT_PREFIX, f as PasteReadState, g as canRetryPasteState, h as PasteStatus, i as PasteErrorState, it as normalizeClipboardType, j as applyDragCopy, k as DragStartEventLike, l as PasteMachineOptions, m as PasteState, n as PasteCancelReason, nt as isWebCustomFormat, o as PasteIdleState, ot as sniffImageBytes, p as PasteReadingState, q as canRetryState, r as PasteDropEventLike, rt as matchesMimePattern, s as PasteIgnoredReason, st as sniffImageType, t as PASTE_IDLE_STATE, tt as isTextualMimeType, u as PasteMachineOptionsSource, v as DragCopyDecision, w as DragCopySource, x as DragCopyOutcome, y as DragCopyItem, z as CopyOutcome } from "./chunks/index-CqYzvxSN.cjs";
5
+ import { a as ClipboardItemData, i as ClipboardItemConstructorLike, n as ClipboardAdapter, o as ClipboardLike, r as ClipboardEnvironment, s as createBrowserClipboardAdapter, t as BrowserClipboardAdapterOptions } from "./chunks/clipboard-adapter-CfaIbZpv.cjs";
6
+ import { _ as registerCopyInterceptor, a as CopyInterceptOptions, c as CopyInterceptTransform, d as DEFAULT_INTERCEPTED_EVENTS, f as InterceptedCopyKind, g as readCopySelection, h as interceptCopyEvent, i as CopyInterceptFailureMode, l as CopyInterceptorOptions, m as SyncMultiPayload, n as CopyEventLike, o as CopyInterceptOutcome, p as SyncCopyPayload, r as CopyInterceptDecision, s as CopyInterceptPassReason, t as ClipboardDataLike, u as CopySelection } from "./chunks/copy-interceptor-BClcHS_P.cjs";
7
+ import { a as createBrowserPasteAdapter, i as PasteEnvironment, n as PasteAdapter, r as PasteClipboardLike, t as BrowserPasteAdapterOptions } from "./chunks/paste-adapter-B6eucH3E.cjs";
8
+ import { a as ShareMethod, c as ShareOutcome, i as ShareEnvironment, n as ResolvedShare, o as ShareMode, r as ShareContent, s as ShareOptions, t as CopyReason } from "./chunks/share-hIwth7Dh.cjs";
9
9
  import { n as OtpFieldOptions, r as OtpSnapshot } from "./chunks/field-BTsKTs2M.cjs";
10
- import { ButtonHTMLAttributes, CSSProperties, ClipboardEventHandler, DragEventHandler, FocusEventHandler, HTMLAttributes, PointerEventHandler, ReactNode, RefCallback } from "react";
10
+ import { ButtonHTMLAttributes, CSSProperties, ClipboardEventHandler, DragEventHandler, FocusEventHandler, ForwardRefExoticComponent, HTMLAttributes, JSX, PointerEventHandler, ReactNode, RefAttributes, RefCallback } from "react";
11
11
  //#region src/react/useCopy.d.ts
12
12
  type UseCopyOptions = CopyMachineOptions;
13
13
  interface UseCopyResult {
@@ -132,7 +132,7 @@ interface LiveRegionProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'childre
132
132
  * spoken even in polite mode, which is inappropriate for copy feedback.
133
133
  * `role="status"` + `aria-live` is correct for both politeness levels.
134
134
  */
135
- export declare function LiveRegion({ message, politeness, visuallyHidden, style, ...rest }: LiveRegionProps): import("react").JSX.Element;
135
+ export declare function LiveRegion({ message, politeness, visuallyHidden, style, ...rest }: LiveRegionProps): JSX.Element;
136
136
  //#endregion
137
137
  //#region src/react/CopyField.d.ts
138
138
  interface CopyFieldMessages {
@@ -175,8 +175,11 @@ interface CopyFieldRootProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onCop
175
175
  /** Render the built-in live region. Disable if your app has a global announcer. Default `true`. */
176
176
  readonly announce?: boolean;
177
177
  }
178
+ declare const Root$1: ForwardRefExoticComponent<CopyFieldRootProps & RefAttributes<HTMLDivElement>>;
178
179
  type CopyFieldLabelProps = HTMLAttributes<HTMLSpanElement>;
180
+ declare const Label$1: ForwardRefExoticComponent<CopyFieldLabelProps & RefAttributes<HTMLSpanElement>>;
179
181
  type CopyFieldValueProps = HTMLAttributes<HTMLSpanElement>;
182
+ declare const Value: ForwardRefExoticComponent<CopyFieldValueProps & RefAttributes<HTMLSpanElement>>;
180
183
  interface CopyFieldTriggerRenderProps {
181
184
  /** The real state. Use for logic. */
182
185
  readonly status: CopyStatus;
@@ -190,6 +193,7 @@ interface CopyFieldTriggerProps extends Omit<ButtonHTMLAttributes<HTMLButtonElem
190
193
  /** Static content, or a render function receiving the live state (icons, labels, spinners). */
191
194
  readonly children?: ReactNode | ((props: CopyFieldTriggerRenderProps) => ReactNode);
192
195
  }
196
+ declare const Trigger$1: ForwardRefExoticComponent<CopyFieldTriggerProps & RefAttributes<HTMLButtonElement>>;
193
197
  /**
194
198
  * Headless compound component for a labelled, copyable value.
195
199
  *
@@ -199,10 +203,10 @@ interface CopyFieldTriggerProps extends Omit<ButtonHTMLAttributes<HTMLButtonElem
199
203
  * - `data-revealed`: present while the trigger should be visible
200
204
  */
201
205
  export declare const CopyField: {
202
- readonly Root: import("react").ForwardRefExoticComponent<CopyFieldRootProps & import("react").RefAttributes<HTMLDivElement>>;
203
- readonly Label: import("react").ForwardRefExoticComponent<CopyFieldLabelProps & import("react").RefAttributes<HTMLSpanElement>>;
204
- readonly Value: import("react").ForwardRefExoticComponent<CopyFieldValueProps & import("react").RefAttributes<HTMLSpanElement>>;
205
- readonly Trigger: import("react").ForwardRefExoticComponent<CopyFieldTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
206
+ readonly Root: typeof Root$1;
207
+ readonly Label: typeof Label$1;
208
+ readonly Value: typeof Value;
209
+ readonly Trigger: typeof Trigger$1;
206
210
  };
207
211
  //#endregion
208
212
  //#region src/react/usePaste.d.ts
@@ -276,7 +280,7 @@ interface CopyGroupProps {
276
280
  * a new successful copy returns the previously "Copied" one to idle.
277
281
  * Opt a single field out with `copyOptions={{ coordinator: null }}`. Groups nest; the nearest wins.
278
282
  */
279
- export declare function CopyGroup({ children, coordinator }: CopyGroupProps): import("react").JSX.Element;
283
+ export declare function CopyGroup({ children, coordinator }: CopyGroupProps): JSX.Element;
280
284
  /** The nearest `<CopyGroup>`'s coordinator, or `null` outside any group. */
281
285
  export declare function useCopyGroup(): CopyCoordinator | null;
282
286
  //#endregion
@@ -349,11 +353,14 @@ interface PasteFieldRootProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onPa
349
353
  /** Render the built-in live region. Disable if your app has a global announcer. Default `true`. */
350
354
  readonly announce?: boolean;
351
355
  }
356
+ declare const Root: ForwardRefExoticComponent<PasteFieldRootProps & RefAttributes<HTMLDivElement>>;
352
357
  type PasteFieldLabelProps = HTMLAttributes<HTMLSpanElement>;
358
+ declare const Label: ForwardRefExoticComponent<PasteFieldLabelProps & RefAttributes<HTMLSpanElement>>;
353
359
  interface PasteFieldStatusProps extends HTMLAttributes<HTMLSpanElement> {
354
360
  /** Map each paste status to a label. Defaults to English strings. */
355
361
  readonly labels?: Partial<Readonly<Record<PasteStatus, string>>>;
356
362
  }
363
+ declare const Status: ForwardRefExoticComponent<PasteFieldStatusProps & RefAttributes<HTMLSpanElement>>;
357
364
  interface PasteFieldZoneProps extends HTMLAttributes<HTMLDivElement> {
358
365
  /** When true, the zone is always focusable (tabIndex=0). Default true. */
359
366
  readonly focusable?: boolean;
@@ -363,6 +370,16 @@ interface PasteFieldZoneProps extends HTMLAttributes<HTMLDivElement> {
363
370
  */
364
371
  readonly droppable?: boolean;
365
372
  }
373
+ /**
374
+ * A focusable paste target. Accepts keyboard paste (Ctrl/⌘+V) without a
375
+ * permission prompt and, unless `droppable={false}`, drag-and-drop. Renders
376
+ * `data-zone` and `data-drag-over` for styling.
377
+ *
378
+ * Accessible name: `aria-label` prop, else `messages.zoneLabel(label)`
379
+ * ("Paste area for Notes"). Pass `aria-labelledby` explicitly to name it from
380
+ * another element instead.
381
+ */
382
+ declare const Zone: ForwardRefExoticComponent<PasteFieldZoneProps & RefAttributes<HTMLDivElement>>;
366
383
  interface PasteFieldTriggerRenderProps {
367
384
  /** The real state. Use for logic. */
368
385
  readonly status: PasteStatus;
@@ -377,6 +394,7 @@ interface PasteFieldTriggerProps extends Omit<ButtonHTMLAttributes<HTMLButtonEle
377
394
  /** Static content, or a render function receiving the live state. */
378
395
  readonly children?: ReactNode | ((props: PasteFieldTriggerRenderProps) => ReactNode);
379
396
  }
397
+ declare const Trigger: ForwardRefExoticComponent<PasteFieldTriggerProps & RefAttributes<HTMLButtonElement>>;
380
398
  interface PasteFieldPreviewRenderProps {
381
399
  readonly result: PasteResult;
382
400
  /**
@@ -395,6 +413,12 @@ interface PasteFieldPreviewProps extends Omit<HTMLAttributes<HTMLDivElement>, 'c
395
413
  /** Alt text for each pasted image. Default "Pasted image 1 of 2". */
396
414
  readonly imageAlt?: (index: number, total: number) => string;
397
415
  }
416
+ /**
417
+ * Shows what was pasted: text (never HTML, which is untrusted), image
418
+ * thumbnails and file names. Renders `placeholder` until there is a result.
419
+ * Pass a function child to render the result yourself.
420
+ */
421
+ declare const Preview: ForwardRefExoticComponent<PasteFieldPreviewProps & RefAttributes<HTMLDivElement>>;
398
422
  /**
399
423
  * Headless compound component for a labelled, paste-ready field.
400
424
  *
@@ -414,12 +438,12 @@ interface PasteFieldPreviewProps extends Omit<HTMLAttributes<HTMLDivElement>, 'c
414
438
  * ```
415
439
  */
416
440
  export declare const PasteField: {
417
- readonly Root: import("react").ForwardRefExoticComponent<PasteFieldRootProps & import("react").RefAttributes<HTMLDivElement>>;
418
- readonly Label: import("react").ForwardRefExoticComponent<PasteFieldLabelProps & import("react").RefAttributes<HTMLSpanElement>>;
419
- readonly Status: import("react").ForwardRefExoticComponent<PasteFieldStatusProps & import("react").RefAttributes<HTMLSpanElement>>;
420
- readonly Zone: import("react").ForwardRefExoticComponent<PasteFieldZoneProps & import("react").RefAttributes<HTMLDivElement>>;
421
- readonly Trigger: import("react").ForwardRefExoticComponent<PasteFieldTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
422
- readonly Preview: import("react").ForwardRefExoticComponent<PasteFieldPreviewProps & import("react").RefAttributes<HTMLDivElement>>;
441
+ readonly Root: typeof Root;
442
+ readonly Label: typeof Label;
443
+ readonly Status: typeof Status;
444
+ readonly Zone: typeof Zone;
445
+ readonly Trigger: typeof Trigger;
446
+ readonly Preview: typeof Preview;
423
447
  };
424
448
  //#endregion
425
449
  //#region src/react/useDragCopy.d.ts
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
 
2
- import { A as resolveMaxRetries, C as describeCopyError, D as toCopyError, E as isRetryableError, O as DEFAULT_MAX_RETRIES, S as createCopyError, T as isCopyFailure, _ as ClipboardOperation, a as CopySource, b as CopyFailure, c as ImagePayload, d as MultiPayloadItem, f as TextPayload, g as validatePayload, h as serializeJson, i as CopyPayloadKind, k as OperationContext, l as JsonPayload, m as normalizePayload, n as CopyInput, o as HtmlPayload, p as isBlob, r as CopyPayload, s as IMAGE_MIME_TYPE, t as BlobSource, u as MultiPayload, v as CopyError, w as describePasteError, x as copyFailure, y as CopyErrorType } from "./chunks/payload-Cl_8hCI5.js";
2
+ import { A as resolveMaxRetries, C as describeCopyError, D as toCopyError, E as isRetryableError, O as DEFAULT_MAX_RETRIES, S as createCopyError, T as isCopyFailure, _ as ClipboardOperation, a as CopySource, b as CopyFailure, c as ImagePayload, d as MultiPayloadItem, f as TextPayload, g as validatePayload, h as serializeJson, i as CopyPayloadKind, k as OperationContext, l as JsonPayload, m as normalizePayload, n as CopyInput, o as HtmlPayload, p as isBlob, r as CopyPayload, s as IMAGE_MIME_TYPE, t as BlobSource, u as MultiPayload, v as CopyError, w as describePasteError, x as copyFailure, y as CopyErrorType } from "./chunks/payload-CcvSx_Hq.js";
3
3
  import { _ as resolvePasteReadOptions, a as DataTransferItemLike, c as PasteAcceptShorthand, d as PasteReadOptions, f as PasteReadResult, g as canAcceptDrag, h as ResolvedPasteReadOptions, i as DEFAULT_PASTE_MAX_ITEMS, l as PasteItem, m as PasteSource, n as DEFAULT_PASTE_ACCEPT, o as DataTransferLike, p as PasteResult, r as DEFAULT_PASTE_MAX_BYTES, s as PasteAccept, t as ClipboardItemLike, u as PasteLimits } from "./chunks/paste-reader-DcXnRWQr.js";
4
- import { $ as SVG_MIME_TYPE, A as RegisterDragCopyResult, B as CopyState, C as DragCopyPayload, D as DragEffectAllowed, E as DragCopyStatus, F as CopyIgnoredReason, G as IDLE_STATE, H as CopyingState, I as CopyMachine, J as createCopyMachine, K as IdleState, L as CopyMachineOptions, M as registerDragCopy, N as CopiedState, O as DragMultiPayload, P as CopyCancelReason, Q as RasterImageMimeType, R as CopyMachineOptionsSource, S as DragCopyPassReason, T as DragCopyState, U as DEFAULT_RESET_AFTER_MS, V as CopyStatus, W as ErrorState, X as CopyCoordinatorMember, Y as CopyCoordinator, Z as createCopyCoordinator, _ as createPasteMachine, a as PasteEventLike, at as normalizeMimeType, b as DragCopyOptions, c as PasteMachine, d as PasteOutcome, et as WEB_CUSTOM_FORMAT_PREFIX, f as PasteReadState, g as canRetryPasteState, h as PasteStatus, i as PasteErrorState, it as normalizeClipboardType, j as applyDragCopy, k as DragStartEventLike, l as PasteMachineOptions, m as PasteState, n as PasteCancelReason, nt as isWebCustomFormat, o as PasteIdleState, ot as sniffImageBytes, p as PasteReadingState, q as canRetryState, r as PasteDropEventLike, rt as matchesMimePattern, s as PasteIgnoredReason, st as sniffImageType, t as PASTE_IDLE_STATE, tt as isTextualMimeType, u as PasteMachineOptionsSource, v as DragCopyDecision, w as DragCopySource, x as DragCopyOutcome, y as DragCopyItem, z as CopyOutcome } from "./chunks/index-mr7sSAgP.js";
5
- import { a as ClipboardItemData, i as ClipboardItemConstructorLike, n as ClipboardAdapter, o as ClipboardLike, r as ClipboardEnvironment, s as createBrowserClipboardAdapter, t as BrowserClipboardAdapterOptions } from "./chunks/clipboard-adapter-Ds0irroN.js";
6
- import { _ as registerCopyInterceptor, a as CopyInterceptOptions, c as CopyInterceptTransform, d as DEFAULT_INTERCEPTED_EVENTS, f as InterceptedCopyKind, g as readCopySelection, h as interceptCopyEvent, i as CopyInterceptFailureMode, l as CopyInterceptorOptions, m as SyncMultiPayload, n as CopyEventLike, o as CopyInterceptOutcome, p as SyncCopyPayload, r as CopyInterceptDecision, s as CopyInterceptPassReason, t as ClipboardDataLike, u as CopySelection } from "./chunks/copy-interceptor-C6NABy1l.js";
7
- import { a as createBrowserPasteAdapter, i as PasteEnvironment, n as PasteAdapter, r as PasteClipboardLike, t as BrowserPasteAdapterOptions } from "./chunks/paste-adapter-uahXnTYk.js";
8
- import { a as ShareMethod, c as ShareOutcome, i as ShareEnvironment, n as ResolvedShare, o as ShareMode, r as ShareContent, s as ShareOptions, t as CopyReason } from "./chunks/share-e7FenIr2.js";
4
+ import { $ as SVG_MIME_TYPE, A as RegisterDragCopyResult, B as CopyState, C as DragCopyPayload, D as DragEffectAllowed, E as DragCopyStatus, F as CopyIgnoredReason, G as IDLE_STATE, H as CopyingState, I as CopyMachine, J as createCopyMachine, K as IdleState, L as CopyMachineOptions, M as registerDragCopy, N as CopiedState, O as DragMultiPayload, P as CopyCancelReason, Q as RasterImageMimeType, R as CopyMachineOptionsSource, S as DragCopyPassReason, T as DragCopyState, U as DEFAULT_RESET_AFTER_MS, V as CopyStatus, W as ErrorState, X as CopyCoordinatorMember, Y as CopyCoordinator, Z as createCopyCoordinator, _ as createPasteMachine, a as PasteEventLike, at as normalizeMimeType, b as DragCopyOptions, c as PasteMachine, d as PasteOutcome, et as WEB_CUSTOM_FORMAT_PREFIX, f as PasteReadState, g as canRetryPasteState, h as PasteStatus, i as PasteErrorState, it as normalizeClipboardType, j as applyDragCopy, k as DragStartEventLike, l as PasteMachineOptions, m as PasteState, n as PasteCancelReason, nt as isWebCustomFormat, o as PasteIdleState, ot as sniffImageBytes, p as PasteReadingState, q as canRetryState, r as PasteDropEventLike, rt as matchesMimePattern, s as PasteIgnoredReason, st as sniffImageType, t as PASTE_IDLE_STATE, tt as isTextualMimeType, u as PasteMachineOptionsSource, v as DragCopyDecision, w as DragCopySource, x as DragCopyOutcome, y as DragCopyItem, z as CopyOutcome } from "./chunks/index-Q_QeSwGr.js";
5
+ import { a as ClipboardItemData, i as ClipboardItemConstructorLike, n as ClipboardAdapter, o as ClipboardLike, r as ClipboardEnvironment, s as createBrowserClipboardAdapter, t as BrowserClipboardAdapterOptions } from "./chunks/clipboard-adapter-Chm6zq60.js";
6
+ import { _ as registerCopyInterceptor, a as CopyInterceptOptions, c as CopyInterceptTransform, d as DEFAULT_INTERCEPTED_EVENTS, f as InterceptedCopyKind, g as readCopySelection, h as interceptCopyEvent, i as CopyInterceptFailureMode, l as CopyInterceptorOptions, m as SyncMultiPayload, n as CopyEventLike, o as CopyInterceptOutcome, p as SyncCopyPayload, r as CopyInterceptDecision, s as CopyInterceptPassReason, t as ClipboardDataLike, u as CopySelection } from "./chunks/copy-interceptor-D8c9EDnO.js";
7
+ import { a as createBrowserPasteAdapter, i as PasteEnvironment, n as PasteAdapter, r as PasteClipboardLike, t as BrowserPasteAdapterOptions } from "./chunks/paste-adapter-CfIDT3mp.js";
8
+ import { a as ShareMethod, c as ShareOutcome, i as ShareEnvironment, n as ResolvedShare, o as ShareMode, r as ShareContent, s as ShareOptions, t as CopyReason } from "./chunks/share-DVR_DhHc.js";
9
9
  import { n as OtpFieldOptions, r as OtpSnapshot } from "./chunks/field-BTsKTs2M.js";
10
- import { ButtonHTMLAttributes, CSSProperties, ClipboardEventHandler, DragEventHandler, FocusEventHandler, HTMLAttributes, PointerEventHandler, ReactNode, RefCallback } from "react";
10
+ import { ButtonHTMLAttributes, CSSProperties, ClipboardEventHandler, DragEventHandler, FocusEventHandler, ForwardRefExoticComponent, HTMLAttributes, JSX, PointerEventHandler, ReactNode, RefAttributes, RefCallback } from "react";
11
11
  //#region src/react/useCopy.d.ts
12
12
  type UseCopyOptions = CopyMachineOptions;
13
13
  interface UseCopyResult {
@@ -132,7 +132,7 @@ interface LiveRegionProps extends Omit<HTMLAttributes<HTMLSpanElement>, 'childre
132
132
  * spoken even in polite mode, which is inappropriate for copy feedback.
133
133
  * `role="status"` + `aria-live` is correct for both politeness levels.
134
134
  */
135
- export declare function LiveRegion({ message, politeness, visuallyHidden, style, ...rest }: LiveRegionProps): import("react").JSX.Element;
135
+ export declare function LiveRegion({ message, politeness, visuallyHidden, style, ...rest }: LiveRegionProps): JSX.Element;
136
136
  //#endregion
137
137
  //#region src/react/CopyField.d.ts
138
138
  interface CopyFieldMessages {
@@ -175,8 +175,11 @@ interface CopyFieldRootProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onCop
175
175
  /** Render the built-in live region. Disable if your app has a global announcer. Default `true`. */
176
176
  readonly announce?: boolean;
177
177
  }
178
+ declare const Root$1: ForwardRefExoticComponent<CopyFieldRootProps & RefAttributes<HTMLDivElement>>;
178
179
  type CopyFieldLabelProps = HTMLAttributes<HTMLSpanElement>;
180
+ declare const Label$1: ForwardRefExoticComponent<CopyFieldLabelProps & RefAttributes<HTMLSpanElement>>;
179
181
  type CopyFieldValueProps = HTMLAttributes<HTMLSpanElement>;
182
+ declare const Value: ForwardRefExoticComponent<CopyFieldValueProps & RefAttributes<HTMLSpanElement>>;
180
183
  interface CopyFieldTriggerRenderProps {
181
184
  /** The real state. Use for logic. */
182
185
  readonly status: CopyStatus;
@@ -190,6 +193,7 @@ interface CopyFieldTriggerProps extends Omit<ButtonHTMLAttributes<HTMLButtonElem
190
193
  /** Static content, or a render function receiving the live state (icons, labels, spinners). */
191
194
  readonly children?: ReactNode | ((props: CopyFieldTriggerRenderProps) => ReactNode);
192
195
  }
196
+ declare const Trigger$1: ForwardRefExoticComponent<CopyFieldTriggerProps & RefAttributes<HTMLButtonElement>>;
193
197
  /**
194
198
  * Headless compound component for a labelled, copyable value.
195
199
  *
@@ -199,10 +203,10 @@ interface CopyFieldTriggerProps extends Omit<ButtonHTMLAttributes<HTMLButtonElem
199
203
  * - `data-revealed`: present while the trigger should be visible
200
204
  */
201
205
  export declare const CopyField: {
202
- readonly Root: import("react").ForwardRefExoticComponent<CopyFieldRootProps & import("react").RefAttributes<HTMLDivElement>>;
203
- readonly Label: import("react").ForwardRefExoticComponent<CopyFieldLabelProps & import("react").RefAttributes<HTMLSpanElement>>;
204
- readonly Value: import("react").ForwardRefExoticComponent<CopyFieldValueProps & import("react").RefAttributes<HTMLSpanElement>>;
205
- readonly Trigger: import("react").ForwardRefExoticComponent<CopyFieldTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
206
+ readonly Root: typeof Root$1;
207
+ readonly Label: typeof Label$1;
208
+ readonly Value: typeof Value;
209
+ readonly Trigger: typeof Trigger$1;
206
210
  };
207
211
  //#endregion
208
212
  //#region src/react/usePaste.d.ts
@@ -276,7 +280,7 @@ interface CopyGroupProps {
276
280
  * a new successful copy returns the previously "Copied" one to idle.
277
281
  * Opt a single field out with `copyOptions={{ coordinator: null }}`. Groups nest; the nearest wins.
278
282
  */
279
- export declare function CopyGroup({ children, coordinator }: CopyGroupProps): import("react").JSX.Element;
283
+ export declare function CopyGroup({ children, coordinator }: CopyGroupProps): JSX.Element;
280
284
  /** The nearest `<CopyGroup>`'s coordinator, or `null` outside any group. */
281
285
  export declare function useCopyGroup(): CopyCoordinator | null;
282
286
  //#endregion
@@ -349,11 +353,14 @@ interface PasteFieldRootProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onPa
349
353
  /** Render the built-in live region. Disable if your app has a global announcer. Default `true`. */
350
354
  readonly announce?: boolean;
351
355
  }
356
+ declare const Root: ForwardRefExoticComponent<PasteFieldRootProps & RefAttributes<HTMLDivElement>>;
352
357
  type PasteFieldLabelProps = HTMLAttributes<HTMLSpanElement>;
358
+ declare const Label: ForwardRefExoticComponent<PasteFieldLabelProps & RefAttributes<HTMLSpanElement>>;
353
359
  interface PasteFieldStatusProps extends HTMLAttributes<HTMLSpanElement> {
354
360
  /** Map each paste status to a label. Defaults to English strings. */
355
361
  readonly labels?: Partial<Readonly<Record<PasteStatus, string>>>;
356
362
  }
363
+ declare const Status: ForwardRefExoticComponent<PasteFieldStatusProps & RefAttributes<HTMLSpanElement>>;
357
364
  interface PasteFieldZoneProps extends HTMLAttributes<HTMLDivElement> {
358
365
  /** When true, the zone is always focusable (tabIndex=0). Default true. */
359
366
  readonly focusable?: boolean;
@@ -363,6 +370,16 @@ interface PasteFieldZoneProps extends HTMLAttributes<HTMLDivElement> {
363
370
  */
364
371
  readonly droppable?: boolean;
365
372
  }
373
+ /**
374
+ * A focusable paste target. Accepts keyboard paste (Ctrl/⌘+V) without a
375
+ * permission prompt and, unless `droppable={false}`, drag-and-drop. Renders
376
+ * `data-zone` and `data-drag-over` for styling.
377
+ *
378
+ * Accessible name: `aria-label` prop, else `messages.zoneLabel(label)`
379
+ * ("Paste area for Notes"). Pass `aria-labelledby` explicitly to name it from
380
+ * another element instead.
381
+ */
382
+ declare const Zone: ForwardRefExoticComponent<PasteFieldZoneProps & RefAttributes<HTMLDivElement>>;
366
383
  interface PasteFieldTriggerRenderProps {
367
384
  /** The real state. Use for logic. */
368
385
  readonly status: PasteStatus;
@@ -377,6 +394,7 @@ interface PasteFieldTriggerProps extends Omit<ButtonHTMLAttributes<HTMLButtonEle
377
394
  /** Static content, or a render function receiving the live state. */
378
395
  readonly children?: ReactNode | ((props: PasteFieldTriggerRenderProps) => ReactNode);
379
396
  }
397
+ declare const Trigger: ForwardRefExoticComponent<PasteFieldTriggerProps & RefAttributes<HTMLButtonElement>>;
380
398
  interface PasteFieldPreviewRenderProps {
381
399
  readonly result: PasteResult;
382
400
  /**
@@ -395,6 +413,12 @@ interface PasteFieldPreviewProps extends Omit<HTMLAttributes<HTMLDivElement>, 'c
395
413
  /** Alt text for each pasted image. Default "Pasted image 1 of 2". */
396
414
  readonly imageAlt?: (index: number, total: number) => string;
397
415
  }
416
+ /**
417
+ * Shows what was pasted: text (never HTML, which is untrusted), image
418
+ * thumbnails and file names. Renders `placeholder` until there is a result.
419
+ * Pass a function child to render the result yourself.
420
+ */
421
+ declare const Preview: ForwardRefExoticComponent<PasteFieldPreviewProps & RefAttributes<HTMLDivElement>>;
398
422
  /**
399
423
  * Headless compound component for a labelled, paste-ready field.
400
424
  *
@@ -414,12 +438,12 @@ interface PasteFieldPreviewProps extends Omit<HTMLAttributes<HTMLDivElement>, 'c
414
438
  * ```
415
439
  */
416
440
  export declare const PasteField: {
417
- readonly Root: import("react").ForwardRefExoticComponent<PasteFieldRootProps & import("react").RefAttributes<HTMLDivElement>>;
418
- readonly Label: import("react").ForwardRefExoticComponent<PasteFieldLabelProps & import("react").RefAttributes<HTMLSpanElement>>;
419
- readonly Status: import("react").ForwardRefExoticComponent<PasteFieldStatusProps & import("react").RefAttributes<HTMLSpanElement>>;
420
- readonly Zone: import("react").ForwardRefExoticComponent<PasteFieldZoneProps & import("react").RefAttributes<HTMLDivElement>>;
421
- readonly Trigger: import("react").ForwardRefExoticComponent<PasteFieldTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
422
- readonly Preview: import("react").ForwardRefExoticComponent<PasteFieldPreviewProps & import("react").RefAttributes<HTMLDivElement>>;
441
+ readonly Root: typeof Root;
442
+ readonly Label: typeof Label;
443
+ readonly Status: typeof Status;
444
+ readonly Zone: typeof Zone;
445
+ readonly Trigger: typeof Trigger;
446
+ readonly Preview: typeof Preview;
423
447
  };
424
448
  //#endregion
425
449
  //#region src/react/useDragCopy.d.ts
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { a as describePasteError, c as toCopyError, i as describeCopyError, n as copyFailure, o as isCopyFailure, r as createCopyError, s as isRetryableError, t as CopyFailure } from "./chunks/errors-9h8sdFFX.js";
3
- import { a as validatePayload, i as serializeJson, n as isBlob, r as normalizePayload, t as IMAGE_MIME_TYPE } from "./chunks/payload-DGw-JOo7.js";
2
+ import { a as describePasteError, c as toCopyError, i as describeCopyError, n as copyFailure, o as isCopyFailure, r as createCopyError, s as isRetryableError, t as CopyFailure } from "./chunks/errors-CT-FfUtU.js";
3
+ import { a as validatePayload, i as serializeJson, n as isBlob, r as normalizePayload, t as IMAGE_MIME_TYPE } from "./chunks/payload-BrQWGwyx.js";
4
4
  import { a as matchesMimePattern, c as sniffImageBytes, i as isWebCustomFormat, l as sniffImageType, n as WEB_CUSTOM_FORMAT_PREFIX, o as normalizeClipboardType, r as isTextualMimeType, s as normalizeMimeType, t as SVG_MIME_TYPE } from "./chunks/mime-aa-HA2dm.js";
5
- import { t as createBrowserClipboardAdapter } from "./chunks/clipboard-adapter-DEXkXxwV.js";
6
- import { _ as resolveMaxRetries, a as applyDragCopy, c as interceptCopyEvent, d as DEFAULT_RESET_AFTER_MS, f as IDLE_STATE, g as invoke, h as DEFAULT_MAX_RETRIES, i as createBrowserPasteAdapter, l as readCopySelection, m as createCopyMachine, n as canRetryPasteState, o as registerDragCopy, p as canRetryState, r as createPasteMachine, s as DEFAULT_INTERCEPTED_EVENTS, t as PASTE_IDLE_STATE, u as registerCopyInterceptor, v as createCopyCoordinator } from "./chunks/core-Cp2HSpaz.js";
7
- import { i as canAcceptDrag, l as resolvePasteReadOptions, n as DEFAULT_PASTE_MAX_BYTES, r as DEFAULT_PASTE_MAX_ITEMS, t as DEFAULT_PASTE_ACCEPT } from "./chunks/paste-reader-D9i7yMXF.js";
8
- import { i as shareOrCopy, r as shareMethod, t as TOUCH_FIRST } from "./chunks/share-Bop47Znn.js";
9
- import { t as createOtpField } from "./chunks/field-BHo5y-t_.js";
5
+ import { t as createBrowserClipboardAdapter } from "./chunks/clipboard-adapter-CmKDTFdO.js";
6
+ import { _ as resolveMaxRetries, a as applyDragCopy, c as interceptCopyEvent, d as DEFAULT_RESET_AFTER_MS, f as IDLE_STATE, g as invoke, h as DEFAULT_MAX_RETRIES, i as createBrowserPasteAdapter, l as readCopySelection, m as createCopyMachine, n as canRetryPasteState, o as registerDragCopy, p as canRetryState, r as createPasteMachine, s as DEFAULT_INTERCEPTED_EVENTS, t as PASTE_IDLE_STATE, u as registerCopyInterceptor, v as createCopyCoordinator } from "./chunks/core-BH2uIumi.js";
7
+ import { i as canAcceptDrag, l as resolvePasteReadOptions, n as DEFAULT_PASTE_MAX_BYTES, r as DEFAULT_PASTE_MAX_ITEMS, t as DEFAULT_PASTE_ACCEPT } from "./chunks/paste-reader-D6uOTDBM.js";
8
+ import { i as shareOrCopy, r as shareMethod, t as TOUCH_FIRST } from "./chunks/share-CU91L4EK.js";
9
+ import { t as createOtpField } from "./chunks/field-DsRKkbav.js";
10
10
  import { createContext, forwardRef, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
11
11
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
12
12
  //#region src/react/CopyGroup.tsx