@ai-matrx/associations 0.9.8 → 0.9.10
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 +12 -0
- package/dist/{CommentThread-ClAcw6av.d.cts → CommentThread-D4sos1yC.d.cts} +9 -2
- package/dist/{CommentThread-ClAcw6av.d.ts → CommentThread-D4sos1yC.d.ts} +9 -2
- package/dist/core/index.cjs +2 -0
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +2 -0
- 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 +21 -3
- package/dist/index.d.ts +21 -3
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +9 -1
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/react/index.js +9 -1
- package/dist/react/index.js.map +1 -1
- package/dist/react/lazy/index.d.cts +1 -1
- package/dist/react/lazy/index.d.ts +1 -1
- package/package.json +3 -3
package/dist/react/index.cjs
CHANGED
|
@@ -417,6 +417,7 @@ var ENTITY_TYPE_TOKENS = [
|
|
|
417
417
|
"file_rag_job",
|
|
418
418
|
"file_version",
|
|
419
419
|
"files_account_tier",
|
|
420
|
+
"files_machine_written_prefix",
|
|
420
421
|
"files_user_account",
|
|
421
422
|
"flexible_data",
|
|
422
423
|
"folder",
|
|
@@ -3510,6 +3511,7 @@ function AssociationCaptureToolbar({
|
|
|
3510
3511
|
showActions,
|
|
3511
3512
|
showToolbar = true,
|
|
3512
3513
|
extraActions,
|
|
3514
|
+
organizationId,
|
|
3513
3515
|
openCreatedDocument = true,
|
|
3514
3516
|
className,
|
|
3515
3517
|
children
|
|
@@ -3678,9 +3680,15 @@ function AssociationCaptureToolbar({
|
|
|
3678
3680
|
const createDataTable = capture?.createDataTable;
|
|
3679
3681
|
const name = docName.trim();
|
|
3680
3682
|
if (!name || creatingDoc || !createDataTable) return;
|
|
3683
|
+
if (!organizationId) {
|
|
3684
|
+
notifier.error(
|
|
3685
|
+
"This container needs an organization before a document can be created."
|
|
3686
|
+
);
|
|
3687
|
+
return;
|
|
3688
|
+
}
|
|
3681
3689
|
setCreatingDoc(true);
|
|
3682
3690
|
try {
|
|
3683
|
-
const doc = await createDataTable({ name });
|
|
3691
|
+
const doc = await createDataTable({ name, organizationId });
|
|
3684
3692
|
if (!doc) {
|
|
3685
3693
|
notifier.error("Couldn't create the document");
|
|
3686
3694
|
return;
|