@aperture-browser/session-react 0.0.0-nightly.140.0e89bae7602d → 0.0.0-nightly.142.c0a7c614ebc3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -4
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -78,7 +78,7 @@ declare class ClipboardError extends ClipboardError_base<{
|
|
|
78
78
|
}
|
|
79
79
|
declare const copyText: (value: string) => Effect.Effect<void, ClipboardError>;
|
|
80
80
|
/** Copies `value`, then runs `onCopied`, or shows an error toast if the copy fails. */
|
|
81
|
-
declare const copyTextWithToast: (value: string, onCopied?: () => void) => Effect.Effect<void, never, never>;
|
|
81
|
+
declare const copyTextWithToast: (value: string, onCopied?: () => void) => Effect.Effect<string | number | void, never, never>;
|
|
82
82
|
//#endregion
|
|
83
83
|
//#region src/components/browser-control-pane.d.ts
|
|
84
84
|
type BrowserControlPaneProps = {
|
package/dist/index.js
CHANGED
|
@@ -436,10 +436,7 @@ const copyText = (value) => Effect.suspend(() => {
|
|
|
436
436
|
return copied ? Effect.void : Effect.fail(new ClipboardError({}));
|
|
437
437
|
});
|
|
438
438
|
/** Copies `value`, then runs `onCopied`, or shows an error toast if the copy fails. */
|
|
439
|
-
const copyTextWithToast = (value, onCopied = () => {}) => copyText(value).pipe(Effect.andThen(Effect.sync(onCopied)), Effect.catchTag("ClipboardError", (error) => Effect.sync(() =>
|
|
440
|
-
console.warn("Copy failed", error);
|
|
441
|
-
toast.error("Copy failed");
|
|
442
|
-
})));
|
|
439
|
+
const copyTextWithToast = (value, onCopied = () => {}) => copyText(value).pipe(Effect.andThen(Effect.sync(onCopied)), Effect.catchTag("ClipboardError", (error) => Effect.logWarning("Copy failed", error).pipe(Effect.andThen(Effect.sync(() => toast.error("Copy failed"))))));
|
|
443
440
|
//#endregion
|
|
444
441
|
//#region src/components/browser-tab-strip.tsx
|
|
445
442
|
const BROWSER_TAB_DRAG_KIND = "browser-tab";
|