@dovetail-v2/refine 0.1.25 → 0.1.26

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-c93276c4.js";
1
+ import { j as jsxRuntimeExports } from "./index-042d724d.js";
2
2
  import * as monaco from "monaco-editor";
3
3
  import { useRef, useEffect } from "react";
4
4
  import "i18next";
@@ -12919,6 +12919,7 @@ const WorkloadPodsTable_975j2t = "";
12919
12919
  const WorkloadPodsTable = ({
12920
12920
  namespace: namespace2,
12921
12921
  selector,
12922
+ className,
12922
12923
  hideToolbar,
12923
12924
  filter,
12924
12925
  hideNodeColumn
@@ -12973,7 +12974,7 @@ const WorkloadPodsTable = ({
12973
12974
  }
12974
12975
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Space, {
12975
12976
  direction: "vertical",
12976
- className: "c1dicff8",
12977
+ className: cx_default("c1dicff8", className),
12977
12978
  children: [hideToolbar ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(TableToolBar, {
12978
12979
  selectedKeys,
12979
12980
  hideCreate: true
@@ -33574,6 +33575,11 @@ const Shell = React__default.forwardRef(function Shell2(props, ref) {
33574
33575
  var _a;
33575
33576
  (_a = termInstanceRef.current) == null ? void 0 : _a.writeln(data2);
33576
33577
  }, []);
33578
+ const onClear = useCallback(() => {
33579
+ var _a;
33580
+ clear();
33581
+ (_a = props.onClear) == null ? void 0 : _a.call(props);
33582
+ }, [clear, props.onClear]);
33577
33583
  useEffect(() => {
33578
33584
  const destroy = setupTerminal();
33579
33585
  return () => {
@@ -33641,7 +33647,7 @@ const Shell = React__default.forwardRef(function Shell2(props, ref) {
33641
33647
  operations,
33642
33648
  onSearchNext: searchNext,
33643
33649
  onSearchPre: searchPrevious,
33644
- onClear: clear,
33650
+ onClear,
33645
33651
  onDownloadLog: downloadContent,
33646
33652
  onSetFontSize: (fontSize) => {
33647
33653
  setOptions({
@@ -38617,7 +38623,7 @@ const Separator = () => {
38617
38623
  });
38618
38624
  };
38619
38625
  const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
38620
- const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-89d9acb5.js"));
38626
+ const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-e2011bb6.js"));
38621
38627
  const YamlEditorComponent = forwardRef(
38622
38628
  function YamlEditorComponent2(props, ref) {
38623
38629
  const {
package/dist/refine.js CHANGED
@@ -1,4 +1,4 @@
1
- import { bN, cC, A, aW, aY, aF, ca, bk, a1, co, cc, aQ, T, C, i, cG, aI, bp, ac, cI, ai, ap, cR, ax, cd, cb, cU, aM, bw, w, aD, bD, cT, cD, bG, D, b1, as, bJ, ar, at, a0, c9, c8, cS, bi, aU, ad, bQ, cF, cH, cm, aG, aj, s, q, cJ, I, bt, aT, t, M, be, bg, ce, cL, aL, bs, aq, ay, az, a8, aA, aX, aE, bE, bH, a9, d2, cn, cx, bM, N, a2, e, aV, a6, bP, by, bx, cK, b$, cZ, g, cY, aJ, bq, cg, L, ba, bb, bo, H, bc, J, bd, B, b5, cA, z, b4, G, b8, E, b6, F, b7, K, c0, b9, cz, aa, d0, c$, P, bm, v, ae, ah, b_, bj, cP, cO, a$, bu, c6, c5, p, aK, bl, x, bv, b0, d1, y, cq, cE, bK, bR, bS, d4, aH, R, ag, an, am, bL, ak, cQ, c2, al, cB, c7, bh, bA, au, h, Q, O, bf, ct, cw, cs, cr, cu, cv, cp, ch, ck, cl, cj, ci, cf, cy, bT, aN, br, aB, m, bW, l, aZ, cX, o, bX, a_, n, aS, bn, k, cW, aP, aR, c4, bC, bB, c3, aO, S, bF, cV, c_, b2, b3, bz, bI, c1, bY, bZ, ab, $, cN, af, W, cM, ao, aw, av, f, aC, bU, U, a3, d, d7, d6, d9, d3, a7, da, d5, d8, a5, a4, r, a, c, X, V, Y, Z, u, bO, _, bV, b } from "./index-c93276c4.js";
1
+ import { bN, cC, A, aW, aY, aF, ca, bk, a1, co, cc, aQ, T, C, i, cG, aI, bp, ac, cI, ai, ap, cR, ax, cd, cb, cU, aM, bw, w, aD, bD, cT, cD, bG, D, b1, as, bJ, ar, at, a0, c9, c8, cS, bi, aU, ad, bQ, cF, cH, cm, aG, aj, s, q, cJ, I, bt, aT, t, M, be, bg, ce, cL, aL, bs, aq, ay, az, a8, aA, aX, aE, bE, bH, a9, d2, cn, cx, bM, N, a2, e, aV, a6, bP, by, bx, cK, b$, cZ, g, cY, aJ, bq, cg, L, ba, bb, bo, H, bc, J, bd, B, b5, cA, z, b4, G, b8, E, b6, F, b7, K, c0, b9, cz, aa, d0, c$, P, bm, v, ae, ah, b_, bj, cP, cO, a$, bu, c6, c5, p, aK, bl, x, bv, b0, d1, y, cq, cE, bK, bR, bS, d4, aH, R, ag, an, am, bL, ak, cQ, c2, al, cB, c7, bh, bA, au, h, Q, O, bf, ct, cw, cs, cr, cu, cv, cp, ch, ck, cl, cj, ci, cf, cy, bT, aN, br, aB, m, bW, l, aZ, cX, o, bX, a_, n, aS, bn, k, cW, aP, aR, c4, bC, bB, c3, aO, S, bF, cV, c_, b2, b3, bz, bI, c1, bY, bZ, ab, $, cN, af, W, cM, ao, aw, av, f, aC, bU, U, a3, d, d7, d6, d9, d3, a7, da, d5, d8, a5, a4, r, a, c, X, V, Y, Z, u, bO, _, bV, b } from "./index-042d724d.js";
2
2
  import "@cloudtower/eagle";
3
3
  import "@refinedev/core";
4
4
  import "react";
@@ -12925,6 +12925,7 @@ var __publicField = (obj, key, value) => {
12925
12925
  const WorkloadPodsTable = ({
12926
12926
  namespace: namespace2,
12927
12927
  selector,
12928
+ className,
12928
12929
  hideToolbar,
12929
12930
  filter,
12930
12931
  hideNodeColumn
@@ -12979,7 +12980,7 @@ var __publicField = (obj, key, value) => {
12979
12980
  }
12980
12981
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(eagle.Space, {
12981
12982
  direction: "vertical",
12982
- className: "c1dicff8",
12983
+ className: cx_default("c1dicff8", className),
12983
12984
  children: [hideToolbar ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(TableToolBar, {
12984
12985
  selectedKeys,
12985
12986
  hideCreate: true
@@ -33580,6 +33581,11 @@ WARNING: This link could potentially be dangerous`)) {
33580
33581
  var _a;
33581
33582
  (_a = termInstanceRef.current) == null ? void 0 : _a.writeln(data2);
33582
33583
  }, []);
33584
+ const onClear = React.useCallback(() => {
33585
+ var _a;
33586
+ clear();
33587
+ (_a = props.onClear) == null ? void 0 : _a.call(props);
33588
+ }, [clear, props.onClear]);
33583
33589
  React.useEffect(() => {
33584
33590
  const destroy = setupTerminal();
33585
33591
  return () => {
@@ -33647,7 +33653,7 @@ WARNING: This link could potentially be dangerous`)) {
33647
33653
  operations,
33648
33654
  onSearchNext: searchNext,
33649
33655
  onSearchPre: searchPrevious,
33650
- onClear: clear,
33656
+ onClear,
33651
33657
  onDownloadLog: downloadContent,
33652
33658
  onSetFontSize: (fontSize) => {
33653
33659
  setOptions({
@@ -27,6 +27,7 @@ export type ShellProps = React.PropsWithChildren<{
27
27
  onReconnect?: () => void;
28
28
  onSocketInit?: (socket: WebSocket) => void;
29
29
  onTermInit?: (term: Terminal) => void;
30
+ onClear?: () => void;
30
31
  onSocketMessage?: (e: MessageEvent, socket: WebSocket, term: Terminal | null) => void;
31
32
  onSocketOpen?: (socket: WebSocket) => void;
32
33
  onSocketClose?: (socket: WebSocket, term: Terminal | null) => void;
@@ -66,6 +67,7 @@ export declare const Shell: React.ForwardRefExoticComponent<{
66
67
  onReconnect?: (() => void) | undefined;
67
68
  onSocketInit?: ((socket: WebSocket) => void) | undefined;
68
69
  onTermInit?: ((term: Terminal) => void) | undefined;
70
+ onClear?: (() => void) | undefined;
69
71
  onSocketMessage?: ((e: MessageEvent, socket: WebSocket, term: Terminal | null) => void) | undefined;
70
72
  onSocketOpen?: ((socket: WebSocket) => void) | undefined;
71
73
  onSocketClose?: ((socket: WebSocket, term: Terminal | null) => void) | undefined;
@@ -2,6 +2,7 @@ import { LabelSelector } from 'kubernetes-types/meta/v1';
2
2
  import React from 'react';
3
3
  import { PodModel } from '../../models';
4
4
  interface WorkloadPodsTableProps {
5
+ className?: string;
5
6
  namespace?: string;
6
7
  selector?: LabelSelector;
7
8
  filter?: (item: PodModel) => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dovetail-v2/refine",
3
- "version": "0.1.25",
3
+ "version": "0.1.26",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",