@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.
@@ -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;