OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
668 stars 95 forks source link

context. document.insertFileFromBase64 not availabe in the latest npm package #4683

Open vaishnavi29OT opened 1 month ago

vaishnavi29OT commented 1 month ago

Post how-to questions about your code on Microsoft Q&A

We have several forums where you can ask the developer community questions about your code. Try one of the following forums to ask technical questions about:

For additional information about JavaScript programming, see the JavaScript at Microsoft community hub.

AlexJerabek commented 1 month ago

Hi @vaishnavi29OT,

Thank you for reporting this. I will assign this issue to @gergzk to make sure the npm package is updating and publishing correctly. However, we recommend not using the office-js npm package in your production add-in. Instead, please reference the version of the library hosted on the Office CDN. Instructions on how to do that are found on the page Understanding the Office JavaScript API.

vaishnavi29OT commented 1 month ago

Hi @AlexJerabek , This is the requirement from our customer to use npm package. With Office CDN context. document.insertFileFromBase64 API works fine but it is failing with local npm package, and we are on latest version of @microsoft/office-js:1.1.93.

vaishnavi29OT commented 1 month ago

Hi @AlexJerabek , Any update on this?

AlexJerabek commented 1 month ago

@gergzk or @cproscia?

vaishnavi29OT commented 1 month ago

Hi @AlexJerabek Any update on this?

vaishnavi29OT commented 1 month ago

Hi @AlexJerabek Any update on the issue

AlexJerabek commented 1 month ago

Hi @vaishnavi29OT,

I have reached out to @gergzk and @cproscia internally, but we still don't have an answer. They'll update this thread when they can.

vaishnavi29OT commented 1 week ago

Hi @AlexJerabek, Any update on this?

Mithun-KS commented 5 days ago

Hi @AlexJerabek , We are dependent on npm module. It would be good if we get updated module which has Office JS related changes.

Thanks, Mithun