@strictly/react-form 0.0.28 → 0.0.30
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/.out/core/mobx/form_model.js +3 -2
- package/.out/tsconfig.tsbuildinfo +1 -1
- package/.turbo/turbo-build.log +6 -6
- package/.turbo/turbo-check-types.log +1 -1
- package/.turbo/turbo-release$colon$exports.log +1 -1
- package/core/mobx/form_model.ts +2 -1
- package/dist/index.cjs +3 -2
- package/dist/index.js +3 -2
- package/mantine/specs/__snapshots__/value_input_hooks.tests.tsx.snap +3 -2
- package/package.json +3 -3
package/.turbo/turbo-build.log
CHANGED
|
@@ -7,12 +7,12 @@ $ tsup
|
|
|
7
7
|
[34mCLI[39m Target: es6
|
|
8
8
|
[34mCJS[39m Build start
|
|
9
9
|
[34mESM[39m Build start
|
|
10
|
-
[32mCJS[39m [1mdist/index.cjs [22m[
|
|
11
|
-
[32mCJS[39m ⚡️ Build success in
|
|
12
|
-
[32mESM[39m [1mdist/index.js [22m[32m58.
|
|
13
|
-
[32mESM[39m ⚡️ Build success in
|
|
10
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m63.00 KB[39m
|
|
11
|
+
[32mCJS[39m ⚡️ Build success in 125ms
|
|
12
|
+
[32mESM[39m [1mdist/index.js [22m[32m58.89 KB[39m
|
|
13
|
+
[32mESM[39m ⚡️ Build success in 126ms
|
|
14
14
|
[34mDTS[39m Build start
|
|
15
|
-
[32mDTS[39m ⚡️ Build success in
|
|
15
|
+
[32mDTS[39m ⚡️ Build success in 32004ms
|
|
16
16
|
[32mDTS[39m [1mdist/index.d.cts [22m[32m38.21 KB[39m
|
|
17
17
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m38.21 KB[39m
|
|
18
|
-
Done in
|
|
18
|
+
Done in 33.23s.
|
package/core/mobx/form_model.ts
CHANGED
|
@@ -398,8 +398,9 @@ export abstract class FormModel<
|
|
|
398
398
|
error,
|
|
399
399
|
readonly: readonly && !this.forceMutableFields,
|
|
400
400
|
required,
|
|
401
|
+
// make a copy of the index mapping and remove the final value (next id)
|
|
401
402
|
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
|
|
402
|
-
listIndexToKey: this.listIndicesToKeys[valuePath as string],
|
|
403
|
+
listIndexToKey: this.listIndicesToKeys[valuePath as string]?.slice(0, -1),
|
|
403
404
|
}
|
|
404
405
|
}
|
|
405
406
|
|
package/dist/index.cjs
CHANGED
|
@@ -511,7 +511,7 @@ var FormModel = class {
|
|
|
511
511
|
};
|
|
512
512
|
}
|
|
513
513
|
synthesizeFieldByPaths(valuePath, typePath) {
|
|
514
|
-
var _a;
|
|
514
|
+
var _a, _b;
|
|
515
515
|
const field = this.getField(valuePath, typePath);
|
|
516
516
|
if (field == null) {
|
|
517
517
|
return;
|
|
@@ -562,8 +562,9 @@ var FormModel = class {
|
|
|
562
562
|
error,
|
|
563
563
|
readonly: readonly && !this.forceMutableFields,
|
|
564
564
|
required,
|
|
565
|
+
// make a copy of the index mapping and remove the final value (next id)
|
|
565
566
|
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
|
|
566
|
-
listIndexToKey: this.listIndicesToKeys[valuePath]
|
|
567
|
+
listIndexToKey: (_b = this.listIndicesToKeys[valuePath]) == null ? void 0 : _b.slice(0, -1)
|
|
567
568
|
};
|
|
568
569
|
}
|
|
569
570
|
getAccessorForValuePath(valuePath) {
|
package/dist/index.js
CHANGED
|
@@ -480,7 +480,7 @@ var FormModel = class {
|
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
482
|
synthesizeFieldByPaths(valuePath, typePath) {
|
|
483
|
-
var _a;
|
|
483
|
+
var _a, _b;
|
|
484
484
|
const field = this.getField(valuePath, typePath);
|
|
485
485
|
if (field == null) {
|
|
486
486
|
return;
|
|
@@ -531,8 +531,9 @@ var FormModel = class {
|
|
|
531
531
|
error,
|
|
532
532
|
readonly: readonly && !this.forceMutableFields,
|
|
533
533
|
required,
|
|
534
|
+
// make a copy of the index mapping and remove the final value (next id)
|
|
534
535
|
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
|
|
535
|
-
listIndexToKey: this.listIndicesToKeys[valuePath]
|
|
536
|
+
listIndexToKey: (_b = this.listIndicesToKeys[valuePath]) == null ? void 0 : _b.slice(0, -1)
|
|
536
537
|
};
|
|
537
538
|
}
|
|
538
539
|
getAccessorForValuePath(valuePath) {
|
|
@@ -259,7 +259,8 @@ exports[`mantine value input hooks > renders AnSlider 1`] = `
|
|
|
259
259
|
</style>
|
|
260
260
|
<div
|
|
261
261
|
class="m_dd36362e mantine-Slider-root"
|
|
262
|
-
|
|
262
|
+
data-size="md"
|
|
263
|
+
style="--slider-size: var(--slider-size-md); --slider-radius: var(--mantine-radius-xl); --slider-thumb-size: calc(var(--slider-size) * 2);"
|
|
263
264
|
tabindex="-1"
|
|
264
265
|
>
|
|
265
266
|
<div
|
|
@@ -270,7 +271,7 @@ exports[`mantine value input hooks > renders AnSlider 1`] = `
|
|
|
270
271
|
>
|
|
271
272
|
<div
|
|
272
273
|
class="m_38aeed47 mantine-Slider-bar"
|
|
273
|
-
style="--slider-bar-width: calc(22.22222222222222% + var(--slider-size)); --slider-bar-offset: calc(0% - var(--slider-size));"
|
|
274
|
+
style="--slider-bar-width: calc(22.22222222222222% + 2 * var(--slider-size)); --slider-bar-offset: calc(0% - var(--slider-size));"
|
|
274
275
|
/>
|
|
275
276
|
<div
|
|
276
277
|
aria-label=""
|
package/package.json
CHANGED
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"license": "MIT",
|
|
40
40
|
"name": "@strictly/react-form",
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@mantine/core": "^7.0.0",
|
|
43
|
-
"@mantine/hooks": "^7.0.0",
|
|
42
|
+
"@mantine/core": "^7.0.0 || ^8.0.0",
|
|
43
|
+
"@mantine/hooks": "^7.0.0 || ^8.0.0",
|
|
44
44
|
"@strictly/base": "*",
|
|
45
45
|
"@strictly/define": "*",
|
|
46
46
|
"mobx": "^6.0.0",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"test:watch": "vitest"
|
|
73
73
|
},
|
|
74
74
|
"type": "module",
|
|
75
|
-
"version": "0.0.
|
|
75
|
+
"version": "0.0.30",
|
|
76
76
|
"exports": {
|
|
77
77
|
".": {
|
|
78
78
|
"import": {
|