@arbidocs/react 0.5.188 → 0.5.189
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/dist/{chunk-UR5F4DNJ.cjs → chunk-CQLUDYB4.cjs} +14 -4
- package/dist/chunk-CQLUDYB4.cjs.map +1 -0
- package/dist/entities/SharingEntity.js +13 -3
- package/dist/entities/SharingEntity.js.map +2 -2
- package/dist/entities/index.js +4 -0
- package/dist/entities/index.js.map +2 -2
- package/dist/index.cjs +226 -218
- package/dist/{index.d-DIQCjS20.d.ts → index.d-BR7SVl6A.d.ts} +13 -1
- package/dist/index.d.ts +2 -2
- package/dist/ui/index.cjs +161 -153
- package/dist/ui/index.d.ts +1 -1
- package/package.json +3 -3
- package/dist/chunk-UR5F4DNJ.cjs.map +0 -1
|
@@ -2438,6 +2438,13 @@ function configureSharingMembers(members) {
|
|
|
2438
2438
|
sharedMembers = members;
|
|
2439
2439
|
}
|
|
2440
2440
|
var SHARING_LABELS = { onlyMe: "Only me", workspace: "Workspace" };
|
|
2441
|
+
var sharingLabels = SHARING_LABELS;
|
|
2442
|
+
function configureSharingLabels(labels) {
|
|
2443
|
+
sharingLabels = { ...SHARING_LABELS, ...labels };
|
|
2444
|
+
}
|
|
2445
|
+
function getSharingLabels() {
|
|
2446
|
+
return sharingLabels;
|
|
2447
|
+
}
|
|
2441
2448
|
function SharingEntity({
|
|
2442
2449
|
shared,
|
|
2443
2450
|
variant = "full",
|
|
@@ -2456,7 +2463,8 @@ function SharingEntity({
|
|
|
2456
2463
|
const lastPointer = React.useRef("mouse");
|
|
2457
2464
|
const canToggle = !!onToggle && !disabled;
|
|
2458
2465
|
const blocked = !!onToggle && disabled;
|
|
2459
|
-
const
|
|
2466
|
+
const labels = getSharingLabels();
|
|
2467
|
+
const label = shared ? labels.workspace : labels.onlyMe;
|
|
2460
2468
|
const hint = disabled ? disabledTooltip : shared ? tooltipActive : tooltipInactive;
|
|
2461
2469
|
const handleClick = (e) => {
|
|
2462
2470
|
e.stopPropagation();
|
|
@@ -2496,7 +2504,7 @@ function SharingEntity({
|
|
|
2496
2504
|
{
|
|
2497
2505
|
className: "inline-flex",
|
|
2498
2506
|
role: "group",
|
|
2499
|
-
"aria-label": `${
|
|
2507
|
+
"aria-label": `${labels.workspace}: shared with all workspace members`,
|
|
2500
2508
|
"aria-disabled": blocked || void 0,
|
|
2501
2509
|
children: pill
|
|
2502
2510
|
}
|
|
@@ -5396,6 +5404,7 @@ exports.cardVariants = cardVariants;
|
|
|
5396
5404
|
exports.classifyMediaError = classifyMediaError;
|
|
5397
5405
|
exports.configureEntityRegistry = configureEntityRegistry;
|
|
5398
5406
|
exports.configureRagLabels = configureRagLabels;
|
|
5407
|
+
exports.configureSharingLabels = configureSharingLabels;
|
|
5399
5408
|
exports.configureSharingMembers = configureSharingMembers;
|
|
5400
5409
|
exports.configureStatusRegistry = configureStatusRegistry;
|
|
5401
5410
|
exports.createChunkedRecorder = createChunkedRecorder;
|
|
@@ -5419,6 +5428,7 @@ exports.getEntityIcon = getEntityIcon;
|
|
|
5419
5428
|
exports.getEntityLabel = getEntityLabel;
|
|
5420
5429
|
exports.getFileExtension = getFileExtension;
|
|
5421
5430
|
exports.getFileTypeIcon = getFileTypeIcon;
|
|
5431
|
+
exports.getSharingLabels = getSharingLabels;
|
|
5422
5432
|
exports.getStatusVariant = getStatusVariant;
|
|
5423
5433
|
exports.getTagTypeIcon = getTagTypeIcon;
|
|
5424
5434
|
exports.getTagTypeLabel = getTagTypeLabel;
|
|
@@ -5441,5 +5451,5 @@ exports.toggleVariants = toggleVariants;
|
|
|
5441
5451
|
exports.useAudioRecorder = useAudioRecorder;
|
|
5442
5452
|
exports.useDictateContext = useDictateContext;
|
|
5443
5453
|
exports.usesOriginalBytesForViewer = usesOriginalBytesForViewer;
|
|
5444
|
-
//# sourceMappingURL=chunk-
|
|
5445
|
-
//# sourceMappingURL=chunk-
|
|
5454
|
+
//# sourceMappingURL=chunk-CQLUDYB4.cjs.map
|
|
5455
|
+
//# sourceMappingURL=chunk-CQLUDYB4.cjs.map
|