@bpinternal/integration-hub 0.6.1 → 0.8.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/chunks/index.js +16990 -1081
- package/dist/details/IntegrationReadmeContent.d.ts +13 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +16 -14
- package/dist/runtime/BotpressIntegrationHubScreen.d.ts +2 -2
- package/dist/runtime/botpressTypes.d.ts +11 -0
- package/dist/runtime/index.d.ts +4 -1
- package/dist/runtime/index.js +928 -751
- package/dist/runtime/usePersistedNavigationState.d.ts +31 -0
- package/dist/theme.css +28 -0
- package/package.json +5 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { IntegrationHubSortMethod, IntegrationHubVerificationFilter, IntegrationHubView, IntegrationHubVisibilityFilter } from '../core/types.js';
|
|
2
|
+
interface Defaults {
|
|
3
|
+
initialView: IntegrationHubView;
|
|
4
|
+
defaultVisibility: IntegrationHubVisibilityFilter | undefined;
|
|
5
|
+
defaultVerification: IntegrationHubVerificationFilter[] | undefined;
|
|
6
|
+
defaultSortMethod: IntegrationHubSortMethod | undefined;
|
|
7
|
+
}
|
|
8
|
+
export declare const usePersistedNavigationState: ({ workspaceId, botId, enabled, defaults }: {
|
|
9
|
+
workspaceId: string;
|
|
10
|
+
botId: string;
|
|
11
|
+
enabled: boolean;
|
|
12
|
+
defaults: Defaults;
|
|
13
|
+
}) => {
|
|
14
|
+
view: IntegrationHubView;
|
|
15
|
+
setView: (next: IntegrationHubView) => void;
|
|
16
|
+
selectedIntegrationId: string | null;
|
|
17
|
+
setSelectedIntegrationId: (next: string | null) => void;
|
|
18
|
+
selectedDefinitionId: string | null;
|
|
19
|
+
setSelectedDefinitionId: (next: string | null) => void;
|
|
20
|
+
searchInput: string;
|
|
21
|
+
setSearchInput: (next: string) => void;
|
|
22
|
+
visibility: "all" | "public" | "private" | undefined;
|
|
23
|
+
setVisibility: (next: IntegrationHubVisibilityFilter | undefined) => void;
|
|
24
|
+
verification: IntegrationHubVerificationFilter[] | undefined;
|
|
25
|
+
setVerification: (next: IntegrationHubVerificationFilter[] | undefined) => void;
|
|
26
|
+
sortMethod: "asc" | "desc" | "newest" | "oldest" | undefined;
|
|
27
|
+
setSortMethod: (next: IntegrationHubSortMethod | undefined) => void;
|
|
28
|
+
selectedCategory: string | undefined;
|
|
29
|
+
setSelectedCategory: (next: string | undefined) => void;
|
|
30
|
+
};
|
|
31
|
+
export {};
|
package/dist/theme.css
CHANGED
|
@@ -82,6 +82,9 @@
|
|
|
82
82
|
.invisible {
|
|
83
83
|
visibility: hidden;
|
|
84
84
|
}
|
|
85
|
+
.visible {
|
|
86
|
+
visibility: visible;
|
|
87
|
+
}
|
|
85
88
|
.absolute {
|
|
86
89
|
position: absolute;
|
|
87
90
|
}
|
|
@@ -214,6 +217,9 @@
|
|
|
214
217
|
.hidden {
|
|
215
218
|
display: none;
|
|
216
219
|
}
|
|
220
|
+
.inline {
|
|
221
|
+
display: inline;
|
|
222
|
+
}
|
|
217
223
|
.inline-flex {
|
|
218
224
|
display: inline-flex;
|
|
219
225
|
}
|
|
@@ -366,6 +372,12 @@
|
|
|
366
372
|
.cursor-pointer {
|
|
367
373
|
cursor: pointer;
|
|
368
374
|
}
|
|
375
|
+
.list-decimal {
|
|
376
|
+
list-style-type: decimal;
|
|
377
|
+
}
|
|
378
|
+
.list-disc {
|
|
379
|
+
list-style-type: disc;
|
|
380
|
+
}
|
|
369
381
|
.grid-cols-1 {
|
|
370
382
|
grid-template-columns: repeat(1, minmax(0, 1fr));
|
|
371
383
|
}
|
|
@@ -457,6 +469,9 @@
|
|
|
457
469
|
.overflow-hidden {
|
|
458
470
|
overflow: hidden;
|
|
459
471
|
}
|
|
472
|
+
.overflow-x-auto {
|
|
473
|
+
overflow-x: auto;
|
|
474
|
+
}
|
|
460
475
|
.overflow-x-hidden {
|
|
461
476
|
overflow-x: hidden;
|
|
462
477
|
}
|
|
@@ -729,6 +744,9 @@
|
|
|
729
744
|
.pb-6 {
|
|
730
745
|
padding-bottom: calc(var(--spacing) * 6);
|
|
731
746
|
}
|
|
747
|
+
.pl-6 {
|
|
748
|
+
padding-left: calc(var(--spacing) * 6);
|
|
749
|
+
}
|
|
732
750
|
.pl-10 {
|
|
733
751
|
padding-left: calc(var(--spacing) * 10);
|
|
734
752
|
}
|
|
@@ -772,6 +790,10 @@
|
|
|
772
790
|
--tw-leading: calc(var(--spacing) * 5);
|
|
773
791
|
line-height: calc(var(--spacing) * 5);
|
|
774
792
|
}
|
|
793
|
+
.leading-6 {
|
|
794
|
+
--tw-leading: calc(var(--spacing) * 6);
|
|
795
|
+
line-height: calc(var(--spacing) * 6);
|
|
796
|
+
}
|
|
775
797
|
.leading-relaxed {
|
|
776
798
|
--tw-leading: var(--leading-relaxed);
|
|
777
799
|
line-height: var(--leading-relaxed);
|
|
@@ -795,12 +817,18 @@
|
|
|
795
817
|
.break-words {
|
|
796
818
|
overflow-wrap: break-word;
|
|
797
819
|
}
|
|
820
|
+
.break-all {
|
|
821
|
+
word-break: break-all;
|
|
822
|
+
}
|
|
798
823
|
.whitespace-normal {
|
|
799
824
|
white-space: normal;
|
|
800
825
|
}
|
|
801
826
|
.whitespace-nowrap {
|
|
802
827
|
white-space: nowrap;
|
|
803
828
|
}
|
|
829
|
+
.whitespace-pre-wrap {
|
|
830
|
+
white-space: pre-wrap;
|
|
831
|
+
}
|
|
804
832
|
.text-\[var\(--accent-11\)\] {
|
|
805
833
|
color: var(--accent-11);
|
|
806
834
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bpinternal/integration-hub",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Reusable Integration Hub for Botpress-style integration catalogs",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"type": "module",
|
|
@@ -29,6 +29,10 @@
|
|
|
29
29
|
"**/*.css"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
+
"react-markdown": "^9.0.1",
|
|
33
|
+
"rehype-raw": "^7.0.0",
|
|
34
|
+
"rehype-sanitize": "^6.0.0",
|
|
35
|
+
"remark-gfm": "^4.0.0",
|
|
32
36
|
"@bpinternal/static-zui-form": "^0.3.0"
|
|
33
37
|
},
|
|
34
38
|
"peerDependencies": {
|