@inkeep/cxkit-primitives 0.0.0-dev-20250301024243 → 0.0.0-dev-20250301024533

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.
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./utils/misc.cjs"),o=(t,n)=>{const s=[];t.type==="documentation"&&t.contentType==="book"?s.push("Publications"):t.type==="documentation"&&t.contentType==="pdf"&&s.push("PDFs"),(t.type==="github_issue"||b.isGitHubUrl(t.url))&&s.push("GitHub"),t.type==="discourse"&&s.push("Forums"),t.type==="discord"&&s.push("Discord"),t.type==="slack_message"&&s.push("Slack"),t.type==="stackoverflow"&&s.push("StackOverflow");const i=[],a=n?.tabs?.map(e=>typeof e=="string"?e:e[0]);for(const e of s)a?.includes(e)&&(e===t.breadcrumbs?.[0]?i.push([e,{breadcrumbs:t.breadcrumbs?.slice(1)}]):i.push(e));return console.log("tabsWithBreadcrumbs",s,a),i};exports.getTabs=o;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./utils/misc.cjs"),b=(t,a)=>{const s=[];t.type==="documentation"&&t.contentType==="book"?s.push("Publications"):t.type==="documentation"&&t.contentType==="pdf"&&s.push("PDFs"),(t.type==="github_issue"||p.isGitHubUrl(t.url))&&s.push("GitHub"),t.type==="discourse"&&s.push("Forums"),t.type==="discord"&&s.push("Discord"),t.type==="slack_message"&&s.push("Slack"),t.type==="stackoverflow"&&s.push("StackOverflow");const i=[],n=a?.tabs?.map(e=>typeof e=="string"?e:e[0]);for(const e of s)n?.includes(e)&&(e===t.breadcrumbs?.[0]?i.push([e,{breadcrumbs:t.breadcrumbs?.slice(1)}]):i.push(e));return i};exports.getTabs=b;
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import { isGitHubUrl as n } from "./utils/misc.js";
3
- const b = (t, a) => {
3
+ const o = (t, p) => {
4
4
  const s = [];
5
5
  t.type === "documentation" && t.contentType === "book" ? s.push("Publications") : t.type === "documentation" && t.contentType === "pdf" && s.push("PDFs"), (t.type === "github_issue" || n(t.url)) && s.push("GitHub"), t.type === "discourse" && s.push("Forums"), t.type === "discord" && s.push("Discord"), t.type === "slack_message" && s.push("Slack"), t.type === "stackoverflow" && s.push("StackOverflow");
6
- const e = [], p = a?.tabs?.map((i) => typeof i == "string" ? i : i[0]);
6
+ const e = [], a = p?.tabs?.map((i) => typeof i == "string" ? i : i[0]);
7
7
  for (const i of s)
8
- p?.includes(i) && (i === t.breadcrumbs?.[0] ? e.push([i, { breadcrumbs: t.breadcrumbs?.slice(1) }]) : e.push(i));
9
- return console.log("tabsWithBreadcrumbs", s, p), e;
8
+ a?.includes(i) && (i === t.breadcrumbs?.[0] ? e.push([i, { breadcrumbs: t.breadcrumbs?.slice(1) }]) : e.push(i));
9
+ return e;
10
10
  };
11
11
  export {
12
- b as getTabs
12
+ o as getTabs
13
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/cxkit-primitives",
3
- "version": "0.0.0-dev-20250301024243",
3
+ "version": "0.0.0-dev-20250301024533",
4
4
  "description": "",
5
5
  "license": "Inkeep, Inc. Customer License (IICL) v1.1",
6
6
  "homepage": "",
@@ -54,9 +54,9 @@
54
54
  "react-textarea-autosize": "8.5.7",
55
55
  "rehype-raw": "7.0.0",
56
56
  "unist-util-visit": "^5.0.0",
57
- "@inkeep/cxkit-color-mode": "0.0.0-dev-20250301024243",
58
- "@inkeep/cxkit-theme": "0.0.0-dev-20250301024243",
59
- "@inkeep/cxkit-types": "0.0.0-dev-20250301024243"
57
+ "@inkeep/cxkit-color-mode": "0.0.0-dev-20250301024533",
58
+ "@inkeep/cxkit-theme": "0.0.0-dev-20250301024533",
59
+ "@inkeep/cxkit-types": "0.0.0-dev-20250301024533"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@biomejs/biome": "1.9.4",