@burdenoff/website-sdk 2026.720.4 → 2026.720.6

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.mjs CHANGED
@@ -7129,7 +7129,7 @@ function SectionHead({
7129
7129
  )
7130
7130
  ] });
7131
7131
  }
7132
- var TYPE_FILTERS = [
7132
+ var DEFAULT_TYPE_FILTERS = [
7133
7133
  { type: "NODE", label: "Nodes" },
7134
7134
  { type: "WORKFLOW", label: "Workflows" },
7135
7135
  { type: "TEMPLATE", label: "Templates" },
@@ -7139,9 +7139,10 @@ var TYPE_FILTERS = [
7139
7139
  ];
7140
7140
  function TypeFilters({
7141
7141
  browsePath,
7142
- onNavigate
7142
+ onNavigate,
7143
+ typeFilters
7143
7144
  }) {
7144
- return /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-2 justify-center", children: TYPE_FILTERS.map((f) => /* @__PURE__ */ jsx(
7145
+ return /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-2 justify-center", children: typeFilters.map((f) => /* @__PURE__ */ jsx(
7145
7146
  "button",
7146
7147
  {
7147
7148
  type: "button",
@@ -7193,6 +7194,7 @@ function StoreHomePage({
7193
7194
  compatibleWith,
7194
7195
  appLoginUrl,
7195
7196
  onNavigate,
7197
+ terminology,
7196
7198
  productName,
7197
7199
  heroTitle,
7198
7200
  heroSubtitle,
@@ -7247,6 +7249,10 @@ function StoreHomePage({
7247
7249
  const hasNoItems = !loading && !error && featuredItems.length === 0 && popularItems.length === 0 && freeItems.length === 0;
7248
7250
  const resolvedTitle = heroTitle ?? `${productName ? `${productName} ` : ""}Store`;
7249
7251
  const resolvedSubtitle = heroSubtitle ?? "Discover workflows, nodes, integrations, and templates built by the community.";
7252
+ const typeFilters = terminology?.typeFilters ?? DEFAULT_TYPE_FILTERS;
7253
+ const searchPlaceholder = terminology?.searchPlaceholder ?? "Search nodes, workflows, templates\u2026";
7254
+ const emptyStateDescription = terminology?.emptyStateDescription ?? "As the community ships workflows, templates, and integrations, they will show up right here.";
7255
+ const publisherCtaDescription = terminology?.publisherCtaDescription ?? `Share your workflows, nodes, and integrations with ${productName ? "the " : ""}community. Earn from your work or contribute for free.`;
7250
7256
  return /* @__PURE__ */ jsxs("div", { className: "w-full", children: [
7251
7257
  /* @__PURE__ */ jsx(
7252
7258
  PageHead,
@@ -7338,7 +7344,7 @@ function StoreHomePage({
7338
7344
  {
7339
7345
  name: "q",
7340
7346
  type: "search",
7341
- placeholder: "Search nodes, workflows, templates\u2026",
7347
+ placeholder: searchPlaceholder,
7342
7348
  className: "flex-1 h-12 rounded-xl border border-border bg-background px-4 text-sm text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-primary/40 shadow-sm"
7343
7349
  }
7344
7350
  ),
@@ -7353,7 +7359,14 @@ function StoreHomePage({
7353
7359
  ]
7354
7360
  }
7355
7361
  ),
7356
- /* @__PURE__ */ jsx(TypeFilters, { browsePath, onNavigate: navigate })
7362
+ /* @__PURE__ */ jsx(
7363
+ TypeFilters,
7364
+ {
7365
+ browsePath,
7366
+ onNavigate: navigate,
7367
+ typeFilters
7368
+ }
7369
+ )
7357
7370
  ] })
7358
7371
  ] }),
7359
7372
  /* @__PURE__ */ jsxs("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 pb-20 space-y-14 pt-4", children: [
@@ -7476,7 +7489,8 @@ function StoreHomePage({
7476
7489
  "No items have been published for ",
7477
7490
  productName ?? "this product",
7478
7491
  " ",
7479
- "yet. As the community ships workflows, templates, and integrations, they will show up right here."
7492
+ "yet. ",
7493
+ emptyStateDescription
7480
7494
  ] }),
7481
7495
  /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center justify-center gap-3", children: [
7482
7496
  /* @__PURE__ */ jsx(
@@ -7528,12 +7542,7 @@ function StoreHomePage({
7528
7542
  "Become a publisher"
7529
7543
  ] }),
7530
7544
  /* @__PURE__ */ jsx("h2", { className: "text-2xl sm:text-3xl font-bold text-foreground mb-3", children: "Built something useful?" }),
7531
- /* @__PURE__ */ jsxs("p", { className: "text-muted-foreground mb-8 max-w-lg mx-auto leading-relaxed", children: [
7532
- "Share your workflows, nodes, and integrations with",
7533
- " ",
7534
- productName ?? "the",
7535
- " community. Earn from your work or contribute for free."
7536
- ] }),
7545
+ /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mb-8 max-w-lg mx-auto leading-relaxed", children: publisherCtaDescription }),
7537
7546
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col sm:flex-row gap-3 justify-center", children: [
7538
7547
  /* @__PURE__ */ jsx(
7539
7548
  "a",
@@ -7568,16 +7577,18 @@ var SORT_OPTIONS = [
7568
7577
  { value: "PRICE_HIGH", label: "Price: High to Low" },
7569
7578
  { value: "NAME_ASC", label: "Name A\u2013Z" }
7570
7579
  ];
7571
- var TYPE_OPTIONS = [
7572
- { value: "", label: "All types" },
7573
- { value: "APP", label: "Apps" },
7574
- { value: "NODE", label: "Nodes" },
7575
- { value: "WORKFLOW", label: "Workflows" },
7576
- { value: "TEMPLATE", label: "Templates" },
7577
- { value: "INTEGRATION", label: "Integrations" },
7578
- { value: "EXTENSION", label: "Extensions" },
7579
- { value: "THEME", label: "Themes" }
7580
+ var DEFAULT_TYPE_OPTIONS = [
7581
+ { type: "APP", label: "Apps" },
7582
+ { type: "NODE", label: "Nodes" },
7583
+ { type: "WORKFLOW", label: "Workflows" },
7584
+ { type: "TEMPLATE", label: "Templates" },
7585
+ { type: "INTEGRATION", label: "Integrations" },
7586
+ { type: "EXTENSION", label: "Extensions" },
7587
+ { type: "THEME", label: "Themes" }
7580
7588
  ];
7589
+ function buildTypeOptions(typeFilters) {
7590
+ return [{ type: "", label: "All types" }, ...typeFilters];
7591
+ }
7581
7592
  var PRICING_OPTIONS = [
7582
7593
  { value: "", label: "All pricing" },
7583
7594
  { value: "FREE", label: "Free" },
@@ -7630,11 +7641,15 @@ function FacetList({
7630
7641
  function StoreBrowsePage({
7631
7642
  compatibleWith,
7632
7643
  onNavigate,
7644
+ terminology,
7633
7645
  productName,
7634
7646
  seoTitle,
7635
7647
  seoDescription
7636
7648
  }) {
7637
7649
  const client = useWebSDK();
7650
+ const typeFilters = terminology?.typeFilters ?? DEFAULT_TYPE_OPTIONS;
7651
+ const typeOptions = buildTypeOptions(typeFilters);
7652
+ const browseDescription = terminology?.browseDescription ?? "Browse all apps, workflows, nodes, and templates.";
7638
7653
  const initial = parseUrlParams();
7639
7654
  const [search, setSearch] = useState(initial.q);
7640
7655
  const [inputValue, setInputValue] = useState(initial.q);
@@ -7754,15 +7769,15 @@ function StoreBrowsePage({
7754
7769
  const sidebarContent = /* @__PURE__ */ jsxs("div", { className: "space-y-6", children: [
7755
7770
  /* @__PURE__ */ jsxs("div", { children: [
7756
7771
  /* @__PURE__ */ jsx("p", { className: "text-xs font-semibold uppercase tracking-wider text-muted-foreground mb-2", children: "Type" }),
7757
- /* @__PURE__ */ jsx("div", { className: "space-y-1", children: TYPE_OPTIONS.map((opt) => /* @__PURE__ */ jsx(
7772
+ /* @__PURE__ */ jsx("div", { className: "space-y-1", children: typeOptions.map((opt) => /* @__PURE__ */ jsx(
7758
7773
  "button",
7759
7774
  {
7760
7775
  type: "button",
7761
- onClick: () => setType(opt.value),
7762
- className: `w-full text-left text-sm px-2 py-1.5 rounded transition-colors ${type === opt.value ? "bg-primary/10 text-primary font-medium" : "text-muted-foreground hover:text-foreground hover:bg-muted/50"}`,
7776
+ onClick: () => setType(opt.type),
7777
+ className: `w-full text-left text-sm px-2 py-1.5 rounded transition-colors ${type === opt.type ? "bg-primary/10 text-primary font-medium" : "text-muted-foreground hover:text-foreground hover:bg-muted/50"}`,
7763
7778
  children: opt.label
7764
7779
  },
7765
- opt.value
7780
+ opt.type
7766
7781
  )) })
7767
7782
  ] }),
7768
7783
  /* @__PURE__ */ jsxs("div", { children: [
@@ -7832,7 +7847,7 @@ function StoreBrowsePage({
7832
7847
  PageHead,
7833
7848
  {
7834
7849
  title: seoTitle ?? `Browse Store${productName ? ` \u2013 ${productName}` : ""}`,
7835
- description: seoDescription ?? "Browse all apps, workflows, nodes, and templates.",
7850
+ description: seoDescription ?? browseDescription,
7836
7851
  productName
7837
7852
  }
7838
7853
  ),