@ai-matrx/associations 0.13.20 → 0.13.21
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 +6 -0
- package/dist/{CommentThread-Ozr8y2CS.d.cts → CommentThread-DIGM3P6_.d.cts} +13 -8
- package/dist/{CommentThread-Ozr8y2CS.d.ts → CommentThread-DIGM3P6_.d.ts} +13 -8
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +1 -1
- package/dist/core/index.js.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -6
- package/dist/index.d.ts +9 -6
- package/dist/react/index.cjs +8 -6
- 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 +8 -6
- 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 +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -17394,9 +17394,15 @@ interface CaptureUploadOpts {
|
|
|
17394
17394
|
files: File[];
|
|
17395
17395
|
/** Logical cloud-files folder new uploads land in (auto-created). */
|
|
17396
17396
|
folderPath: string;
|
|
17397
|
-
/**
|
|
17397
|
+
/** Publish the uploads to the web (the only anonymous lane; access ladder T-13). */
|
|
17398
|
+
publishedToWeb?: boolean;
|
|
17399
|
+
/** The "Shown to" list filter stamped on uploads (`only_me` · `my_team` · `everyone` · `everyone_on_ai_matrx`). */
|
|
17400
|
+
shownTo?: CaptureShownTo;
|
|
17401
|
+
/** The retiring level word, derived from the two words above for hosts not yet on them. */
|
|
17398
17402
|
visibility?: string;
|
|
17399
17403
|
}
|
|
17404
|
+
/** `platform.shown_to`: a list filter, never row security. */
|
|
17405
|
+
type CaptureShownTo = "only_me" | "my_team" | "everyone" | "everyone_on_ai_matrx";
|
|
17400
17406
|
/** Honest outcome of a host upload — created-but-unlinked must be reportable. */
|
|
17401
17407
|
interface CaptureUploadResult {
|
|
17402
17408
|
cancelled?: boolean;
|
|
@@ -17434,10 +17440,7 @@ interface CapturePort {
|
|
|
17434
17440
|
* an honest error). Everything else — batching, drag-and-drop, progress
|
|
17435
17441
|
* state, failure copy — is the package's job.
|
|
17436
17442
|
*/
|
|
17437
|
-
uploadFile?(file: File, opts: {
|
|
17438
|
-
folderPath: string;
|
|
17439
|
-
visibility?: string;
|
|
17440
|
-
}): Promise<{
|
|
17443
|
+
uploadFile?(file: File, opts: Omit<CaptureUploadOpts, "files">): Promise<{
|
|
17441
17444
|
ok: true;
|
|
17442
17445
|
id: string;
|
|
17443
17446
|
} | {
|
|
@@ -17569,4 +17572,4 @@ interface AssociationsConfig {
|
|
|
17569
17572
|
authorDisplay?: AuthorDisplayPort;
|
|
17570
17573
|
}
|
|
17571
17574
|
|
|
17572
|
-
export { ASSOCIATION_TARGET_TYPES, type AssociationDirection, type AssociationEdge, type AssociationPickerProps, type AssociationSourceEdge, type AssociationTargetEdge, type AssociationTargetType, type AssociationsConfig, type AssociationsDataSource, type AssociationsEntry, type AssociationsIdentity, type AssociationsNotifier, type AssociationsRpcError, type AssociationsRpcErrorCode, type AssociationsRpcResult, type AuthorDisplayInput, type AuthorDisplayPort, type CapturePickOpts, type CapturePort, type CaptureUploadOpts, type CaptureUploadResult, type CategoriesEntry, type CategoryDimension, type CommentAuthor, type CommentsEntry, type ComponentEntityToken, DEMANDED_RPC_NAMES, type DemandedRpcArgs, type DemandedRpcName, type DemandedRpcReturns, type DemandedRpcSignatures, ENTITY_TYPE_METADATA, ENTITY_TYPE_TOKENS, type EntityDoorProps, type EntityDoorsPort, type EntityOverlayEntry, type EntityOverlayMap, type EntityRefProps, type EntityTypeMeta, type EntityTypeToken, type ErrorSink, type ListedEntityToken, type ModuleEntityToken, type PgError, type PickerOverrideMap, type PlatformCategory, type PlatformComment, REFERENCE_CATEGORY_DISPLAY, type ReferencePickableEntityToken, SCHEMA_DISPLAY, type ScopeableEntityToken, type UserEntityState, type UserStateKind, type WindowShellPort, isAssociationTargetType, isAssociationsRpcErr, isEntityTypeToken };
|
|
17575
|
+
export { ASSOCIATION_TARGET_TYPES, type AssociationDirection, type AssociationEdge, type AssociationPickerProps, type AssociationSourceEdge, type AssociationTargetEdge, type AssociationTargetType, type AssociationsConfig, type AssociationsDataSource, type AssociationsEntry, type AssociationsIdentity, type AssociationsNotifier, type AssociationsRpcError, type AssociationsRpcErrorCode, type AssociationsRpcResult, type AuthorDisplayInput, type AuthorDisplayPort, type CapturePickOpts, type CapturePort, type CaptureShownTo, type CaptureUploadOpts, type CaptureUploadResult, type CategoriesEntry, type CategoryDimension, type CommentAuthor, type CommentsEntry, type ComponentEntityToken, DEMANDED_RPC_NAMES, type DemandedRpcArgs, type DemandedRpcName, type DemandedRpcReturns, type DemandedRpcSignatures, ENTITY_TYPE_METADATA, ENTITY_TYPE_TOKENS, type EntityDoorProps, type EntityDoorsPort, type EntityOverlayEntry, type EntityOverlayMap, type EntityRefProps, type EntityTypeMeta, type EntityTypeToken, type ErrorSink, type ListedEntityToken, type ModuleEntityToken, type PgError, type PickerOverrideMap, type PlatformCategory, type PlatformComment, REFERENCE_CATEGORY_DISPLAY, type ReferencePickableEntityToken, SCHEMA_DISPLAY, type ScopeableEntityToken, type UserEntityState, type UserStateKind, type WindowShellPort, isAssociationTargetType, isAssociationsRpcErr, isEntityTypeToken };
|
package/dist/index.d.ts
CHANGED
|
@@ -17394,9 +17394,15 @@ interface CaptureUploadOpts {
|
|
|
17394
17394
|
files: File[];
|
|
17395
17395
|
/** Logical cloud-files folder new uploads land in (auto-created). */
|
|
17396
17396
|
folderPath: string;
|
|
17397
|
-
/**
|
|
17397
|
+
/** Publish the uploads to the web (the only anonymous lane; access ladder T-13). */
|
|
17398
|
+
publishedToWeb?: boolean;
|
|
17399
|
+
/** The "Shown to" list filter stamped on uploads (`only_me` · `my_team` · `everyone` · `everyone_on_ai_matrx`). */
|
|
17400
|
+
shownTo?: CaptureShownTo;
|
|
17401
|
+
/** The retiring level word, derived from the two words above for hosts not yet on them. */
|
|
17398
17402
|
visibility?: string;
|
|
17399
17403
|
}
|
|
17404
|
+
/** `platform.shown_to`: a list filter, never row security. */
|
|
17405
|
+
type CaptureShownTo = "only_me" | "my_team" | "everyone" | "everyone_on_ai_matrx";
|
|
17400
17406
|
/** Honest outcome of a host upload — created-but-unlinked must be reportable. */
|
|
17401
17407
|
interface CaptureUploadResult {
|
|
17402
17408
|
cancelled?: boolean;
|
|
@@ -17434,10 +17440,7 @@ interface CapturePort {
|
|
|
17434
17440
|
* an honest error). Everything else — batching, drag-and-drop, progress
|
|
17435
17441
|
* state, failure copy — is the package's job.
|
|
17436
17442
|
*/
|
|
17437
|
-
uploadFile?(file: File, opts: {
|
|
17438
|
-
folderPath: string;
|
|
17439
|
-
visibility?: string;
|
|
17440
|
-
}): Promise<{
|
|
17443
|
+
uploadFile?(file: File, opts: Omit<CaptureUploadOpts, "files">): Promise<{
|
|
17441
17444
|
ok: true;
|
|
17442
17445
|
id: string;
|
|
17443
17446
|
} | {
|
|
@@ -17569,4 +17572,4 @@ interface AssociationsConfig {
|
|
|
17569
17572
|
authorDisplay?: AuthorDisplayPort;
|
|
17570
17573
|
}
|
|
17571
17574
|
|
|
17572
|
-
export { ASSOCIATION_TARGET_TYPES, type AssociationDirection, type AssociationEdge, type AssociationPickerProps, type AssociationSourceEdge, type AssociationTargetEdge, type AssociationTargetType, type AssociationsConfig, type AssociationsDataSource, type AssociationsEntry, type AssociationsIdentity, type AssociationsNotifier, type AssociationsRpcError, type AssociationsRpcErrorCode, type AssociationsRpcResult, type AuthorDisplayInput, type AuthorDisplayPort, type CapturePickOpts, type CapturePort, type CaptureUploadOpts, type CaptureUploadResult, type CategoriesEntry, type CategoryDimension, type CommentAuthor, type CommentsEntry, type ComponentEntityToken, DEMANDED_RPC_NAMES, type DemandedRpcArgs, type DemandedRpcName, type DemandedRpcReturns, type DemandedRpcSignatures, ENTITY_TYPE_METADATA, ENTITY_TYPE_TOKENS, type EntityDoorProps, type EntityDoorsPort, type EntityOverlayEntry, type EntityOverlayMap, type EntityRefProps, type EntityTypeMeta, type EntityTypeToken, type ErrorSink, type ListedEntityToken, type ModuleEntityToken, type PgError, type PickerOverrideMap, type PlatformCategory, type PlatformComment, REFERENCE_CATEGORY_DISPLAY, type ReferencePickableEntityToken, SCHEMA_DISPLAY, type ScopeableEntityToken, type UserEntityState, type UserStateKind, type WindowShellPort, isAssociationTargetType, isAssociationsRpcErr, isEntityTypeToken };
|
|
17575
|
+
export { ASSOCIATION_TARGET_TYPES, type AssociationDirection, type AssociationEdge, type AssociationPickerProps, type AssociationSourceEdge, type AssociationTargetEdge, type AssociationTargetType, type AssociationsConfig, type AssociationsDataSource, type AssociationsEntry, type AssociationsIdentity, type AssociationsNotifier, type AssociationsRpcError, type AssociationsRpcErrorCode, type AssociationsRpcResult, type AuthorDisplayInput, type AuthorDisplayPort, type CapturePickOpts, type CapturePort, type CaptureShownTo, type CaptureUploadOpts, type CaptureUploadResult, type CategoriesEntry, type CategoryDimension, type CommentAuthor, type CommentsEntry, type ComponentEntityToken, DEMANDED_RPC_NAMES, type DemandedRpcArgs, type DemandedRpcName, type DemandedRpcReturns, type DemandedRpcSignatures, ENTITY_TYPE_METADATA, ENTITY_TYPE_TOKENS, type EntityDoorProps, type EntityDoorsPort, type EntityOverlayEntry, type EntityOverlayMap, type EntityRefProps, type EntityTypeMeta, type EntityTypeToken, type ErrorSink, type ListedEntityToken, type ModuleEntityToken, type PgError, type PickerOverrideMap, type PlatformCategory, type PlatformComment, REFERENCE_CATEGORY_DISPLAY, type ReferencePickableEntityToken, SCHEMA_DISPLAY, type ScopeableEntityToken, type UserEntityState, type UserStateKind, type WindowShellPort, isAssociationTargetType, isAssociationsRpcErr, isEntityTypeToken };
|
package/dist/react/index.cjs
CHANGED
|
@@ -4469,7 +4469,8 @@ var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
|
4469
4469
|
function AssociationCaptureToolbar({
|
|
4470
4470
|
attach,
|
|
4471
4471
|
uploadFolderPath,
|
|
4472
|
-
|
|
4472
|
+
uploadPublishedToWeb = false,
|
|
4473
|
+
uploadShownTo = "only_me",
|
|
4473
4474
|
uploadLocationLabel,
|
|
4474
4475
|
attachRetryLabel = '"Add file"',
|
|
4475
4476
|
filePicker,
|
|
@@ -4498,10 +4499,8 @@ function AssociationCaptureToolbar({
|
|
|
4498
4499
|
const failed = [];
|
|
4499
4500
|
for (const file of opts.files) {
|
|
4500
4501
|
try {
|
|
4501
|
-
const
|
|
4502
|
-
|
|
4503
|
-
...opts.visibility !== void 0 ? { visibility: opts.visibility } : {}
|
|
4504
|
-
});
|
|
4502
|
+
const { files: _files, ...uploadOpts } = opts;
|
|
4503
|
+
const result = await hostUploadFile(file, uploadOpts);
|
|
4505
4504
|
if (result.ok) uploaded.push(result.id);
|
|
4506
4505
|
else failed.push({ name: file.name, error: result.error });
|
|
4507
4506
|
} catch (err) {
|
|
@@ -4537,7 +4536,10 @@ function AssociationCaptureToolbar({
|
|
|
4537
4536
|
const result = await requestUpload({
|
|
4538
4537
|
files,
|
|
4539
4538
|
folderPath: uploadFolderPath,
|
|
4540
|
-
|
|
4539
|
+
publishedToWeb: uploadPublishedToWeb,
|
|
4540
|
+
shownTo: uploadShownTo,
|
|
4541
|
+
visibility: uploadPublishedToWeb ? "public" : uploadShownTo === "only_me" ? "personal" : "internal"
|
|
4542
|
+
// T-13 transitional wire input
|
|
4541
4543
|
});
|
|
4542
4544
|
if (result.cancelled) {
|
|
4543
4545
|
notifier.success("Upload cancelled \u2014 nothing was attached");
|