@dovetail-v2/refine 0.3.31 → 0.3.33

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/refine.cjs CHANGED
@@ -11353,7 +11353,7 @@ const useYamlForm = ({
11353
11353
  ref: editor,
11354
11354
  defaultValue: schema && (editorOptions == null ? void 0 : editorOptions.isGenerateAnnotations) ? generateYamlBySchema(initialValues || {}, schema) : yaml$2.dump(initialValues),
11355
11355
  schemas: schemas || emptySchemas,
11356
- id: ((_a2 = useResourceResult.resource) == null ? void 0 : _a2.name) || "",
11356
+ id: resource || ((_a2 = useResourceResult.resource) == null ? void 0 : _a2.name) || "",
11357
11357
  errorMsgs: finalErrors,
11358
11358
  onValidate(yamlValid, schemaValid) {
11359
11359
  setIsYamlValid(yamlValid);
@@ -11378,6 +11378,7 @@ const useYamlForm = ({
11378
11378
  editorOptions == null ? void 0 : editorOptions.isGenerateAnnotations,
11379
11379
  initialValues,
11380
11380
  schemas,
11381
+ resource,
11381
11382
  (_a = useResourceResult.resource) == null ? void 0 : _a.name,
11382
11383
  action,
11383
11384
  finalErrors,
package/dist/refine.js CHANGED
@@ -11334,7 +11334,7 @@ const useYamlForm = ({
11334
11334
  ref: editor,
11335
11335
  defaultValue: schema && (editorOptions == null ? void 0 : editorOptions.isGenerateAnnotations) ? generateYamlBySchema(initialValues || {}, schema) : yaml$2.dump(initialValues),
11336
11336
  schemas: schemas || emptySchemas,
11337
- id: ((_a2 = useResourceResult.resource) == null ? void 0 : _a2.name) || "",
11337
+ id: resource || ((_a2 = useResourceResult.resource) == null ? void 0 : _a2.name) || "",
11338
11338
  errorMsgs: finalErrors,
11339
11339
  onValidate(yamlValid, schemaValid) {
11340
11340
  setIsYamlValid(yamlValid);
@@ -11359,6 +11359,7 @@ const useYamlForm = ({
11359
11359
  editorOptions == null ? void 0 : editorOptions.isGenerateAnnotations,
11360
11360
  initialValues,
11361
11361
  schemas,
11362
+ resource,
11362
11363
  (_a = useResourceResult.resource) == null ? void 0 : _a.name,
11363
11364
  action,
11364
11365
  finalErrors,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dovetail-v2/refine",
3
- "version": "0.3.31",
3
+ "version": "0.3.33",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -30,7 +30,7 @@
30
30
  "dayjs": "^1.11.10",
31
31
  "i18next": "^23.2.3",
32
32
  "js-yaml": "^4.1.0",
33
- "k8s-api-provider": "^0.0.35",
33
+ "k8s-api-provider": "^0.0.36",
34
34
  "ky": "^0.33.3",
35
35
  "lodash-es": "^4.17.21",
36
36
  "mitt": "^3.0.1",