@opentabs-dev/opentabs-plugin-outlook 0.0.81 → 0.1.0

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.
@@ -14426,12 +14426,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14426
14426
  const contentType = data.contentType ?? "application/octet-stream";
14427
14427
  const size = data.size ?? 0;
14428
14428
  const contentBytes = data.contentBytes ?? "";
14429
- const isText = contentType.startsWith("text/") || contentType.includes("+json") || contentType.includes("+xml") || contentType === "application/json" || contentType === "application/xml" || contentType === "application/csv" || contentType === "application/javascript" || contentType === "application/yaml" || name.endsWith(".csv") || name.endsWith(".json") || name.endsWith(".xml") || name.endsWith(".txt") || name.endsWith(".md") || name.endsWith(".html") || name.endsWith(".htm") || name.endsWith(".yaml") || name.endsWith(".yml") || name.endsWith(".js") || name.endsWith(".ts") || name.endsWith(".py") || name.endsWith(".sh");
14429
+ const isText = contentType.startsWith("text/") || contentType === "application/json" || contentType === "application/xml" || contentType === "application/csv" || name.endsWith(".csv") || name.endsWith(".json") || name.endsWith(".xml") || name.endsWith(".txt") || name.endsWith(".md") || name.endsWith(".html") || name.endsWith(".htm");
14430
14430
  let content;
14431
14431
  let encoding;
14432
14432
  if (isText && contentBytes) {
14433
- const bytes = Uint8Array.from(atob(contentBytes), (c) => c.charCodeAt(0));
14434
- content = new TextDecoder().decode(bytes);
14433
+ content = atob(contentBytes);
14435
14434
  encoding = "text";
14436
14435
  } else {
14437
14436
  content = contentBytes;
@@ -14655,8 +14654,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14655
14654
  $skip: params.skip,
14656
14655
  $filter: params.filter,
14657
14656
  $count: true
14658
- },
14659
- headers: { ConsistencyLevel: "eventual" }
14657
+ }
14660
14658
  });
14661
14659
  return {
14662
14660
  messages: (data.value ?? []).map(mapMessageSummary),
@@ -14710,11 +14708,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14710
14708
  const action = params.reply_all ? "replyAll" : "reply";
14711
14709
  await api(`/me/messages/${params.message_id}/${action}`, {
14712
14710
  method: "POST",
14713
- body: params.body_type === "html" ? {
14714
- message: {
14715
- body: { contentType: "HTML", content: params.body }
14716
- }
14717
- } : { comment: params.body }
14711
+ body: {
14712
+ comment: params.body,
14713
+ // Graph API reply uses 'comment' for plain text; for HTML we need message body
14714
+ ...params.body_type === "html" ? {
14715
+ message: {
14716
+ body: { contentType: "HTML", content: params.body }
14717
+ }
14718
+ } : {}
14719
+ }
14718
14720
  });
14719
14721
  return { success: true };
14720
14722
  }
@@ -14861,7 +14863,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14861
14863
  };
14862
14864
  var src_default = new OutlookPlugin();
14863
14865
 
14864
- // dist/_adapter_entry_6a803a31-b62d-4320-9c3a-20765e86b853.ts
14866
+ // dist/_adapter_entry_21e2a872-53d6-4ebd-a862-0d91c936fc28.ts
14865
14867
  if (!globalThis.__openTabs) {
14866
14868
  globalThis.__openTabs = {};
14867
14869
  } else {
@@ -15077,5 +15079,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15077
15079
  };
15078
15080
  delete src_default.onDeactivate;
15079
15081
  }
15080
- })();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["outlook"]){var a=o.adapters["outlook"];a.__adapterHash="b293c3728278acddde96468b09dc14b7786eb02e404fcb1cb482363b3596d3d6";if(a.tools&&Array.isArray(a.tools)){for(var i=0;i<a.tools.length;i++){Object.freeze(a.tools[i]);}Object.freeze(a.tools);}Object.freeze(a);Object.defineProperty(o.adapters,"outlook",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
15082
+ })();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["outlook"]){var a=o.adapters["outlook"];a.__adapterHash="a3d64b82937443f7e151127079ebaf6e3a24908e58b7992aa5de21dca61f87ae";if(a.tools&&Array.isArray(a.tools)){for(var i=0;i<a.tools.length;i++){Object.freeze(a.tools[i]);}Object.freeze(a.tools);}Object.freeze(a);Object.defineProperty(o.adapters,"outlook",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
15081
15083
  //# sourceMappingURL=adapter.iife.js.map