@wow-two-beta/fe 0.0.24 → 0.0.25
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/chunks/{BackToTopButton.vue_vue_type_script_setup_true_lang-dge5C6We.js → BackToTopButton.vue_vue_type_script_setup_true_lang-CNMcUYtR.js} +13 -9
- package/dist/chunks/BackToTopButton.vue_vue_type_script_setup_true_lang-CNMcUYtR.js.map +1 -0
- package/dist/chunks/{KanbanCard.vue_vue_type_script_setup_true_lang-B_NmyVkE.js → KanbanCard.vue_vue_type_script_setup_true_lang-BCnquIre.js} +2 -2
- package/dist/chunks/{KanbanCard.vue_vue_type_script_setup_true_lang-B_NmyVkE.js.map → KanbanCard.vue_vue_type_script_setup_true_lang-BCnquIre.js.map} +1 -1
- package/dist/chunks/{UseClipboard-x6nEdQ9f.js → UseClipboard-D5jEv39w.js} +52 -16
- package/dist/chunks/UseClipboard-D5jEv39w.js.map +1 -0
- package/dist/foundation/clipboard/ClipboardResult.d.ts +7 -0
- package/dist/foundation/clipboard/LegacyCopy.d.ts +6 -2
- package/dist/foundation/clipboard/hooks/UseClipboard.d.ts +18 -8
- package/dist/foundation/clipboard/index.js +2 -2
- package/dist/index.js +2 -2
- package/dist/presentation/actions/copyButton/CopyButton.vue.d.ts +3 -1
- package/dist/presentation/actions/index.js +1 -1
- package/dist/presentation/display/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/BackToTopButton.vue_vue_type_script_setup_true_lang-dge5C6We.js.map +0 -1
- package/dist/chunks/UseClipboard-x6nEdQ9f.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UseClipboard-x6nEdQ9f.js","sources":["../../src/foundation/clipboard/ClipboardResult.ts","../../src/foundation/clipboard/ClipboardSupport.ts","../../src/foundation/clipboard/LegacyCopy.ts","../../src/foundation/clipboard/CopyText.ts","../../src/foundation/clipboard/hooks/UseClipboard.ts"],"sourcesContent":["import type { ClipboardFailure } from './models/ClipboardFailure';\nimport type { Result } from '../results';\n\nimport { toError } from '../errors';\nexport type { ClipboardFailure } from './models/ClipboardFailure';\nexport type { ClipboardWriteResult } from './models/ClipboardWriteResult';\n\n/** The `status` discriminant of a {@link ClipboardWriteResult} — for a consumer's own switch or status→copy map. */\nexport type ClipboardWriteStatus = 'copied' | ClipboardFailure['status'];\n\n/** One MIME-typed payload read off the system clipboard. */\nexport interface ClipboardReadItem {\n /** The MIME type the platform reported — `text/plain`, `text/html`, `image/png`, … */\n readonly type: string;\n\n /** The payload itself. Read it with `blob.text()` for textual types, or hand it to `URL.createObjectURL`. */\n readonly blob: Blob;\n}\nexport type { ClipboardReadTextResult } from './models/ClipboardReadTextResult';\nexport type { ClipboardReadItemsResult } from './models/ClipboardReadItemsResult';\n\n/** The `status` discriminant shared by both read results. */\nexport type ClipboardReadStatus = 'read' | ClipboardFailure['status'];\n\n/** Tunes a clipboard read. */\nexport interface ClipboardReadOptions {\n /**\n * Called with the normalized error on a `denied` or `failed` result — the seam for a toast or telemetry hook.\n * Never called for `unsupported`, which is a capability fact rather than a failure. A throw from this callback\n * is swallowed. Called at most once per operation, on the final result.\n */\n readonly onError?: (error: Error) => void;\n}\n\n/** Tunes a clipboard write. */\nexport interface ClipboardCopyOptions extends ClipboardReadOptions {\n /**\n * Whether a write the Clipboard API cannot complete retries through the deprecated\n * `document.execCommand('copy')` path. Defaults to `false`.\n *\n * Opt in for reach — older Safari and any non-secure context have no `navigator.clipboard` at all, and\n * `execCommand` is the only write available there. Leave it off to stay on standards-track APIs only. See\n * `LegacyCopy.ts` for the deprecation caveats and for exactly when the retry runs.\n */\n readonly legacyFallback?: boolean;\n}\n\n/** The shape every result family shares, so one reporter can serve every entry point. */\ntype ClipboardOutcome = Result<unknown, ClipboardFailure>;\n\n/** Reads a caught value's `name` as a string. Guarded, so a throwing getter reads as absent. */\nfunction nameOf(value: unknown): string | undefined {\n try {\n if (typeof value !== 'object' || value === null) return undefined;\n const name: unknown = (value as { name?: unknown }).name;\n return typeof name === 'string' ? name : undefined;\n } catch {\n return undefined;\n }\n}\n\n/**\n * Checks whether a caught value is the platform refusing rather than breaking — the split behind `denied`.\n * Exported for the sibling modules; absent from the barrel, where the statuses are the answer callers want.\n *\n * @param value The caught value.\n */\nexport function isPermissionRefusal(value: unknown): boolean {\n const name = nameOf(value);\n return name === 'NotAllowedError' || name === 'SecurityError';\n}\n\n/**\n * Turns a caught value into the `denied` or `failed` arm it belongs in. Serves reads and writes alike — the\n * returned {@link ClipboardFailure} is assignable to every result union in the slice. Exported for the sibling\n * modules; absent from the barrel. Never throws: `toError` is total.\n *\n * @param error The caught value.\n */\nexport function toClipboardFailure(error: unknown): ClipboardFailure {\n const failure = toError(error);\n return isPermissionRefusal(error) ? { status: 'denied', error: failure } : { status: 'failed', error: failure };\n}\n\n/**\n * Hands a consumer's callback the failure carried by `result`, absorbing a throw from the callback itself. A\n * reporter that throws must not convert a typed result into an unhandled rejection.\n *\n * Called once per entry point, on the FINAL result — so a write that degrades through the legacy fallback\n * reports the outcome the caller receives, not each intermediate attempt. Exported for the sibling modules;\n * absent from the barrel.\n *\n * @param result The outcome about to be returned.\n * @param onError The consumer's reporter, if they supplied one.\n * @returns `result`, unchanged — so a call site can `return reportClipboardOutcome(...)`.\n */\nexport function reportClipboardOutcome<TResult extends ClipboardOutcome>(\n result: TResult,\n onError: ((error: Error) => void) | undefined,\n): TResult {\n if (onError === undefined) return result;\n if (result.ok || !('error' in result.failure)) return result;\n\n try {\n onError(result.failure.error);\n } catch {\n // The consumer's own reporter failed. There is nothing useful left to do with that — the result still\n // reaches the caller, which is the guarantee that matters.\n }\n return result;\n}\n","/** The `ClipboardItem` constructor, narrowed to the one overload this slice calls. */\nexport type ClipboardItemConstructor = new (items: Record<string, Blob>) => ClipboardItem;\n\n/** Reads a member off an object, guarded — a throwing getter reads as `undefined`. */\nfunction member(source: object, key: string): unknown {\n try {\n return (source as Record<string, unknown>)[key];\n } catch {\n return undefined;\n }\n}\n\n/**\n * Reads `navigator.clipboard` if it is there and usable. Guarded end-to-end; returns `undefined` under SSR.\n * Exported for the sibling modules; absent from the barrel.\n */\nexport function clipboardApi(): Clipboard | undefined {\n try {\n if (typeof navigator === 'undefined') return undefined;\n const clipboard = member(navigator, 'clipboard');\n if (typeof clipboard !== 'object' || clipboard === null) return undefined;\n return clipboard as Clipboard;\n } catch {\n return undefined;\n }\n}\n\n/** The Clipboard API methods this slice calls. */\nexport const ClipboardMethodName = {\n /** Names `clipboard.writeText` — the plain-text write, implemented in every engine with a clipboard. */\n WriteText: 'writeText',\n\n /** Names `clipboard.write` — the `ClipboardItem` write, for images and multi-flavour payloads. */\n Write: 'write',\n\n /** Names `clipboard.readText` — the plain-text read. */\n ReadText: 'readText',\n\n /** Names `clipboard.read` — the `ClipboardItem` read. */\n Read: 'read',\n} as const;\n\n/** The Clipboard API methods this slice calls. */\nexport type ClipboardMethodName = (typeof ClipboardMethodName)[keyof typeof ClipboardMethodName];\n\n/**\n * Resolves one of the Clipboard API's methods, bound to the clipboard object, or `undefined` when this engine\n * does not implement it. The single gate every operation passes through. Exported for the sibling modules;\n * absent from the barrel.\n *\n * Bound rather than returned bare: a caller invoking a detached `writeText` would lose its receiver and get a\n * `TypeError` (\"Illegal invocation\") from the real implementation.\n *\n * @param name The method to resolve — `writeText`, `write`, `readText`, or `read`.\n */\nexport function clipboardMethod<TName extends ClipboardMethodName>(name: TName): Clipboard[TName] | undefined {\n const clipboard = clipboardApi();\n if (clipboard === undefined) return undefined;\n\n const method = member(clipboard, name);\n if (typeof method !== 'function') return undefined;\n\n try {\n return (method as (...args: unknown[]) => unknown).bind(clipboard) as Clipboard[TName];\n } catch {\n return undefined;\n }\n}\n\n/**\n * Reads the `ClipboardItem` constructor, which multi-format writes need and which Node and older Safari lack.\n * Exported for the sibling modules; absent from the barrel.\n */\nexport function clipboardItemConstructor(): ClipboardItemConstructor | undefined {\n try {\n const constructor = member(globalThis, 'ClipboardItem');\n if (typeof constructor !== 'function') return undefined;\n return constructor as ClipboardItemConstructor;\n } catch {\n return undefined;\n }\n}\n\n/**\n * Whether plain-text copying is available — `navigator.clipboard.writeText`.\n *\n * `false` under SSR, in a non-secure context, and on engines predating the Clipboard API. It does NOT predict\n * the permission: a copy can still come back `denied` if the call has no user gesture behind it. Treat it as\n * \"is the road there\", not \"will the trip succeed\".\n */\nexport function canCopy(): boolean {\n return clipboardMethod(ClipboardMethodName.WriteText) !== undefined;\n}\n\n/**\n * Whether multi-format copying is available — `navigator.clipboard.write` plus a `ClipboardItem` constructor.\n * Strictly narrower than {@link canCopy}: every engine shipped `writeText` first.\n */\nexport function canCopyItems(): boolean {\n return clipboardMethod(ClipboardMethodName.Write) !== undefined && clipboardItemConstructor() !== undefined;\n}\n\n/**\n * Whether reading from the clipboard is available — `navigator.clipboard.readText`.\n *\n * Returns `false` when the method is absent, including under SSR. Even where present,\n * reading remains subject to browser permission and user-activation requirements. If all you need is the payload the\n * user just pasted, do not read at all — handle the `paste` event with `getPasteItems`, which needs no\n * permission and no prompt.\n */\nexport function canReadClipboard(): boolean {\n return clipboardMethod(ClipboardMethodName.ReadText) !== undefined;\n}\n\n/**\n * Whether the deprecated `document.execCommand('copy')` path is available — the only write that exists in a\n * non-secure context or on older Safari. Requires a document; `false` under SSR.\n *\n * A `true` here does not mean the copy will succeed: `execCommand` still requires the call to sit inside a user\n * gesture, and reports its own refusal by returning `false`.\n */\nexport function canLegacyCopy(): boolean {\n try {\n if (typeof document === 'undefined') return false;\n return typeof member(document, 'execCommand') === 'function';\n } catch {\n return false;\n }\n}\n","import { AriaAttribute } from '../dom';\nimport { toClipboardFailure, type ClipboardCopyOptions, type ClipboardWriteResult } from './ClipboardResult';\nimport { canLegacyCopy } from './ClipboardSupport';\n\n/** Off-screen but laid out — selection requires a rendered element, so `display: none` would copy nothing. */\nconst HiddenTextareaCss =\n 'position:fixed;top:0;left:0;width:1px;height:1px;padding:0;margin:0;border:none;outline:none;box-shadow:none;background:transparent;opacity:0;pointer-events:none;';\n\n/** Restores focus to whatever held it before the textarea took it. Guarded — a stand-in may have no `focus`. */\nfunction restoreFocus(previous: Element | null): void {\n try {\n if (previous === null) return;\n const focus = (previous as { focus?: unknown }).focus;\n if (typeof focus !== 'function') return;\n (previous as HTMLElement).focus({ preventScroll: true });\n } catch {\n // The previously focused element is gone or refuses focus. Not worth failing a completed copy over.\n }\n}\n\n/** Detaches the temporary textarea, preferring `remove()` and falling back to the parent. Never throws. */\nfunction detach(element: HTMLTextAreaElement): void {\n try {\n if (typeof element.remove === 'function') {\n element.remove();\n return;\n }\n element.parentNode?.removeChild(element);\n } catch {\n // Nothing further to try. The failure to detach must not mask the copy's own result.\n }\n}\n\n/**\n * Copies `text` through the deprecated `document.execCommand('copy')` path.\n *\n * Synchronous, unlike every other write in this slice — `execCommand` is. Requires a user gesture: outside one\n * the command reports its own refusal by returning `false`, which surfaces here as `failed` (the legacy API has\n * no way to say \"denied\" specifically). Returns `unsupported` under SSR or where `execCommand` is gone.\n *\n * Exported for the sibling modules and for a consumer that wants the legacy path explicitly; the temporary\n * element is removed on every path, including a throw from `execCommand` itself.\n *\n * Never throws.\n *\n * @param text The text to place on the clipboard.\n * @deprecated Prefer `copyText`, which uses the Clipboard API and falls back here only on `legacyFallback: true`.\n */\nexport function legacyCopyText(text: string): ClipboardWriteResult {\n if (!canLegacyCopy()) return { ok: false, failure: { status: 'unsupported' } };\n\n let element: HTMLTextAreaElement | undefined;\n let previouslyFocused: Element | null = null;\n\n try {\n const body: unknown = document.body;\n if (typeof body !== 'object' || body === null) return { ok: false, failure: { status: 'unsupported' } };\n\n previouslyFocused = document.activeElement;\n\n element = document.createElement('textarea');\n element.value = text;\n element.setAttribute(AriaAttribute.Hidden, 'true');\n element.setAttribute('tabindex', '-1');\n element.setAttribute('readonly', 'readonly');\n element.style.cssText = HiddenTextareaCss;\n\n (body as HTMLElement).appendChild(element);\n\n element.focus({ preventScroll: true });\n element.select();\n element.setSelectionRange(0, text.length);\n\n const copied = document.execCommand('copy');\n return copied\n ? { ok: true, value: undefined }\n : {\n ok: false,\n failure: { status: 'failed', error: new Error('document.execCommand(\"copy\") reported failure.') },\n };\n } catch (error) {\n return { ok: false, failure: toClipboardFailure(error) };\n } finally {\n if (element !== undefined) detach(element);\n restoreFocus(previouslyFocused);\n }\n}\n\n/**\n * Retries a write that the Clipboard API could not complete through the legacy path, when the caller opted in.\n *\n * The retry runs whenever `modern` is not `copied` — not only on `unsupported`. A `denied` from\n * `navigator.clipboard` is exactly the case `execCommand` can still serve: the legacy command is gated on the\n * user gesture the call already sits in, not on the Clipboard API's permission.\n *\n * Which result wins:\n * - the legacy attempt, when it copied — a success outranks any diagnosis;\n * - otherwise `modern`, when the Clipboard API was actually present (its `denied` / `failed` is the more\n * specific account of what went wrong);\n * - otherwise the legacy attempt's own result — with no Clipboard API at all, `modern` is a bare `unsupported`\n * and the legacy failure says more.\n *\n * Exported for the sibling write modules; absent from the barrel. Never throws.\n *\n * @param modern The result the Clipboard API path produced.\n * @param text The plain-text payload, or `undefined` when the write has no text arm to degrade to.\n * @param options The caller's options — the retry runs only on `legacyFallback: true`.\n */\nexport function withLegacyFallback(\n modern: ClipboardWriteResult,\n text: string | undefined,\n options: ClipboardCopyOptions | undefined,\n): ClipboardWriteResult {\n if (modern.ok) return modern;\n if (options?.legacyFallback !== true) return modern;\n if (text === undefined) return modern;\n\n const legacy = legacyCopyText(text);\n if (legacy.ok) return legacy;\n return modern.failure.status === 'unsupported' ? legacy : modern;\n}\n","import {\n reportClipboardOutcome,\n toClipboardFailure,\n type ClipboardCopyOptions,\n type ClipboardWriteResult,\n} from './ClipboardResult';\nimport { clipboardMethod } from './ClipboardSupport';\nimport { withLegacyFallback } from './LegacyCopy';\n\n/** Runs the Clipboard API write, mapping every outcome onto the result union. Never throws. */\nasync function writeTextThroughApi(text: string): Promise<ClipboardWriteResult> {\n const writeText = clipboardMethod('writeText');\n if (writeText === undefined) return { ok: false, failure: { status: 'unsupported' } };\n\n try {\n await writeText(text);\n return { ok: true, value: undefined };\n } catch (error) {\n return { ok: false, failure: toClipboardFailure(error) };\n }\n}\n\n/**\n * Writes `text` to the system clipboard.\n *\n * Call it from a user gesture: browsers require transient activation for a clipboard write, and without one the\n * platform refuses — which surfaces as `denied`, not `unsupported`, since the API was in fact present.\n *\n * Resolves to `unsupported` under SSR, in a non-secure context, and on engines with no Clipboard API. Pass\n * `legacyFallback: true` to retry those through the deprecated `document.execCommand` path.\n *\n * Never throws, never rejects.\n *\n * @param text The text to place on the clipboard. An empty string is a valid payload — it clears the clipboard.\n * @param options Error reporting and the legacy-fallback opt-in.\n */\nexport async function copyText(text: string, options?: ClipboardCopyOptions): Promise<ClipboardWriteResult> {\n try {\n if (typeof text !== 'string') {\n return reportClipboardOutcome(\n { ok: false, failure: { status: 'failed', error: new TypeError('copyText expects a string.') } } as const,\n options?.onError,\n );\n }\n\n const result = withLegacyFallback(await writeTextThroughApi(text), text, options);\n return reportClipboardOutcome(result, options?.onError);\n } catch (error) {\n // Unreachable by design — every helper above is itself total. Kept so a future edit to one of them cannot\n // turn this entry point into a rejecting promise.\n return reportClipboardOutcome({ ok: false, failure: toClipboardFailure(error) }, options?.onError);\n }\n}\n","import { onScopeDispose, shallowRef, toValue, type MaybeRefOrGetter, type ShallowRef } from 'vue';\nimport { copyText } from '../CopyText';\nimport type { ClipboardWriteResult } from '../ClipboardResult';\n\nexport interface UseClipboardOptions {\n /** Reset `copied` back to false after this many ms. Default 2000. Set 0 to keep state until explicitly reset. */\n resetAfter?: MaybeRefOrGetter<number>;\n}\n\nexport interface ClipboardControls {\n /** True for `resetAfter` ms after a successful copy. */\n copied: Readonly<ShallowRef<boolean>>;\n\n /** Last error from `navigator.clipboard.writeText`, if any. */\n error: Readonly<ShallowRef<Error | null>>;\n\n /** Writes text and returns the completed success or failure to the caller. */\n copy: (text: string) => Promise<ClipboardWriteResult>;\n\n /** Force-clear the `copied` flag. */\n reset: () => void;\n}\n\n/**\n * Wraps `navigator.clipboard.writeText` with a transient `copied` flag for\n * post-action UI (icon swap, \"Copied!\" tooltip). Pass `resetAfter: 0` to\n * keep `copied` true until you call `reset()`.\n *\n * `resetAfter` may be a ref or getter; it is read at copy time, so a window\n * changed between copies takes effect on the next one.\n */\nexport function useClipboard({ resetAfter = 2000 }: UseClipboardOptions = {}): ClipboardControls {\n const copied = shallowRef(false);\n const error = shallowRef<Error | null>(null);\n let timeout: ReturnType<typeof setTimeout> | null = null;\n let generation = 0;\n let disposed = false;\n\n const reset = (): void => {\n generation++;\n if (timeout) clearTimeout(timeout);\n timeout = null;\n copied.value = false;\n error.value = null;\n };\n\n const copy = async (text: string): Promise<ClipboardWriteResult> => {\n const operation = ++generation;\n if (timeout) clearTimeout(timeout);\n timeout = null;\n const result = await copyText(text);\n if (disposed || operation !== generation) return result;\n if (result.ok) {\n error.value = null;\n copied.value = true;\n const resetWindow = toValue(resetAfter);\n if (resetWindow > 0) {\n if (timeout) clearTimeout(timeout);\n timeout = setTimeout(() => {\n timeout = null;\n copied.value = false;\n }, resetWindow);\n }\n } else {\n copied.value = false;\n error.value =\n result.failure.status === 'unsupported' ? new Error('Clipboard is unavailable.') : result.failure.error;\n }\n return result;\n };\n\n onScopeDispose(() => {\n disposed = true;\n if (timeout) clearTimeout(timeout);\n });\n\n return { copied, error, copy, reset };\n}\n"],"names":[],"mappings":";;;AAmDA,SAAS,OAAO,OAAoC;AAClD,MAAI;AACF,QAAI,OAAO,UAAU,YAAY,UAAU,KAAM,QAAO;AACxD,UAAM,OAAiB,MAA6B;AACpD,WAAO,OAAO,SAAS,WAAW,OAAO;AAAA,EAC3C,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAQO,SAAS,oBAAoB,OAAyB;AAC3D,QAAM,OAAO,OAAO,KAAK;AACzB,SAAO,SAAS,qBAAqB,SAAS;AAChD;AASO,SAAS,mBAAmB,OAAkC;AACnE,QAAM,UAAU,QAAQ,KAAK;AAC7B,SAAO,oBAAoB,KAAK,IAAI,EAAE,QAAQ,UAA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