@dovetail-v2/refine 0.3.4 → 0.3.5-alpha.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.
@@ -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-6b1e1f45.js";
7
+ import { Y as YamlEditorStyle } from "./index-fe22c2ee.js";
8
8
  import "dayjs";
9
9
  import "i18next";
10
10
  import "@refinedev/core";
@@ -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-046411a8.cjs");
9
+ const refine = require("./index-16c1dab5.cjs");
10
10
  require("dayjs");
11
11
  require("i18next");
12
12
  require("@refinedev/core");
@@ -15,6 +15,7 @@ interface KeyValueTableFormProps<T extends KeyValuePair> {
15
15
  isValueOptional?: boolean;
16
16
  canImportFromFile?: boolean;
17
17
  minSize?: number;
18
+ extraAction?: React.ReactNode;
18
19
  validateKey?: (key: string) => {
19
20
  isValid: boolean;
20
21
  errorMessage?: string;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { KeyValuePair } from 'src/components/KeyValueTableForm';
3
+ export interface SelectMatchLabelButtonProps {
4
+ namespace: string;
5
+ onChange?: (selector: KeyValuePair[]) => void;
6
+ }
7
+ export declare function SelectMatchLabelButton(props: SelectMatchLabelButtonProps): JSX.Element;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { KeyValueTableFormHandle, KeyValuePair } from 'src/components/KeyValueTableForm';
3
+ interface MatchLabelSelectorProps {
4
+ value: KeyValuePair[];
5
+ namespace: string;
6
+ onChange: (value: KeyValuePair[]) => void;
7
+ }
8
+ export declare const MatchLabelSelector: React.ForwardRefExoticComponent<MatchLabelSelectorProps & React.RefAttributes<KeyValueTableFormHandle>>;
9
+ export {};
@@ -0,0 +1,12 @@
1
+ import { ServicePort } from 'kubernetes-types/core/v1';
2
+ import React from 'react';
3
+ interface PortsConfigFormProps {
4
+ value: ServicePort[];
5
+ serviceType?: string;
6
+ onChange: (value: ServicePort[]) => void;
7
+ }
8
+ export interface PortsConfigFormHandle {
9
+ validate: () => Promise<boolean>;
10
+ }
11
+ export declare const PortsConfigForm: React.ForwardRefExoticComponent<PortsConfigFormProps & React.RefAttributes<PortsConfigFormHandle>>;
12
+ export {};
@@ -1,11 +1,17 @@
1
1
  /// <reference types="react" />
2
2
  import { KitSelectProps } from '@cloudtower/eagle';
3
3
  type ResourceSelectProps = {
4
+ className?: string;
4
5
  resource: string;
5
6
  resourceBasePath: string;
7
+ namespace?: string;
6
8
  kind: string;
7
9
  value: string;
8
- onChange: (...params: unknown[]) => void;
10
+ onChange: (value: string | string[], object: {
11
+ object: Record<string, unknown>;
12
+ } | {
13
+ object: Record<string, unknown>;
14
+ }[]) => void;
9
15
  selectProps?: KitSelectProps;
10
16
  };
11
17
  export declare function ResourceSelect(props: ResourceSelectProps): JSX.Element;
@@ -51,3 +51,5 @@ export * from './ResourceTable';
51
51
  export * from './ErrorContent';
52
52
  export { default as ErrorContent } from './ErrorContent';
53
53
  export * from './KeyValueTableForm';
54
+ export * from './MatchLabelSelector';
55
+ export * from './PortsConfigForm';
package/dist/i18n.d.ts CHANGED
@@ -245,6 +245,13 @@ export declare const resources: {
245
245
  cant_delete_resource: string;
246
246
  cant_delete_resource_with_name: string;
247
247
  close: string;
248
+ tcp: string;
249
+ udp: string;
250
+ required_field: string;
251
+ length_limit: string;
252
+ resource_name_format_error: string;
253
+ name_duplicated: string;
254
+ input_correct_port: string;
248
255
  };
249
256
  };
250
257
  'zh-CN': {
@@ -493,6 +500,17 @@ export declare const resources: {
493
500
  import_from_file: string;
494
501
  view_all_info: string;
495
502
  collapse: string;
503
+ tcp: string;
504
+ udp: string;
505
+ specify_workload: string;
506
+ port_name: string;
507
+ container_port: string;
508
+ add_port: string;
509
+ required_field: string;
510
+ length_limit: string;
511
+ resource_name_format_error: string;
512
+ name_duplicated: string;
513
+ input_correct_port: string;
496
514
  };
497
515
  };
498
516
  };