@domainkit/react 0.20.1 → 0.21.0
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/dist/index.d.mts +6 -6
- package/package.json +13 -13
package/dist/index.d.mts
CHANGED
|
@@ -6,7 +6,7 @@ import { Transport } from "domainkit/client";
|
|
|
6
6
|
import { Testing } from "domainkit/testing";
|
|
7
7
|
//#region src/events.d.ts
|
|
8
8
|
/** What a customer finished doing, for host notifications, analytics, and audit trails. */
|
|
9
|
-
type Event = Data.TaggedEnum<{
|
|
9
|
+
export type Event = Data.TaggedEnum<{
|
|
10
10
|
Connected: {
|
|
11
11
|
readonly domain: string;
|
|
12
12
|
readonly connectionId: string;
|
|
@@ -36,7 +36,7 @@ type Event = Data.TaggedEnum<{
|
|
|
36
36
|
readonly error: DomainKit.Error;
|
|
37
37
|
};
|
|
38
38
|
}>;
|
|
39
|
-
declare const Event: {
|
|
39
|
+
export declare const Event: {
|
|
40
40
|
readonly $is: <Tag extends "Applied" | "Cleaned" | "Connected" | "Declined" | "Detached" | "Disconnected" | "Failed">(tag: Tag) => (u: unknown) => u is Extract<{
|
|
41
41
|
readonly _tag: "Applied";
|
|
42
42
|
readonly domain: string;
|
|
@@ -1803,7 +1803,7 @@ declare function useTransport(): Transport.Interface;
|
|
|
1803
1803
|
declare function ReadOnly({ children, value }: {
|
|
1804
1804
|
readonly children: ReactNode;
|
|
1805
1805
|
readonly value: boolean;
|
|
1806
|
-
}): import("react
|
|
1806
|
+
}): import("react").JSX.Element;
|
|
1807
1807
|
/** Whether this surface may offer controls that change the domain. */
|
|
1808
1808
|
declare function useReadOnly(): boolean;
|
|
1809
1809
|
/** Which capability groups the host's transport declares, for gating a surface of your own. */
|
|
@@ -1876,12 +1876,12 @@ type TransportOptions = Testing.TransportOptions;
|
|
|
1876
1876
|
* The failed member every controller state shares. It carries the `DomainKit.Error` itself, so a
|
|
1877
1877
|
* host reads `error.reason`, `error.category`, and `error.isRetryable` instead of parsing text.
|
|
1878
1878
|
*/
|
|
1879
|
-
type Failure = Data.TaggedEnum<{
|
|
1879
|
+
export type Failure = Data.TaggedEnum<{
|
|
1880
1880
|
Failure: {
|
|
1881
1881
|
readonly error: DomainKit.Error;
|
|
1882
1882
|
};
|
|
1883
1883
|
}>;
|
|
1884
|
-
declare const Failure: {
|
|
1884
|
+
export declare const Failure: {
|
|
1885
1885
|
readonly $is: <Tag extends "Failure">(tag: Tag) => (u: unknown) => u is Extract<{
|
|
1886
1886
|
readonly _tag: "Failure";
|
|
1887
1887
|
readonly error: DomainKit.Error;
|
|
@@ -1914,5 +1914,5 @@ declare const Failure: {
|
|
|
1914
1914
|
}, "_tag">;
|
|
1915
1915
|
};
|
|
1916
1916
|
//#endregion
|
|
1917
|
-
export { cleanup_d_exports as Cleanup, connect_d_exports as Connect, domain_d_exports as Domain, domain_kit_d_exports as DomainKit,
|
|
1917
|
+
export { cleanup_d_exports as Cleanup, connect_d_exports as Connect, domain_d_exports as Domain, domain_kit_d_exports as DomainKit, type Listener, messages_d_exports as Messages, outcome_d_exports as Outcome, provision_d_exports as Provision, records_d_exports as Records, testing_d_exports as Testing, verify_d_exports as Verify };
|
|
1918
1918
|
//# sourceMappingURL=index.d.mts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domainkit/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
4
4
|
"description": "Headless React hooks for custom-domain setup",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"custom-domains",
|
|
@@ -43,21 +43,21 @@
|
|
|
43
43
|
"typecheck": "tsc --noEmit"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"domainkit": "^0.
|
|
46
|
+
"domainkit": "^0.21.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@testing-library/react": "16.3.
|
|
50
|
-
"@testing-library/user-event": "14.6.
|
|
51
|
-
"@types/react": "19.
|
|
52
|
-
"@types/react-dom": "19.
|
|
53
|
-
"effect": "4.0.
|
|
54
|
-
"jsdom": "
|
|
55
|
-
"react": "19.
|
|
56
|
-
"react-dom": "19.
|
|
57
|
-
"tsdown": "0.
|
|
49
|
+
"@testing-library/react": "16.3.3",
|
|
50
|
+
"@testing-library/user-event": "14.6.7",
|
|
51
|
+
"@types/react": "19.3.0",
|
|
52
|
+
"@types/react-dom": "19.3.0",
|
|
53
|
+
"effect": "4.0.2",
|
|
54
|
+
"jsdom": "30.1.2",
|
|
55
|
+
"react": "19.3.0",
|
|
56
|
+
"react-dom": "19.3.0",
|
|
57
|
+
"tsdown": "0.23.0",
|
|
58
58
|
"typescript": "7.0.2",
|
|
59
|
-
"vite": "
|
|
60
|
-
"vitest": "5.0.
|
|
59
|
+
"vite": "8.3.4",
|
|
60
|
+
"vitest": "5.0.3"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"effect": ">=4.0.0 <5.0.0",
|