react-smart-copy 1.23.0 → 1.24.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/README.md +130 -1806
- package/dist/capture.cjs +3 -3
- package/dist/capture.d.cts +1 -1
- package/dist/capture.d.ts +1 -1
- package/dist/capture.js +3 -3
- package/dist/chunks/{clipboard-adapter-CtH4VELE.d.cts → clipboard-adapter-CfaIbZpv.d.cts} +2 -2
- package/dist/chunks/{clipboard-adapter-Ds0irroN.d.ts → clipboard-adapter-Chm6zq60.d.ts} +2 -2
- package/dist/chunks/{clipboard-adapter-DEXkXxwV.js → clipboard-adapter-CmKDTFdO.js} +3 -3
- package/dist/chunks/{clipboard-adapter-DEXkXxwV.js.map → clipboard-adapter-CmKDTFdO.js.map} +1 -1
- package/dist/chunks/{clipboard-adapter-Cfz-rzw3.cjs → clipboard-adapter-UIFc_Qso.cjs} +3 -3
- package/dist/chunks/{clipboard-adapter-Cfz-rzw3.cjs.map → clipboard-adapter-UIFc_Qso.cjs.map} +1 -1
- package/dist/chunks/{contrast-C6CVklEI.cjs → contrast-C9d8QuaF.cjs} +2 -2
- package/dist/chunks/{contrast-C6CVklEI.cjs.map → contrast-C9d8QuaF.cjs.map} +1 -1
- package/dist/chunks/{contrast-DpK2JIVu.js → contrast-DUaZq5SA.js} +2 -2
- package/dist/chunks/{contrast-DpK2JIVu.js.map → contrast-DUaZq5SA.js.map} +1 -1
- package/dist/chunks/{copy-interceptor-CZWzGOkL.d.cts → copy-interceptor-BClcHS_P.d.cts} +2 -2
- package/dist/chunks/{copy-interceptor-C6NABy1l.d.ts → copy-interceptor-D8c9EDnO.d.ts} +2 -2
- package/dist/chunks/{core-Cp2HSpaz.js → core-BH2uIumi.js} +5 -5
- package/dist/chunks/{core-Cp2HSpaz.js.map → core-BH2uIumi.js.map} +1 -1
- package/dist/chunks/{core-DYf_Lhbe.cjs → core-DmncxMt3.cjs} +5 -5
- package/dist/chunks/{core-DYf_Lhbe.cjs.map → core-DmncxMt3.cjs.map} +1 -1
- package/dist/chunks/{deadline-C29AlS_Q.js → deadline-CbwnZ3Oq.js} +2 -2
- package/dist/chunks/{deadline-C29AlS_Q.js.map → deadline-CbwnZ3Oq.js.map} +1 -1
- package/dist/chunks/{deadline-DkiB8ZHE.cjs → deadline-j2hD7JKz.cjs} +2 -2
- package/dist/chunks/{deadline-DkiB8ZHE.cjs.map → deadline-j2hD7JKz.cjs.map} +1 -1
- package/dist/chunks/{errors-9h8sdFFX.js → errors-CT-FfUtU.js} +2 -2
- package/dist/chunks/errors-CT-FfUtU.js.map +1 -0
- package/dist/chunks/{errors-BwOF6T_M.cjs → errors-DFmEAC4E.cjs} +2 -2
- package/dist/chunks/errors-DFmEAC4E.cjs.map +1 -0
- package/dist/chunks/{field-BHo5y-t_.js → field-CK3NxfkM.js} +43 -14
- package/dist/chunks/field-CK3NxfkM.js.map +1 -0
- package/dist/chunks/{field-Bytz2WfN.cjs → field-CNEcZqa9.cjs} +43 -14
- package/dist/chunks/field-CNEcZqa9.cjs.map +1 -0
- package/dist/chunks/{index-vz0iW5V2.d.cts → index-CqYzvxSN.d.cts} +4 -4
- package/dist/chunks/{index-mr7sSAgP.d.ts → index-Q_QeSwGr.d.ts} +4 -4
- package/dist/chunks/{paste-adapter--SPL4PRE.d.cts → paste-adapter-B6eucH3E.d.cts} +2 -2
- package/dist/chunks/{paste-adapter-uahXnTYk.d.ts → paste-adapter-CfIDT3mp.d.ts} +2 -2
- package/dist/chunks/{paste-reader-Bo01IMC_.cjs → paste-reader-BWQaYNaV.cjs} +2 -2
- package/dist/chunks/paste-reader-BWQaYNaV.cjs.map +1 -0
- package/dist/chunks/{paste-reader-D9i7yMXF.js → paste-reader-D6uOTDBM.js} +2 -2
- package/dist/chunks/paste-reader-D6uOTDBM.js.map +1 -0
- package/dist/chunks/{payload-DI5AorDz.js → payload-BWQ6sPtS.js} +3 -3
- package/dist/chunks/{payload-DI5AorDz.js.map → payload-BWQ6sPtS.js.map} +1 -1
- package/dist/chunks/{payload-DGw-JOo7.js → payload-BrQWGwyx.js} +2 -2
- package/dist/chunks/{payload-DGw-JOo7.js.map → payload-BrQWGwyx.js.map} +1 -1
- package/dist/chunks/{payload-Cl_8hCI5.d.ts → payload-CcvSx_Hq.d.ts} +4 -2
- package/dist/chunks/{payload-CcwKJ_bU.d.cts → payload-qkAWVXWA.d.cts} +4 -2
- package/dist/chunks/{payload-CUymxwim.cjs → payload-sBxkG7jH.cjs} +2 -2
- package/dist/chunks/{payload-CUymxwim.cjs.map → payload-sBxkG7jH.cjs.map} +1 -1
- package/dist/chunks/{payload-J6GjHuh3.cjs → payload-tTK6REua.cjs} +3 -3
- package/dist/chunks/{payload-J6GjHuh3.cjs.map → payload-tTK6REua.cjs.map} +1 -1
- package/dist/chunks/{share-Bop47Znn.js → share-CU91L4EK.js} +6 -6
- package/dist/chunks/{share-Bop47Znn.js.map → share-CU91L4EK.js.map} +1 -1
- package/dist/chunks/{share-e7FenIr2.d.ts → share-DVR_DhHc.d.ts} +3 -3
- package/dist/chunks/{share-C0esXvRK.d.cts → share-hIwth7Dh.d.cts} +3 -3
- package/dist/chunks/{share-ayDz974N.cjs → share-nx7M4Z0t.cjs} +6 -6
- package/dist/chunks/{share-ayDz974N.cjs.map → share-nx7M4Z0t.cjs.map} +1 -1
- package/dist/chunks/{url-D4PGsRm8.cjs → url-BrhVUwn7.cjs} +2 -2
- package/dist/chunks/{url-D4PGsRm8.cjs.map → url-BrhVUwn7.cjs.map} +1 -1
- package/dist/chunks/{url-BcMYVCXQ.js → url-COID0BLY.js} +2 -2
- package/dist/chunks/{url-BcMYVCXQ.js.map → url-COID0BLY.js.map} +1 -1
- package/dist/code.cjs +1 -1
- package/dist/code.cjs.map +1 -1
- package/dist/code.d.cts +1 -1
- package/dist/code.d.ts +1 -1
- package/dist/code.js +1 -1
- package/dist/code.js.map +1 -1
- package/dist/color.cjs +2 -2
- package/dist/color.d.cts +1 -1
- package/dist/color.d.ts +1 -1
- package/dist/color.js +2 -2
- package/dist/core.cjs +5 -5
- package/dist/core.d.cts +5 -5
- package/dist/core.d.ts +5 -5
- package/dist/core.js +5 -5
- package/dist/email.cjs +357 -0
- package/dist/email.cjs.map +1 -0
- package/dist/email.d.cts +163 -0
- package/dist/email.d.ts +163 -0
- package/dist/email.js +351 -0
- package/dist/email.js.map +1 -0
- package/dist/files.cjs +1 -1
- package/dist/files.cjs.map +1 -1
- package/dist/files.d.cts +3 -59
- package/dist/files.d.ts +3 -59
- package/dist/files.js +1 -1
- package/dist/files.js.map +1 -1
- package/dist/image.cjs +2 -2
- package/dist/image.cjs.map +1 -1
- package/dist/image.js +2 -2
- package/dist/image.js.map +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +43 -19
- package/dist/index.d.ts +43 -19
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/link.cjs +3 -3
- package/dist/link.d.cts +1 -1
- package/dist/link.d.ts +1 -1
- package/dist/link.js +3 -3
- package/dist/markdown.cjs +1 -1
- package/dist/markdown.cjs.map +1 -1
- package/dist/markdown.js +1 -1
- package/dist/markdown.js.map +1 -1
- package/dist/number.cjs +1 -1
- package/dist/number.d.cts +1 -1
- package/dist/number.d.ts +1 -1
- package/dist/number.js +1 -1
- package/dist/otp.cjs +1 -1
- package/dist/otp.js +1 -1
- package/dist/rich.cjs +3 -3
- package/dist/rich.cjs.map +1 -1
- package/dist/rich.d.cts +2 -2
- package/dist/rich.d.ts +2 -2
- package/dist/rich.js +3 -3
- package/dist/rich.js.map +1 -1
- package/dist/secrets.cjs +1 -1
- package/dist/secrets.cjs.map +1 -1
- package/dist/secrets.d.cts +1 -1
- package/dist/secrets.d.ts +1 -1
- package/dist/secrets.js +1 -1
- package/dist/secrets.js.map +1 -1
- package/dist/share.cjs +1 -1
- package/dist/share.d.cts +1 -1
- package/dist/share.d.ts +1 -1
- package/dist/share.js +1 -1
- package/dist/structured.cjs +2 -2
- package/dist/structured.cjs.map +1 -1
- package/dist/structured.js +2 -2
- package/dist/structured.js.map +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.cjs.map +1 -1
- package/dist/table.d.cts +1 -1
- package/dist/table.d.ts +1 -1
- package/dist/table.js +1 -1
- package/dist/table.js.map +1 -1
- package/dist/testing.cjs +2 -2
- package/dist/testing.d.cts +3 -3
- package/dist/testing.d.ts +3 -3
- package/dist/testing.js +2 -2
- package/package.json +35 -6
- package/dist/chunks/errors-9h8sdFFX.js.map +0 -1
- package/dist/chunks/errors-BwOF6T_M.cjs.map +0 -1
- package/dist/chunks/field-BHo5y-t_.js.map +0 -1
- package/dist/chunks/field-Bytz2WfN.cjs.map +0 -1
- package/dist/chunks/paste-reader-Bo01IMC_.cjs.map +0 -1
- 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-
|
|
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-
|
|
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-
|
|
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-
|
|
7
|
-
import { a as createBrowserPasteAdapter, i as PasteEnvironment, n as PasteAdapter, r as PasteClipboardLike, t as BrowserPasteAdapterOptions } from "./chunks/paste-adapter
|
|
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-
|
|
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):
|
|
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:
|
|
203
|
-
readonly Label:
|
|
204
|
-
readonly Value:
|
|
205
|
-
readonly Trigger:
|
|
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):
|
|
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:
|
|
418
|
-
readonly Label:
|
|
419
|
-
readonly Status:
|
|
420
|
-
readonly Zone:
|
|
421
|
-
readonly Trigger:
|
|
422
|
-
readonly Preview:
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
7
|
-
import { a as createBrowserPasteAdapter, i as PasteEnvironment, n as PasteAdapter, r as PasteClipboardLike, t as BrowserPasteAdapterOptions } from "./chunks/paste-adapter-
|
|
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-
|
|
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):
|
|
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:
|
|
203
|
-
readonly Label:
|
|
204
|
-
readonly Value:
|
|
205
|
-
readonly Trigger:
|
|
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):
|
|
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:
|
|
418
|
-
readonly Label:
|
|
419
|
-
readonly Status:
|
|
420
|
-
readonly Zone:
|
|
421
|
-
readonly Trigger:
|
|
422
|
-
readonly Preview:
|
|
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-
|
|
3
|
-
import { a as validatePayload, i as serializeJson, n as isBlob, r as normalizePayload, t as IMAGE_MIME_TYPE } from "./chunks/payload-
|
|
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-
|
|
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-
|
|
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-
|
|
8
|
-
import { i as shareOrCopy, r as shareMethod, t as TOUCH_FIRST } from "./chunks/share-
|
|
9
|
-
import { t as createOtpField } from "./chunks/field-
|
|
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-CK3NxfkM.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
|