@hachej/boring-data-catalog 0.1.39 → 0.1.41
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/front/index.js +8 -4
- package/package.json +4 -4
package/dist/front/index.js
CHANGED
|
@@ -156,6 +156,7 @@ function createDataCatalogPlugin(options) {
|
|
|
156
156
|
const catalogLabel = options.catalogLabel ?? label;
|
|
157
157
|
const leftTabId = options.leftTabId ?? `${id}-tab`;
|
|
158
158
|
const leftTabTitle = options.leftTabTitle ?? label;
|
|
159
|
+
const leftTabIcon = options.leftTabIcon ?? Database;
|
|
159
160
|
const visualizationPanelId = options.visualizationPanelId ?? `${id}-visualization`;
|
|
160
161
|
const visualizationTitle = options.visualizationTitle ?? `${label} View`;
|
|
161
162
|
const surfaceKind = options.surfaceKind ?? DATA_CATALOG_ROW_SURFACE_KIND;
|
|
@@ -172,6 +173,7 @@ function createDataCatalogPlugin(options) {
|
|
|
172
173
|
const { query, controlled } = useDataCatalogQuery(params);
|
|
173
174
|
const bridge = params?.bridge;
|
|
174
175
|
const handleSelect = (row) => onSelect(row, { params, bridge });
|
|
176
|
+
const usesOuterChromeSearch = controlled && params?.chromeless === true;
|
|
175
177
|
return /* @__PURE__ */ jsx(
|
|
176
178
|
DataExplorer,
|
|
177
179
|
{
|
|
@@ -182,8 +184,11 @@ function createDataCatalogPlugin(options) {
|
|
|
182
184
|
getDragPayload: options.getDragPayload,
|
|
183
185
|
emptyState,
|
|
184
186
|
searchPlaceholder,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
+
toolbarTitle: usesOuterChromeSearch ? void 0 : leftTabTitle,
|
|
188
|
+
toolbarIcon: usesOuterChromeSearch ? void 0 : leftTabIcon,
|
|
189
|
+
query: usesOuterChromeSearch ? query : void 0,
|
|
190
|
+
searchable: !usesOuterChromeSearch,
|
|
191
|
+
toolbarPortalElement: usesOuterChromeSearch ? params?.chromeActionsElement : void 0,
|
|
187
192
|
pageSize: options.pageSize,
|
|
188
193
|
debounceMs: options.debounceMs,
|
|
189
194
|
className: className ?? "h-full"
|
|
@@ -236,10 +241,9 @@ function createDataCatalogPlugin(options) {
|
|
|
236
241
|
const leftTab = includeLeftTab ? {
|
|
237
242
|
id: leftTabId,
|
|
238
243
|
title: leftTabTitle,
|
|
239
|
-
icon:
|
|
244
|
+
icon: leftTabIcon,
|
|
240
245
|
component: DataCatalogLeftTab,
|
|
241
246
|
source,
|
|
242
|
-
chromeless: true,
|
|
243
247
|
panelId: leftTabId
|
|
244
248
|
} : void 0;
|
|
245
249
|
const visualizationPanel = includeVisualizationPanel ? {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hachej/boring-data-catalog",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.41",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"react": "^18.0.0 || ^19.0.0",
|
|
38
38
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
39
|
-
"@hachej/boring-workspace": "0.1.
|
|
39
|
+
"@hachej/boring-workspace": "0.1.41"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"lucide-react": "^1.8.0",
|
|
43
|
-
"@hachej/boring-data-explorer": "0.1.
|
|
43
|
+
"@hachej/boring-data-explorer": "0.1.41"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@testing-library/jest-dom": "^6.9.1",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"tsup": "^8.0.0",
|
|
56
56
|
"typescript": "^5.4.0",
|
|
57
57
|
"vitest": "^3.2.6",
|
|
58
|
-
"@hachej/boring-workspace": "0.1.
|
|
58
|
+
"@hachej/boring-workspace": "0.1.41"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build": "tsup",
|