@univerjs/preset-sheets-collaboration 0.7.0 → 0.8.0-beta.1
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 +2 -2
- package/lib/index.css +1 -1
- package/lib/index.js +2 -2
- package/lib/types/umd.d.ts +4 -4
- 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 i=require("@univerjs-pro/collaboration"),n=require("@univerjs-pro/collaboration-client"),o=require("@univerjs-pro/collaboration-client-ui"),l=require("@univerjs-pro/edit-history-loader");require("@univerjs-pro/collaboration-client/facade");require("@univerjs-pro/collaboration-client-ui/facade");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:[i.UniverCollaborationPlugin,[n.UniverCollaborationClientPlugin,{socketService:o.BrowserCollaborationSocketService,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}],[o.UniverCollaborationClientUIPlugin,{}],[l.UniverEditHistoryLoaderPlugin,{univerContainerId:a,historyListServerUrl:`${r}/universer-api/history`}]]}}exports.UniverSheetsCollaborationPreset=c;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(o).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>o[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 i=require("@univerjs-pro/collaboration"),n=require("@univerjs-pro/collaboration-client"),o=require("@univerjs-pro/collaboration-client-ui"),l=require("@univerjs-pro/edit-history-loader");require("@univerjs-pro/collaboration-client/lib/facade");require("@univerjs-pro/collaboration-client-ui/lib/facade");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:[i.UniverCollaborationPlugin,[n.UniverCollaborationClientPlugin,{socketService:o.BrowserCollaborationSocketService,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}],[o.UniverCollaborationClientUIPlugin,{}],[l.UniverEditHistoryLoaderPlugin,{univerContainerId:a,historyListServerUrl:`${r}/universer-api/history`}]]}}exports.UniverSheetsCollaborationPreset=c;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(o).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>o[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
|
@@ -6,8 +6,8 @@ import { BrowserCollaborationSocketService as l, UniverCollaborationClientUIPlug
|
|
|
6
6
|
export * from "@univerjs-pro/collaboration-client-ui";
|
|
7
7
|
import { UniverEditHistoryLoaderPlugin as a } from "@univerjs-pro/edit-history-loader";
|
|
8
8
|
export * from "@univerjs-pro/edit-history-loader";
|
|
9
|
-
import "@univerjs-pro/collaboration-client/facade";
|
|
10
|
-
import "@univerjs-pro/collaboration-client-ui/facade";
|
|
9
|
+
import "@univerjs-pro/collaboration-client/lib/facade";
|
|
10
|
+
import "@univerjs-pro/collaboration-client-ui/lib/facade";
|
|
11
11
|
function p(o) {
|
|
12
12
|
const e = new URL(o, window.location.origin);
|
|
13
13
|
switch (e.protocol) {
|
package/lib/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.univer-mr-2{margin-right:8px}.univer-text-xl{font-size:20px;line-height:28px}.univer-leading-8{line-height:32px}.univer-text-green-500{color:var(--univer-green-500)}.univer-text-red-500{color:var(--univer-red-500)}.univer-m-auto{margin:auto}.univer-mx-\[-20px\]{margin-left:-20px;margin-right:-20px}.univer-ml-2{margin-left:8px}.univer-ml-2\.5{margin-left:10px}.univer-flex{display:flex}.univer-h-5{height:20px}.univer-h-6{height:24px}.univer-h-8{height:32px}.univer-h-\[30px\]{height:30px}.univer-h-\[50px\]{height:50px}.univer-h-\[60px\]{height:60px}.univer-h-full{height:100%}.univer-w-6{width:24px}.univer-w-8{width:32px}.univer-w-full{width:100%}.univer-flex-1{flex:1 1 0%}@keyframes univer-spin{to{transform:rotate(360deg)}}.univer-animate-spin{animation:univer-spin 1s linear infinite}.univer-cursor-default{cursor:default}.univer-flex-col{flex-direction:column}.univer-items-center{align-items:center}.univer-justify-center{justify-content:center}.univer-justify-between{justify-content:space-between}.univer-gap-2\.5{gap:10px}.univer-overflow-auto{overflow:auto}.univer-overflow-hidden{overflow:hidden}.univer-rounded{border-radius:4px}.univer-border{border-width:1px}.univer-border-b{border-bottom-width:1px}.univer-border-t{border-top-width:1px}.univer-border-\[\#e5e5e5\]{--tw-border-opacity: 1;border-color:#e5e5e5;border-color:rgba(229,229,229,var(--tw-border-opacity, 1))}.univer-border-gray-200{border-color:var(--univer-gray-200)}.univer-border-primary-600{border-color:var(--univer-primary-600)}.univer-bg-gray-50{background-color:var(--univer-gray-50)}.univer-bg-primary-50{background-color:var(--univer-primary-50)}.univer-px-1\.5{padding-left:6px;padding-right:6px}.univer-px-4{padding-left:16px;padding-right:16px}.univer-py-1\.5{padding-top:6px;padding-bottom:6px}.univer-pl-5{padding-left:20px}.univer-pl-\[26px\]{padding-left:26px}.univer-text-2xl{font-size:24px;line-height:32px}.univer-text-sm{font-size:14px;line-height:20px}.univer-text-xs{font-size:12px;line-height:16px}.univer-font-medium{font-weight:500}.univer-leading-5{line-height:20px}.univer-text-\[\#1e222b\]{--tw-text-opacity: 1;color:#1e222b;color:rgba(30,34,43,var(--tw-text-opacity, 1))}.univer-text-gray-400{color:var(--univer-gray-400)}.univer-text-gray-500{color:var(--univer-gray-500)}.univer-text-gray-600{color:var(--univer-gray-600)}.univer-text-primary-600{color:var(--univer-primary-600)}.hover\:univer-bg-\[rgba\(30\,34\,43\,0\.06\)\]:hover{background-color:#1e222b0f}.hover\:univer-bg-gray-100:hover{background-color:var(--univer-gray-100)}.dark
|
|
1
|
+
.univer-mr-2{margin-right:8px}.univer-text-xl{font-size:20px;line-height:28px}.univer-leading-8{line-height:32px}.univer-text-green-500{color:var(--univer-green-500)}.univer-text-red-500{color:var(--univer-red-500)}.univer-m-auto{margin:auto}.univer-mx-\[-20px\]{margin-left:-20px;margin-right:-20px}.univer-ml-2{margin-left:8px}.univer-ml-2\.5{margin-left:10px}.univer-flex{display:flex}.univer-h-5{height:20px}.univer-h-6{height:24px}.univer-h-8{height:32px}.univer-h-\[30px\]{height:30px}.univer-h-\[50px\]{height:50px}.univer-h-\[60px\]{height:60px}.univer-h-full{height:100%}.univer-w-6{width:24px}.univer-w-8{width:32px}.univer-w-full{width:100%}.univer-flex-1{flex:1 1 0%}@keyframes univer-spin{to{transform:rotate(360deg)}}.univer-animate-spin{animation:univer-spin 1s linear infinite}.univer-cursor-default{cursor:default}.univer-flex-col{flex-direction:column}.univer-items-center{align-items:center}.univer-justify-center{justify-content:center}.univer-justify-between{justify-content:space-between}.univer-gap-2\.5{gap:10px}.univer-overflow-auto{overflow:auto}.univer-overflow-hidden{overflow:hidden}.univer-rounded{border-radius:4px}.univer-border{border-width:1px}.univer-border-b{border-bottom-width:1px}.univer-border-t{border-top-width:1px}.univer-border-\[\#e5e5e5\]{--tw-border-opacity: 1;border-color:#e5e5e5;border-color:rgba(229,229,229,var(--tw-border-opacity, 1))}.univer-border-gray-200{border-color:var(--univer-gray-200)}.univer-border-primary-600{border-color:var(--univer-primary-600)}.univer-bg-gray-50{background-color:var(--univer-gray-50)}.univer-bg-primary-50{background-color:var(--univer-primary-50)}.univer-px-1\.5{padding-left:6px;padding-right:6px}.univer-px-4{padding-left:16px;padding-right:16px}.univer-py-1\.5{padding-top:6px;padding-bottom:6px}.univer-pl-5{padding-left:20px}.univer-pl-\[26px\]{padding-left:26px}.univer-text-2xl{font-size:24px;line-height:32px}.univer-text-sm{font-size:14px;line-height:20px}.univer-text-xs{font-size:12px;line-height:16px}.univer-font-medium{font-weight:500}.univer-leading-5{line-height:20px}.univer-text-\[\#1e222b\]{--tw-text-opacity: 1;color:#1e222b;color:rgba(30,34,43,var(--tw-text-opacity, 1))}.univer-text-gray-400{color:var(--univer-gray-400)}.univer-text-gray-500{color:var(--univer-gray-500)}.univer-text-gray-600{color:var(--univer-gray-600)}.univer-text-primary-600{color:var(--univer-primary-600)}.hover\:univer-bg-\[rgba\(30\,34\,43\,0\.06\)\]:hover{background-color:#1e222b0f}.hover\:univer-bg-gray-100:hover{background-color:var(--univer-gray-100)}.dark\:\!univer-text-gray-200:where(.univer-dark,.univer-dark *){color:var(--univer-gray-200)!important}.dark\:hover\:\!univer-bg-gray-700:hover:where(.univer-dark,.univer-dark *){background-color:var(--univer-gray-700)!important}
|
package/lib/index.js
CHANGED
|
@@ -6,8 +6,8 @@ import { BrowserCollaborationSocketService as l, UniverCollaborationClientUIPlug
|
|
|
6
6
|
export * from "@univerjs-pro/collaboration-client-ui";
|
|
7
7
|
import { UniverEditHistoryLoaderPlugin as a } from "@univerjs-pro/edit-history-loader";
|
|
8
8
|
export * from "@univerjs-pro/edit-history-loader";
|
|
9
|
-
import "@univerjs-pro/collaboration-client/facade";
|
|
10
|
-
import "@univerjs-pro/collaboration-client-ui/facade";
|
|
9
|
+
import "@univerjs-pro/collaboration-client/lib/facade";
|
|
10
|
+
import "@univerjs-pro/collaboration-client-ui/lib/facade";
|
|
11
11
|
function p(o) {
|
|
12
12
|
const e = new URL(o, window.location.origin);
|
|
13
13
|
switch (e.protocol) {
|
package/lib/types/umd.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IPreset } from './types';
|
|
2
2
|
import '@univerjs-pro/collaboration-client-ui/lib/index.css';
|
|
3
3
|
import '@univerjs-pro/edit-history-viewer/lib/index.css';
|
|
4
|
-
import '@univerjs-pro/collaboration-client/facade';
|
|
5
|
-
import '@univerjs-pro/collaboration-client-ui/facade';
|
|
6
|
-
export type * from '@univerjs-pro/collaboration-client/facade';
|
|
7
|
-
export type * from '@univerjs-pro/collaboration/facade';
|
|
4
|
+
import '@univerjs-pro/collaboration-client/lib/facade';
|
|
5
|
+
import '@univerjs-pro/collaboration-client-ui/lib/facade';
|
|
6
|
+
export type * from '@univerjs-pro/collaboration-client-ui/lib/facade';
|
|
7
|
+
export type * from '@univerjs-pro/collaboration-client/lib/facade';
|
|
8
8
|
export interface IUniverSheetsCollaborationPresetConfig {
|
|
9
9
|
universerEndpoint?: string;
|
|
10
10
|
/**
|