jazz-tools 0.18.4 → 0.18.6
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/.turbo/turbo-build.log +54 -54
- package/CHANGELOG.md +28 -0
- package/dist/better-auth/auth/client.d.ts.map +1 -1
- package/dist/better-auth/auth/client.js +7 -1
- package/dist/better-auth/auth/client.js.map +1 -1
- package/dist/better-auth/auth/react.d.ts +0 -2142
- package/dist/better-auth/auth/react.d.ts.map +1 -1
- package/dist/better-auth/auth/react.js +2 -14
- package/dist/better-auth/auth/react.js.map +1 -1
- package/dist/better-auth/auth/server.d.ts +21 -1
- package/dist/better-auth/auth/server.d.ts.map +1 -1
- package/dist/better-auth/auth/server.js +83 -27
- package/dist/better-auth/auth/server.js.map +1 -1
- package/dist/better-auth/auth/tests/react.test.d.ts +2 -0
- package/dist/better-auth/auth/tests/react.test.d.ts.map +1 -0
- package/dist/browser/createBrowserContext.d.ts.map +1 -1
- package/dist/browser/index.js +7 -0
- package/dist/browser/index.js.map +1 -1
- package/dist/{chunk-LHQQZH7I.js → chunk-45VKEOXG.js} +123 -81
- package/dist/chunk-45VKEOXG.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/inspector/{custom-element-WCY6D3QJ.js → custom-element-IBHKHN27.js} +19 -69
- package/dist/inspector/custom-element-IBHKHN27.js.map +1 -0
- package/dist/inspector/index.d.ts +5 -1
- package/dist/inspector/index.d.ts.map +1 -1
- package/dist/inspector/index.js +18 -17
- package/dist/inspector/index.js.map +1 -1
- package/dist/inspector/register-custom-element.js +1 -1
- package/dist/inspector/viewer/new-app.d.ts +0 -3
- package/dist/inspector/viewer/new-app.d.ts.map +1 -1
- package/dist/react-core/index.js +3 -1
- package/dist/react-core/index.js.map +1 -1
- package/dist/testing.js +2 -2
- package/dist/testing.js.map +1 -1
- package/dist/tools/coValues/inbox.d.ts +5 -5
- package/dist/tools/coValues/inbox.d.ts.map +1 -1
- package/dist/tools/implementation/anonymousJazzAgent.d.ts +1 -1
- package/dist/tools/implementation/anonymousJazzAgent.d.ts.map +1 -1
- package/dist/tools/implementation/zodSchema/coExport.d.ts +2 -0
- package/dist/tools/implementation/zodSchema/coExport.d.ts.map +1 -1
- package/dist/tools/implementation/zodSchema/typeConverters/CoFieldSchemaInit.d.ts +4 -0
- package/dist/tools/implementation/zodSchema/typeConverters/CoFieldSchemaInit.d.ts.map +1 -1
- package/dist/tools/implementation/zodSchema/typeConverters/TypeOfZodSchema.d.ts.map +1 -1
- package/dist/tools/implementation/zodSchema/unionUtils.d.ts.map +1 -1
- package/dist/worker/index.d.ts +8 -2
- package/dist/worker/index.d.ts.map +1 -1
- package/dist/worker/index.js +7 -3
- package/dist/worker/index.js.map +1 -1
- package/package.json +5 -4
- package/src/better-auth/auth/client.ts +8 -2
- package/src/better-auth/auth/react.tsx +2 -51
- package/src/better-auth/auth/server.ts +132 -31
- package/src/better-auth/auth/tests/client.test.ts +92 -4
- package/src/better-auth/auth/tests/react.test.tsx +43 -0
- package/src/better-auth/auth/tests/server.test.ts +317 -51
- package/src/browser/createBrowserContext.ts +8 -0
- package/src/inspector/custom-element.tsx +1 -1
- package/src/inspector/index.tsx +44 -0
- package/src/inspector/viewer/new-app.tsx +0 -18
- package/src/tools/coValues/inbox.ts +190 -108
- package/src/tools/implementation/anonymousJazzAgent.ts +1 -1
- package/src/tools/implementation/zodSchema/coExport.ts +2 -0
- package/src/tools/implementation/zodSchema/typeConverters/CoFieldSchemaInit.ts +8 -1
- package/src/tools/implementation/zodSchema/typeConverters/TypeOfZodSchema.ts +0 -1
- package/src/tools/implementation/zodSchema/unionUtils.ts +0 -1
- package/src/tools/testing.ts +1 -1
- package/src/tools/tests/coFeed.test.ts +33 -22
- package/src/tools/tests/coList.test-d.ts +17 -0
- package/src/tools/tests/coList.test.ts +6 -4
- package/src/tools/tests/coMap.record.test-d.ts +18 -0
- package/src/tools/tests/coMap.test-d.ts +15 -0
- package/src/tools/tests/coMap.test.ts +13 -5
- package/src/tools/tests/exportImport.test.ts +3 -1
- package/src/tools/tests/groupsAndAccounts.test.ts +56 -44
- package/src/tools/tests/inbox.test.ts +293 -31
- package/src/worker/index.ts +15 -5
- package/tsup.config.ts +1 -1
- package/dist/chunk-LHQQZH7I.js.map +0 -1
- package/dist/inspector/custom-element-WCY6D3QJ.js.map +0 -1
- package/src/inspector/index.ts +0 -23
@@ -1,4 +1,4 @@
|
|
1
|
-
export {
|
1
|
+
export { JazzInspectorInternal } from "./viewer/new-app.js";
|
2
2
|
export { PageStack } from "./viewer/page-stack.js";
|
3
3
|
export { Breadcrumbs } from "./viewer/breadcrumbs.js";
|
4
4
|
export { AccountOrGroupText } from "./viewer/account-or-group-text.js";
|
@@ -9,4 +9,8 @@ export { Icon } from "./ui/icon.js";
|
|
9
9
|
export { GlobalStyles } from "./ui/global-styles.js";
|
10
10
|
export { resolveCoValue, useResolvedCoValue, } from "./viewer/use-resolve-covalue.js";
|
11
11
|
export type { PageInfo } from "./viewer/types.js";
|
12
|
+
import { Position } from "./viewer/inpsector-button.js";
|
13
|
+
export declare function JazzInspector({ position }: {
|
14
|
+
position?: Position;
|
15
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
12
16
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/inspector/index.
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/inspector/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,OAAO,EACL,cAAc,EACd,kBAAkB,GACnB,MAAM,iCAAiC,CAAC;AAEzC,YAAY,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAOlD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAExD,wBAAgB,aAAa,CAAC,EAAE,QAAkB,EAAE,EAAE;IAAE,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAE,kDAc5E"}
|
package/dist/inspector/index.js
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
"use client";
|
2
2
|
|
3
|
-
// src/inspector/index.
|
3
|
+
// src/inspector/index.tsx
|
4
4
|
import React7 from "react";
|
5
5
|
|
6
6
|
// src/inspector/viewer/new-app.tsx
|
7
7
|
import { styled as styled18 } from "goober";
|
8
|
-
import { useJazzContext } from "jazz-tools/react-core";
|
9
8
|
import { useState as useState9 } from "react";
|
10
9
|
|
11
10
|
// src/inspector/ui/button.tsx
|
@@ -1941,20 +1940,6 @@ var InitialForm = styled18("form")`
|
|
1941
1940
|
var OrText = styled18("p")`
|
1942
1941
|
text-align: center;
|
1943
1942
|
`;
|
1944
|
-
function JazzInspector({ position = "right" }) {
|
1945
|
-
const context = useJazzContext();
|
1946
|
-
const localNode = context.node;
|
1947
|
-
const me = "me" in context ? context.me : void 0;
|
1948
|
-
if (process.env.NODE_ENV !== "development") return null;
|
1949
|
-
return /* @__PURE__ */ jsx26(
|
1950
|
-
JazzInspectorInternal,
|
1951
|
-
{
|
1952
|
-
position,
|
1953
|
-
localNode,
|
1954
|
-
accountId: me?.$jazz.raw.id
|
1955
|
-
}
|
1956
|
-
);
|
1957
|
-
}
|
1958
1943
|
function JazzInspectorInternal({
|
1959
1944
|
position = "right",
|
1960
1945
|
localNode,
|
@@ -2091,8 +2076,24 @@ function Select(props) {
|
|
2091
2076
|
] });
|
2092
2077
|
}
|
2093
2078
|
|
2094
|
-
// src/inspector/index.
|
2079
|
+
// src/inspector/index.tsx
|
2095
2080
|
import { setup } from "goober";
|
2081
|
+
import { useJazzContext } from "jazz-tools/react-core";
|
2082
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
2083
|
+
function JazzInspector({ position = "right" }) {
|
2084
|
+
const context = useJazzContext();
|
2085
|
+
const localNode = context.node;
|
2086
|
+
const me = "me" in context ? context.me : void 0;
|
2087
|
+
if (process.env.NODE_ENV !== "development") return null;
|
2088
|
+
return /* @__PURE__ */ jsx28(
|
2089
|
+
JazzInspectorInternal,
|
2090
|
+
{
|
2091
|
+
position,
|
2092
|
+
localNode,
|
2093
|
+
accountId: me?.$jazz.raw.id
|
2094
|
+
}
|
2095
|
+
);
|
2096
|
+
}
|
2096
2097
|
setup(React7.createElement);
|
2097
2098
|
export {
|
2098
2099
|
AccountOrGroupText,
|