@dovetail-v2/refine 0.1.5-alpha.1 → 0.1.5-alpha.2

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-152e54ea.js";
1
+ import { j as jsxRuntimeExports } from "./index-ac7d0fe5.js";
2
2
  import * as monaco from "monaco-editor";
3
3
  import { useRef, useEffect } from "react";
4
4
  import "i18next";
@@ -8021,13 +8021,13 @@ function generateSchemaTypeValue(schema) {
8021
8021
  }
8022
8022
  function resolveRef(schema, schemas, options) {
8023
8023
  var _a, _b;
8024
- const { prune } = options;
8024
+ const { prune, prePath = "#/components/schemas/" } = options;
8025
8025
  const kindObj = schema["x-kubernetes-group-version-kind"];
8026
8026
  if (kindObj) {
8027
8027
  schema.properties.kind = { const: kindObj[0].kind };
8028
8028
  }
8029
8029
  if (schema.$ref) {
8030
- const refKey = schema.$ref.replace("#/components/schemas/", "");
8030
+ const refKey = schema.$ref.replace(prePath, "");
8031
8031
  Object.assign(schema, schemas[refKey]);
8032
8032
  if (prune.metadata && [
8033
8033
  "io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta",
@@ -37339,7 +37339,7 @@ const Separator = () => {
37339
37339
  });
37340
37340
  };
37341
37341
  const MonacoYamlEditor = React__default.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$2));
37342
- const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-c5547070.js"));
37342
+ const MonacoYamlDiffEditor = React__default.lazy(() => import("./MonacoYamlDiffEditor-d4280e1a.js"));
37343
37343
  const YamlEditorComponent = forwardRef(
37344
37344
  function YamlEditorComponent2(props, ref) {
37345
37345
  const {
@@ -39561,6 +39561,9 @@ export {
39561
39561
  modelPlugin as cF,
39562
39562
  RelationPlugin as cG,
39563
39563
  relationPlugin as cH,
39564
+ generateValueFromSchema as cI,
39565
+ generateSchemaTypeValue as cJ,
39566
+ resolveRef as cK,
39564
39567
  STORAGE_CLASS_INIT_VALUE as ca,
39565
39568
  WorkloadState as cb,
39566
39569
  AccessControlAuth as cc,
package/dist/refine.js CHANGED
@@ -1,4 +1,4 @@
1
- import { br, cc, A, aL, aN, av, bO, b1, X, c0, bQ, aF, J, C, i, cg, ay, b5, a6, ci, ab, ai, cr, an, bR, bP, cu, aB, bb, w, at, bh, ct, cd, bl, D, aS, bn, cs, a$, aJ, bu, cf, ch, b_, aw, ac, s, q, cj, I, b8, aI, t, bS, cl, aA, b7, aj, ao, ap, a2, aq, aM, au, bi, bm, a3, M, cE, b$, c9, bq, N, Y, e, aK, a0, bt, bd, bc, ck, bF, cz, g, cy, bU, H, a_, B, aW, z, aV, F, bG, aY, E, aX, G, bH, aZ, a4, cC, cB, P, b3, v, a7, aa, bE, b0, cp, co, aQ, b9, bN, bM, p, az, b2, x, ba, aR, cD, y, ce, bo, bv, bw, cG, ax, R, a9, ag, af, bp, ad, cq, bJ, ae, ak, h, c5, c8, c4, c3, c6, c7, c1, bV, bY, bZ, bX, bW, bT, ca, bx, aC, b6, ar, m, bA, l, aO, cx, o, bB, aP, n, aH, b4, k, cw, aE, aG, bL, bg, bf, bK, aD, S, bk, bj, cv, cA, aT, aU, be, c2, bI, bC, bD, a5, V, cn, a8, W, cm, ah, am, al, f, cb, as, by, K, Z, d, cF, a1, cH, $, _, r, a, c, O, L, Q, T, u, bs, U, bz, b } from "./index-152e54ea.js";
1
+ import { br, cc, A, aL, aN, av, bO, b1, X, c0, bQ, aF, J, C, i, cg, ay, b5, a6, ci, ab, ai, cr, an, bR, bP, cu, aB, bb, w, at, bh, ct, cd, bl, D, aS, bn, cs, a$, aJ, bu, cf, ch, b_, aw, ac, s, q, cj, I, b8, aI, t, bS, cl, aA, b7, aj, ao, ap, a2, aq, aM, au, bi, bm, a3, M, cE, b$, c9, bq, N, Y, e, aK, a0, bt, bd, bc, ck, bF, cz, g, cy, bU, H, a_, B, aW, z, aV, F, bG, aY, E, aX, G, bH, aZ, a4, cC, cB, P, b3, v, a7, aa, bE, b0, cp, co, aQ, b9, bN, bM, p, az, b2, x, ba, aR, cD, y, ce, bo, bv, bw, cG, ax, R, a9, ag, af, bp, ad, cq, bJ, ae, ak, h, c5, c8, c4, c3, c6, c7, c1, bV, bY, bZ, bX, bW, bT, ca, bx, aC, b6, ar, m, bA, l, aO, cx, o, bB, aP, n, aH, b4, k, cw, aE, aG, bL, bg, bf, bK, aD, S, bk, bj, cv, cA, aT, aU, be, c2, bI, bC, bD, a5, V, cn, a8, W, cm, ah, am, al, f, cb, as, by, K, Z, d, cJ, cI, cF, a1, cH, cK, $, _, r, a, c, O, L, Q, T, u, bs, U, bz, b } from "./index-ac7d0fe5.js";
2
2
  import "@cloudtower/eagle";
3
3
  import "@refinedev/core";
4
4
  import "react";
@@ -223,9 +223,12 @@ export {
223
223
  K as addDefaultRenderToColumns,
224
224
  Z as dnsSubDomainRules,
225
225
  d as dovetailRefineI18n,
226
+ cJ as generateSchemaTypeValue,
227
+ cI as generateValueFromSchema,
226
228
  cF as modelPlugin,
227
229
  a1 as namespaceRules,
228
230
  cH as relationPlugin,
231
+ cK as resolveRef,
229
232
  $ as rfc1035LabelRules,
230
233
  _ as rfc1123LabelRules,
231
234
  r as routerProvider,
@@ -8027,13 +8027,13 @@ var __publicField = (obj, key, value) => {
8027
8027
  }
8028
8028
  function resolveRef(schema, schemas, options) {
8029
8029
  var _a, _b;
8030
- const { prune } = options;
8030
+ const { prune, prePath = "#/components/schemas/" } = options;
8031
8031
  const kindObj = schema["x-kubernetes-group-version-kind"];
8032
8032
  if (kindObj) {
8033
8033
  schema.properties.kind = { const: kindObj[0].kind };
8034
8034
  }
8035
8035
  if (schema.$ref) {
8036
- const refKey = schema.$ref.replace("#/components/schemas/", "");
8036
+ const refKey = schema.$ref.replace(prePath, "");
8037
8037
  Object.assign(schema, schemas[refKey]);
8038
8038
  if (prune.metadata && [
8039
8039
  "io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta",
@@ -39637,9 +39637,12 @@ WARNING: This link could potentially be dangerous`)) {
39637
39637
  exports2.addDefaultRenderToColumns = addDefaultRenderToColumns;
39638
39638
  exports2.dnsSubDomainRules = dnsSubDomainRules;
39639
39639
  exports2.dovetailRefineI18n = dovetailRefineI18n;
39640
+ exports2.generateSchemaTypeValue = generateSchemaTypeValue;
39641
+ exports2.generateValueFromSchema = generateValueFromSchema;
39640
39642
  exports2.modelPlugin = modelPlugin;
39641
39643
  exports2.namespaceRules = namespaceRules;
39642
39644
  exports2.relationPlugin = relationPlugin;
39645
+ exports2.resolveRef = resolveRef;
39643
39646
  exports2.rfc1035LabelRules = rfc1035LabelRules;
39644
39647
  exports2.rfc1123LabelRules = rfc1123LabelRules;
39645
39648
  exports2.routerProvider = routerProvider;
@@ -9,3 +9,4 @@ export * from './types';
9
9
  export * from './contexts';
10
10
  export * from './models';
11
11
  export * from './plugins';
12
+ export * from './utils';
@@ -0,0 +1 @@
1
+ export * from './schema';
@@ -12,6 +12,7 @@ type ResolveOptions = {
12
12
  fields: string[];
13
13
  xProperty: boolean;
14
14
  };
15
+ prePath?: string;
15
16
  };
16
17
  export declare function resolveRef(schema: JSONSchema7, schemas: Record<string, JSONSchema7>, options: ResolveOptions): JSONSchema7;
17
18
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dovetail-v2/refine",
3
- "version": "0.1.5-alpha.1",
3
+ "version": "0.1.5-alpha.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",