@dovetail-v2/refine 0.3.4 → 0.3.5-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.
- package/dist/{MonacoYamlEditor-cff3beeb.js → MonacoYamlEditor-1b19e39a.js} +1 -1
- package/dist/{MonacoYamlEditor-142a783d.cjs → MonacoYamlEditor-fe21de35.cjs} +1 -1
- package/dist/components/KeyValueTableForm/index.d.ts +1 -0
- package/dist/components/MatchLabelSelector/SelectMatchLabelButton.d.ts +7 -0
- package/dist/components/MatchLabelSelector/index.d.ts +9 -0
- package/dist/components/PortsConfigForm/index.d.ts +12 -0
- package/dist/components/ResourceSelect/index.d.ts +7 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/i18n.d.ts +18 -0
- package/dist/{index-046411a8.cjs → index-0cf0a58e.cjs} +1724 -527
- package/dist/{index-6b1e1f45.js → index-b39babcd.js} +1812 -615
- package/dist/locales/en-US/index.d.ts +7 -0
- package/dist/locales/zh-CN/index.d.ts +11 -0
- package/dist/refine.cjs +7 -1
- package/dist/refine.js +80 -74
- package/dist/style.css +88 -0
- package/dist/utils/validation.d.ts +35 -0
- package/package.json +3 -3
|
@@ -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-
|
|
7
|
+
import { Y as YamlEditorStyle } from "./index-b39babcd.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-
|
|
9
|
+
const refine = require("./index-0cf0a58e.cjs");
|
|
10
10
|
require("dayjs");
|
|
11
11
|
require("i18next");
|
|
12
12
|
require("@refinedev/core");
|
|
@@ -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: (
|
|
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;
|
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
|
};
|