@univerjs/preset-sheets-collaboration 0.5.4 → 0.5.5
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/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.css +1 -1
- package/lib/umd/index.js +9 -9
- package/lib/umd/locales/en-US.js +3 -3
- package/lib/umd/locales/fa-IR.js +3 -3
- package/lib/umd/locales/fr-FR.js +3 -3
- package/lib/umd/locales/ru-RU.js +3 -3
- package/lib/umd/locales/vi-VN.js +3 -3
- package/lib/umd/locales/zh-CN.js +3 -3
- package/lib/umd/locales/zh-TW.js +3 -3
- package/package.json +10 -10
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@univerjs-pro/collaboration"),i=require("@univerjs-pro/collaboration-client"),n=require("@univerjs-pro/collaboration-client-ui"),l=require("@univerjs-pro/edit-history-loader");function s(e){const t=new URL(e,window.location.origin);switch(t.protocol){case"https:":t.protocol="wss:";break;case"http:":t.protocol="ws:";break}return t.toString()}function c(e={}){const{universerEndpoint:t,univerContainerId:a}=e,r=t!=null?t:`${window.location.protocol}//${window.location.host}`;return{plugins:[o.UniverCollaborationPlugin,[i.UniverCollaborationClientPlugin,{enableOfflineEditing:!0,enableSingleActiveInstanceLock:!0,enableAuthServer:!0,authzUrl:`${r}/universer-api/authz`,snapshotServerUrl:`${r}/universer-api/snapshot`,collabSubmitChangesetUrl:`${r}/universer-api/comb`,collabWebSocketUrl:s(`${r}/universer-api/comb/connect`),loginUrlKey:`${r}/universer-api/oidc/authpage`,uploadFileServerUrl:`${r}/universer-api/stream/file/upload`,signUrlServerUrl:`${r}/universer-api/file/{fileID}/sign-url`,downloadEndpointUrl:`${r}/`,wsSessionTicketUrl:`${r}/universer-api/user/session-ticket`,sendChangesetTimeout:200}],[n.UniverCollaborationClientUIPlugin,{}],[l.UniverEditHistoryLoaderPlugin,{univerContainerId:a,historyListServerUrl:`${r}/universer-api/history`}]]}}exports.UniverSheetsCollaborationPreset=c;Object.keys(o).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>o[e]})});Object.keys(i).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>i[e]})});Object.keys(n).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>n[e]})});Object.keys(l).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>l[e]})});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@univerjs-pro/collaboration"),i=require("@univerjs-pro/collaboration-client"),n=require("@univerjs-pro/collaboration-client-ui"),l=require("@univerjs-pro/edit-history-loader");function s(e){const t=new URL(e,window.location.origin);switch(t.protocol){case"https:":t.protocol="wss:";break;case"http:":t.protocol="ws:";break}return t.toString()}function c(e={}){const{universerEndpoint:t,univerContainerId:a="app"}=e,r=t!=null?t:`${window.location.protocol}//${window.location.host}`;return{plugins:[o.UniverCollaborationPlugin,[i.UniverCollaborationClientPlugin,{enableOfflineEditing:!0,enableSingleActiveInstanceLock:!0,enableAuthServer:!0,authzUrl:`${r}/universer-api/authz`,snapshotServerUrl:`${r}/universer-api/snapshot`,collabSubmitChangesetUrl:`${r}/universer-api/comb`,collabWebSocketUrl:s(`${r}/universer-api/comb/connect`),loginUrlKey:`${r}/universer-api/oidc/authpage`,uploadFileServerUrl:`${r}/universer-api/stream/file/upload`,signUrlServerUrl:`${r}/universer-api/file/{fileID}/sign-url`,downloadEndpointUrl:`${r}/`,wsSessionTicketUrl:`${r}/universer-api/user/session-ticket`,sendChangesetTimeout:200}],[n.UniverCollaborationClientUIPlugin,{}],[l.UniverEditHistoryLoaderPlugin,{univerContainerId:a,historyListServerUrl:`${r}/universer-api/history`}]]}}exports.UniverSheetsCollaborationPreset=c;Object.keys(o).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>o[e]})});Object.keys(i).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>i[e]})});Object.keys(n).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>n[e]})});Object.keys(l).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>l[e]})});
|
package/lib/es/index.js
CHANGED
|
@@ -19,7 +19,7 @@ function a(o) {
|
|
|
19
19
|
return e.toString();
|
|
20
20
|
}
|
|
21
21
|
function U(o = {}) {
|
|
22
|
-
const { universerEndpoint: e, univerContainerId: i } = o, r = e != null ? e : `${window.location.protocol}//${window.location.host}`;
|
|
22
|
+
const { universerEndpoint: e, univerContainerId: i = "app" } = o, r = e != null ? e : `${window.location.protocol}//${window.location.host}`;
|
|
23
23
|
return {
|
|
24
24
|
plugins: [
|
|
25
25
|
t,
|
package/lib/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.univer-online-status-icon{display:flex;margin-right:8px;font-size:20px}.univer-online-status-title{font-size:14px;line-height:32px;color:rgb(var(--grey-600))}.univer-online-status.univer-online .univer-online-status-icon{color:rgb(var(--green-500))}.univer-online-status.univer-offline .univer-online-status-icon{color:rgb(var(--red-500))}.univer-version-list-panel{margin-left:-20px;margin-right:-20px;overflow:hidden}.univer-version-list-panel-content{border-top:1px solid #e5e5e5;height:100%;overflow:auto}.univer-version-date{display:flex;padding:6px 0 6px 20px;align-items:center;gap:10px;align-self:stretch;color:var(---Black, #1e222b);font-family:PingFang SC;font-size:14px;font-style:normal;font-weight:500;line-height:normal}.univer-version-item{cursor:default;height:60px;display:flex;padding:6px 16px;flex-direction:column;justify-content:center;align-items:flex-start;align-self:stretch}.univer-version-item-header{height:24px;display:flex;justify-content:space-between;width:100%}.univer-version-item-header-expand{width:24px;height:24px;color:#4b4b4b;display:flex;align-items:center;justify-content:center}.univer-version-item-header-time{color:var(---Grey-500, #7a7a7a);font-family:PingFang SC;font-size:13px;font-style:normal;font-weight:400;line-height:normal;flex-grow:1;flex-shrink:1;display:flex;align-items:center}.univer-version-item-header-time-tag{border-radius:4px;border:1px solid #274fee;background:var(--hyacinth-blue-5008, rgba(39, 79, 238, .08));display:flex;height:20px;padding:0 6px;justify-content:center;align-items:center;color:#274fee;text-align:justify;font-size:12px;font-style:normal;font-weight:400;margin-left:8px}.univer-version-item-header-revert{width:24px;height:24px;color:#4b4b4b;border-radius:4px;display:flex;align-items:center;justify-content:center}.univer-version-item-header-revert:hover{background:var(--black-6, rgba(30, 34, 43, .06))}.univer-version-item-content{padding-left:26px;color:var(---Black, #1e222b);text-align:center;font-family:PingFang SC;font-size:13px;font-style:normal;font-weight:400;line-height:20px}.univer-version-item.univer-active{background:#1e222b17}.univer-history-view-header{border-bottom:1px solid #e5e5e5;cursor:default;height:50px;display:flex;align-items:center}.univer-history-view-header-back{flex:0,0,85px;margin-left:10px;height:32px;width:32px;border-radius:4px;display:flex;align-items:center;justify-content:center}.univer-history-view-header-back:hover{background:var(--black-6, rgba(30, 34, 43, .06))}.univer-history-view-header-back-text{margin-left:5px}.univer-history-view-header-revert{flex-grow:1;flex-shrink:1;display:flex;align-items:center;justify-content:center}@keyframes univer-loading-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.univer-version-list-loading{width:100%;height:30px;display:flex;align-items:center;justify-content:center}.univer-version-list-loading-icon{animation:univer-loading-spin 1s linear infinite}.univer-history-container .univer-workbench-container-left-sidebar{width:0px!important}
|
|
1
|
+
.univer-online-status-icon{display:flex;margin-right:8px;font-size:20px}.univer-online-status-title{font-size:14px;line-height:32px;color:rgb(var(--grey-600))}.univer-online-status.univer-online .univer-online-status-icon{color:rgb(var(--green-500))}.univer-online-status.univer-offline .univer-online-status-icon{color:rgb(var(--red-500))}.univer-version-list-panel{margin-left:-20px;margin-right:-20px;overflow:hidden}.univer-version-list-panel-content{border-top:1px solid #e5e5e5;height:100%;overflow:auto}.univer-version-date{display:flex;padding:6px 0 6px 20px;align-items:center;gap:10px;align-self:stretch;color:#1e222b;color:var(---Black, #1e222b);font-family:PingFang SC;font-size:14px;font-style:normal;font-weight:500;line-height:normal}.univer-version-item{cursor:default;height:60px;display:flex;padding:6px 16px;flex-direction:column;justify-content:center;align-items:flex-start;align-self:stretch}.univer-version-item-header{height:24px;display:flex;justify-content:space-between;width:100%}.univer-version-item-header-expand{width:24px;height:24px;color:#4b4b4b;display:flex;align-items:center;justify-content:center}.univer-version-item-header-time{color:#7a7a7a;color:var(---Grey-500, #7a7a7a);font-family:PingFang SC;font-size:13px;font-style:normal;font-weight:400;line-height:normal;flex-grow:1;flex-shrink:1;display:flex;align-items:center}.univer-version-item-header-time-tag{border-radius:4px;border:1px solid #274fee;background:#274fee14;background:var(--hyacinth-blue-5008, rgba(39, 79, 238, .08));display:flex;height:20px;padding:0 6px;justify-content:center;align-items:center;color:#274fee;text-align:justify;font-size:12px;font-style:normal;font-weight:400;margin-left:8px}.univer-version-item-header-revert{width:24px;height:24px;color:#4b4b4b;border-radius:4px;display:flex;align-items:center;justify-content:center}.univer-version-item-header-revert:hover{background:#1e222b0f;background:var(--black-6, rgba(30, 34, 43, .06))}.univer-version-item-content{padding-left:26px;color:#1e222b;color:var(---Black, #1e222b);text-align:center;font-family:PingFang SC;font-size:13px;font-style:normal;font-weight:400;line-height:20px}.univer-version-item.univer-active{background:#1e222b17}.univer-history-view-header{border-bottom:1px solid #e5e5e5;cursor:default;height:50px;display:flex;align-items:center}.univer-history-view-header-back{flex:0,0,85px;margin-left:10px;height:32px;width:32px;border-radius:4px;display:flex;align-items:center;justify-content:center}.univer-history-view-header-back:hover{background:#1e222b0f;background:var(--black-6, rgba(30, 34, 43, .06))}.univer-history-view-header-back-text{margin-left:5px}.univer-history-view-header-revert{flex-grow:1;flex-shrink:1;display:flex;align-items:center;justify-content:center}@keyframes univer-loading-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.univer-version-list-loading{width:100%;height:30px;display:flex;align-items:center;justify-content:center}.univer-version-list-loading-icon{animation:univer-loading-spin 1s linear infinite}.univer-history-container .univer-workbench-container-left-sidebar{width:0px!important}
|