@octaviaflow/core 3.1.0-beta.77 → 3.1.0-beta.78

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.js CHANGED
@@ -18247,7 +18247,9 @@ function OnboardingUseCaseStep({
18247
18247
  onContinue,
18248
18248
  onSkip,
18249
18249
  onBack,
18250
- title = "What do you want to automate?"
18250
+ title = "What do you want to automate?",
18251
+ showWorkspaceField = true,
18252
+ submitLabel = "Create workspace"
18251
18253
  }) {
18252
18254
  const [useCases, setUseCases] = useState41(defaults?.useCases ?? []);
18253
18255
  const [hearAbout, setHearAbout] = useState41(defaults?.hearAbout);
@@ -18266,8 +18268,8 @@ function OnboardingUseCaseStep({
18266
18268
  onContinue({
18267
18269
  useCases,
18268
18270
  hearAbout,
18269
- workspaceName,
18270
- ...companyDomain && linkDomain && { linkedDomain: companyDomain }
18271
+ ...showWorkspaceField && { workspaceName },
18272
+ ...showWorkspaceField && companyDomain && linkDomain && { linkedDomain: companyDomain }
18271
18273
  })
18272
18274
  );
18273
18275
  };
@@ -18293,7 +18295,7 @@ function OnboardingUseCaseStep({
18293
18295
  onChange: setHearAbout
18294
18296
  }
18295
18297
  ),
18296
- orgMatch ?? /* @__PURE__ */ jsxs76("div", { className: "ods-onboarding__workspace", children: [
18298
+ showWorkspaceField && (orgMatch ?? /* @__PURE__ */ jsxs76("div", { className: "ods-onboarding__workspace", children: [
18297
18299
  /* @__PURE__ */ jsx77(
18298
18300
  Input,
18299
18301
  {
@@ -18320,11 +18322,11 @@ function OnboardingUseCaseStep({
18320
18322
  )
18321
18323
  }
18322
18324
  )
18323
- ] }),
18325
+ ] })),
18324
18326
  /* @__PURE__ */ jsxs76("div", { className: "ods-onboarding__actions", children: [
18325
18327
  onBack && /* @__PURE__ */ jsx77(Button, { variant: "ghost", onClick: onBack, disabled: busy, children: "Back" }),
18326
18328
  onSkip && /* @__PURE__ */ jsx77(Button, { variant: "ghost", onClick: onSkip, disabled: busy, children: "Skip for now" }),
18327
- /* @__PURE__ */ jsx77(Button, { type: "submit", variant: "primary", loading: busy, children: "Create workspace" })
18329
+ /* @__PURE__ */ jsx77(Button, { type: "submit", variant: "primary", loading: busy, children: submitLabel })
18328
18330
  ] })
18329
18331
  ] });
18330
18332
  }