@ai-matrx/associations 0.5.2 → 0.6.1
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/CHANGELOG.md +109 -0
- package/README.md +51 -13
- package/dist/CommentThread-E0zSQBbc.d.cts +1905 -0
- package/dist/CommentThread-E0zSQBbc.d.ts +1905 -0
- package/dist/core/index.cjs +23 -6
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +18 -5
- package/dist/core/index.d.ts +18 -5
- package/dist/core/index.js +23 -6
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +66 -17
- package/dist/index.d.ts +66 -17
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +1039 -451
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +79 -1854
- package/dist/react/index.d.ts +79 -1854
- package/dist/react/index.js +1064 -465
- package/dist/react/index.js.map +1 -1
- package/dist/react/lazy/index.cjs +89 -0
- package/dist/react/lazy/index.cjs.map +1 -0
- package/dist/react/lazy/index.d.cts +17 -0
- package/dist/react/lazy/index.d.ts +17 -0
- package/dist/react/lazy/index.js +59 -0
- package/dist/react/lazy/index.js.map +1 -0
- package/package.json +18 -4
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
+
mod
|
|
28
|
+
));
|
|
29
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
+
|
|
31
|
+
// src/react-lazy/index.tsx
|
|
32
|
+
var react_lazy_exports = {};
|
|
33
|
+
__export(react_lazy_exports, {
|
|
34
|
+
AssociationCaptureToolbar: () => AssociationCaptureToolbar,
|
|
35
|
+
AssociationCard: () => AssociationCard,
|
|
36
|
+
AssociationCardGrid: () => AssociationCardGrid,
|
|
37
|
+
AssociationEntitySelect: () => AssociationEntitySelect,
|
|
38
|
+
AssociationList: () => AssociationList,
|
|
39
|
+
AssociationPicker: () => AssociationPicker,
|
|
40
|
+
AssociationWindow: () => AssociationWindow,
|
|
41
|
+
AttachedItemsSheet: () => AttachedItemsSheet,
|
|
42
|
+
CategorySelect: () => CategorySelect,
|
|
43
|
+
CategoryTagPicker: () => CategoryTagPicker,
|
|
44
|
+
CommentThread: () => CommentThread,
|
|
45
|
+
UniversalAssociationPicker: () => UniversalAssociationPicker
|
|
46
|
+
});
|
|
47
|
+
module.exports = __toCommonJS(react_lazy_exports);
|
|
48
|
+
var import_react = require("react");
|
|
49
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
50
|
+
var faces = () => import("@ai-matrx/associations/react");
|
|
51
|
+
function split(pick, fallback) {
|
|
52
|
+
const Loaded = (0, import_react.lazy)(async () => ({ default: pick(await faces()) }));
|
|
53
|
+
return function LazyFace(props) {
|
|
54
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Suspense, { fallback: fallback ?? null, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Loaded, { ...props }) });
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
var AssociationWindow = split(
|
|
58
|
+
(m) => m.AssociationWindow
|
|
59
|
+
);
|
|
60
|
+
var AssociationPicker = split(
|
|
61
|
+
(m) => m.AssociationPicker
|
|
62
|
+
);
|
|
63
|
+
var UniversalAssociationPicker = split((m) => m.UniversalAssociationPicker);
|
|
64
|
+
var AttachedItemsSheet = split(
|
|
65
|
+
(m) => m.AttachedItemsSheet
|
|
66
|
+
);
|
|
67
|
+
var AssociationCard = split(
|
|
68
|
+
(m) => m.AssociationCard
|
|
69
|
+
);
|
|
70
|
+
var AssociationCardGrid = split(
|
|
71
|
+
(m) => m.AssociationCardGrid
|
|
72
|
+
);
|
|
73
|
+
var AssociationList = split(
|
|
74
|
+
(m) => m.AssociationList
|
|
75
|
+
);
|
|
76
|
+
var AssociationCaptureToolbar = split(
|
|
77
|
+
(m) => m.AssociationCaptureToolbar
|
|
78
|
+
);
|
|
79
|
+
var AssociationEntitySelect = split(
|
|
80
|
+
(m) => m.AssociationEntitySelect
|
|
81
|
+
);
|
|
82
|
+
var CategorySelect = split(
|
|
83
|
+
(m) => m.CategorySelect
|
|
84
|
+
);
|
|
85
|
+
var CategoryTagPicker = split(
|
|
86
|
+
(m) => m.CategoryTagPicker
|
|
87
|
+
);
|
|
88
|
+
var CommentThread = split((m) => m.CommentThread);
|
|
89
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/react-lazy/index.tsx"],"sourcesContent":["// @ai-matrx/associations/react/lazy — the PACKAGE-OWNED split entry.\n//\n// THE PROBLEM this closes (C23 § framework differences): `/react` is one\n// chunk. A surface that statically imports a single card pulls the whole\n// faces bundle — every picker, the comment thread, the window shell — into\n// whatever route bundle it lands in. Hosts were solving that themselves,\n// each with its own hand-written `next/dynamic({ ssr: false })` glue per\n// component. The split is a package concern, so the package ships it.\n//\n// Every export here is the SAME component under the same props, behind a\n// real lazy edge: the body arrives only when the component first renders.\n//\n// import { AssociationCardGrid } from \"@ai-matrx/associations/react/lazy\";\n//\n// MECHANISM: the loader dynamic-imports this package's OWN `/react` subpath\n// by name. That specifier stays external in our build, so the CONSUMER's\n// bundler (Next/webpack, Vite/rollup) resolves it and emits the real chunk —\n// exactly what a host's `next/dynamic` was doing, minus the host code and\n// minus the `next` dependency. No framework import is involved, so Next,\n// Vite, the Tauri shell and Jest all behave identically.\n//\n// SSR: these faces are `\"use client\"` and are all opened by a user gesture,\n// so the loader fires client-side and no server render ever reaches them —\n// the reason hosts wrote `ssr: false` disappears rather than being ported.\n//\n// Not lazy, deliberately: `AssociationsProvider`, the hooks, and the\n// registry/`contentRoles` helpers. Those are boot-time and light; a lazy\n// provider would suspend the whole tree.\n\nimport { Suspense, lazy, type ComponentType, type ReactNode } from \"react\";\n\nimport type {\n AssociationCardGridProps,\n AssociationCardProps,\n AssociationListProps,\n AssociationCaptureToolbarProps,\n AssociationEntitySelectProps,\n AssociationWindowProps,\n AttachedItemsSheetProps,\n CategorySelectProps,\n CategoryTagPickerProps,\n CommentThreadProps,\n UniversalAssociationPickerProps,\n} from \"../react/index\";\nimport type { AssociationPickerProps } from \"../ports\";\n\n/** The one dynamic edge — every face rides it, so there is one chunk. */\nconst faces = () => import(\"@ai-matrx/associations/react\");\n\nfunction split<P extends object>(\n pick: (m: Awaited<ReturnType<typeof faces>>) => ComponentType<P>,\n fallback?: ReactNode,\n): ComponentType<P> {\n const Loaded = lazy(async () => ({ default: pick(await faces()) }));\n return function LazyFace(props: P) {\n return (\n <Suspense fallback={fallback ?? null}>\n <Loaded {...props} />\n </Suspense>\n );\n };\n}\n\nexport const AssociationWindow = split<AssociationWindowProps>(\n (m) => m.AssociationWindow,\n);\nexport const AssociationPicker = split<AssociationPickerProps>(\n (m) => m.AssociationPicker,\n);\nexport const UniversalAssociationPicker =\n split<UniversalAssociationPickerProps>((m) => m.UniversalAssociationPicker);\nexport const AttachedItemsSheet = split<AttachedItemsSheetProps>(\n (m) => m.AttachedItemsSheet,\n);\nexport const AssociationCard = split<AssociationCardProps>(\n (m) => m.AssociationCard,\n);\nexport const AssociationCardGrid = split<AssociationCardGridProps>(\n (m) => m.AssociationCardGrid,\n);\nexport const AssociationList = split<AssociationListProps>(\n (m) => m.AssociationList,\n);\nexport const AssociationCaptureToolbar = split<AssociationCaptureToolbarProps>(\n (m) => m.AssociationCaptureToolbar,\n);\nexport const AssociationEntitySelect = split<AssociationEntitySelectProps>(\n (m) => m.AssociationEntitySelect,\n);\nexport const CategorySelect = split<CategorySelectProps>(\n (m) => m.CategorySelect,\n);\nexport const CategoryTagPicker = split<CategoryTagPickerProps>(\n (m) => m.CategoryTagPicker,\n);\nexport const CommentThread = split<CommentThreadProps>((m) => m.CommentThread);\n\nexport type {\n AssociationCardGridProps,\n AssociationCardProps,\n AssociationListProps,\n AssociationCaptureToolbarProps,\n AssociationEntitySelectProps,\n AssociationPickerProps,\n AssociationWindowProps,\n AttachedItemsSheetProps,\n CategorySelectProps,\n CategoryTagPickerProps,\n CommentThreadProps,\n UniversalAssociationPickerProps,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA6BA,mBAAmE;AA4B3D;AAVR,IAAM,QAAQ,MAAM,OAAO,8BAA8B;AAEzD,SAAS,MACP,MACA,UACkB;AAClB,QAAM,aAAS,mBAAK,aAAa,EAAE,SAAS,KAAK,MAAM,MAAM,CAAC,EAAE,EAAE;AAClE,SAAO,SAAS,SAAS,OAAU;AACjC,WACE,4CAAC,yBAAS,UAAU,YAAY,MAC9B,sDAAC,UAAQ,GAAG,OAAO,GACrB;AAAA,EAEJ;AACF;AAEO,IAAM,oBAAoB;AAAA,EAC/B,CAAC,MAAM,EAAE;AACX;AACO,IAAM,oBAAoB;AAAA,EAC/B,CAAC,MAAM,EAAE;AACX;AACO,IAAM,6BACX,MAAuC,CAAC,MAAM,EAAE,0BAA0B;AACrE,IAAM,qBAAqB;AAAA,EAChC,CAAC,MAAM,EAAE;AACX;AACO,IAAM,kBAAkB;AAAA,EAC7B,CAAC,MAAM,EAAE;AACX;AACO,IAAM,sBAAsB;AAAA,EACjC,CAAC,MAAM,EAAE;AACX;AACO,IAAM,kBAAkB;AAAA,EAC7B,CAAC,MAAM,EAAE;AACX;AACO,IAAM,4BAA4B;AAAA,EACvC,CAAC,MAAM,EAAE;AACX;AACO,IAAM,0BAA0B;AAAA,EACrC,CAAC,MAAM,EAAE;AACX;AACO,IAAM,iBAAiB;AAAA,EAC5B,CAAC,MAAM,EAAE;AACX;AACO,IAAM,oBAAoB;AAAA,EAC/B,CAAC,MAAM,EAAE;AACX;AACO,IAAM,gBAAgB,MAA0B,CAAC,MAAM,EAAE,aAAa;","names":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
import { A as AssociationCaptureToolbarProps, a as AssociationCardProps, b as AssociationCardGridProps, c as AssociationEntitySelectProps, d as AssociationListProps, e as AssociationPickerProps, f as AssociationWindowProps, g as AttachedItemsSheetProps, C as CategorySelectProps, h as CategoryTagPickerProps, i as CommentThreadProps, U as UniversalAssociationPickerProps } from '../../CommentThread-E0zSQBbc.cjs';
|
|
3
|
+
|
|
4
|
+
declare const AssociationWindow: ComponentType<AssociationWindowProps>;
|
|
5
|
+
declare const AssociationPicker: ComponentType<AssociationPickerProps>;
|
|
6
|
+
declare const UniversalAssociationPicker: ComponentType<UniversalAssociationPickerProps>;
|
|
7
|
+
declare const AttachedItemsSheet: ComponentType<AttachedItemsSheetProps>;
|
|
8
|
+
declare const AssociationCard: ComponentType<AssociationCardProps>;
|
|
9
|
+
declare const AssociationCardGrid: ComponentType<AssociationCardGridProps>;
|
|
10
|
+
declare const AssociationList: ComponentType<AssociationListProps>;
|
|
11
|
+
declare const AssociationCaptureToolbar: ComponentType<AssociationCaptureToolbarProps>;
|
|
12
|
+
declare const AssociationEntitySelect: ComponentType<AssociationEntitySelectProps>;
|
|
13
|
+
declare const CategorySelect: ComponentType<CategorySelectProps>;
|
|
14
|
+
declare const CategoryTagPicker: ComponentType<CategoryTagPickerProps>;
|
|
15
|
+
declare const CommentThread: ComponentType<CommentThreadProps>;
|
|
16
|
+
|
|
17
|
+
export { AssociationCaptureToolbar, AssociationCaptureToolbarProps, AssociationCard, AssociationCardGrid, AssociationCardGridProps, AssociationCardProps, AssociationEntitySelect, AssociationEntitySelectProps, AssociationList, AssociationListProps, AssociationPicker, AssociationPickerProps, AssociationWindow, AssociationWindowProps, AttachedItemsSheet, AttachedItemsSheetProps, CategorySelect, CategorySelectProps, CategoryTagPicker, CategoryTagPickerProps, CommentThread, CommentThreadProps, UniversalAssociationPicker, UniversalAssociationPickerProps };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
import { A as AssociationCaptureToolbarProps, a as AssociationCardProps, b as AssociationCardGridProps, c as AssociationEntitySelectProps, d as AssociationListProps, e as AssociationPickerProps, f as AssociationWindowProps, g as AttachedItemsSheetProps, C as CategorySelectProps, h as CategoryTagPickerProps, i as CommentThreadProps, U as UniversalAssociationPickerProps } from '../../CommentThread-E0zSQBbc.js';
|
|
3
|
+
|
|
4
|
+
declare const AssociationWindow: ComponentType<AssociationWindowProps>;
|
|
5
|
+
declare const AssociationPicker: ComponentType<AssociationPickerProps>;
|
|
6
|
+
declare const UniversalAssociationPicker: ComponentType<UniversalAssociationPickerProps>;
|
|
7
|
+
declare const AttachedItemsSheet: ComponentType<AttachedItemsSheetProps>;
|
|
8
|
+
declare const AssociationCard: ComponentType<AssociationCardProps>;
|
|
9
|
+
declare const AssociationCardGrid: ComponentType<AssociationCardGridProps>;
|
|
10
|
+
declare const AssociationList: ComponentType<AssociationListProps>;
|
|
11
|
+
declare const AssociationCaptureToolbar: ComponentType<AssociationCaptureToolbarProps>;
|
|
12
|
+
declare const AssociationEntitySelect: ComponentType<AssociationEntitySelectProps>;
|
|
13
|
+
declare const CategorySelect: ComponentType<CategorySelectProps>;
|
|
14
|
+
declare const CategoryTagPicker: ComponentType<CategoryTagPickerProps>;
|
|
15
|
+
declare const CommentThread: ComponentType<CommentThreadProps>;
|
|
16
|
+
|
|
17
|
+
export { AssociationCaptureToolbar, AssociationCaptureToolbarProps, AssociationCard, AssociationCardGrid, AssociationCardGridProps, AssociationCardProps, AssociationEntitySelect, AssociationEntitySelectProps, AssociationList, AssociationListProps, AssociationPicker, AssociationPickerProps, AssociationWindow, AssociationWindowProps, AttachedItemsSheet, AttachedItemsSheetProps, CategorySelect, CategorySelectProps, CategoryTagPicker, CategoryTagPickerProps, CommentThread, CommentThreadProps, UniversalAssociationPicker, UniversalAssociationPickerProps };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/react-lazy/index.tsx
|
|
4
|
+
import { Suspense, lazy } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
var faces = () => import("@ai-matrx/associations/react");
|
|
7
|
+
function split(pick, fallback) {
|
|
8
|
+
const Loaded = lazy(async () => ({ default: pick(await faces()) }));
|
|
9
|
+
return function LazyFace(props) {
|
|
10
|
+
return /* @__PURE__ */ jsx(Suspense, { fallback: fallback ?? null, children: /* @__PURE__ */ jsx(Loaded, { ...props }) });
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
var AssociationWindow = split(
|
|
14
|
+
(m) => m.AssociationWindow
|
|
15
|
+
);
|
|
16
|
+
var AssociationPicker = split(
|
|
17
|
+
(m) => m.AssociationPicker
|
|
18
|
+
);
|
|
19
|
+
var UniversalAssociationPicker = split((m) => m.UniversalAssociationPicker);
|
|
20
|
+
var AttachedItemsSheet = split(
|
|
21
|
+
(m) => m.AttachedItemsSheet
|
|
22
|
+
);
|
|
23
|
+
var AssociationCard = split(
|
|
24
|
+
(m) => m.AssociationCard
|
|
25
|
+
);
|
|
26
|
+
var AssociationCardGrid = split(
|
|
27
|
+
(m) => m.AssociationCardGrid
|
|
28
|
+
);
|
|
29
|
+
var AssociationList = split(
|
|
30
|
+
(m) => m.AssociationList
|
|
31
|
+
);
|
|
32
|
+
var AssociationCaptureToolbar = split(
|
|
33
|
+
(m) => m.AssociationCaptureToolbar
|
|
34
|
+
);
|
|
35
|
+
var AssociationEntitySelect = split(
|
|
36
|
+
(m) => m.AssociationEntitySelect
|
|
37
|
+
);
|
|
38
|
+
var CategorySelect = split(
|
|
39
|
+
(m) => m.CategorySelect
|
|
40
|
+
);
|
|
41
|
+
var CategoryTagPicker = split(
|
|
42
|
+
(m) => m.CategoryTagPicker
|
|
43
|
+
);
|
|
44
|
+
var CommentThread = split((m) => m.CommentThread);
|
|
45
|
+
export {
|
|
46
|
+
AssociationCaptureToolbar,
|
|
47
|
+
AssociationCard,
|
|
48
|
+
AssociationCardGrid,
|
|
49
|
+
AssociationEntitySelect,
|
|
50
|
+
AssociationList,
|
|
51
|
+
AssociationPicker,
|
|
52
|
+
AssociationWindow,
|
|
53
|
+
AttachedItemsSheet,
|
|
54
|
+
CategorySelect,
|
|
55
|
+
CategoryTagPicker,
|
|
56
|
+
CommentThread,
|
|
57
|
+
UniversalAssociationPicker
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/react-lazy/index.tsx"],"sourcesContent":["// @ai-matrx/associations/react/lazy — the PACKAGE-OWNED split entry.\n//\n// THE PROBLEM this closes (C23 § framework differences): `/react` is one\n// chunk. A surface that statically imports a single card pulls the whole\n// faces bundle — every picker, the comment thread, the window shell — into\n// whatever route bundle it lands in. Hosts were solving that themselves,\n// each with its own hand-written `next/dynamic({ ssr: false })` glue per\n// component. The split is a package concern, so the package ships it.\n//\n// Every export here is the SAME component under the same props, behind a\n// real lazy edge: the body arrives only when the component first renders.\n//\n// import { AssociationCardGrid } from \"@ai-matrx/associations/react/lazy\";\n//\n// MECHANISM: the loader dynamic-imports this package's OWN `/react` subpath\n// by name. That specifier stays external in our build, so the CONSUMER's\n// bundler (Next/webpack, Vite/rollup) resolves it and emits the real chunk —\n// exactly what a host's `next/dynamic` was doing, minus the host code and\n// minus the `next` dependency. No framework import is involved, so Next,\n// Vite, the Tauri shell and Jest all behave identically.\n//\n// SSR: these faces are `\"use client\"` and are all opened by a user gesture,\n// so the loader fires client-side and no server render ever reaches them —\n// the reason hosts wrote `ssr: false` disappears rather than being ported.\n//\n// Not lazy, deliberately: `AssociationsProvider`, the hooks, and the\n// registry/`contentRoles` helpers. Those are boot-time and light; a lazy\n// provider would suspend the whole tree.\n\nimport { Suspense, lazy, type ComponentType, type ReactNode } from \"react\";\n\nimport type {\n AssociationCardGridProps,\n AssociationCardProps,\n AssociationListProps,\n AssociationCaptureToolbarProps,\n AssociationEntitySelectProps,\n AssociationWindowProps,\n AttachedItemsSheetProps,\n CategorySelectProps,\n CategoryTagPickerProps,\n CommentThreadProps,\n UniversalAssociationPickerProps,\n} from \"../react/index\";\nimport type { AssociationPickerProps } from \"../ports\";\n\n/** The one dynamic edge — every face rides it, so there is one chunk. */\nconst faces = () => import(\"@ai-matrx/associations/react\");\n\nfunction split<P extends object>(\n pick: (m: Awaited<ReturnType<typeof faces>>) => ComponentType<P>,\n fallback?: ReactNode,\n): ComponentType<P> {\n const Loaded = lazy(async () => ({ default: pick(await faces()) }));\n return function LazyFace(props: P) {\n return (\n <Suspense fallback={fallback ?? null}>\n <Loaded {...props} />\n </Suspense>\n );\n };\n}\n\nexport const AssociationWindow = split<AssociationWindowProps>(\n (m) => m.AssociationWindow,\n);\nexport const AssociationPicker = split<AssociationPickerProps>(\n (m) => m.AssociationPicker,\n);\nexport const UniversalAssociationPicker =\n split<UniversalAssociationPickerProps>((m) => m.UniversalAssociationPicker);\nexport const AttachedItemsSheet = split<AttachedItemsSheetProps>(\n (m) => m.AttachedItemsSheet,\n);\nexport const AssociationCard = split<AssociationCardProps>(\n (m) => m.AssociationCard,\n);\nexport const AssociationCardGrid = split<AssociationCardGridProps>(\n (m) => m.AssociationCardGrid,\n);\nexport const AssociationList = split<AssociationListProps>(\n (m) => m.AssociationList,\n);\nexport const AssociationCaptureToolbar = split<AssociationCaptureToolbarProps>(\n (m) => m.AssociationCaptureToolbar,\n);\nexport const AssociationEntitySelect = split<AssociationEntitySelectProps>(\n (m) => m.AssociationEntitySelect,\n);\nexport const CategorySelect = split<CategorySelectProps>(\n (m) => m.CategorySelect,\n);\nexport const CategoryTagPicker = split<CategoryTagPickerProps>(\n (m) => m.CategoryTagPicker,\n);\nexport const CommentThread = split<CommentThreadProps>((m) => m.CommentThread);\n\nexport type {\n AssociationCardGridProps,\n AssociationCardProps,\n AssociationListProps,\n AssociationCaptureToolbarProps,\n AssociationEntitySelectProps,\n AssociationPickerProps,\n AssociationWindowProps,\n AttachedItemsSheetProps,\n CategorySelectProps,\n CategoryTagPickerProps,\n CommentThreadProps,\n UniversalAssociationPickerProps,\n};\n"],"mappings":";;;AA6BA,SAAS,UAAU,YAAgD;AA4B3D;AAVR,IAAM,QAAQ,MAAM,OAAO,8BAA8B;AAEzD,SAAS,MACP,MACA,UACkB;AAClB,QAAM,SAAS,KAAK,aAAa,EAAE,SAAS,KAAK,MAAM,MAAM,CAAC,EAAE,EAAE;AAClE,SAAO,SAAS,SAAS,OAAU;AACjC,WACE,oBAAC,YAAS,UAAU,YAAY,MAC9B,8BAAC,UAAQ,GAAG,OAAO,GACrB;AAAA,EAEJ;AACF;AAEO,IAAM,oBAAoB;AAAA,EAC/B,CAAC,MAAM,EAAE;AACX;AACO,IAAM,oBAAoB;AAAA,EAC/B,CAAC,MAAM,EAAE;AACX;AACO,IAAM,6BACX,MAAuC,CAAC,MAAM,EAAE,0BAA0B;AACrE,IAAM,qBAAqB;AAAA,EAChC,CAAC,MAAM,EAAE;AACX;AACO,IAAM,kBAAkB;AAAA,EAC7B,CAAC,MAAM,EAAE;AACX;AACO,IAAM,sBAAsB;AAAA,EACjC,CAAC,MAAM,EAAE;AACX;AACO,IAAM,kBAAkB;AAAA,EAC7B,CAAC,MAAM,EAAE;AACX;AACO,IAAM,4BAA4B;AAAA,EACvC,CAAC,MAAM,EAAE;AACX;AACO,IAAM,0BAA0B;AAAA,EACrC,CAAC,MAAM,EAAE;AACX;AACO,IAAM,iBAAiB;AAAA,EAC5B,CAAC,MAAM,EAAE;AACX;AACO,IAAM,oBAAoB;AAAA,EAC/B,CAAC,MAAM,EAAE;AACX;AACO,IAAM,gBAAgB,MAA0B,CAAC,MAAM,EAAE,aAAa;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-matrx/associations",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "THE one way to relate two entities on the AI Matrx platform: the association edge vocabulary, the generated 650-token entity-type registry, the demanded RPC contract (assoc_/cat_/ues_ families), and the typed ports the headless core and React faces bind through. This package DEMANDS the platform.associations schema — a consumer who won't run our schema is not this package's consumer.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -62,18 +62,32 @@
|
|
|
62
62
|
"default": "./dist/react/index.cjs"
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
|
+
"./react/lazy": {
|
|
66
|
+
"import": {
|
|
67
|
+
"types": "./dist/react/lazy/index.d.ts",
|
|
68
|
+
"default": "./dist/react/lazy/index.js"
|
|
69
|
+
},
|
|
70
|
+
"require": {
|
|
71
|
+
"types": "./dist/react/lazy/index.d.cts",
|
|
72
|
+
"default": "./dist/react/lazy/index.cjs"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
65
75
|
"./package.json": "./package.json"
|
|
66
76
|
},
|
|
67
77
|
"peerDependencies": {
|
|
68
|
-
"react": ">=18.0.0"
|
|
78
|
+
"react": ">=18.0.0",
|
|
79
|
+
"react-dom": ">=18.0.0"
|
|
69
80
|
},
|
|
70
81
|
"peerDependenciesMeta": {
|
|
71
82
|
"react": {
|
|
72
83
|
"optional": true
|
|
84
|
+
},
|
|
85
|
+
"react-dom": {
|
|
86
|
+
"optional": true
|
|
73
87
|
}
|
|
74
88
|
},
|
|
75
89
|
"dependencies": {
|
|
76
|
-
"@ai-matrx/design-system": "
|
|
90
|
+
"@ai-matrx/design-system": "latest"
|
|
77
91
|
},
|
|
78
92
|
"devDependencies": {
|
|
79
93
|
"@arethetypeswrong/cli": "^0.18.5",
|
|
@@ -91,7 +105,7 @@
|
|
|
91
105
|
"tsx": "^4.19.2",
|
|
92
106
|
"typescript": "^5.9.3",
|
|
93
107
|
"vitest": "^4.1.6",
|
|
94
|
-
"@ai-matrx/data": "0.
|
|
108
|
+
"@ai-matrx/data": "0.6.2",
|
|
95
109
|
"@ai-matrx/kit": "0.7.3"
|
|
96
110
|
},
|
|
97
111
|
"publishConfig": {
|