@arbidocs/blocks 0.5.5 → 0.5.7

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.
Files changed (34) hide show
  1. package/dist/{ConnectedCallDock-Q7GSQICC.cjs → ConnectedCallDock-R3SJLBDY.cjs} +3 -3
  2. package/dist/{ConnectedCallDock-Q7GSQICC.cjs.map → ConnectedCallDock-R3SJLBDY.cjs.map} +1 -1
  3. package/dist/{ConnectedCallDock-XCTBUJOT.js → ConnectedCallDock-W6MVKME2.js} +3 -3
  4. package/dist/{ConnectedCallDock-XCTBUJOT.js.map → ConnectedCallDock-W6MVKME2.js.map} +1 -1
  5. package/dist/{ConnectedCallRoom-W2AHTPYR.js → ConnectedCallRoom-C6PP45LE.js} +3 -3
  6. package/dist/{ConnectedCallRoom-W2AHTPYR.js.map → ConnectedCallRoom-C6PP45LE.js.map} +1 -1
  7. package/dist/{ConnectedCallRoom-T6PGW6VC.cjs → ConnectedCallRoom-EKC7RFYF.cjs} +3 -3
  8. package/dist/{ConnectedCallRoom-T6PGW6VC.cjs.map → ConnectedCallRoom-EKC7RFYF.cjs.map} +1 -1
  9. package/dist/calls/index.cjs +2 -2
  10. package/dist/calls/index.js +2 -2
  11. package/dist/chat/DraftingDocChip.d.ts +7 -2
  12. package/dist/chat/index.cjs +63 -63
  13. package/dist/chat/index.js +1 -1
  14. package/dist/{chunk-PU7CEHTL.cjs → chunk-OBAVNGTL.cjs} +16 -7
  15. package/dist/chunk-OBAVNGTL.cjs.map +1 -0
  16. package/dist/{chunk-3FKM4G2T.js → chunk-VDXVTQOF.js} +16 -7
  17. package/dist/chunk-VDXVTQOF.js.map +1 -0
  18. package/dist/connect/index.cjs +74 -52
  19. package/dist/connect/index.cjs.map +1 -1
  20. package/dist/connect/index.js +32 -10
  21. package/dist/connect/index.js.map +1 -1
  22. package/dist/connect/viewer.cjs +2 -2
  23. package/dist/connect/viewer.cjs.map +1 -1
  24. package/dist/connect/viewer.js +2 -2
  25. package/dist/connect/viewer.js.map +1 -1
  26. package/dist/connection/config/useDeveloperConfig.d.ts +3 -0
  27. package/dist/connection/config/useModelPicker.d.ts +12 -0
  28. package/dist/index.cjs +63 -63
  29. package/dist/index.js +1 -1
  30. package/node_modules/@arbidocs/coedit/package.json +1 -1
  31. package/package.json +5 -5
  32. package/src/docx/README.md +4 -1
  33. package/dist/chunk-3FKM4G2T.js.map +0 -1
  34. package/dist/chunk-PU7CEHTL.cjs.map +0 -1
@@ -72,7 +72,7 @@ import { TabHeader } from '../chunk-ABEKUV6L.js';
72
72
  import '../chunk-P6GHJSLR.js';
73
73
  import { useBlocksEnvironment, useRequestedSettingsSection } from '../chunk-PKB4LBPC.js';
74
74
  import { ModalHeader, ModalScaffold, ModalSection, ModalSectionTitle } from '../chunk-TX2ZICS7.js';
75
- import { useLongPaste, useRecipientDraft, SlashMenu, ContextUsageBar, findMessageDocument, getParticipantTints, flashMessage, parseSlashTokenInProgress, buildSlashItems, filterSlashItems, copyMessageToClipboard, BranchControls, ThreadVisualizer, downloadTableAsCsv, ModelAutoIcon, ModelTierIcon, ModelDot, ModelPricingTip, ModelPickerPopover, ModelOption, ModelMenuDivider, ModelTierOption, ModelConfigureButton, ModelMenuMessage, ModelPickerTrigger, ModelTriggerContent, ModelOptionLabel, ConversationBody, ConversationMain, ConversationLoading, PendingAnswerBar, ComposerTools, PaModeBadge, ComposerAccessories, DraftingDocChip } from '../chunk-3FKM4G2T.js';
75
+ import { useLongPaste, useRecipientDraft, SlashMenu, ContextUsageBar, findMessageDocument, getParticipantTints, flashMessage, parseSlashTokenInProgress, buildSlashItems, filterSlashItems, copyMessageToClipboard, BranchControls, ThreadVisualizer, downloadTableAsCsv, ModelAutoIcon, ModelTierIcon, ModelDot, ModelPricingTip, ModelPickerPopover, ModelOption, ModelMenuDivider, ModelTierOption, ModelConfigureButton, ModelMenuMessage, ModelPickerTrigger, ModelTriggerContent, ModelOptionLabel, ConversationBody, ConversationMain, ConversationLoading, PendingAnswerBar, ComposerTools, PaModeBadge, ComposerAccessories, DraftingDocChip } from '../chunk-VDXVTQOF.js';
76
76
  import { ComposerSend, ComposerVoiceButton, Composer, MessageActionMenu, MessageActionButton, MessageFooter, MessageRoot, MessageContent, MessageAuthor, MessageBubble, MessageByline, MessageSubagentBadge, MessageBody, MessageNarration, useStreamAnnouncement, MessageList, WorkflowStepChip, MessageSources, ChatPage, ConversationEmpty, MessageAlert, ComposerDock, ComposerContainer, ScrollToBottom } from '../chunk-BKNHCORH.js';
77
77
  import { workspaceDocIdFromHref } from '../chunk-DDCMLHXF.js';
78
78
  import '../chunk-7XF5SFJ2.js';
@@ -26761,12 +26761,15 @@ function useModelPicker({
26761
26761
  for (const m of premiumMembers) tierMemberNames.add(m.model_name);
26762
26762
  const seen = /* @__PURE__ */ new Set();
26763
26763
  const developer = isDeveloper ? availableModels.models.filter((m) => {
26764
- if (tierMemberNames.has(m.model_name)) return false;
26764
+ if (m.connection_scope || tierMemberNames.has(m.model_name)) return false;
26765
26765
  if (!m.model_name.includes("@") || seen.has(m.model_name)) return false;
26766
26766
  seen.add(m.model_name);
26767
26767
  return true;
26768
26768
  }).sort((a, b) => a.model_name.localeCompare(b.model_name)) : [];
26769
- return { standardTier: standardTier2, premiumTier: premiumTier2, developerModels: developer };
26769
+ const custom = availableModels.models.filter(
26770
+ (m) => m.connection_scope === "personal" || m.connection_scope === "box"
26771
+ );
26772
+ return { standardTier: standardTier2, premiumTier: premiumTier2, developerModels: [...custom, ...developer] };
26770
26773
  }, [availableModels, isDeveloper, premiumModelPref]);
26771
26774
  const selectedModel = (isControlled ? controlledValue : currentConversationModel || sendConfigModel) || AUTO_CHAT_MODEL;
26772
26775
  const selectedModelInfo = useMemo(
@@ -26865,7 +26868,7 @@ function ConnectedModelSelector({
26865
26868
  };
26866
26869
  const isSelectedStandard = !!selectedModelInfo?.tags?.includes(STANDARD_TIER_TAG);
26867
26870
  const isSelectedPremium = !!selectedModelInfo?.tags?.includes(PREMIUM_TIER_TAG);
26868
- const triggerLabel = isAuto ? "Autoselect" : isSelectedPremium ? "Premium" : selectedModelInfo?.model_name || selectedModel;
26871
+ const triggerLabel = isAuto ? "Autoselect" : isSelectedPremium ? "Premium" : selectedModelInfo?.display_name || selectedModelInfo?.model_name || selectedModel;
26869
26872
  const firstTag = selectedModelInfo?.tags?.[0];
26870
26873
  const triggerIcon = isAuto ? /* @__PURE__ */ jsx(ModelAutoIcon, {}) : isSelectedPremium ? premiumDisabled ? /* @__PURE__ */ jsx(ModelTierIcon, { tier: "premium", isGreyed: true }) : /* @__PURE__ */ jsx(
26871
26874
  ProviderIcon,
@@ -26884,7 +26887,7 @@ function ConnectedModelSelector({
26884
26887
  outputPrice: pricing.outputPrice
26885
26888
  }
26886
26889
  ) : null;
26887
- const hasTiers = !!(standardTier || premiumTier);
26890
+ const hasTiers = !!(standardTier || premiumTier || developerModels.length);
26888
26891
  if (variant === "compact") {
26889
26892
  const choose = (name) => {
26890
26893
  handleModelChange(name);
@@ -26917,7 +26920,7 @@ function ConnectedModelSelector({
26917
26920
  ModelOption,
26918
26921
  {
26919
26922
  icon: standardIcon(m),
26920
- label: m.model_name,
26923
+ label: m.display_name ? `${m.display_name} \xB7 ${m.connection_scope === "box" ? "Box" : "Personal"}` : m.model_name,
26921
26924
  isSelected: selectedModel === m.model_name,
26922
26925
  onSelect: () => choose(m.model_name),
26923
26926
  testId: `model-option-${m.model_name}`,
@@ -26969,7 +26972,7 @@ function ConnectedModelSelector({
26969
26972
  ModelOption,
26970
26973
  {
26971
26974
  icon: tag && TAG_TIER[tag] ? /* @__PURE__ */ jsx(ModelTierIcon, { tier: TAG_TIER[tag] }) : /* @__PURE__ */ jsx(ModelDot, {}),
26972
- label: m.model_name,
26975
+ label: m.display_name ? `${m.display_name} \xB7 ${m.connection_scope === "box" ? "Box" : "Personal"}` : m.model_name,
26973
26976
  isSelected: selectedModel === m.model_name,
26974
26977
  onSelect: () => choose(m.model_name),
26975
26978
  testId: `model-option-${m.model_name}`
@@ -27001,7 +27004,13 @@ function ConnectedModelSelector({
27001
27004
  {
27002
27005
  value: m.model_name,
27003
27006
  "data-testid": `model-option-${m.model_name}`,
27004
- children: /* @__PURE__ */ jsx(ModelOptionLabel, { icon: standardIcon(m), label: m.model_name })
27007
+ children: /* @__PURE__ */ jsx(
27008
+ ModelOptionLabel,
27009
+ {
27010
+ icon: standardIcon(m),
27011
+ label: m.display_name ? `${m.display_name} \xB7 ${m.connection_scope === "box" ? "Box" : "Personal"}` : m.model_name
27012
+ }
27013
+ )
27005
27014
  },
27006
27015
  `standard-${m.model_name}`
27007
27016
  )),
@@ -27019,7 +27028,13 @@ function ConnectedModelSelector({
27019
27028
  {
27020
27029
  value: m.model_name,
27021
27030
  "data-testid": `model-option-${m.model_name}`,
27022
- children: /* @__PURE__ */ jsx(ModelOptionLabel, { icon: /* @__PURE__ */ jsx(ModelDot, {}), label: m.model_name })
27031
+ children: /* @__PURE__ */ jsx(
27032
+ ModelOptionLabel,
27033
+ {
27034
+ icon: /* @__PURE__ */ jsx(ModelDot, {}),
27035
+ label: m.display_name ? `${m.display_name} \xB7 ${m.connection_scope === "box" ? "Box" : "Personal"}` : m.model_name
27036
+ }
27037
+ )
27023
27038
  },
27024
27039
  m.model_name
27025
27040
  ))
@@ -33420,7 +33435,14 @@ function ConnectedConversation({
33420
33435
  isConversationEmpty: messageHistory.length === 0 && !isBranching,
33421
33436
  leftButton: paMode ? /* @__PURE__ */ jsx(PaModeBadge, { icon: /* @__PURE__ */ jsx(ArbiBotHeadIcon, { size: 16, className: "shrink-0" }) }) : /* @__PURE__ */ jsxs(ComposerAccessories, { children: [
33422
33437
  composerAccessory,
33423
- draftingDocument ? /* @__PURE__ */ jsx(
33438
+ threadDocument.unavailable ? /* @__PURE__ */ jsx(
33439
+ DraftingDocChip,
33440
+ {
33441
+ state: "unavailable",
33442
+ title: "",
33443
+ onDetach: () => threadDocument.bind(null)
33444
+ }
33445
+ ) : draftingDocument ? /* @__PURE__ */ jsx(
33424
33446
  DraftingDocChip,
33425
33447
  {
33426
33448
  title: getDocumentTitle(draftingDocument),