@dovetail-v2/refine 0.0.39 → 0.0.40-bowen.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.
@@ -1,4 +1,4 @@
1
- import { j as jsxRuntimeExports } from "./index-a278c0e3.js";
1
+ import { j as jsxRuntimeExports } from "./index-a77dd41c.js";
2
2
  import * as monaco from "monaco-editor";
3
3
  import { useRef, useEffect } from "react";
4
4
  import "i18next";
@@ -18409,21 +18409,23 @@ function ListPage(props) {
18409
18409
  const config = configs[(resource == null ? void 0 : resource.name) || ""];
18410
18410
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
18411
18411
  className: ListPageStyle,
18412
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(TableToolBar, {
18413
- selectedKeys,
18414
- description: config == null ? void 0 : config.description
18415
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, {
18416
- style: {
18417
- margin: 0,
18418
- minHeight: 1,
18419
- marginRight: 24,
18420
- width: "calc(100% - 24px)"
18421
- }
18422
- }), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
18412
+ children: [!config.hideListToolBar ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
18413
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(TableToolBar, {
18414
+ selectedKeys,
18415
+ description: config == null ? void 0 : config.description
18416
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, {
18417
+ style: {
18418
+ margin: 0,
18419
+ minHeight: 1,
18420
+ marginRight: 24,
18421
+ width: "calc(100% - 24px)"
18422
+ }
18423
+ })]
18424
+ }) : void 0, /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
18423
18425
  className: ListContentStyle,
18424
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(NamespacesFilter, {
18426
+ children: [!config.hideNamespacesFilter ? /* @__PURE__ */ jsxRuntimeExports.jsx(NamespacesFilter, {
18425
18427
  className: NamespaceFilterStyle
18426
- }), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
18428
+ }) : void 0, /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
18427
18429
  className: TableStyle,
18428
18430
  children: !(tableProps.data.length || tableProps.loading) ? /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
18429
18431
  errorText: tableProps.empty || t2("dovetail.no_resource", {
@@ -22319,7 +22321,7 @@ const Separator = () => {
22319
22321
  });
22320
22322
  };
22321
22323
  const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
22322
- const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-a74de414.js"));
22324
+ const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-bc5ef535.js"));
22323
22325
  const YamlEditorComponent = forwardRef(
22324
22326
  function YamlEditorComponent2(props, ref) {
22325
22327
  const {
package/dist/refine.js CHANGED
@@ -1,4 +1,4 @@
1
- import { b5, bJ, A, ay, aA, ai, bl, aI, G, bz, bn, as, w, C, g, bN, al, aM, X, bP, $, a6, bY, aa, bo, bm, b$, ao, aS, t, ag, aX, b_, bK, a$, D, aF, b1, bZ, aG, aw, b8, bM, bO, bx, aj, a0, p, o, bQ, I, aP, av, q, bp, bS, an, aO, ab, ac, Q, ad, az, ah, aY, b0, T, by, b4, N, H, b, ax, M, b7, aU, aT, bR, bj, e, br, U, P, aK, s, Y, bi, aH, bW, bV, aD, aQ, n, am, aJ, v, aR, aE, c3, bL, b2, b9, ba, ak, R, _, a4, a3, b3, a1, bX, a2, a7, f, bE, bH, bD, bC, bF, bG, bA, bs, bv, bw, bu, bt, bq, bb, ap, aN, ae, k, be, i, aB, c2, m, bf, aC, l, au, aL, h, c1, ar, at, aW, aV, aq, S, a_, aZ, c0, bB, bk, bg, bh, V, bU, Z, W, bT, a5, a9, a8, c, bI, af, bc, x, J, d, O, L, K, r, a, z, y, B, E, b6, F, bd, u } from "./index-a278c0e3.js";
1
+ import { b5, bJ, A, ay, aA, ai, bl, aI, G, bz, bn, as, w, C, g, bN, al, aM, X, bP, $, a6, bY, aa, bo, bm, b$, ao, aS, t, ag, aX, b_, bK, a$, D, aF, b1, bZ, aG, aw, b8, bM, bO, bx, aj, a0, p, o, bQ, I, aP, av, q, bp, bS, an, aO, ab, ac, Q, ad, az, ah, aY, b0, T, by, b4, N, H, b, ax, M, b7, aU, aT, bR, bj, e, br, U, P, aK, s, Y, bi, aH, bW, bV, aD, aQ, n, am, aJ, v, aR, aE, c3, bL, b2, b9, ba, ak, R, _, a4, a3, b3, a1, bX, a2, a7, f, bE, bH, bD, bC, bF, bG, bA, bs, bv, bw, bu, bt, bq, bb, ap, aN, ae, k, be, i, aB, c2, m, bf, aC, l, au, aL, h, c1, ar, at, aW, aV, aq, S, a_, aZ, c0, bB, bk, bg, bh, V, bU, Z, W, bT, a5, a9, a8, c, bI, af, bc, x, J, d, O, L, K, r, a, z, y, B, E, b6, F, bd, u } from "./index-a77dd41c.js";
2
2
  import "@cloudtower/eagle";
3
3
  import "@refinedev/core";
4
4
  import "@cloudtower/icons-react";
@@ -18415,21 +18415,23 @@ var __publicField = (obj, key, value) => {
18415
18415
  const config = configs[(resource == null ? void 0 : resource.name) || ""];
18416
18416
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
18417
18417
  className: ListPageStyle,
18418
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(TableToolBar, {
18419
- selectedKeys,
18420
- description: config == null ? void 0 : config.description
18421
- }), /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Divider, {
18422
- style: {
18423
- margin: 0,
18424
- minHeight: 1,
18425
- marginRight: 24,
18426
- width: "calc(100% - 24px)"
18427
- }
18428
- }), /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
18418
+ children: [!config.hideListToolBar ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
18419
+ children: [/* @__PURE__ */ jsxRuntimeExports.jsx(TableToolBar, {
18420
+ selectedKeys,
18421
+ description: config == null ? void 0 : config.description
18422
+ }), /* @__PURE__ */ jsxRuntimeExports.jsx(eagle.Divider, {
18423
+ style: {
18424
+ margin: 0,
18425
+ minHeight: 1,
18426
+ marginRight: 24,
18427
+ width: "calc(100% - 24px)"
18428
+ }
18429
+ })]
18430
+ }) : void 0, /* @__PURE__ */ jsxRuntimeExports.jsxs("div", {
18429
18431
  className: ListContentStyle,
18430
- children: [/* @__PURE__ */ jsxRuntimeExports.jsx(NamespacesFilter, {
18432
+ children: [!config.hideNamespacesFilter ? /* @__PURE__ */ jsxRuntimeExports.jsx(NamespacesFilter, {
18431
18433
  className: NamespaceFilterStyle
18432
- }), /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
18434
+ }) : void 0, /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
18433
18435
  className: TableStyle,
18434
18436
  children: !(tableProps.data.length || tableProps.loading) ? /* @__PURE__ */ jsxRuntimeExports.jsx(WidgetErrorContent, {
18435
18437
  errorText: tableProps.empty || t2("dovetail.no_resource", {
@@ -26,6 +26,8 @@ export type ResourceConfig<Model extends ResourceModel = ResourceModel> = {
26
26
  basePath: string;
27
27
  apiVersion: string;
28
28
  label: string;
29
+ hideListToolBar?: boolean;
30
+ hideNamespacesFilter?: boolean;
29
31
  description?: string;
30
32
  parent?: RESOURCE_GROUP;
31
33
  formatter?: (v: Model) => Model;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dovetail-v2/refine",
3
- "version": "0.0.39",
3
+ "version": "0.0.40-bowen.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",