@inkeep/agents-ui-cloud 0.0.0-dev-20260313222128

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 (87) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -0
  3. package/dist/components/chat-button-modal.cjs +1 -0
  4. package/dist/components/chat-button-modal.js +20 -0
  5. package/dist/components/chat-button.cjs +1 -0
  6. package/dist/components/chat-button.js +15 -0
  7. package/dist/components/default-settings.cjs +1 -0
  8. package/dist/components/default-settings.js +24 -0
  9. package/dist/components/embedded-chat.cjs +1 -0
  10. package/dist/components/embedded-chat.js +15 -0
  11. package/dist/components/embedded-search-and-chat.cjs +1 -0
  12. package/dist/components/embedded-search-and-chat.js +20 -0
  13. package/dist/components/embedded-search.cjs +1 -0
  14. package/dist/components/embedded-search.js +18 -0
  15. package/dist/components/hooks/use-base-settings.cjs +1 -0
  16. package/dist/components/hooks/use-base-settings.js +36 -0
  17. package/dist/components/hooks/use-browser-storage.cjs +1 -0
  18. package/dist/components/hooks/use-browser-storage.js +91 -0
  19. package/dist/components/hooks/use-search-settings.cjs +1 -0
  20. package/dist/components/hooks/use-search-settings.js +25 -0
  21. package/dist/components/hooks/use-user-properties.cjs +1 -0
  22. package/dist/components/hooks/use-user-properties.js +27 -0
  23. package/dist/components/index.cjs +1 -0
  24. package/dist/components/index.js +30 -0
  25. package/dist/components/modal.chat.cjs +1 -0
  26. package/dist/components/modal.chat.js +20 -0
  27. package/dist/components/modal.cjs +1 -0
  28. package/dist/components/modal.js +23 -0
  29. package/dist/components/modal.search-and-chat.cjs +1 -0
  30. package/dist/components/modal.search-and-chat.js +20 -0
  31. package/dist/components/modal.search.cjs +1 -0
  32. package/dist/components/modal.search.js +20 -0
  33. package/dist/components/searchbar.cjs +1 -0
  34. package/dist/components/searchbar.js +20 -0
  35. package/dist/components/sidebar-chat.cjs +1 -0
  36. package/dist/components/sidebar-chat.js +15 -0
  37. package/dist/components/types.cjs +1 -0
  38. package/dist/components/types.js +5 -0
  39. package/dist/components/utils/generate-uid.cjs +1 -0
  40. package/dist/components/utils/generate-uid.js +8 -0
  41. package/dist/components/utils/index.cjs +1 -0
  42. package/dist/components/utils/index.js +6 -0
  43. package/dist/components/utils/search-implementation.cjs +89 -0
  44. package/dist/components/utils/search-implementation.js +143 -0
  45. package/dist/components/utils/search.cjs +1 -0
  46. package/dist/components/utils/search.js +50 -0
  47. package/dist/components/utils/transform-source/breadcrumbs.cjs +1 -0
  48. package/dist/components/utils/transform-source/breadcrumbs.js +31 -0
  49. package/dist/components/utils/transform-source/common-words/long.cjs +1 -0
  50. package/dist/components/utils/transform-source/common-words/long.js +69 -0
  51. package/dist/components/utils/transform-source/common-words/lowercase.cjs +1 -0
  52. package/dist/components/utils/transform-source/common-words/lowercase.js +48 -0
  53. package/dist/components/utils/transform-source/common-words/short.cjs +1 -0
  54. package/dist/components/utils/transform-source/common-words/short.js +141 -0
  55. package/dist/components/utils/transform-source/description.cjs +1 -0
  56. package/dist/components/utils/transform-source/description.js +10 -0
  57. package/dist/components/utils/transform-source/icon.cjs +1 -0
  58. package/dist/components/utils/transform-source/icon.js +9 -0
  59. package/dist/components/utils/transform-source/index.cjs +1 -0
  60. package/dist/components/utils/transform-source/index.js +20 -0
  61. package/dist/components/utils/transform-source/tabs.cjs +1 -0
  62. package/dist/components/utils/transform-source/tabs.js +36 -0
  63. package/dist/components/utils/transform-source/title.cjs +1 -0
  64. package/dist/components/utils/transform-source/title.js +12 -0
  65. package/dist/components/utils/transform-source/utils/description-without-title.cjs +1 -0
  66. package/dist/components/utils/transform-source/utils/description-without-title.js +12 -0
  67. package/dist/components/utils/transform-source/utils/index.cjs +1 -0
  68. package/dist/components/utils/transform-source/utils/index.js +16 -0
  69. package/dist/components/utils/transform-source/utils/misc.cjs +1 -0
  70. package/dist/components/utils/transform-source/utils/misc.js +15 -0
  71. package/dist/components/utils/transform-source/utils/standardize-common-words.cjs +1 -0
  72. package/dist/components/utils/transform-source/utils/standardize-common-words.js +26 -0
  73. package/dist/components/utils/transform-source/utils/standardize-organization-display-name.cjs +1 -0
  74. package/dist/components/utils/transform-source/utils/standardize-organization-display-name.js +10 -0
  75. package/dist/components/utils/transform-source/utils/standardize-suffixes.cjs +1 -0
  76. package/dist/components/utils/transform-source/utils/standardize-suffixes.js +16 -0
  77. package/dist/components/utils/transform-source/utils/strip-branding-keywords.cjs +1 -0
  78. package/dist/components/utils/transform-source/utils/strip-branding-keywords.js +14 -0
  79. package/dist/components/utils.cjs +1 -0
  80. package/dist/components/utils.js +20 -0
  81. package/dist/index.cjs +1 -0
  82. package/dist/index.d.cts +263 -0
  83. package/dist/index.d.ts +263 -0
  84. package/dist/index.js +30 -0
  85. package/dist/types/index.cjs +1 -0
  86. package/dist/types/index.js +4 -0
  87. package/package.json +79 -0
@@ -0,0 +1,89 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./search.cjs"),R=i=>async(u,p)=>{const{baseSettings:d,searchSettings:l}=i,{apiKey:s,url:c,filters:h,maxResults:m=40}=l,{userAuthToken:a,filters:y}=d;if(!c)throw new Error("Search URL is required in searchSettings");if(!s)throw new Error("API key is required in searchSettings");const w=`${c}/graphql`,g={Authorization:`Bearer ${s}`,"Content-Type":"application/json",...a?{"User-Token":a}:{}},I=`
2
+ query GetSearchResults($searchInput: SearchInput!) {
3
+ search(searchInput: $searchInput) {
4
+ searchHits {
5
+ id
6
+ hitOnRoot
7
+ url
8
+ title
9
+ preview
10
+
11
+ ... on DocumentationHit {
12
+ rootRecord {
13
+ __typename
14
+ id
15
+ title
16
+ url
17
+ preview
18
+ ... on DocumentationRecord {
19
+ pathBreadcrumbs
20
+ contentType
21
+ topLevelHeadings {
22
+ anchor
23
+ url
24
+ content
25
+ }
26
+ }
27
+ }
28
+ pathHeadings {
29
+ anchor
30
+ content
31
+ }
32
+ content {
33
+ anchor
34
+ content
35
+ }
36
+ }
37
+
38
+ ... on StackOverflowHit {
39
+ rootRecord {
40
+ __typename
41
+ id
42
+ title
43
+ url
44
+ preview
45
+ ... on StackOverflowRecord {
46
+ body
47
+ createdAt
48
+ markedAsCorrectAnswer {
49
+ url
50
+ score
51
+ content
52
+ }
53
+ }
54
+ }
55
+ }
56
+
57
+ ... on GitHubIssueHit {
58
+ rootRecord {
59
+ __typename
60
+ id
61
+ title
62
+ url
63
+ preview
64
+ ... on GitHubIssueRecord {
65
+ createdAt
66
+ body
67
+ state
68
+ }
69
+ }
70
+ }
71
+
72
+ ... on DiscourseHit {
73
+ rootRecord {
74
+ __typename
75
+ id
76
+ title
77
+ url
78
+ preview
79
+ ... on DiscourseRecord {
80
+ createdAt
81
+ body
82
+ }
83
+ }
84
+ }
85
+ }
86
+ searchQuery
87
+ }
88
+ }
89
+ `,S={searchQuery:u,filters:{...y,...h,limit:m}},r=await fetch(w,{method:"POST",headers:g,signal:p,body:JSON.stringify({query:I,variables:{searchInput:S}})});if(!r.ok)throw new Error(`Network response was not OK (status: ${r.status})`);const o=await r.json();if(o.errors?.length)throw new Error(o.errors[0].message);return(o.data?.search?.searchHits||[]).map(e=>({id:e.id,title:e.title,url:e.url??"",description:n.getItemDescription(e),type:n.transformSourceType(e),tag:n.getItemTag(e),breadcrumbs:e.rootRecord.pathBreadcrumbs??[],contentType:e.rootRecord.contentType,headings:e.rootRecord.topLevelHeadings?.map(t=>{const b=t?.anchor&&t?.anchor===e.content?.anchor,H=t?.anchor===e.pathHeadings?.[0]?.anchor;return{...t,isMatch:b||H}}),preview:e.preview}))};exports.createInkeepSearchImplementation=R;
@@ -0,0 +1,143 @@
1
+ "use client";
2
+ import { getItemTag as b, transformSourceType as f, getItemDescription as S } from "./search.js";
3
+ const T = (a) => async (i, u) => {
4
+ const { baseSettings: p, searchSettings: d } = a, { apiKey: n, url: s, filters: h, maxResults: l = 40 } = d, { userAuthToken: c, filters: m } = p;
5
+ if (!s)
6
+ throw new Error("Search URL is required in searchSettings");
7
+ if (!n)
8
+ throw new Error("API key is required in searchSettings");
9
+ const y = `${s}/graphql`, w = {
10
+ Authorization: `Bearer ${n}`,
11
+ "Content-Type": "application/json",
12
+ ...c ? { "User-Token": c } : {}
13
+ }, g = `
14
+ query GetSearchResults($searchInput: SearchInput!) {
15
+ search(searchInput: $searchInput) {
16
+ searchHits {
17
+ id
18
+ hitOnRoot
19
+ url
20
+ title
21
+ preview
22
+
23
+ ... on DocumentationHit {
24
+ rootRecord {
25
+ __typename
26
+ id
27
+ title
28
+ url
29
+ preview
30
+ ... on DocumentationRecord {
31
+ pathBreadcrumbs
32
+ contentType
33
+ topLevelHeadings {
34
+ anchor
35
+ url
36
+ content
37
+ }
38
+ }
39
+ }
40
+ pathHeadings {
41
+ anchor
42
+ content
43
+ }
44
+ content {
45
+ anchor
46
+ content
47
+ }
48
+ }
49
+
50
+ ... on StackOverflowHit {
51
+ rootRecord {
52
+ __typename
53
+ id
54
+ title
55
+ url
56
+ preview
57
+ ... on StackOverflowRecord {
58
+ body
59
+ createdAt
60
+ markedAsCorrectAnswer {
61
+ url
62
+ score
63
+ content
64
+ }
65
+ }
66
+ }
67
+ }
68
+
69
+ ... on GitHubIssueHit {
70
+ rootRecord {
71
+ __typename
72
+ id
73
+ title
74
+ url
75
+ preview
76
+ ... on GitHubIssueRecord {
77
+ createdAt
78
+ body
79
+ state
80
+ }
81
+ }
82
+ }
83
+
84
+ ... on DiscourseHit {
85
+ rootRecord {
86
+ __typename
87
+ id
88
+ title
89
+ url
90
+ preview
91
+ ... on DiscourseRecord {
92
+ createdAt
93
+ body
94
+ }
95
+ }
96
+ }
97
+ }
98
+ searchQuery
99
+ }
100
+ }
101
+ `, H = {
102
+ searchQuery: i,
103
+ filters: {
104
+ ...m,
105
+ ...h,
106
+ limit: l
107
+ }
108
+ }, r = await fetch(y, {
109
+ method: "POST",
110
+ headers: w,
111
+ signal: u,
112
+ body: JSON.stringify({
113
+ query: g,
114
+ variables: { searchInput: H }
115
+ })
116
+ });
117
+ if (!r.ok)
118
+ throw new Error(`Network response was not OK (status: ${r.status})`);
119
+ const o = await r.json();
120
+ if (o.errors?.length)
121
+ throw new Error(o.errors[0].message);
122
+ return (o.data?.search?.searchHits || []).map((e) => ({
123
+ id: e.id,
124
+ title: e.title,
125
+ url: e.url ?? "",
126
+ description: S(e),
127
+ type: f(e),
128
+ tag: b(e),
129
+ breadcrumbs: e.rootRecord.pathBreadcrumbs ?? [],
130
+ contentType: e.rootRecord.contentType,
131
+ headings: e.rootRecord.topLevelHeadings?.map((t) => {
132
+ const R = t?.anchor && t?.anchor === e.content?.anchor, I = t?.anchor === e.pathHeadings?.[0]?.anchor;
133
+ return {
134
+ ...t,
135
+ isMatch: R || I
136
+ };
137
+ }),
138
+ preview: e.preview
139
+ }));
140
+ };
141
+ export {
142
+ T as createInkeepSearchImplementation
143
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=e=>{switch(e.rootRecord.__typename){case"DocumentationRecord":{const r=c(e.pathHeadings?.at(-1)?.content||""),t=c(e.content?.content||"");return e.preview||t||r}case"GitHubIssueRecord":case"StackOverflowRecord":case"DiscourseRecord":return e.rootRecord.body;default:return e.preview}},n=e=>{switch(e.rootRecord.__typename){case"DocumentationRecord":return"documentation";case"GitHubIssueRecord":return"github_issue";case"DiscourseRecord":return"discourse";case"DiscordRecord":return"discord";case"StackOverflowRecord":return"stackoverflow";case"SlackEntry":return"slack_message";default:return"site"}},a=e=>{switch(e.rootRecord.__typename){case"StackOverflowRecord":return e.rootRecord.markedAsCorrectAnswer?"Resolved":void 0;case"GitHubIssueRecord":return e.rootRecord.state==="CLOSED"?"Closed":void 0}},c=e=>{const r=/(https?:\/\/\S+)/g;return e.replace(r,t=>{const o=t.split("/");return o.length>3?`...${o.slice(-2).join("/")}`:t})};exports.getItemDescription=s;exports.getItemTag=a;exports.transformSourceType=n;
@@ -0,0 +1,50 @@
1
+ "use client";
2
+ const s = (e) => {
3
+ switch (e.rootRecord.__typename) {
4
+ case "DocumentationRecord": {
5
+ const t = c(e.pathHeadings?.at(-1)?.content || ""), r = c(e.content?.content || "");
6
+ return e.preview || r || t;
7
+ }
8
+ case "GitHubIssueRecord":
9
+ case "StackOverflowRecord":
10
+ case "DiscourseRecord":
11
+ return e.rootRecord.body;
12
+ default:
13
+ return e.preview;
14
+ }
15
+ }, n = (e) => {
16
+ switch (e.rootRecord.__typename) {
17
+ case "DocumentationRecord":
18
+ return "documentation";
19
+ case "GitHubIssueRecord":
20
+ return "github_issue";
21
+ case "DiscourseRecord":
22
+ return "discourse";
23
+ case "DiscordRecord":
24
+ return "discord";
25
+ case "StackOverflowRecord":
26
+ return "stackoverflow";
27
+ case "SlackEntry":
28
+ return "slack_message";
29
+ default:
30
+ return "site";
31
+ }
32
+ }, a = (e) => {
33
+ switch (e.rootRecord.__typename) {
34
+ case "StackOverflowRecord":
35
+ return e.rootRecord.markedAsCorrectAnswer ? "Resolved" : void 0;
36
+ case "GitHubIssueRecord":
37
+ return e.rootRecord.state === "CLOSED" ? "Closed" : void 0;
38
+ }
39
+ }, c = (e) => {
40
+ const t = /(https?:\/\/\S+)/g;
41
+ return e.replace(t, (r) => {
42
+ const o = r.split("/");
43
+ return o.length > 3 ? `...${o.slice(-2).join("/")}` : r;
44
+ });
45
+ };
46
+ export {
47
+ s as getItemDescription,
48
+ a as getItemTag,
49
+ n as transformSourceType
50
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./utils/standardize-organization-display-name.cjs"),c=require("./utils/strip-branding-keywords.cjs"),d=require("./utils/standardize-suffixes.cjs"),l=require("./utils/standardize-common-words.cjs"),m=require("./tabs.cjs"),p=(r,n)=>{if(r.type!=="documentation")return[];const t=n?.organizationDisplayName,a=r.breadcrumbs?.length?r.breadcrumbs:f(r.url);if(a.length===0&&r.tabs?.includes(m.SourceTab.GitHub)){const s=r.url.match(/\/(issues|pull)\/(\d+)/);if(s){const[e,i,o]=s;return[i==="pull"?"Pull Requests":"Issues",o]}}return a.map(s=>{let e=s;return t&&(e=u.standardizeOrganizationDisplayName(s,t),e=c.stripBrandingKeywords(e,t)),e=d.standardizeSuffixes(e),e=l.transformCommonWords(e),e})??[]},b=r=>r.split(/[-_]/).map(t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).join(" ");function f(r){try{return new URL(r).pathname.split("/").filter(a=>a.length>0).slice(0,-1).map(b)}catch(n){return console.error("Invalid URL:",n),[]}}exports.getBreadcrumbs=p;
@@ -0,0 +1,31 @@
1
+ "use client";
2
+ import { standardizeOrganizationDisplayName as m } from "./utils/standardize-organization-display-name.js";
3
+ import { stripBrandingKeywords as l } from "./utils/strip-branding-keywords.js";
4
+ import { standardizeSuffixes as u } from "./utils/standardize-suffixes.js";
5
+ import { transformCommonWords as c } from "./utils/standardize-common-words.js";
6
+ import { SourceTab as p } from "./tabs.js";
7
+ const B = (r, n) => {
8
+ if (r.type !== "documentation") return [];
9
+ const e = n?.organizationDisplayName, o = r.breadcrumbs?.length ? r.breadcrumbs : f(r.url);
10
+ if (o.length === 0 && r.tabs?.includes(p.GitHub)) {
11
+ const a = r.url.match(/\/(issues|pull)\/(\d+)/);
12
+ if (a) {
13
+ const [t, s, i] = a;
14
+ return [s === "pull" ? "Pull Requests" : "Issues", i];
15
+ }
16
+ }
17
+ return o.map((a) => {
18
+ let t = a;
19
+ return e && (t = m(a, e), t = l(t, e)), t = u(t), t = c(t), t;
20
+ }) ?? [];
21
+ }, d = (r) => r.split(/[-_]/).map((e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase()).join(" ");
22
+ function f(r) {
23
+ try {
24
+ return new URL(r).pathname.split("/").filter((o) => o.length > 0).slice(0, -1).map(d);
25
+ } catch (n) {
26
+ return console.error("Invalid URL:", n), [];
27
+ }
28
+ }
29
+ export {
30
+ B as getBreadcrumbs
31
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=["BaaS","SaaS","PaaS","IaaS","HTML","JSON","HTTPS","HTTP","SMTP","DBMS","RDBMS","REST","SOAP","MVVM","VoIP","RFID","WYSIWYG","WLAN","OIDC","SAML","LDAP","IPSec","OAuth","OpenID","SFTP","IMAP","RTSP","DHCP","XMPP","SNMP","ICMP","IGMP","RARP","PPTP","L2TP","IPv4","IPv6","TOTP","HMAC","TFTP","CORS","CSRF","DDOS","YAML","MQTT","AMQP","HDLC","EDIFACT","DICOM","MATLAB","UNIX","HDMI","WiFi","WPA2","DDoS","ipadOS","watchOS","macOS","JavaScript","TypeScript","SSO","IDP","RBAC"];exports.long=S;
@@ -0,0 +1,69 @@
1
+ "use client";
2
+ const P = [
3
+ "BaaS",
4
+ "SaaS",
5
+ "PaaS",
6
+ "IaaS",
7
+ "HTML",
8
+ "JSON",
9
+ "HTTPS",
10
+ "HTTP",
11
+ "SMTP",
12
+ "DBMS",
13
+ "RDBMS",
14
+ "REST",
15
+ "SOAP",
16
+ "MVVM",
17
+ "VoIP",
18
+ "RFID",
19
+ "WYSIWYG",
20
+ "WLAN",
21
+ "OIDC",
22
+ "SAML",
23
+ "LDAP",
24
+ "IPSec",
25
+ "OAuth",
26
+ "OpenID",
27
+ "SFTP",
28
+ "IMAP",
29
+ "RTSP",
30
+ "DHCP",
31
+ "XMPP",
32
+ "SNMP",
33
+ "ICMP",
34
+ "IGMP",
35
+ "RARP",
36
+ "PPTP",
37
+ "L2TP",
38
+ "IPv4",
39
+ "IPv6",
40
+ "TOTP",
41
+ "HMAC",
42
+ "TFTP",
43
+ "CORS",
44
+ "CSRF",
45
+ "DDOS",
46
+ "YAML",
47
+ "MQTT",
48
+ "AMQP",
49
+ "HDLC",
50
+ "EDIFACT",
51
+ "DICOM",
52
+ "MATLAB",
53
+ "UNIX",
54
+ "HDMI",
55
+ "WiFi",
56
+ "WPA2",
57
+ "DDoS",
58
+ "ipadOS",
59
+ "watchOS",
60
+ "macOS",
61
+ "JavaScript",
62
+ "TypeScript",
63
+ "SSO",
64
+ "IDP",
65
+ "RBAC"
66
+ ];
67
+ export {
68
+ P as long
69
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["a","an","the","and","as","but","or","nor","at","by","in","of","on","per","to","up","via","vs","with","is","it","for","are","not","out","off","yet","so","be","if","has","its","we","our","any","all","how","her","his","their","was","were"];exports.lowercase=e;
@@ -0,0 +1,48 @@
1
+ "use client";
2
+ const e = [
3
+ "a",
4
+ "an",
5
+ "the",
6
+ "and",
7
+ "as",
8
+ "but",
9
+ "or",
10
+ "nor",
11
+ "at",
12
+ "by",
13
+ "in",
14
+ "of",
15
+ "on",
16
+ "per",
17
+ "to",
18
+ "up",
19
+ "via",
20
+ "vs",
21
+ "with",
22
+ "is",
23
+ "it",
24
+ "for",
25
+ "are",
26
+ "not",
27
+ "out",
28
+ "off",
29
+ "yet",
30
+ "so",
31
+ "be",
32
+ "if",
33
+ "has",
34
+ "its",
35
+ "we",
36
+ "our",
37
+ "any",
38
+ "all",
39
+ "how",
40
+ "her",
41
+ "his",
42
+ "their",
43
+ "was",
44
+ "were"
45
+ ];
46
+ export {
47
+ e as lowercase
48
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=["API","AWS","GCP","SQL","CSS","JS","JDK","SDK","JRE","IDE","XML","GUI","CLI","AI","ML","DL","IoT","TCP","UDP","IP","FTP","RAM","ROM","SSD","HDD","VPS","VPN","OS","UI","UX","DB","OOP","CRM","ERP","POS","CAD","BI","CMS","SEO","SEM","PPC","B2B","B2C","SMB","ROI","KPI","CTA","CPC","CPM","CDN","MVC","FAQ","LMS","RPA","QA","QC","CRO","SVN","GIT","DOM","DNS","ISP","URL","URN","URI","SIP","NFC","LTE","OSI","RAS","DRM","DOS","WWW","LAN","WAN","SAN","NAS","NLP","OCR","IBM","HP","SAP","JWT","SSH","SSL","TLS","POP","NTP","BGP","ARP","2FA","MFA","RDP","VNC","SCP","PKI","XSS","DoS","CSV","HL7","SOP","PHP","JSP","NET","VBA","iOS","GNU","CPU","GPU","NIC","USB","VGA","AES","RSA","DES","ECC","WEP","WPA","IDS","IPS","PM","HR","TCO","BPM","SLA","SOW","AR","VR","XR","3D","2D","4D","iOS","OpenAPI","SSO"];exports.short=S;
@@ -0,0 +1,141 @@
1
+ "use client";
2
+ const S = [
3
+ "API",
4
+ "AWS",
5
+ "GCP",
6
+ "SQL",
7
+ "CSS",
8
+ "JS",
9
+ "JDK",
10
+ "SDK",
11
+ "JRE",
12
+ "IDE",
13
+ "XML",
14
+ "GUI",
15
+ "CLI",
16
+ "AI",
17
+ "ML",
18
+ "DL",
19
+ "IoT",
20
+ "TCP",
21
+ "UDP",
22
+ "IP",
23
+ "FTP",
24
+ "RAM",
25
+ "ROM",
26
+ "SSD",
27
+ "HDD",
28
+ "VPS",
29
+ "VPN",
30
+ "OS",
31
+ "UI",
32
+ "UX",
33
+ "DB",
34
+ "OOP",
35
+ "CRM",
36
+ "ERP",
37
+ "POS",
38
+ "CAD",
39
+ "BI",
40
+ "CMS",
41
+ "SEO",
42
+ "SEM",
43
+ "PPC",
44
+ "B2B",
45
+ "B2C",
46
+ "SMB",
47
+ "ROI",
48
+ "KPI",
49
+ "CTA",
50
+ "CPC",
51
+ "CPM",
52
+ "CDN",
53
+ "MVC",
54
+ "FAQ",
55
+ "LMS",
56
+ "RPA",
57
+ "QA",
58
+ "QC",
59
+ "CRO",
60
+ "SVN",
61
+ "GIT",
62
+ "DOM",
63
+ "DNS",
64
+ "ISP",
65
+ "URL",
66
+ "URN",
67
+ "URI",
68
+ "SIP",
69
+ "NFC",
70
+ "LTE",
71
+ "OSI",
72
+ "RAS",
73
+ "DRM",
74
+ "DOS",
75
+ "WWW",
76
+ "LAN",
77
+ "WAN",
78
+ "SAN",
79
+ "NAS",
80
+ "NLP",
81
+ "OCR",
82
+ "IBM",
83
+ "HP",
84
+ "SAP",
85
+ "JWT",
86
+ "SSH",
87
+ "SSL",
88
+ "TLS",
89
+ "POP",
90
+ "NTP",
91
+ "BGP",
92
+ "ARP",
93
+ "2FA",
94
+ "MFA",
95
+ "RDP",
96
+ "VNC",
97
+ "SCP",
98
+ "PKI",
99
+ "XSS",
100
+ "DoS",
101
+ "CSV",
102
+ "HL7",
103
+ "SOP",
104
+ "PHP",
105
+ "JSP",
106
+ "NET",
107
+ "VBA",
108
+ "iOS",
109
+ "GNU",
110
+ "CPU",
111
+ "GPU",
112
+ "NIC",
113
+ "USB",
114
+ "VGA",
115
+ "AES",
116
+ "RSA",
117
+ "DES",
118
+ "ECC",
119
+ "WEP",
120
+ "WPA",
121
+ "IDS",
122
+ "IPS",
123
+ "PM",
124
+ "HR",
125
+ "TCO",
126
+ "BPM",
127
+ "SLA",
128
+ "SOW",
129
+ "AR",
130
+ "VR",
131
+ "XR",
132
+ "3D",
133
+ "2D",
134
+ "4D",
135
+ "iOS",
136
+ "OpenAPI",
137
+ "SSO"
138
+ ];
139
+ export {
140
+ S as short
141
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./utils/description-without-title.cjs"),c=(t,i)=>{if(i==="chatSourceItem")return t.description??void 0;const e=t.breadcrumbs??[],r=e.length>0?e[e.length-1]:void 0,n=t.title||r?.props?.str;return o.descriptionWithoutTitle(t.description,n)};exports.getDescription=c;
@@ -0,0 +1,10 @@
1
+ "use client";
2
+ import { descriptionWithoutTitle as o } from "./utils/description-without-title.js";
3
+ const s = (t, r) => {
4
+ if (r === "chatSourceItem") return t.description ?? void 0;
5
+ const i = t.breadcrumbs ?? [], e = i.length > 0 ? i[i.length - 1] : void 0, n = t.title || e?.props?.str;
6
+ return o(t.description, n);
7
+ };
8
+ export {
9
+ s as getDescription
10
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./utils/misc.cjs"),n=e=>{let t="LuBookOpen";return e.type==="documentation"&&e.contentType==="book"?t="IoBookOutline":e.type==="documentation"&&e.contentType==="pdf"?t="FaFilePdf":e.type==="github_issue"||i.isGitHubUrl(e.url)?t="FaGithub":e.type==="documentation"&&e.contentType==="site"?t="LuGlobe":e.type==="discourse"?t="FaDiscourse":e.type==="discord"?t="FaDiscord":e.type==="slack_message"?t="FaSlack":e.type==="stackoverflow"&&(t="FaStackOverflow"),{builtIn:t}};exports.getIcon=n;
@@ -0,0 +1,9 @@
1
+ "use client";
2
+ import { isGitHubUrl as i } from "./utils/misc.js";
3
+ const l = (e) => {
4
+ let t = "LuBookOpen";
5
+ return e.type === "documentation" && e.contentType === "book" ? t = "IoBookOutline" : e.type === "documentation" && e.contentType === "pdf" ? t = "FaFilePdf" : e.type === "github_issue" || i(e.url) ? t = "FaGithub" : e.type === "documentation" && e.contentType === "site" ? t = "LuGlobe" : e.type === "discourse" ? t = "FaDiscourse" : e.type === "discord" ? t = "FaDiscord" : e.type === "slack_message" ? t = "FaSlack" : e.type === "stackoverflow" && (t = "FaStackOverflow"), { builtIn: t };
6
+ };
7
+ export {
8
+ l as getIcon
9
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./breadcrumbs.cjs"),s=require("./description.cjs"),b=require("./icon.cjs"),o=require("./tabs.cjs"),a=require("./title.cjs"),d=(e,i,t)=>{const r=o.getTabs(e,t),n=c.getBreadcrumbs({...e,tabs:r},t);return{...e,id:e.id,title:a.getTitle(e,t),description:s.getDescription(e,i),breadcrumbs:n,icon:b.getIcon(e),tabs:r}};exports.transformInkeepSource=d;
@@ -0,0 +1,20 @@
1
+ import { getBreadcrumbs as e } from "./breadcrumbs.js";
2
+ import { getDescription as n } from "./description.js";
3
+ import { getIcon as p } from "./icon.js";
4
+ import { getTabs as f } from "./tabs.js";
5
+ import { getTitle as a } from "./title.js";
6
+ const s = (t, m, r) => {
7
+ const i = f(t, r), o = e({ ...t, tabs: i }, r);
8
+ return {
9
+ ...t,
10
+ id: t.id,
11
+ title: a(t, r),
12
+ description: n(t, m),
13
+ breadcrumbs: o,
14
+ icon: p(t),
15
+ tabs: i
16
+ };
17
+ };
18
+ export {
19
+ s as transformInkeepSource
20
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./utils/misc.cjs");var n=(t=>(t.Publications="Publications",t.PDFs="PDFs",t.GitHub="GitHub",t.Forums="Forums",t.Discord="Discord",t.Slack="Slack",t.StackOverflow="StackOverflow",t))(n||{});const p=(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"||o.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 e=[],l=a?.tabs?.map(i=>typeof i=="string"?i:i[0]);for(const i of s)l?.includes(i)&&(i===t.breadcrumbs?.[0]?e.push([i,{breadcrumbs:t.breadcrumbs?.slice(1)}]):e.push(i));return e};exports.SourceTab=n;exports.getTabs=p;