@krak-stack/registry 0.1.40 → 0.1.42
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/README.md +179 -34
- package/dist/components/ui/data-table.d.ts +27 -10
- package/dist/components/ui/data-table.js +81 -36
- package/dist/components/ui/google-map.d.ts +14 -1
- package/dist/components/ui/google-map.js +97 -18
- package/dist/services/opentelemetry/api.d.ts +1 -1
- package/dist/services/opentelemetry/api.js +165 -13
- package/dist/services/opentelemetry/browser.d.ts +21 -3
- package/dist/services/opentelemetry/browser.js +267 -21
- package/dist/services/opentelemetry/events.d.ts +37 -0
- package/dist/services/opentelemetry/schema.d.ts +44 -0
- package/dist/services/opentelemetry/server.d.ts +20 -0
- package/dist/services/opentelemetry/server.js +154 -0
- package/package.json +7 -4
- package/patches/@lucas-barake%2Feffect-form-react@0.26.0-beta.5.patch +0 -66
- package/patches/@lucas-barake%2Feffect-form@0.25.0-beta.6.patch +0 -86
- package/patches/README.md +0 -31
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
diff --git a/dist/FormReact.d.ts b/dist/FormReact.d.ts
|
|
2
|
-
index 61b65ad3ef858a3d9994d4cfde7e47216d44b549..0431a57a4a27eefa43180fc19f04f887a25ebf24 100644
|
|
3
|
-
--- a/dist/FormReact.d.ts
|
|
4
|
-
+++ b/dist/FormReact.d.ts
|
|
5
|
-
@@ -4,8 +4,8 @@ import type * as FormBuilder from "@lucas-barake/effect-form/FormBuilder";
|
|
6
|
-
import type * as Effect from "effect/Effect";
|
|
7
|
-
import * as Option from "effect/Option";
|
|
8
|
-
import type * as Schema from "effect/Schema";
|
|
9
|
-
-import * as Atom from "effect/unstable/reactivity/Atom";
|
|
10
|
-
-import type * as AtomRegistry from "effect/unstable/reactivity/AtomRegistry";
|
|
11
|
-
+import * as Atom from "effect/reactivity/Atom";
|
|
12
|
-
+import type * as AtomRegistry from "effect/reactivity/AtomRegistry";
|
|
13
|
-
import * as React from "react";
|
|
14
|
-
export type FieldValue<T> = FieldStateModule.FieldValue<T>;
|
|
15
|
-
export type FieldState<E> = FieldStateModule.FieldState<E>;
|
|
16
|
-
diff --git a/dist/FormReact.js b/dist/FormReact.js
|
|
17
|
-
index 03e34ec60b833b4dd220ac6faffe70b9138703cd..f313c18c5e6cdb7138e19180aeb0acd4281857fa 100644
|
|
18
|
-
--- a/dist/FormReact.js
|
|
19
|
-
+++ b/dist/FormReact.js
|
|
20
|
-
@@ -4,7 +4,7 @@ import { Field, FormAtoms } from "@lucas-barake/effect-form";
|
|
21
|
-
import { getNestedValue } from "@lucas-barake/effect-form/Path";
|
|
22
|
-
import * as Layer from "effect/Layer";
|
|
23
|
-
import * as Option from "effect/Option";
|
|
24
|
-
-import * as Atom from "effect/unstable/reactivity/Atom";
|
|
25
|
-
+import * as Atom from "effect/reactivity/Atom";
|
|
26
|
-
import * as React from "react";
|
|
27
|
-
import { createContext, useContext } from "react";
|
|
28
|
-
const ArrayItemContext = /*#__PURE__*/createContext(null);
|
|
29
|
-
diff --git a/package.json b/package.json
|
|
30
|
-
index 416aed4983dfb7dfc1528b3cca636b860ab0986e..048e49b01201623854c1c8f042044d3f5bd64703 100644
|
|
31
|
-
--- a/package.json
|
|
32
|
-
+++ b/package.json
|
|
33
|
-
@@ -41,14 +41,14 @@
|
|
34
|
-
"@lucas-barake/effect-form": "^0.25.0-beta.6"
|
|
35
|
-
},
|
|
36
|
-
"devDependencies": {
|
|
37
|
-
- "@effect/atom-react": "4.0.0-beta.52",
|
|
38
|
-
+ "@effect/atom-react": "4.0.0",
|
|
39
|
-
"@vitejs/plugin-react": "^5.1.1",
|
|
40
|
-
- "effect": "4.0.0-beta.52",
|
|
41
|
-
+ "effect": "4.0.0",
|
|
42
|
-
"react": "^19.0.0"
|
|
43
|
-
},
|
|
44
|
-
"peerDependencies": {
|
|
45
|
-
- "@effect/atom-react": ">=4.0.0-beta.52 <4.0.1",
|
|
46
|
-
- "effect": ">=4.0.0-beta.52 <4.0.1",
|
|
47
|
-
+ "@effect/atom-react": "^4.0.0",
|
|
48
|
-
+ "effect": "^4.0.0",
|
|
49
|
-
"react": "^19.0.0"
|
|
50
|
-
},
|
|
51
|
-
"scripts": {
|
|
52
|
-
diff --git a/src/FormReact.tsx b/src/FormReact.tsx
|
|
53
|
-
index 49c358e92fe04a62a9ef97dbae6665ce53e905a5..dfb2792d4b824d448bf3e8f4b469c0861422bd6f 100644
|
|
54
|
-
--- a/src/FormReact.tsx
|
|
55
|
-
+++ b/src/FormReact.tsx
|
|
56
|
-
@@ -7,8 +7,8 @@ import type * as Effect from "effect/Effect"
|
|
57
|
-
import * as Layer from "effect/Layer"
|
|
58
|
-
import * as Option from "effect/Option"
|
|
59
|
-
import type * as Schema from "effect/Schema"
|
|
60
|
-
-import * as Atom from "effect/unstable/reactivity/Atom"
|
|
61
|
-
-import type * as AtomRegistry from "effect/unstable/reactivity/AtomRegistry"
|
|
62
|
-
+import * as Atom from "effect/reactivity/Atom"
|
|
63
|
-
+import type * as AtomRegistry from "effect/reactivity/AtomRegistry"
|
|
64
|
-
import * as React from "react"
|
|
65
|
-
import { createContext, useContext } from "react"
|
|
66
|
-
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
diff --git a/dist/FormAtoms.d.ts b/dist/FormAtoms.d.ts
|
|
2
|
-
index 08d1e4e2e8edf08cecb5b550099c3293cbd10cd7..f7b1fa4a5a7d65e8b8b3785dc9eb5397d24718b4 100644
|
|
3
|
-
--- a/dist/FormAtoms.d.ts
|
|
4
|
-
+++ b/dist/FormAtoms.d.ts
|
|
5
|
-
@@ -1,7 +1,7 @@
|
|
6
|
-
import * as Effect from "effect/Effect";
|
|
7
|
-
import * as Option from "effect/Option";
|
|
8
|
-
import * as Schema from "effect/Schema";
|
|
9
|
-
-import * as Atom from "effect/unstable/reactivity/Atom";
|
|
10
|
-
+import * as Atom from "effect/reactivity/Atom";
|
|
11
|
-
import * as Field from "./Field.ts";
|
|
12
|
-
import * as FormBuilder from "./FormBuilder.ts";
|
|
13
|
-
import * as Mode from "./Mode.ts";
|
|
14
|
-
diff --git a/dist/FormAtoms.js b/dist/FormAtoms.js
|
|
15
|
-
index 663c4478a08eb17bfb7a11df952ced8f7812cbf8..ebaa1be93c33af0390857e945a9d414094f215ab 100644
|
|
16
|
-
--- a/dist/FormAtoms.js
|
|
17
|
-
+++ b/dist/FormAtoms.js
|
|
18
|
-
@@ -3,8 +3,8 @@ import * as Effect from "effect/Effect";
|
|
19
|
-
import { pipe } from "effect/Function";
|
|
20
|
-
import * as Option from "effect/Option";
|
|
21
|
-
import * as Schema from "effect/Schema";
|
|
22
|
-
-import * as AsyncResult from "effect/unstable/reactivity/AsyncResult";
|
|
23
|
-
-import * as Atom from "effect/unstable/reactivity/Atom";
|
|
24
|
-
+import * as AsyncResult from "effect/reactivity/AsyncResult";
|
|
25
|
-
+import * as Atom from "effect/reactivity/Atom";
|
|
26
|
-
import * as Field from "./Field.js";
|
|
27
|
-
import * as FormBuilder from "./FormBuilder.js";
|
|
28
|
-
import { recalculateDirtyFieldsForArray, recalculateDirtySubtree } from "./internal/dirty.js";
|
|
29
|
-
diff --git a/dist/FormBuilder.d.ts b/dist/FormBuilder.d.ts
|
|
30
|
-
index d42cf00d24b9efea5168831549b85468a64dfcef..16dfc1af6443555454ec7e6219c94eeabce3d724 100644
|
|
31
|
-
--- a/dist/FormBuilder.d.ts
|
|
32
|
-
+++ b/dist/FormBuilder.d.ts
|
|
33
|
-
@@ -1,7 +1,7 @@
|
|
34
|
-
import type * as Effect from "effect/Effect";
|
|
35
|
-
import type * as Option from "effect/Option";
|
|
36
|
-
import * as Schema from "effect/Schema";
|
|
37
|
-
-import type * as AtomRegistry from "effect/unstable/reactivity/AtomRegistry";
|
|
38
|
-
+import type * as AtomRegistry from "effect/reactivity/AtomRegistry";
|
|
39
|
-
import type { ArrayFieldDef, DecodedFromFields, EncodedFromFields, FieldDef, FieldsRecord } from "./Field.ts";
|
|
40
|
-
/**
|
|
41
|
-
* Flattens an intersection of field records into a single object type so that
|
|
42
|
-
diff --git a/package.json b/package.json
|
|
43
|
-
index 96ad0aa1729c64e8378a8cb2ad29f13b5347e568..06ae5ac6312779be749ff867b846c8f3c4ccf5b1 100644
|
|
44
|
-
--- a/package.json
|
|
45
|
-
+++ b/package.json
|
|
46
|
-
@@ -36,10 +36,10 @@
|
|
47
|
-
"license": "MIT",
|
|
48
|
-
"sideEffects": [],
|
|
49
|
-
"peerDependencies": {
|
|
50
|
-
- "effect": ">=4.0.0-beta.52 <4.0.1"
|
|
51
|
-
+ "effect": "^4.0.0"
|
|
52
|
-
},
|
|
53
|
-
"devDependencies": {
|
|
54
|
-
- "effect": "4.0.0-beta.52"
|
|
55
|
-
+ "effect": "4.0.0"
|
|
56
|
-
},
|
|
57
|
-
"scripts": {
|
|
58
|
-
"build": "tsc -b tsconfig.json && pnpm babel",
|
|
59
|
-
diff --git a/src/FormAtoms.ts b/src/FormAtoms.ts
|
|
60
|
-
index bc60a7f7b676edf4d1e99f6eb4162335b3247022..60d3dadfe2ef14c0a1b66b5e16886e8870c82681 100644
|
|
61
|
-
--- a/src/FormAtoms.ts
|
|
62
|
-
+++ b/src/FormAtoms.ts
|
|
63
|
-
@@ -3,8 +3,8 @@ import * as Effect from "effect/Effect"
|
|
64
|
-
import { pipe } from "effect/Function"
|
|
65
|
-
import * as Option from "effect/Option"
|
|
66
|
-
import * as Schema from "effect/Schema"
|
|
67
|
-
-import * as AsyncResult from "effect/unstable/reactivity/AsyncResult"
|
|
68
|
-
-import * as Atom from "effect/unstable/reactivity/Atom"
|
|
69
|
-
+import * as AsyncResult from "effect/reactivity/AsyncResult"
|
|
70
|
-
+import * as Atom from "effect/reactivity/Atom"
|
|
71
|
-
import * as Field from "./Field.ts"
|
|
72
|
-
import * as FormBuilder from "./FormBuilder.ts"
|
|
73
|
-
import { recalculateDirtyFieldsForArray, recalculateDirtySubtree } from "./internal/dirty.ts"
|
|
74
|
-
diff --git a/src/FormBuilder.ts b/src/FormBuilder.ts
|
|
75
|
-
index 764de854be6b072967d1140c707ba9565eda9516..6a2d0fe285ae3b2d1afc4bf928897e5b7bfb0a4b 100644
|
|
76
|
-
--- a/src/FormBuilder.ts
|
|
77
|
-
+++ b/src/FormBuilder.ts
|
|
78
|
-
@@ -3,7 +3,7 @@ import type * as Option from "effect/Option"
|
|
79
|
-
import * as Predicate from "effect/Predicate"
|
|
80
|
-
import * as Schema from "effect/Schema"
|
|
81
|
-
import * as SchemaGetter from "effect/SchemaGetter"
|
|
82
|
-
-import type * as AtomRegistry from "effect/unstable/reactivity/AtomRegistry"
|
|
83
|
-
+import type * as AtomRegistry from "effect/reactivity/AtomRegistry"
|
|
84
|
-
|
|
85
|
-
import type {
|
|
86
|
-
AnyFieldDef,
|
package/patches/README.md
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# Temporary Effect form compatibility patches
|
|
2
|
-
|
|
3
|
-
These patches backport the stable Effect 4 changes from upstream commit
|
|
4
|
-
[`c10a53e041c9b0b338b26b2af66be5eb24f07d47`](https://github.com/lucas-barake/effect-form/commit/c10a53e041c9b0b338b26b2af66be5eb24f07d47).
|
|
5
|
-
The fixed npm packages are awaiting [release PR #111](https://github.com/lucas-barake/effect-form/pull/111).
|
|
6
|
-
|
|
7
|
-
The patches update reactivity imports in shipped JavaScript, TypeScript
|
|
8
|
-
declarations, and source, and change Effect peer ranges to `^4.0.0`.
|
|
9
|
-
They do not change form behavior or package versions.
|
|
10
|
-
|
|
11
|
-
## Installation
|
|
12
|
-
|
|
13
|
-
The workspace-root `package.json` configures `patchedDependencies` and exact
|
|
14
|
-
version overrides for both packages. Run `bun install` to apply them; commit
|
|
15
|
-
these patch files, `package.json`, and `bun.lock` together. In a monorepo, configure
|
|
16
|
-
the patches at the workspace root, not inside individual packages.
|
|
17
|
-
|
|
18
|
-
Patches do **not** propagate from a published KrakStack package to a consuming
|
|
19
|
-
application. Every application using the affected form packages must configure
|
|
20
|
-
both patches itself. The interim Auth and Registry packages also ship copies
|
|
21
|
-
under `patches/` for consumers to copy into their application roots.
|
|
22
|
-
|
|
23
|
-
## Removing the workaround
|
|
24
|
-
|
|
25
|
-
After upstream publishes `@lucas-barake/effect-form@0.25.0-beta.7` and
|
|
26
|
-
`@lucas-barake/effect-form-react@0.26.0-beta.6` (or newer compatible releases):
|
|
27
|
-
|
|
28
|
-
1. Update direct dependencies and KrakStack peer requirements to the fixed versions.
|
|
29
|
-
2. Remove the two form overrides and `patchedDependencies` entries.
|
|
30
|
-
3. Remove these two patch files and any copies shipped with KrakStack packages.
|
|
31
|
-
4. Run `bun install`, then the project's type, test, and release checks.
|