@comet/admin 8.11.0-canary-20260107084421 → 8.11.0-canary-20260107101444
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/lib/form/Field.d.ts +1 -1
- package/lib/form/Field.d.ts.map +1 -1
- package/lib/form/Field.js +4 -2
- package/package.json +5 -5
package/lib/form/Field.d.ts
CHANGED
|
@@ -18,5 +18,5 @@ export interface FieldProps<FieldValue = any, T extends HTMLElement = HTMLElemen
|
|
|
18
18
|
shouldShowWarning?: (meta: FieldMetaState<FieldValue>) => boolean;
|
|
19
19
|
[otherProp: string]: any;
|
|
20
20
|
}
|
|
21
|
-
export declare function Field<FieldValue = any, FieldElement extends HTMLElement = HTMLElement>({ children, component, name, label, helperText, required, validate, validateWarning, shouldShowError: passedShouldShowError, shouldShowWarning: passedShouldShowWarning, shouldScrollTo: passedShouldScrollTo, ...otherProps }: FieldProps<FieldValue, FieldElement>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare function Field<FieldValue = any, FieldElement extends HTMLElement = HTMLElement>({ children, component, name, label, helperText, required, validate, validateWarning, shouldShowError: passedShouldShowError, shouldShowWarning: passedShouldShowWarning, shouldScrollTo: passedShouldScrollTo, "data-testid": dataTestId, ...otherProps }: FieldProps<FieldValue, FieldElement>): import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
//# sourceMappingURL=Field.d.ts.map
|
package/lib/form/Field.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.d.ts","sourceRoot":"","sources":["../../src/form/Field.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,KAAK,aAAa,EAAiB,KAAK,SAAS,EAAU,MAAM,OAAO,CAAC;AAClF,OAAO,EAA2B,KAAK,cAAc,EAAE,KAAK,gBAAgB,EAAoB,MAAM,kBAAkB,CAAC;AAGzH,OAAO,EAAkB,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AAO,CAAC;IAClE,CAAC,SAAS,EAAE,MAAM,GAAG,GAAG,CAAC;CAC5B;AAED,wBAAgB,KAAK,CAAC,UAAU,GAAG,GAAG,EAAE,YAAY,SAAS,WAAW,GAAG,WAAW,EAAE,EACpF,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,KAAK,EACL,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,eAAe,EACf,eAAe,EAAE,qBAAqB,EACtC,iBAAiB,EAAE,uBAAuB,EAC1C,cAAc,EAAE,oBAAoB,EACpC,aAAa,EAAE,UAAU,EACzB,GAAG,UAAU,EAChB,EAAE,UAAU,CAAC,UAAU,EAAE,YAAY,CAAC,2CAsFtC"}
|
package/lib/form/Field.js
CHANGED
|
@@ -11,7 +11,7 @@ var _reactIntl = require("react-intl");
|
|
|
11
11
|
var _FieldContainer = require("./FieldContainer");
|
|
12
12
|
var _FinalFormContextProvider = require("./FinalFormContextProvider");
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
-
var _excluded = ["children", "component", "name", "label", "helperText", "required", "validate", "validateWarning", "shouldShowError", "shouldShowWarning", "shouldScrollTo"],
|
|
14
|
+
var _excluded = ["children", "component", "name", "label", "helperText", "required", "validate", "validateWarning", "shouldShowError", "shouldShowWarning", "shouldScrollTo", "data-testid"],
|
|
15
15
|
_excluded2 = ["input", "meta", "fieldContainerProps"];
|
|
16
16
|
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
17
17
|
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
|
|
@@ -55,6 +55,7 @@ function Field(_ref) {
|
|
|
55
55
|
passedShouldShowError = _ref.shouldShowError,
|
|
56
56
|
passedShouldShowWarning = _ref.shouldShowWarning,
|
|
57
57
|
passedShouldScrollTo = _ref.shouldScrollTo,
|
|
58
|
+
dataTestId = _ref["data-testid"],
|
|
58
59
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
59
60
|
var disabled = otherProps.disabled,
|
|
60
61
|
variant = otherProps.variant,
|
|
@@ -101,7 +102,8 @@ function Field(_ref) {
|
|
|
101
102
|
helperText: helperText,
|
|
102
103
|
variant: variant,
|
|
103
104
|
fullWidth: fullWidth,
|
|
104
|
-
scrollTo: shouldScrollToField(meta)
|
|
105
|
+
scrollTo: shouldScrollToField(meta),
|
|
106
|
+
"data-testid": dataTestId
|
|
105
107
|
}, fieldContainerProps), {}, {
|
|
106
108
|
children: render()
|
|
107
109
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comet/admin",
|
|
3
|
-
"version": "8.11.0-canary-
|
|
3
|
+
"version": "8.11.0-canary-20260107101444",
|
|
4
4
|
"description": "Comet Admin package",
|
|
5
5
|
"repository": {
|
|
6
6
|
"directory": "packages/admin/admin",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"react-dropzone": "^14.3.8",
|
|
29
29
|
"use-constant": "^2.0.0",
|
|
30
30
|
"uuid": "^11.1.0",
|
|
31
|
-
"@comet/admin-icons": "8.11.0-canary-
|
|
31
|
+
"@comet/admin-icons": "8.11.0-canary-20260107101444"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@apollo/client": "^3.14.0",
|
|
@@ -80,9 +80,9 @@
|
|
|
80
80
|
"typescript": "5.9.3",
|
|
81
81
|
"vite-tsconfig-paths": "^6.0.3",
|
|
82
82
|
"vitest": "^4.0.16",
|
|
83
|
-
"@comet/admin-babel-preset": "8.11.0-canary-
|
|
84
|
-
"@comet/eslint-config": "8.11.0-canary-
|
|
85
|
-
"@comet/eslint-plugin": "8.11.0-canary-
|
|
83
|
+
"@comet/admin-babel-preset": "8.11.0-canary-20260107101444",
|
|
84
|
+
"@comet/eslint-config": "8.11.0-canary-20260107101444",
|
|
85
|
+
"@comet/eslint-plugin": "8.11.0-canary-20260107101444"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
88
|
"@apollo/client": "^3.7.0",
|