hunk.code_window:   const { extension, hasExtension, validExtension } = checkUrlExtension(url);
     if (hasExtension) {
       if (validExtension) {
         if (!(extension === "txt" || extension === "pdf")) {
           viewer = "office";
           renderer = Renderers.DOCUMENT_VIEWER;
         }
       } else {
         errorMessage = "Current file type is not supported";
         renderer = Renderers.ERROR;
  
hunk.labels: keep keep keep replace replace replace keep keep keep keep
hunk.after_edit:       renderer = Renderers.DOCUMENT_VIEWER;
         switch (extension) {
           case "pdf": {
             viewer = "pdf";
             break;
           }
           case "txt": {
             viewer = "url";
             break;
           }
           default: {
             viewer = "office";
             break;
           }
  
hunk.file_path: app/client/src/widgets/DocumentViewerWidget/component/index.tsx
hunk.type: replace
file: import { getAppsmithConfigs } from "@appsmith/configs";
  
  const { cloudServicesBaseUrl: BASE_URL } = getAppsmithConfigs();
  
  export const authorizeDatasourceWithAppsmithToken = (appsmithToken: string) =>
    `${BASE_URL}/api/v1/integrations/oauth/authorize?appsmithToken=${appsmithToken}`;
  