@dovetail-v2/refine 0.3.8-alpha.4 → 0.3.9-alpha.1

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.
@@ -6,7 +6,7 @@ const monaco = require("monaco-editor");
6
6
  const monacoYaml = require("monaco-yaml");
7
7
  const React = require("react");
8
8
  const ReactDOM = require("react-dom");
9
- const refine = require("./index-fec9ef27.cjs");
9
+ const refine = require("./index-ce201e8c.cjs");
10
10
  require("dayjs");
11
11
  require("i18next");
12
12
  require("@refinedev/core");
@@ -4,7 +4,7 @@ import * as monaco from "monaco-editor";
4
4
  import { setDiagnosticsOptions } from "monaco-yaml";
5
5
  import { useRef, useEffect } from "react";
6
6
  import ReactDOM from "react-dom";
7
- import { Y as YamlEditorStyle } from "./index-59def48b.js";
7
+ import { Y as YamlEditorStyle } from "./index-50687482.js";
8
8
  import "dayjs";
9
9
  import "i18next";
10
10
  import "@refinedev/core";
@@ -2,19 +2,15 @@ import { Unstructured } from 'k8s-api-provider';
2
2
  import { Node } from 'kubernetes-types/core/v1';
3
3
  import React from 'react';
4
4
  import { ResourceModel } from '../../models';
5
+ import { NodeTaintEffect } from './NodeTaintEffectSelect';
5
6
  interface EditNodeTaintFormProps {
6
7
  nodeModel: ResourceModel<Unstructured & Node>;
7
8
  }
8
9
  interface EditNodeTaintFormHandler {
9
10
  submit: () => Promise<unknown> | undefined;
10
11
  }
11
- export declare enum NodeTaintEffect {
12
- 'NoSchedule' = "NoSchedule",
13
- 'PreferNoSchedule' = "PreferNoSchedule",
14
- 'NoExecute' = "NoExecute"
15
- }
16
12
  export declare const EditNodeTaintForm: React.ForwardRefExoticComponent<EditNodeTaintFormProps & React.RefAttributes<EditNodeTaintFormHandler>>;
17
13
  export declare const TaintEffectTooltip: React.FC<{
18
- effect: NodeTaintEffect;
14
+ effect: Exclude<NodeTaintEffect, NodeTaintEffect.All>;
19
15
  }>;
20
16
  export {};
@@ -0,0 +1,16 @@
1
+ import { KitSelectProps } from '@cloudtower/eagle';
2
+ import React from 'react';
3
+ export declare enum NodeTaintEffect {
4
+ 'NoSchedule' = "NoSchedule",
5
+ 'PreferNoSchedule' = "PreferNoSchedule",
6
+ 'NoExecute' = "NoExecute",
7
+ 'All' = "__none__"
8
+ }
9
+ interface NodeTaintEffectSelectProps {
10
+ value: string;
11
+ isShowAll?: boolean;
12
+ selectProps?: KitSelectProps;
13
+ onChange: (value: string) => void;
14
+ }
15
+ export declare const NodeTaintEffectSelect: React.FC<NodeTaintEffectSelectProps>;
16
+ export {};
@@ -1,2 +1,3 @@
1
1
  export * from './EditLabelForm';
2
2
  export * from './EditAnnotationForm';
3
+ export * from './NodeTaintEffectSelect';
@@ -7,6 +7,10 @@ export type KeyValuePair = {
7
7
  interface KeyValueTableFormProps<T extends KeyValuePair> {
8
8
  value?: T[];
9
9
  defaultValue: T[];
10
+ keyOptions?: {
11
+ label: string;
12
+ value: string;
13
+ }[];
10
14
  onChange?: (value: T[]) => void;
11
15
  extraColumns?: TableFormColumn[];
12
16
  addButtonText?: string;
@@ -55,3 +55,4 @@ export * from './KeyValueTableForm';
55
55
  export * from './MatchLabelSelector';
56
56
  export * from './PortsConfigForm';
57
57
  export * from './SectionTitle';
58
+ export * from './EditMetadataForm';
package/dist/i18n.d.ts CHANGED
@@ -511,11 +511,13 @@ export declare const resources: {
511
511
  length_limit: string;
512
512
  rf1123_name_format_error: string;
513
513
  rf1035_name_format_error: string;
514
+ dns_subdomain_name_format_error: string;
514
515
  name_duplicated: string;
515
516
  input_correct_port: string;
516
517
  auto_generate: string;
517
518
  specify_port: string;
518
519
  node_port_duplicated: string;
520
+ all: string;
519
521
  };
520
522
  };
521
523
  };