@industream/flowmaker-flowbox-ui-components 1.0.2 → 1.0.4

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.
@@ -10,8 +10,6 @@
10
10
  interface Props {
11
11
  id?: string;
12
12
  dcapiurl?: string;
13
- /** Hub access token, injected from the box context — sent as Bearer to datacatalog-api. */
14
- token?: string;
15
13
  sourcetypefilter?: string | string[] | null; // Source type names like "PostgreSQL", "InfluxDB2"
16
14
  datatypefilter?: DataType | DataType[] | null;
17
15
  namefilter?: string | string[] | null;
@@ -24,7 +22,6 @@
24
22
  let {
25
23
  id = undefined,
26
24
  dcapiurl = '',
27
- token = '',
28
25
  sourcetypefilter = null,
29
26
  datatypefilter = null,
30
27
  namefilter = null,
@@ -148,7 +145,7 @@
148
145
  error = null;
149
146
 
150
147
  try {
151
- const client = new DataCatalogClient({ baseUrl: dcapiurl }).setToken(token);
148
+ const client = new DataCatalogClient({ baseUrl: dcapiurl });
152
149
  const filters: { names?: string[]; sourceTypes?: string[] } = {};
153
150
 
154
151
  // Use name filter for API query if provided
@@ -6,8 +6,6 @@ interface FilterOptions {
6
6
  interface Props {
7
7
  id?: string;
8
8
  dcapiurl?: string;
9
- /** Hub access token, injected from the box context — sent as Bearer to datacatalog-api. */
10
- token?: string;
11
9
  sourcetypefilter?: string | string[] | null;
12
10
  datatypefilter?: DataType | DataType[] | null;
13
11
  namefilter?: string | string[] | null;
@@ -34,8 +34,6 @@
34
34
 
35
35
  interface Props {
36
36
  dcApiUrl?: string;
37
- /** Hub access token, injected from the box context — sent as Bearer to datacatalog-api. */
38
- token?: string;
39
37
  sourceConnectionId?: string;
40
38
  selectedIds?: string[];
41
39
  entries?: CatalogEntry[];
@@ -48,7 +46,6 @@
48
46
 
49
47
  let {
50
48
  dcApiUrl = '',
51
- token = '',
52
49
  sourceConnectionId = '',
53
50
  selectedIds = $bindable([]),
54
51
  entries = $bindable([]),
@@ -88,9 +85,8 @@
88
85
  }
89
86
 
90
87
  function getClient(apiUrl: string): DataCatalogClient {
91
- // Keep the bearer fresh on the cached client too (token may be re-pushed on refresh).
92
- if (client && clientUrl === apiUrl) return client.setToken(token);
93
- client = new DataCatalogClient({ baseUrl: apiUrl }).setToken(token);
88
+ if (client && clientUrl === apiUrl) return client;
89
+ client = new DataCatalogClient({ baseUrl: apiUrl });
94
90
  clientUrl = apiUrl;
95
91
  return client;
96
92
  }
@@ -1,8 +1,6 @@
1
1
  import type { CatalogEntry } from '@industream/datacatalog-client/dto';
2
2
  interface Props {
3
3
  dcApiUrl?: string;
4
- /** Hub access token, injected from the box context — sent as Bearer to datacatalog-api. */
5
- token?: string;
6
4
  sourceConnectionId?: string;
7
5
  selectedIds?: string[];
8
6
  entries?: CatalogEntry[];
@@ -10,8 +10,6 @@
10
10
 
11
11
  interface Props {
12
12
  dcapiurl?: string;
13
- /** Hub access token, injected from the box context — sent as Bearer to datacatalog-api. */
14
- token?: string;
15
13
  sourcetypefilter?: string | string[] | null;
16
14
  initialselection?: string | null;
17
15
  onsourceselect?: (connection: SourceConnection) => void;
@@ -20,7 +18,6 @@
20
18
 
21
19
  let {
22
20
  dcapiurl = '',
23
- token = '',
24
21
  sourcetypefilter = null,
25
22
  initialselection = null,
26
23
  onsourceselect = null,
@@ -55,7 +52,7 @@
55
52
  error = null;
56
53
 
57
54
  try {
58
- const client = new DataCatalogClient({ baseUrl: dcapiurl }).setToken(token);
55
+ const client = new DataCatalogClient({ baseUrl: dcapiurl });
59
56
  const filters = {};
60
57
 
61
58
  if (sourcetypefilter && sourcetypefilter.length > 0) {
@@ -8,8 +8,6 @@ export interface SourceConnection {
8
8
  }
9
9
  interface Props {
10
10
  dcapiurl?: string;
11
- /** Hub access token, injected from the box context — sent as Bearer to datacatalog-api. */
12
- token?: string;
13
11
  sourcetypefilter?: string | string[] | null;
14
12
  initialselection?: string | null;
15
13
  onsourceselect?: (connection: SourceConnection) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@industream/flowmaker-flowbox-ui-components",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Reusable Svelte components for FlowMaker FlowBox UI",
5
5
  "type": "module",
6
6
  "svelte": "./dist/index.js",
@@ -43,10 +43,10 @@
43
43
  },
44
44
  "peerDependencies": {
45
45
  "svelte": "^5.0.0",
46
- "@industream/datacatalog-client": "1.9.1"
46
+ "@industream/datacatalog-client": "1.9.3"
47
47
  },
48
48
  "devDependencies": {
49
- "@industream/datacatalog-client": "1.9.1",
49
+ "@industream/datacatalog-client": "1.9.3",
50
50
  "svelte": "^5.0.0",
51
51
  "vite": "^6.0.0",
52
52
  "@sveltejs/vite-plugin-svelte": "^5.0.0",
@@ -10,8 +10,6 @@
10
10
  interface Props {
11
11
  id?: string;
12
12
  dcapiurl?: string;
13
- /** Hub access token, injected from the box context — sent as Bearer to datacatalog-api. */
14
- token?: string;
15
13
  sourcetypefilter?: string | string[] | null; // Source type names like "PostgreSQL", "InfluxDB2"
16
14
  datatypefilter?: DataType | DataType[] | null;
17
15
  namefilter?: string | string[] | null;
@@ -24,7 +22,6 @@
24
22
  let {
25
23
  id = undefined,
26
24
  dcapiurl = '',
27
- token = '',
28
25
  sourcetypefilter = null,
29
26
  datatypefilter = null,
30
27
  namefilter = null,
@@ -148,7 +145,7 @@
148
145
  error = null;
149
146
 
150
147
  try {
151
- const client = new DataCatalogClient({ baseUrl: dcapiurl }).setToken(token);
148
+ const client = new DataCatalogClient({ baseUrl: dcapiurl });
152
149
  const filters: { names?: string[]; sourceTypes?: string[] } = {};
153
150
 
154
151
  // Use name filter for API query if provided
@@ -34,8 +34,6 @@
34
34
 
35
35
  interface Props {
36
36
  dcApiUrl?: string;
37
- /** Hub access token, injected from the box context — sent as Bearer to datacatalog-api. */
38
- token?: string;
39
37
  sourceConnectionId?: string;
40
38
  selectedIds?: string[];
41
39
  entries?: CatalogEntry[];
@@ -48,7 +46,6 @@
48
46
 
49
47
  let {
50
48
  dcApiUrl = '',
51
- token = '',
52
49
  sourceConnectionId = '',
53
50
  selectedIds = $bindable([]),
54
51
  entries = $bindable([]),
@@ -88,9 +85,8 @@
88
85
  }
89
86
 
90
87
  function getClient(apiUrl: string): DataCatalogClient {
91
- // Keep the bearer fresh on the cached client too (token may be re-pushed on refresh).
92
- if (client && clientUrl === apiUrl) return client.setToken(token);
93
- client = new DataCatalogClient({ baseUrl: apiUrl }).setToken(token);
88
+ if (client && clientUrl === apiUrl) return client;
89
+ client = new DataCatalogClient({ baseUrl: apiUrl });
94
90
  clientUrl = apiUrl;
95
91
  return client;
96
92
  }
@@ -10,8 +10,6 @@
10
10
 
11
11
  interface Props {
12
12
  dcapiurl?: string;
13
- /** Hub access token, injected from the box context — sent as Bearer to datacatalog-api. */
14
- token?: string;
15
13
  sourcetypefilter?: string | string[] | null;
16
14
  initialselection?: string | null;
17
15
  onsourceselect?: (connection: SourceConnection) => void;
@@ -20,7 +18,6 @@
20
18
 
21
19
  let {
22
20
  dcapiurl = '',
23
- token = '',
24
21
  sourcetypefilter = null,
25
22
  initialselection = null,
26
23
  onsourceselect = null,
@@ -55,7 +52,7 @@
55
52
  error = null;
56
53
 
57
54
  try {
58
- const client = new DataCatalogClient({ baseUrl: dcapiurl }).setToken(token);
55
+ const client = new DataCatalogClient({ baseUrl: dcapiurl });
59
56
  const filters = {};
60
57
 
61
58
  if (sourcetypefilter && sourcetypefilter.length > 0) {