@homebound/beam 4.12.1 → 4.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -7881,11 +7881,13 @@ type AiLoadingPanelProps = {
7881
7881
  title?: string;
7882
7882
  message?: ReactNode;
7883
7883
  omitBg?: boolean;
7884
+ /** Caller-owned footer progress status, such as "usually takes 3 minutes". Hidden when unset. */
7885
+ progressText?: string;
7884
7886
  };
7885
7887
  /**
7886
7888
  * Tells the user AI work is running, and that they're free to go do something else.
7887
7889
  *
7888
- * Indeterminate — these steps don't report progress, so this never shows a percentage or ETA.
7890
+ * The spinner stays indeterminate. `progressText` is an optional status line the caller supplies to give the user a better idea of the progress.
7889
7891
  */
7890
7892
  declare function AiLoadingPanel(props: AiLoadingPanelProps): React$1.JSX.Element;
7891
7893
 
package/dist/index.d.ts CHANGED
@@ -7881,11 +7881,13 @@ type AiLoadingPanelProps = {
7881
7881
  title?: string;
7882
7882
  message?: ReactNode;
7883
7883
  omitBg?: boolean;
7884
+ /** Caller-owned footer progress status, such as "usually takes 3 minutes". Hidden when unset. */
7885
+ progressText?: string;
7884
7886
  };
7885
7887
  /**
7886
7888
  * Tells the user AI work is running, and that they're free to go do something else.
7887
7889
  *
7888
- * Indeterminate — these steps don't report progress, so this never shows a percentage or ETA.
7890
+ * The spinner stays indeterminate. `progressText` is an optional status line the caller supplies to give the user a better idea of the progress.
7889
7891
  */
7890
7892
  declare function AiLoadingPanel(props: AiLoadingPanelProps): React$1.JSX.Element;
7891
7893
 
package/dist/index.js CHANGED
@@ -14867,10 +14867,11 @@ import { jsx as jsx62, jsxs as jsxs41 } from "react/jsx-runtime";
14867
14867
  function AiLoadingPanel(props) {
14868
14868
  const {
14869
14869
  title = "Importing Details...",
14870
- message = defaultMessage,
14871
- omitBg = false
14870
+ omitBg = false,
14871
+ progressText
14872
14872
  } = props;
14873
14873
  const tid = useTestIds(props, "aiLoadingPanel");
14874
+ const message = props.message ?? `${progressText === void 0 ? "This process can take a few minutes. " : ""}Feel free to keep working in another tab. Once imported, you may edit or add to content before saving.`;
14874
14875
  const card = (
14875
14876
  // `status` rather than `alert` so assistive tech waits for a pause instead of interrupting, and
14876
14877
  // `aria-busy` so it knows the surrounding content is still settling.
@@ -14885,12 +14886,31 @@ function AiLoadingPanel(props) {
14885
14886
  "--color": "var(--b-on-surface)"
14886
14887
  }],
14887
14888
  textAlign: "tac"
14888
- }), ...tid.message, children: message })
14889
+ }), ...tid.message, children: message }),
14890
+ progressText !== void 0 && /* @__PURE__ */ jsxs41("div", { ...trussProps42({
14891
+ width: "w100",
14892
+ display: "df",
14893
+ alignItems: "aic",
14894
+ justifyContent: "jcc",
14895
+ gap: "g_1",
14896
+ marginTop: "mt1",
14897
+ paddingTop: "pt2",
14898
+ borderTopStyle: "bts_solid",
14899
+ borderTopWidth: "btw_1px",
14900
+ borderColor: ["bc_var", {
14901
+ "--borderColor": "var(--b-surface-separator)"
14902
+ }],
14903
+ fontWeight: "fw4",
14904
+ fontSize: "fz_12px",
14905
+ lineHeight: "lh_16px"
14906
+ }), children: [
14907
+ /* @__PURE__ */ jsx62(Icon, { icon: "time", inc: 2 }),
14908
+ /* @__PURE__ */ jsx62("span", { ...tid.progressText, children: progressText })
14909
+ ] })
14889
14910
  ] }) })
14890
14911
  );
14891
14912
  return omitBg ? card : /* @__PURE__ */ jsx62(AiPanel, { padding: "lg", ...tid, children: card });
14892
14913
  }
14893
- var defaultMessage = "This process can take a few minutes. Feel free to keep working in another tab. Once imported, you may edit or add to content before saving.";
14894
14914
 
14895
14915
  // src/components/AiSlimBanner.tsx
14896
14916
  import { jsx as jsx63, jsxs as jsxs42 } from "react/jsx-runtime";