@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.
@@ -7,12 +7,12 @@ $ tsup
7
7
  CLI Target: es6
8
8
  CJS Build start
9
9
  ESM Build start
10
- CJS dist/index.cjs 62.88 KB
11
- CJS ⚡️ Build success in 150ms
12
- ESM dist/index.js 58.76 KB
13
- ESM ⚡️ Build success in 163ms
10
+ CJS dist/index.cjs 63.00 KB
11
+ CJS ⚡️ Build success in 125ms
12
+ ESM dist/index.js 58.89 KB
13
+ ESM ⚡️ Build success in 126ms
14
14
  DTS Build start
15
- DTS ⚡️ Build success in 31145ms
15
+ DTS ⚡️ Build success in 32004ms
16
16
  DTS dist/index.d.cts 38.21 KB
17
17
  DTS dist/index.d.ts 38.21 KB
18
- Done in 32.31s.
18
+ Done in 33.23s.
@@ -1,3 +1,3 @@
1
1
  yarn run v1.22.22
2
2
  $ tsc -b
3
- Done in 0.34s.
3
+ Done in 0.39s.
@@ -1,3 +1,3 @@
1
1
  yarn run v1.22.22
2
2
  $ json -f package.json -f package.exports.json --merge > package.release.json
3
- Done in 0.11s.
3
+ Done in 0.12s.
@@ -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
- style="--slider-radius: var(--mantine-radius-xl); --slider-thumb-size: calc(var(--slider-size) * 2);"
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.28",
75
+ "version": "0.0.30",
76
76
  "exports": {
77
77
  ".": {
78
78
  "import": {