@vibes.diy/base 14.3.414 → 14.3.416

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 (53) hide show
  1. package/components/BrutalistCard.d.ts +1 -1
  2. package/components/BrutalistCard.js +1 -1
  3. package/components/LabelContainer.d.ts +1 -1
  4. package/components/LabelContainer.js +1 -1
  5. package/components/OptionButtons.d.ts +1 -1
  6. package/components/OptionButtons.js +1 -1
  7. package/components/SharePanelView.d.ts +1 -1
  8. package/components/SharePanelView.js +1 -1
  9. package/components/VibesSwitch.d.ts +1 -1
  10. package/components/VibesSwitch.js +1 -1
  11. package/components/VibesWindowHeader.d.ts +1 -1
  12. package/components/VibesWindowHeader.js +1 -1
  13. package/components/icons/ArrowLeftIcon.d.ts +1 -1
  14. package/components/icons/ArrowLeftIcon.js +1 -1
  15. package/components/icons/ArrowRightIcon.d.ts +1 -1
  16. package/components/icons/ArrowRightIcon.js +1 -1
  17. package/components/icons/BackIcon.d.ts +1 -1
  18. package/components/icons/BackIcon.js +1 -1
  19. package/components/icons/CollabIcon.d.ts +1 -1
  20. package/components/icons/CollabIcon.js +1 -1
  21. package/components/icons/FaceIcon1.d.ts +1 -1
  22. package/components/icons/FaceIcon1.js +1 -1
  23. package/components/icons/FaceIcon2.d.ts +1 -1
  24. package/components/icons/FaceIcon2.js +1 -1
  25. package/components/icons/FaceIcon3.d.ts +1 -1
  26. package/components/icons/FaceIcon3.js +1 -1
  27. package/components/icons/FaceIcon4.d.ts +1 -1
  28. package/components/icons/FaceIcon4.js +1 -1
  29. package/components/icons/FaceIconBow.d.ts +1 -1
  30. package/components/icons/FaceIconBow.js +1 -1
  31. package/components/icons/FaceIconCrown.d.ts +1 -1
  32. package/components/icons/FaceIconCrown.js +1 -1
  33. package/components/icons/FaceIconFlatTop.d.ts +1 -1
  34. package/components/icons/FaceIconFlatTop.js +1 -1
  35. package/components/icons/FaceIconFlick.d.ts +1 -1
  36. package/components/icons/FaceIconFlick.js +1 -1
  37. package/components/icons/InviteIcon.d.ts +1 -1
  38. package/components/icons/InviteIcon.js +1 -1
  39. package/components/icons/LoginIcon.d.ts +1 -1
  40. package/components/icons/LoginIcon.js +1 -1
  41. package/components/icons/PaperclipIcon.d.ts +1 -1
  42. package/components/icons/PaperclipIcon.js +1 -1
  43. package/components/icons/RemixIcon.d.ts +1 -1
  44. package/components/icons/RemixIcon.js +1 -1
  45. package/components/icons/SettingsIcon.d.ts +1 -1
  46. package/components/icons/SettingsIcon.js +1 -1
  47. package/components/vibe-menu/open-resolver.d.ts +2 -0
  48. package/components/vibe-menu/open-resolver.js +2 -0
  49. package/components/vibe-menu/parts/Composer.d.ts +2 -0
  50. package/components/vibe-menu/parts/Composer.js +4 -1
  51. package/components/vibe-menu/parts/use-composer-draft.d.ts +1 -0
  52. package/components/vibe-menu/parts/use-composer-draft.js +56 -10
  53. package/package.json +5 -5
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  import { BrutalistCardSize, BrutalistCardVariant } from "./BrutalistCard.styles.js";
3
3
  export interface BrutalistCardProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  children: React.ReactNode;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  import { BrutalistCardStyles } from "./BrutalistCard.styles.js";
3
3
  export const BrutalistCard = React.forwardRef(({ children, variant = "default", size = "md", messageType, style, className, ...divProps }, ref) => {
4
4
  const platform = messageType === "platform";
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  export interface LabelContainerProps {
3
3
  readonly label?: string;
4
4
  readonly children: React.ReactNode;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  import { LabelContainerStyles } from "./LabelContainer.styles.js";
3
3
  import { useMobile } from "../hooks/useMobile.js";
4
4
  export function LabelContainer({ label, children, style, className, disappear = false }) {
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  export interface OptionDecoration {
3
3
  readonly badge?: React.ReactNode;
4
4
  readonly aside?: React.ReactNode;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  export function OptionButtons({ options, disabled, activeOption, isFirst, firstMessage, onSelect, decorate, inSet, }) {
3
3
  const [selected, setSelected] = React.useState(null);
4
4
  const clearIfStillSelected = React.useCallback((option) => {
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  export type ShareViewer = "anonymous" | "member" | "author";
3
3
  export type ShareAccess = "public" | "request";
4
4
  export type SharePosture = "open" | "gated" | "private";
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  import { ViewerTagView } from "./ViewerTagView.js";
3
3
  import { ShareLinkView } from "./ShareLinkView.js";
4
4
  import { SubTabStrip } from "./SubTabStrip.js";
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  export interface VibesSwitchProps {
3
3
  size?: number | string;
4
4
  className?: string;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  import { switchColors, ovalColors } from "./VibesSwitch.styles.js";
3
3
  const PATH_NUMBER = /-?\d*\.?\d+/g;
4
4
  function mixPath(from, to, t) {
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  export declare function VibesWindowStyles(): React.JSX.Element;
3
3
  export declare function VibesWindowGear({ size }: {
4
4
  size?: number;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  import { VibesSwitch } from "./VibesSwitch.js";
3
3
  import { ovalColors } from "./VibesSwitch.styles.js";
4
4
  import { VIBES_WINDOW_CSS } from "./VibesWindowFrame.styles.js";
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  interface ArrowLeftIconProps {
3
3
  width?: number;
4
4
  height?: number;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  export function ArrowLeftIcon({ width = 19, height = 20, fill = "#231f20" }) {
3
3
  return (React.createElement("svg", { width: width, height: height, viewBox: "0 0 19 20", xmlns: "http://www.w3.org/2000/svg" },
4
4
  React.createElement("g", null,
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  interface ArrowRightIconProps {
3
3
  width?: number;
4
4
  height?: number;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  export function ArrowRightIcon({ width = 19, height = 20, fill = "#231f20" }) {
3
3
  return (React.createElement("svg", { width: width, height: height, viewBox: "0 0 19 20", xmlns: "http://www.w3.org/2000/svg" },
4
4
  React.createElement("g", null,
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  interface BackIconProps {
3
3
  bgFill?: string;
4
4
  fill?: string;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  export function BackIcon({ bgFill = "#fff", fill = "#2a2a2a", width = 44, height = 44 }) {
3
3
  return (React.createElement("svg", { width: width, height: height, viewBox: "0 0 44 44", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
4
4
  React.createElement("circle", { cx: "22", cy: "22", r: "22", fill: bgFill }),
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  interface CollabIconProps {
3
3
  bgFill?: string;
4
4
  fill?: string;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  export function CollabIcon({ bgFill = "#fff", fill = "#2a2a2a", width = 44, height = 44 }) {
3
3
  const eyeR = 0.9;
4
4
  const faces = [
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  interface FaceIcon1Props {
3
3
  width?: number;
4
4
  height?: number;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  export function FaceIcon1({ width = 48.06, height = 44.18, fill = "#231f20" }) {
3
3
  return (React.createElement("svg", { width: width, height: height, viewBox: "0 0 48.06 44.18", xmlns: "http://www.w3.org/2000/svg" },
4
4
  React.createElement("g", null,
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  interface FaceIcon2Props {
3
3
  width?: number;
4
4
  height?: number;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  export function FaceIcon2({ width = 46.47, height = 47.65, fill = "#231f20" }) {
3
3
  return (React.createElement("svg", { width: width, height: height, viewBox: "0 0 46.47 47.65", xmlns: "http://www.w3.org/2000/svg" },
4
4
  React.createElement("g", null,
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  interface FaceIcon3Props {
3
3
  width?: number;
4
4
  height?: number;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  export function FaceIcon3({ width = 46.51, height = 41.2, fill = "#231f20" }) {
3
3
  return (React.createElement("svg", { width: width, height: height, viewBox: "0 0 46.51 41.2", xmlns: "http://www.w3.org/2000/svg" },
4
4
  React.createElement("g", null,
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  interface FaceIcon4Props {
3
3
  width?: number;
4
4
  height?: number;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  export function FaceIcon4({ width = 46.47, height = 52.08, fill = "#231f20" }) {
3
3
  return (React.createElement("svg", { width: width, height: height, viewBox: "0 0 46.47 52.08", xmlns: "http://www.w3.org/2000/svg" },
4
4
  React.createElement("g", null,
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  interface FaceIconBowProps {
3
3
  width?: number;
4
4
  height?: number;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  export function FaceIconBow({ width = 48, height = 52, fill = "#ff571e", bowFill = "#ef77a9" }) {
3
3
  return (React.createElement("svg", { width: width, height: height, viewBox: "826 330 266 340", xmlns: "http://www.w3.org/2000/svg" },
4
4
  React.createElement("g", { transform: "translate(0 -28)" },
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  interface FaceIconCrownProps {
3
3
  width?: number;
4
4
  height?: number;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  export function FaceIconCrown({ width = 58.72, height = 57.74, fill = "#e9ae20" }) {
3
3
  return (React.createElement("svg", { width: width, height: height, viewBox: "889.57 366.50 140.93 138.58", xmlns: "http://www.w3.org/2000/svg" },
4
4
  React.createElement("path", { fill: fill, fillRule: "nonzero", d: "M 920.5 425.171875 C 920.542969 419.976562 919.808594 414.785156 916.175781 410.824219 C 914.511719 409.007812 912.417969 407.574219 910.34375 406.265625 C 907.546875 404.5 904.648438 402.902344 901.792969 401.230469 C 901.410156 402.65625 901.023438 404.082031 900.636719 405.507812 C 907.390625 405.792969 914.199219 406.363281 920.878906 407.402344 C 922.683594 407.6875 924.019531 406.414062 923.699219 404.582031 C 922.683594 398.746094 919.007812 393.746094 917.992188 387.910156 C 916.59375 388.5 915.195312 389.089844 913.800781 389.679688 C 915.683594 392.402344 918.214844 394.535156 920.851562 396.5 C 923.390625 398.390625 926.089844 400.078125 928.878906 401.574219 C 930.085938 402.222656 931.957031 401.71875 932.246094 400.203125 C 933.585938 393.207031 934.925781 386.207031 936.265625 379.207031 C 934.765625 379.003906 933.261719 378.800781 931.757812 378.597656 C 931.394531 385.660156 932.519531 392.785156 935.066406 399.382812 C 935.402344 400.25 936.003906 400.910156 936.972656 401.027344 C 937.816406 401.128906 938.867188 400.761719 939.261719 399.933594 C 941.734375 394.695312 945.578125 390.105469 949.898438 386.285156 C 953.828125 382.808594 959.011719 379.347656 964.21875 379.15625 C 963.675781 377.851562 963.136719 376.542969 962.59375 375.238281 C 958.660156 378.484375 955.335938 382.585938 952.503906 386.808594 C 949.714844 390.96875 947.082031 395.777344 946.769531 400.875 C 946.660156 402.625 948.792969 403.71875 950.21875 402.859375 C 956.882812 398.832031 963.582031 394.839844 970.636719 391.523438 C 977.332031 388.375 984.628906 385.597656 992.105469 385.363281 C 991.902344 383.863281 991.699219 382.359375 991.496094 380.859375 C 986.296875 381.835938 981.664062 385.234375 977.667969 388.523438 C 973.585938 391.878906 969.84375 395.671875 966.449219 399.710938 C 965.847656 400.429688 965.578125 401.320312 965.972656 402.21875 C 966.308594 402.980469 967.167969 403.726562 968.070312 403.628906 C 980.714844 402.238281 991.832031 395.308594 1004.285156 393.152344 C 1007.441406 392.605469 1010.746094 392.472656 1013.910156 393.042969 C 1014.113281 391.539062 1014.316406 390.039062 1014.519531 388.535156 C 1010.714844 388.796875 1007.65625 391.285156 1005.007812 393.824219 C 1001.886719 396.8125 999.113281 400.144531 995.898438 403.035156 C 994.855469 403.976562 995.070312 406.011719 996.363281 406.640625 C 1003.636719 410.183594 1010.910156 413.726562 1018.183594 417.269531 C 1018.570312 415.847656 1018.957031 414.421875 1019.34375 412.996094 C 1013.582031 412.464844 1007.921875 413.421875 1002.21875 414.125 C 1001.085938 414.265625 1000.113281 414.890625 999.964844 416.117188 C 999.832031 417.242188 1000.488281 418.3125 1001.609375 418.632812 C 1001.507812 418.605469 1001.03125 418.304688 1001.484375 418.59375 C 1001.679688 418.71875 1001.882812 418.835938 1002.078125 418.960938 C 1002.128906 418.996094 1002.507812 419.289062 1002.269531 419.097656 C 1002.015625 418.898438 1002.484375 419.292969 1002.480469 419.289062 C 1002.742188 419.53125 1002.996094 419.777344 1003.230469 420.050781 C 1003.433594 420.289062 1003.839844 421.011719 1003.9375 421.40625 C 1004.105469 422.078125 1004.003906 422.742188 1003.65625 423.640625 C 1003.210938 424.796875 1004.148438 426.160156 1005.257812 426.464844 C 1006.554688 426.820312 1007.632812 426.023438 1008.082031 424.863281 C 1009.117188 422.183594 1008.519531 419.363281 1006.757812 417.15625 C 1005.785156 415.941406 1004.371094 414.648438 1002.828125 414.207031 C 1002.628906 415.710938 1002.421875 417.214844 1002.21875 418.714844 C 1007.921875 418.011719 1013.582031 417.054688 1019.34375 417.585938 C 1021.589844 417.789062 1022.5 414.28125 1020.5 413.308594 L 998.679688 402.675781 L 999.144531 406.28125 C 1002.09375 403.621094 1004.683594 400.601562 1007.496094 397.804688 C 1008.675781 396.636719 1009.886719 395.457031 1011.269531 394.523438 C 1011.761719 394.191406 1012.570312 393.703125 1012.929688 393.546875 C 1013.246094 393.414062 1013.578125 393.3125 1013.910156 393.226562 C 1014.070312 393.1875 1014.234375 393.152344 1014.398438 393.125 C 1014.195312 393.148438 1014.234375 393.152344 1014.519531 393.125 C 1015.65625 393.046875 1016.632812 392.3125 1016.773438 391.136719 C 1016.898438 390.09375 1016.269531 388.824219 1015.132812 388.617188 C 1002.253906 386.289062 990.132812 392.855469 978.226562 396.667969 C 974.921875 397.726562 971.527344 398.660156 968.070312 399.039062 C 968.609375 400.347656 969.152344 401.652344 969.691406 402.957031 C 972.945312 399.089844 976.511719 395.457031 980.382812 392.207031 C 983.953125 389.214844 988.089844 386.15625 992.714844 385.28125 C 995.269531 384.800781 994.667969 380.695312 992.105469 380.777344 C 985.964844 380.96875 979.96875 382.6875 974.296875 384.957031 C 968.203125 387.398438 962.371094 390.429688 956.683594 393.691406 C 953.730469 395.382812 950.816406 397.136719 947.902344 398.894531 L 951.355469 400.875 C 951.40625 400.046875 951.566406 399.25 951.871094 398.210938 C 952.140625 397.28125 952.476562 396.363281 952.871094 395.480469 C 953.914062 393.15625 955.226562 390.953125 956.65625 388.847656 C 959.238281 385.042969 962.285156 381.417969 965.839844 378.484375 C 967.386719 377.207031 966.109375 374.496094 964.21875 374.566406 C 957.761719 374.804688 951.929688 378.5 947.167969 382.59375 C 942.367188 386.714844 938.011719 391.867188 935.296875 397.617188 L 939.492188 398.164062 C 937.074219 391.902344 936.003906 385.300781 936.347656 378.597656 C 936.480469 376.050781 932.332031 375.429688 931.84375 377.988281 C 930.503906 384.988281 929.164062 391.984375 927.824219 398.984375 C 928.945312 398.527344 930.070312 398.070312 931.191406 397.613281 C 928.617188 396.226562 926.121094 394.679688 923.75 392.960938 C 921.574219 391.386719 919.289062 389.570312 917.761719 387.363281 C 916.25 385.179688 913.121094 386.550781 913.566406 389.132812 C 914.585938 394.964844 918.257812 399.96875 919.273438 405.800781 C 920.214844 404.859375 921.15625 403.921875 922.097656 402.980469 C 915.011719 401.875 907.800781 401.222656 900.636719 400.917969 C 898.320312 400.820312 897.570312 404.074219 899.476562 405.191406 C 902.179688 406.773438 904.914062 408.296875 907.574219 409.945312 C 908.636719 410.605469 909.683594 411.285156 910.683594 412.03125 C 911.058594 412.308594 910.546875 411.910156 910.933594 412.222656 C 911.15625 412.40625 911.382812 412.589844 911.597656 412.78125 C 911.964844 413.097656 912.320312 413.429688 912.65625 413.777344 C 913.84375 415.003906 914.6875 416.453125 915.164062 418.050781 C 915.457031 419.03125 915.667969 420.210938 915.738281 420.878906 C 915.890625 422.304688 915.921875 423.738281 915.910156 425.171875 C 915.882812 428.125 920.472656 428.125 920.5 425.171875" }),
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  interface FaceIconFlatTopProps {
3
3
  width?: number;
4
4
  height?: number;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  export function FaceIconFlatTop({ width = 44.08, height = 45.58, fill = "#ef77a9" }) {
3
3
  return (React.createElement("svg", { width: width, height: height, viewBox: "482.96 394.74 105.79 109.38", xmlns: "http://www.w3.org/2000/svg" },
4
4
  React.createElement("path", { fill: fill, fillRule: "nonzero", d: "M 509.636719 485.921875 C 514.53125 491.957031 522.105469 494.863281 529.648438 495.679688 C 533.753906 496.125 537.921875 495.964844 542.015625 495.484375 C 545.492188 495.070312 548.960938 494.433594 552.242188 493.179688 C 555.976562 491.753906 559.441406 489.660156 562.039062 486.574219 C 562.804688 485.664062 562.929688 484.351562 562.039062 483.460938 C 561.25 482.675781 559.691406 482.546875 558.921875 483.460938 C 554.871094 488.277344 548.644531 490.195312 542.59375 491.007812 C 535.628906 491.941406 528.082031 491.957031 521.492188 489.242188 C 518.085938 487.835938 515.070312 485.667969 512.75 482.808594 C 512 481.882812 510.414062 482.027344 509.636719 482.808594 C 508.722656 483.722656 508.882812 484.996094 509.636719 485.921875" }),
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  interface FaceIconFlickProps {
3
3
  width?: number;
4
4
  height?: number;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  export function FaceIconFlick({ width = 44.36, height = 67.38, fill = "#ff571e" }) {
3
3
  return (React.createElement("svg", { width: width, height: height, viewBox: "1330.59 342.07 106.46 161.71", xmlns: "http://www.w3.org/2000/svg" },
4
4
  React.createElement("path", { fill: fill, fillRule: "nonzero", d: "M 1392.769531 405.613281 C 1395.828125 399.886719 1398.882812 394.160156 1401.941406 388.433594 C 1406.8125 379.304688 1411.683594 370.179688 1416.558594 361.050781 L 1419.910156 354.769531 C 1421.265625 352.226562 1417.578125 350.070312 1416.046875 352.511719 C 1412.328125 358.429688 1408.613281 364.34375 1404.898438 370.261719 C 1399.023438 379.613281 1393.148438 388.964844 1387.273438 398.320312 L 1383.210938 404.785156 C 1384.570312 405.359375 1385.933594 405.933594 1387.296875 406.507812 C 1389.378906 401.09375 1391.464844 395.675781 1393.546875 390.261719 C 1396.867188 381.628906 1400.1875 372.996094 1403.507812 364.363281 C 1404.269531 362.382812 1405.03125 360.402344 1405.792969 358.421875 C 1406.226562 357.292969 1405.316406 355.96875 1404.230469 355.671875 C 1402.941406 355.316406 1401.949219 356.113281 1401.480469 357.230469 C 1399.242188 362.546875 1397.007812 367.859375 1394.769531 373.171875 C 1391.21875 381.601562 1387.667969 390.035156 1384.117188 398.464844 C 1383.300781 400.414062 1382.480469 402.359375 1381.660156 404.304688 C 1383.125 404.503906 1384.589844 404.699219 1386.054688 404.898438 C 1386.878906 393.851562 1387.703125 382.800781 1388.523438 371.753906 C 1388.640625 370.195312 1388.757812 368.640625 1388.875 367.082031 L 1384.402344 367.082031 C 1383.855469 376.765625 1383.394531 386.453125 1383.09375 396.148438 C 1382.992188 399.402344 1382.910156 402.65625 1382.902344 405.914062 C 1384.292969 405.535156 1385.683594 405.160156 1387.070312 404.785156 C 1386.546875 404.011719 1386.097656 403.191406 1385.699219 402.347656 C 1385.320312 401.539062 1385.035156 400.816406 1384.671875 399.777344 C 1383.878906 397.519531 1383.257812 395.203125 1382.71875 392.875 C 1382.199219 390.632812 1381.761719 388.371094 1381.375 386.101562 C 1381.203125 385.101562 1381.042969 384.097656 1380.894531 383.09375 C 1380.835938 382.703125 1380.777344 382.3125 1380.722656 381.921875 C 1380.695312 381.714844 1380.664062 381.503906 1380.636719 381.292969 C 1380.578125 380.882812 1380.683594 381.671875 1380.617188 381.148438 C 1380.507812 380.296875 1380.394531 379.445312 1380.308594 378.589844 C 1378.84375 378.789062 1377.378906 378.988281 1375.914062 379.183594 C 1377.425781 386.175781 1379.058594 393.160156 1380.976562 400.050781 C 1381.578125 402.222656 1382.207031 404.390625 1382.984375 406.507812 C 1384.347656 405.933594 1385.710938 405.359375 1387.070312 404.785156 C 1386.351562 403.363281 1385.203125 402.097656 1384.210938 400.867188 C 1382.730469 399.039062 1381.195312 397.25 1379.648438 395.476562 C 1377.597656 393.121094 1375.523438 390.785156 1373.417969 388.476562 C 1372.605469 387.582031 1371.082031 387.648438 1370.257812 388.476562 C 1369.351562 389.382812 1369.464844 390.722656 1370.257812 391.636719 C 1371.875 393.511719 1373.472656 395.402344 1375.054688 397.304688 C 1377.5 400.246094 1379.808594 402.949219 1381.886719 406.027344 C 1382.726562 404.933594 1383.570312 403.835938 1384.410156 402.742188 C 1380.554688 401.65625 1376.636719 400.78125 1372.738281 399.847656 C 1370.324219 399.269531 1368.753906 402.652344 1371.015625 403.9375 C 1372.753906 404.921875 1374.589844 405.75 1376.441406 406.492188 C 1379.371094 407.671875 1382.558594 408.601562 1385.734375 408.070312 C 1386.925781 407.871094 1387.59375 406.398438 1387.296875 405.320312 C 1386.949219 404.054688 1385.742188 403.558594 1384.546875 403.757812 C 1384.96875 403.6875 1384.105469 403.78125 1384.011719 403.78125 C 1383.6875 403.785156 1383.363281 403.769531 1383.039062 403.742188 C 1382.65625 403.707031 1381.898438 403.554688 1381.289062 403.402344 C 1379.957031 403.0625 1378.652344 402.601562 1377.382812 402.078125 C 1376.183594 401.582031 1374.582031 400.816406 1373.273438 400.074219 C 1372.699219 401.4375 1372.125 402.800781 1371.550781 404.160156 C 1375.445312 405.09375 1379.367188 405.972656 1383.222656 407.054688 C 1385.015625 407.558594 1386.863281 405.421875 1385.75 403.769531 C 1382.101562 398.367188 1377.679688 393.402344 1373.417969 388.476562 C 1372.367188 389.527344 1371.3125 390.582031 1370.257812 391.636719 C 1372.304688 393.886719 1374.328125 396.164062 1376.328125 398.457031 C 1377.839844 400.1875 1379.335938 401.929688 1380.785156 403.710938 C 1381.082031 404.070312 1381.371094 404.4375 1381.664062 404.800781 C 1382.042969 405.28125 1381.664062 404.796875 1381.867188 405.0625 C 1381.996094 405.234375 1382.128906 405.40625 1382.253906 405.582031 C 1382.597656 406.050781 1382.945312 406.523438 1383.210938 407.042969 C 1384.339844 409.273438 1388.175781 407.714844 1387.296875 405.320312 C 1385.804688 401.246094 1384.75 397 1383.691406 392.796875 C 1382.664062 388.722656 1381.707031 384.632812 1380.789062 380.53125 C 1380.597656 379.6875 1380.410156 378.84375 1380.226562 377.996094 C 1379.703125 375.574219 1375.570312 376.058594 1375.835938 378.589844 C 1376.59375 385.898438 1377.808594 393.386719 1380.152344 400.363281 C 1380.925781 402.671875 1381.835938 405.019531 1383.210938 407.042969 C 1384.414062 408.816406 1387.375 408.238281 1387.378906 405.914062 C 1387.398438 394.09375 1388.066406 382.257812 1388.691406 370.457031 C 1388.75 369.332031 1388.808594 368.207031 1388.875 367.082031 C 1388.941406 365.875 1387.796875 364.847656 1386.636719 364.847656 C 1385.351562 364.847656 1384.488281 365.871094 1384.402344 367.082031 C 1383.578125 378.128906 1382.753906 389.179688 1381.929688 400.226562 C 1381.8125 401.785156 1381.695312 403.339844 1381.582031 404.898438 C 1381.5 405.996094 1382.492188 406.972656 1383.519531 407.09375 C 1384.71875 407.238281 1385.527344 406.550781 1385.972656 405.492188 L 1392.6875 389.554688 C 1396.234375 381.121094 1399.785156 372.691406 1403.335938 364.261719 C 1404.15625 362.3125 1404.972656 360.367188 1405.792969 358.421875 L 1401.480469 357.230469 C 1399.398438 362.648438 1397.3125 368.066406 1395.230469 373.480469 C 1391.910156 382.113281 1388.589844 390.746094 1385.269531 399.378906 C 1384.507812 401.359375 1383.746094 403.339844 1382.984375 405.320312 C 1382.042969 407.761719 1385.777344 409.105469 1387.070312 407.042969 C 1390.789062 401.125 1394.503906 395.210938 1398.222656 389.296875 C 1404.097656 379.941406 1409.972656 370.589844 1415.847656 361.238281 C 1417.199219 359.082031 1418.554688 356.925781 1419.910156 354.769531 C 1418.621094 354.019531 1417.335938 353.265625 1416.046875 352.511719 L 1406.875 369.695312 C 1402.003906 378.820312 1397.132812 387.949219 1392.261719 397.078125 C 1391.144531 399.167969 1390.023438 401.261719 1388.90625 403.355469 C 1387.554688 405.894531 1391.414062 408.160156 1392.769531 405.613281" }),
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  interface InviteIconProps {
3
3
  bgFill?: string;
4
4
  fill?: string;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  export function InviteIcon({ bgFill = "#fff", fill = "#2a2a2a", width = 44, height = 44 }) {
3
3
  return (React.createElement("svg", { width: width, height: height, viewBox: "0 0 44 44", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
4
4
  React.createElement("circle", { cx: "22", cy: "22", r: "22", fill: bgFill }),
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  interface LoginIconProps {
3
3
  bgFill?: string;
4
4
  fill?: string;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  export function LoginIcon({ bgFill = "#fff", fill = "#2a2a2a", width = 44, height = 44 }) {
3
3
  return (React.createElement("svg", { width: width, height: height, viewBox: "0 0 44 44", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
4
4
  React.createElement("circle", { cx: "22", cy: "22", r: "22", fill: bgFill }),
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  interface PaperclipIconProps {
3
3
  width?: number;
4
4
  height?: number;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  export function PaperclipIcon({ width = 16, height = 16, fill = "currentColor" }) {
3
3
  return (React.createElement("svg", { width: width, height: height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
4
4
  React.createElement("path", { d: "M20.5 12.5L12.62 20.38C10.77 22.23 7.77 22.23 5.92 20.38C4.07 18.53 4.07 15.53 5.92 13.68L14.61 5C15.84 3.77 17.84 3.77 19.07 5C20.29 6.23 20.29 8.23 19.07 9.46L10.5 18.03C9.88 18.65 8.88 18.65 8.26 18.03C7.65 17.42 7.65 16.42 8.26 15.81L15.9 8.17", stroke: fill, strokeWidth: 1.6, strokeLinecap: "round", strokeLinejoin: "round" })));
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  interface RemixIconProps {
3
3
  bgFill?: string;
4
4
  fill?: string;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  export function RemixIcon({ bgFill = "#fff", fill = "#2a2a2a", width = 44, height = 44 }) {
3
3
  return (React.createElement("svg", { width: width, height: height, viewBox: "0 0 44 44", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
4
4
  React.createElement("circle", { cx: "22", cy: "22", r: "22", fill: bgFill }),
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  interface SettingsIconProps {
3
3
  bgFill?: string;
4
4
  fill?: string;
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import * as React from "react";
2
2
  export function SettingsIcon({ bgFill = "#fff", fill = "#2a2a2a", width = 44, height = 44 }) {
3
3
  return (React.createElement("svg", { width: width, height: height, viewBox: "0 0 44 44", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
4
4
  React.createElement("circle", { cx: "22", cy: "22", r: "22", fill: bgFill }),
@@ -36,6 +36,8 @@ export type Opening = {
36
36
  kind: "guestSaveAsk";
37
37
  } | {
38
38
  kind: "inlineSignUp";
39
+ } | {
40
+ kind: "signedInHere";
39
41
  } | {
40
42
  kind: "devDraftChiclet";
41
43
  } | {
@@ -83,6 +83,8 @@ export function resolveOpening(opening, viewer) {
83
83
  return landing({ section: null });
84
84
  case "inlineSignUp":
85
85
  return landing({ section: "settings", view: { drill: "signup" } });
86
+ case "signedInHere":
87
+ return landing({ section: "vibe" });
86
88
  case "devDraftChiclet":
87
89
  return landing({ section: "share", banner: "publish" });
88
90
  case "pendingBadge":
@@ -67,6 +67,7 @@ export interface ComposerSlice {
67
67
  readonly refusedSend?: ComposerRefusedSend;
68
68
  readonly releaseHeld?: ComposerHeldRelease;
69
69
  readonly onHeldFollowUpGone?: (how: ComposerHeldGone) => void;
70
+ readonly onHeldPressNoted?: () => void;
70
71
  }
71
72
  export type ComposerHeldGone = "sent" | "edited";
72
73
  export type ComposerHeldReleaseVia = ComposerIdeaVia | "pressed" | "restored";
@@ -115,6 +116,7 @@ export interface ComposerDraft {
115
116
  readonly queuedFiles?: readonly number[];
116
117
  readonly handingOff?: string;
117
118
  submit(): boolean;
119
+ noteHeldPress?(): boolean;
118
120
  stop(): void;
119
121
  }
120
122
  export interface ComposerProps {
@@ -373,7 +373,10 @@ export function Composer(props) {
373
373
  const drop = composerFileDrop({ onFiles: attachments.add });
374
374
  const leftOutNote = leftOutSentence(attachments.leftOut);
375
375
  const next = composer.hold?.next;
376
- const sendCap = next !== undefined ? (React.createElement("button", { ref: nextCap, className: "vm-cap", type: "button", "data-next": "", "data-composer-submit": "vibe", disabled: composer.disabled === true || next.busy === true, "aria-busy": next.busy === true ? true : undefined, onClick: next.onPress, ...heldEnter.capKeys }, next.label)) : (React.createElement(SendCap, { label: composer.cap === "Remix this" ? "Remix this" : "Send", disabled: composer.disabled, onPress: submit }));
376
+ const sendCap = next !== undefined ? (React.createElement("button", { ref: nextCap, className: "vm-cap", type: "button", "data-next": "", "data-composer-submit": "vibe", disabled: composer.disabled === true || next.busy === true, "aria-busy": next.busy === true ? true : undefined, onClick: () => {
377
+ draft.noteHeldPress?.();
378
+ next.onPress();
379
+ }, ...heldEnter.capKeys }, next.label)) : (React.createElement(SendCap, { label: composer.cap === "Remix this" ? "Remix this" : "Send", disabled: composer.disabled, onPress: submit }));
377
380
  return (React.createElement(React.Fragment, null,
378
381
  React.createElement("input", { ref: fileInput, type: "file", multiple: true, hidden: true, accept: ATTACHMENT_ACCEPT, onChange: (event) => {
379
382
  attachments.add(Array.from(event.currentTarget.files ?? []));
@@ -6,6 +6,7 @@ export declare const QUEUE_STALE_BUILD_MS = 120000;
6
6
  export declare const QUEUED_CHANGE_KEY = "vibes.queuedChange.";
7
7
  export declare const HELD_CHANGE_KEY = "vibes.heldChange.";
8
8
  export declare const HELD_FOLLOW_UP_KEY = "vibes.heldFollowUp.";
9
+ export declare const HELD_FILE_PRESS_KEY = "vibes.heldFilePress.";
9
10
  export declare const DRAFT_CARRY_KEY = "vibes.draftCarry.";
10
11
  export declare function firstBuildDraftKey(chatId: string): string;
11
12
  export declare function carryComposerDraft(fromKey: string, toKey: string): void;
@@ -9,6 +9,8 @@ export const QUEUE_STALE_BUILD_MS = 120_000;
9
9
  export const QUEUED_CHANGE_KEY = "vibes.queuedChange.";
10
10
  export const HELD_CHANGE_KEY = "vibes.heldChange.";
11
11
  export const HELD_FOLLOW_UP_KEY = "vibes.heldFollowUp.";
12
+ export const HELD_FILE_PRESS_KEY = "vibes.heldFilePress.";
13
+ const FILE_PRESS_MARK = "pressed";
12
14
  function saveChange(prefix, appKey, text) {
13
15
  if (typeof sessionStorage === "undefined")
14
16
  return false;
@@ -70,6 +72,9 @@ export function carrySavedComposerDraft(fromKey, toKey) {
70
72
  saveChange(HELD_CHANGE_KEY, toKey, heldBack);
71
73
  if (followUp !== undefined)
72
74
  saveChange(HELD_FOLLOW_UP_KEY, toKey, followUp);
75
+ const filePress = takeChange(HELD_FILE_PRESS_KEY, fromKey);
76
+ if (filePress !== undefined)
77
+ saveChange(HELD_FILE_PRESS_KEY, toKey, filePress);
73
78
  }
74
79
  const ONE_FILE_TEXT = "Use the attached file.";
75
80
  const MANY_FILES_TEXT = "Use the attached files.";
@@ -128,6 +133,7 @@ export function useComposerDraft(input) {
128
133
  const backgroundCopy = React.useRef({});
129
134
  const heldPress = React.useRef(undefined);
130
135
  const restoredHeld = React.useRef(undefined);
136
+ const restoredFilePress = React.useRef(false);
131
137
  const heldWords = React.useRef(undefined);
132
138
  const prevResetKey = React.useRef(resetKey);
133
139
  if (prevResetKey.current !== resetKey) {
@@ -146,6 +152,7 @@ export function useComposerDraft(input) {
146
152
  backgroundCopy.current = {};
147
153
  heldPress.current = undefined;
148
154
  restoredHeld.current = undefined;
155
+ restoredFilePress.current = false;
149
156
  heldWords.current = undefined;
150
157
  }
151
158
  const queuedRef = React.useRef([]);
@@ -156,6 +163,14 @@ export function useComposerDraft(input) {
156
163
  else
157
164
  dropChange(HELD_FOLLOW_UP_KEY, saveKey);
158
165
  };
166
+ const holdingRef = React.useRef(false);
167
+ const keepFilePressMark = (saveKey) => {
168
+ if (holdingRef.current && heldTextRef.current === "" && heldPress.current === "") {
169
+ return saveChange(HELD_FILE_PRESS_KEY, saveKey, FILE_PRESS_MARK);
170
+ }
171
+ dropChange(HELD_FILE_PRESS_KEY, saveKey);
172
+ return false;
173
+ };
159
174
  const persistKeyRef = React.useRef(persistKey);
160
175
  const restoredQueueRef = React.useRef(undefined);
161
176
  const fieldTextRef = React.useRef("");
@@ -173,6 +188,8 @@ export function useComposerDraft(input) {
173
188
  saveChange(HELD_CHANGE_KEY, saveKey, heldText);
174
189
  keepFollowUpMark(saveKey, heldText);
175
190
  }
191
+ if (saveKey !== null)
192
+ keepFilePressMark(saveKey);
176
193
  const restored = restoredQueueRef.current;
177
194
  const stillShown = restored !== undefined && fieldTextRef.current.includes(restored) ? [restored] : [];
178
195
  restoredQueueRef.current = undefined;
@@ -197,6 +214,8 @@ export function useComposerDraft(input) {
197
214
  keepFollowUpMark(saveKey, heldText);
198
215
  backgroundCopy.current.held = saveKey;
199
216
  }
217
+ if (keepFilePressMark(saveKey))
218
+ backgroundCopy.current.held = saveKey;
200
219
  const pending = queuedRef.current;
201
220
  if (pending.length > 0 && saveChange(QUEUED_CHANGE_KEY, saveKey, pending.join("\n"))) {
202
221
  backgroundCopy.current.queued = saveKey;
@@ -226,6 +245,8 @@ export function useComposerDraft(input) {
226
245
  if (heldBack !== undefined && followUp !== undefined && followUp.trim() === heldBack.trim()) {
227
246
  restoredHeld.current = heldBack.trim();
228
247
  }
248
+ const filePress = takeChange(HELD_FILE_PRESS_KEY, persistKey);
249
+ restoredFilePress.current = filePress === FILE_PRESS_MARK && heldBack === undefined;
229
250
  const queuedBack = takeChange(QUEUED_CHANGE_KEY, persistKey);
230
251
  restoredQueueRef.current = isFirstBuildDraftKey(persistKey) ? queuedBack : undefined;
231
252
  const saved = [queuedBack, heldBack].filter((t) => t !== undefined);
@@ -264,6 +285,7 @@ export function useComposerDraft(input) {
264
285
  const holding = composer.hold !== undefined;
265
286
  React.useEffect(() => {
266
287
  heldTextRef.current = holding ? text.trim() : "";
288
+ holdingRef.current = holding;
267
289
  }, [holding, text]);
268
290
  React.useEffect(() => {
269
291
  const copy = backgroundCopy.current;
@@ -271,6 +293,7 @@ export function useComposerDraft(input) {
271
293
  return;
272
294
  dropCopy(HELD_CHANGE_KEY, copy.held);
273
295
  dropCopy(HELD_FOLLOW_UP_KEY, copy.held);
296
+ dropCopy(HELD_FILE_PRESS_KEY, copy.held);
274
297
  copy.held = undefined;
275
298
  }, [holding]);
276
299
  React.useEffect(() => {
@@ -400,13 +423,7 @@ export function useComposerDraft(input) {
400
423
  return false;
401
424
  }
402
425
  if (composer.hold !== undefined) {
403
- if (text.trim() !== "") {
404
- heldPress.current = text.trim();
405
- heldWords.current = text.trim();
406
- }
407
- else if (attachments.readyAttachments.length > 0) {
408
- heldPress.current = "";
409
- }
426
+ noteHeldPress();
410
427
  composer.onSendBlocked?.(composer.hold.reason);
411
428
  return false;
412
429
  }
@@ -456,6 +473,23 @@ export function useComposerDraft(input) {
456
473
  heldWordsSent();
457
474
  return true;
458
475
  }
476
+ function noteHeldPress() {
477
+ if (composer.hold === undefined)
478
+ return false;
479
+ const trimmed = text.trim();
480
+ if (trimmed !== "") {
481
+ heldPress.current = trimmed;
482
+ heldWords.current = trimmed;
483
+ }
484
+ else if (attachments.readyAttachments.length > 0) {
485
+ heldPress.current = "";
486
+ }
487
+ else {
488
+ return false;
489
+ }
490
+ composer.onHeldPressNoted?.();
491
+ return true;
492
+ }
459
493
  function heldWordsSent() {
460
494
  if (heldWords.current === undefined)
461
495
  return;
@@ -482,18 +516,21 @@ export function useComposerDraft(input) {
482
516
  return;
483
517
  releasedKey.current = release.key;
484
518
  const trimmed = text.trim();
485
- const fileOnlyPress = trimmed === "" && heldPress.current === "" && attachments.readyAttachments.length > 0;
486
- if (trimmed === "" && fileOnlyPress === false) {
519
+ const filesReady = trimmed === "" && attachments.readyAttachments.length > 0;
520
+ const fileOnlyPress = filesReady && heldPress.current === "";
521
+ const fileOnlyRestored = filesReady && fileOnlyPress === false && restoredFilePress.current;
522
+ if (trimmed === "" && fileOnlyPress === false && fileOnlyRestored === false) {
487
523
  release.onOutcome?.({ released: false, reason: "empty" });
488
524
  return;
489
525
  }
490
- const via = fileOnlyPress ? "pressed" : heldFollowUpVia(trimmed);
526
+ const via = fileOnlyPress ? "pressed" : fileOnlyRestored ? "restored" : heldFollowUpVia(trimmed);
491
527
  if (via === undefined) {
492
528
  release.onOutcome?.({ released: false, reason: "edited" });
493
529
  return;
494
530
  }
495
531
  heldPress.current = undefined;
496
532
  restoredHeld.current = undefined;
533
+ restoredFilePress.current = false;
497
534
  if (submit())
498
535
  release.onOutcome?.({ released: true, via });
499
536
  else
@@ -505,6 +542,14 @@ export function useComposerDraft(input) {
505
542
  heldWords.current = trimmed;
506
543
  return;
507
544
  }
545
+ if (trimmed !== "" && (heldPress.current === "" || restoredFilePress.current)) {
546
+ heldPress.current = undefined;
547
+ restoredFilePress.current = false;
548
+ if (persistKey !== null)
549
+ dropCopy(HELD_FILE_PRESS_KEY, persistKey);
550
+ composer.onHeldFollowUpGone?.("edited");
551
+ return;
552
+ }
508
553
  if (heldWords.current === undefined || heldWords.current === trimmed)
509
554
  return;
510
555
  heldWords.current = undefined;
@@ -548,6 +593,7 @@ export function useComposerDraft(input) {
548
593
  queuedFiles: queuedFileCounts,
549
594
  handingOff,
550
595
  submit,
596
+ noteHeldPress,
551
597
  stop,
552
598
  };
553
599
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibes.diy/base",
3
- "version": "14.3.414",
3
+ "version": "14.3.416",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -10,10 +10,10 @@
10
10
  "dependencies": {
11
11
  "@adviser/cement": "~0.5.37",
12
12
  "@emotion/css": "~11.13.5",
13
- "@vibes.diy/api-types": "14.3.414",
14
- "@vibes.diy/use-vibes-types": "14.3.414",
15
- "@vibes.diy/vibe-runtime": "14.3.414",
16
- "@vibes.diy/vibe-types": "14.3.414",
13
+ "@vibes.diy/api-types": "14.3.416",
14
+ "@vibes.diy/use-vibes-types": "14.3.416",
15
+ "@vibes.diy/vibe-runtime": "14.3.416",
16
+ "@vibes.diy/vibe-types": "14.3.416",
17
17
  "arktype": "~2.2.9",
18
18
  "officeparser": "~8.8.0",
19
19
  "qrcode-generator": "~2.0.4",