@univerjs/preset-docs-collaboration 0.25.1 → 1.0.0-alpha.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/README.md +3 -3
- package/lib/cjs/index.js +66 -1
- package/lib/cjs/locales/ar-SA.js +11 -1
- package/lib/cjs/locales/ca-ES.js +11 -1
- package/lib/cjs/locales/de-DE.js +11 -1
- package/lib/cjs/locales/en-US.js +11 -1
- package/lib/cjs/locales/es-ES.js +11 -1
- package/lib/cjs/locales/fa-IR.js +11 -1
- package/lib/cjs/locales/fr-FR.js +11 -1
- package/lib/cjs/locales/id-ID.js +11 -1
- package/lib/cjs/locales/it-IT.js +11 -1
- package/lib/cjs/locales/ja-JP.js +11 -1
- package/lib/cjs/locales/ko-KR.js +11 -1
- package/lib/cjs/locales/pl-PL.js +11 -1
- package/lib/cjs/locales/pt-BR.js +11 -1
- package/lib/cjs/locales/ru-RU.js +11 -1
- package/lib/cjs/locales/sk-SK.js +11 -1
- package/lib/cjs/locales/vi-VN.js +11 -1
- package/lib/cjs/locales/zh-CN.js +11 -1
- package/lib/cjs/locales/zh-HK.js +11 -1
- package/lib/cjs/locales/zh-TW.js +11 -1
- package/lib/cjs/rolldown-runtime-C_NdSu1c.js +34 -0
- package/lib/es/index.js +49 -45
- package/lib/es/locales/ar-SA.js +8 -10
- package/lib/es/locales/ca-ES.js +8 -10
- package/lib/es/locales/de-DE.js +8 -10
- package/lib/es/locales/en-US.js +8 -10
- package/lib/es/locales/es-ES.js +8 -10
- package/lib/es/locales/fa-IR.js +8 -10
- package/lib/es/locales/fr-FR.js +8 -10
- package/lib/es/locales/id-ID.js +8 -10
- package/lib/es/locales/it-IT.js +8 -10
- package/lib/es/locales/ja-JP.js +8 -10
- package/lib/es/locales/ko-KR.js +8 -10
- package/lib/es/locales/pl-PL.js +8 -10
- package/lib/es/locales/pt-BR.js +8 -10
- package/lib/es/locales/ru-RU.js +8 -10
- package/lib/es/locales/sk-SK.js +8 -10
- package/lib/es/locales/vi-VN.js +8 -10
- package/lib/es/locales/zh-CN.js +8 -10
- package/lib/es/locales/zh-HK.js +8 -10
- package/lib/es/locales/zh-TW.js +8 -10
- package/lib/index.css +192 -1
- package/lib/index.js +49 -45
- package/lib/locales/ar-SA.js +8 -10
- package/lib/locales/ca-ES.js +8 -10
- package/lib/locales/de-DE.js +8 -10
- package/lib/locales/en-US.js +8 -10
- package/lib/locales/es-ES.js +8 -10
- package/lib/locales/fa-IR.js +8 -10
- package/lib/locales/fr-FR.js +8 -10
- package/lib/locales/id-ID.js +8 -10
- package/lib/locales/it-IT.js +8 -10
- package/lib/locales/ja-JP.js +8 -10
- package/lib/locales/ko-KR.js +8 -10
- package/lib/locales/pl-PL.js +8 -10
- package/lib/locales/pt-BR.js +8 -10
- package/lib/locales/ru-RU.js +8 -10
- package/lib/locales/sk-SK.js +8 -10
- package/lib/locales/vi-VN.js +8 -10
- package/lib/locales/zh-CN.js +8 -10
- package/lib/locales/zh-HK.js +8 -10
- package/lib/locales/zh-TW.js +8 -10
- package/lib/types/index.d.ts +1 -1
- package/lib/types/locales/ar-SA.d.ts +89 -1
- package/lib/types/locales/ca-ES.d.ts +89 -1
- package/lib/types/locales/de-DE.d.ts +89 -1
- package/lib/types/locales/en-US.d.ts +89 -1
- package/lib/types/locales/es-ES.d.ts +89 -1
- package/lib/types/locales/fa-IR.d.ts +89 -1
- package/lib/types/locales/fr-FR.d.ts +89 -1
- package/lib/types/locales/id-ID.d.ts +89 -1
- package/lib/types/locales/it-IT.d.ts +89 -1
- package/lib/types/locales/ja-JP.d.ts +89 -1
- package/lib/types/locales/ko-KR.d.ts +89 -1
- package/lib/types/locales/pl-PL.d.ts +89 -1
- package/lib/types/locales/pt-BR.d.ts +89 -1
- package/lib/types/locales/ru-RU.d.ts +89 -1
- package/lib/types/locales/sk-SK.d.ts +89 -1
- package/lib/types/locales/vi-VN.d.ts +89 -1
- package/lib/types/locales/zh-CN.d.ts +89 -1
- package/lib/types/locales/zh-HK.d.ts +89 -1
- package/lib/types/locales/zh-TW.d.ts +89 -1
- package/lib/types/preset.d.ts +7 -0
- package/package.json +17 -20
- package/LICENSE +0 -176
- package/lib/types/types.d.ts +0 -11
- package/lib/types/umd.d.ts +0 -8
- package/lib/umd/index.js +0 -14
- package/lib/umd/locales/ar-SA.js +0 -8
- package/lib/umd/locales/ca-ES.js +0 -8
- package/lib/umd/locales/de-DE.js +0 -8
- package/lib/umd/locales/en-US.js +0 -8
- package/lib/umd/locales/es-ES.js +0 -8
- package/lib/umd/locales/fa-IR.js +0 -8
- package/lib/umd/locales/fr-FR.js +0 -8
- package/lib/umd/locales/id-ID.js +0 -8
- package/lib/umd/locales/it-IT.js +0 -8
- package/lib/umd/locales/ja-JP.js +0 -8
- package/lib/umd/locales/ko-KR.js +0 -8
- package/lib/umd/locales/pl-PL.js +0 -8
- package/lib/umd/locales/pt-BR.js +0 -8
- package/lib/umd/locales/ru-RU.js +0 -8
- package/lib/umd/locales/sk-SK.js +0 -8
- package/lib/umd/locales/vi-VN.js +0 -8
- package/lib/umd/locales/zh-CN.js +0 -8
- package/lib/umd/locales/zh-HK.js +0 -8
- package/lib/umd/locales/zh-TW.js +0 -8
package/lib/es/locales/fr-FR.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
a as default
|
|
10
|
-
};
|
|
1
|
+
import univerjscollaborationclient from "@univerjs-pro/collaboration-client/locale/fr-FR";
|
|
2
|
+
import univerjscollaborationclientui from "@univerjs-pro/collaboration-client-ui/locale/fr-FR";
|
|
3
|
+
|
|
4
|
+
//#region src/locales/fr-FR.ts
|
|
5
|
+
var fr_FR_default = Object.assign({}, univerjscollaborationclient, univerjscollaborationclientui);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { fr_FR_default as default };
|
package/lib/es/locales/id-ID.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
a as default
|
|
10
|
-
};
|
|
1
|
+
import univerjscollaborationclient from "@univerjs-pro/collaboration-client/locale/id-ID";
|
|
2
|
+
import univerjscollaborationclientui from "@univerjs-pro/collaboration-client-ui/locale/id-ID";
|
|
3
|
+
|
|
4
|
+
//#region src/locales/id-ID.ts
|
|
5
|
+
var id_ID_default = Object.assign({}, univerjscollaborationclient, univerjscollaborationclientui);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { id_ID_default as default };
|
package/lib/es/locales/it-IT.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
a as default
|
|
10
|
-
};
|
|
1
|
+
import univerjscollaborationclient from "@univerjs-pro/collaboration-client/locale/it-IT";
|
|
2
|
+
import univerjscollaborationclientui from "@univerjs-pro/collaboration-client-ui/locale/it-IT";
|
|
3
|
+
|
|
4
|
+
//#region src/locales/it-IT.ts
|
|
5
|
+
var it_IT_default = Object.assign({}, univerjscollaborationclient, univerjscollaborationclientui);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { it_IT_default as default };
|
package/lib/es/locales/ja-JP.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
l as default
|
|
10
|
-
};
|
|
1
|
+
import univerjscollaborationclient from "@univerjs-pro/collaboration-client/locale/ja-JP";
|
|
2
|
+
import univerjscollaborationclientui from "@univerjs-pro/collaboration-client-ui/locale/ja-JP";
|
|
3
|
+
|
|
4
|
+
//#region src/locales/ja-JP.ts
|
|
5
|
+
var ja_JP_default = Object.assign({}, univerjscollaborationclient, univerjscollaborationclientui);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { ja_JP_default as default };
|
package/lib/es/locales/ko-KR.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
a as default
|
|
10
|
-
};
|
|
1
|
+
import univerjscollaborationclient from "@univerjs-pro/collaboration-client/locale/ko-KR";
|
|
2
|
+
import univerjscollaborationclientui from "@univerjs-pro/collaboration-client-ui/locale/ko-KR";
|
|
3
|
+
|
|
4
|
+
//#region src/locales/ko-KR.ts
|
|
5
|
+
var ko_KR_default = Object.assign({}, univerjscollaborationclient, univerjscollaborationclientui);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { ko_KR_default as default };
|
package/lib/es/locales/pl-PL.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
a as default
|
|
10
|
-
};
|
|
1
|
+
import univerjscollaborationclient from "@univerjs-pro/collaboration-client/locale/pl-PL";
|
|
2
|
+
import univerjscollaborationclientui from "@univerjs-pro/collaboration-client-ui/locale/pl-PL";
|
|
3
|
+
|
|
4
|
+
//#region src/locales/pl-PL.ts
|
|
5
|
+
var pl_PL_default = Object.assign({}, univerjscollaborationclient, univerjscollaborationclientui);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pl_PL_default as default };
|
package/lib/es/locales/pt-BR.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
a as default
|
|
10
|
-
};
|
|
1
|
+
import univerjscollaborationclient from "@univerjs-pro/collaboration-client/locale/pt-BR";
|
|
2
|
+
import univerjscollaborationclientui from "@univerjs-pro/collaboration-client-ui/locale/pt-BR";
|
|
3
|
+
|
|
4
|
+
//#region src/locales/pt-BR.ts
|
|
5
|
+
var pt_BR_default = Object.assign({}, univerjscollaborationclient, univerjscollaborationclientui);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { pt_BR_default as default };
|
package/lib/es/locales/ru-RU.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
a as default
|
|
10
|
-
};
|
|
1
|
+
import univerjscollaborationclient from "@univerjs-pro/collaboration-client/locale/ru-RU";
|
|
2
|
+
import univerjscollaborationclientui from "@univerjs-pro/collaboration-client-ui/locale/ru-RU";
|
|
3
|
+
|
|
4
|
+
//#region src/locales/ru-RU.ts
|
|
5
|
+
var ru_RU_default = Object.assign({}, univerjscollaborationclient, univerjscollaborationclientui);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { ru_RU_default as default };
|
package/lib/es/locales/sk-SK.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
a as default
|
|
10
|
-
};
|
|
1
|
+
import univerjscollaborationclient from "@univerjs-pro/collaboration-client/locale/sk-SK";
|
|
2
|
+
import univerjscollaborationclientui from "@univerjs-pro/collaboration-client-ui/locale/sk-SK";
|
|
3
|
+
|
|
4
|
+
//#region src/locales/sk-SK.ts
|
|
5
|
+
var sk_SK_default = Object.assign({}, univerjscollaborationclient, univerjscollaborationclientui);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sk_SK_default as default };
|
package/lib/es/locales/vi-VN.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
a as default
|
|
10
|
-
};
|
|
1
|
+
import univerjscollaborationclient from "@univerjs-pro/collaboration-client/locale/vi-VN";
|
|
2
|
+
import univerjscollaborationclientui from "@univerjs-pro/collaboration-client-ui/locale/vi-VN";
|
|
3
|
+
|
|
4
|
+
//#region src/locales/vi-VN.ts
|
|
5
|
+
var vi_VN_default = Object.assign({}, univerjscollaborationclient, univerjscollaborationclientui);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { vi_VN_default as default };
|
package/lib/es/locales/zh-CN.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
a as default
|
|
10
|
-
};
|
|
1
|
+
import univerjscollaborationclient from "@univerjs-pro/collaboration-client/locale/zh-CN";
|
|
2
|
+
import univerjscollaborationclientui from "@univerjs-pro/collaboration-client-ui/locale/zh-CN";
|
|
3
|
+
|
|
4
|
+
//#region src/locales/zh-CN.ts
|
|
5
|
+
var zh_CN_default = Object.assign({}, univerjscollaborationclient, univerjscollaborationclientui);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { zh_CN_default as default };
|
package/lib/es/locales/zh-HK.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
a as default
|
|
10
|
-
};
|
|
1
|
+
import univerjscollaborationclient from "@univerjs-pro/collaboration-client/locale/zh-HK";
|
|
2
|
+
import univerjscollaborationclientui from "@univerjs-pro/collaboration-client-ui/locale/zh-HK";
|
|
3
|
+
|
|
4
|
+
//#region src/locales/zh-HK.ts
|
|
5
|
+
var zh_HK_default = Object.assign({}, univerjscollaborationclient, univerjscollaborationclientui);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { zh_HK_default as default };
|
package/lib/es/locales/zh-TW.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
a as default
|
|
10
|
-
};
|
|
1
|
+
import univerjscollaborationclient from "@univerjs-pro/collaboration-client/locale/zh-TW";
|
|
2
|
+
import univerjscollaborationclientui from "@univerjs-pro/collaboration-client-ui/locale/zh-TW";
|
|
3
|
+
|
|
4
|
+
//#region src/locales/zh-TW.ts
|
|
5
|
+
var zh_TW_default = Object.assign({}, univerjscollaborationclient, univerjscollaborationclientui);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { zh_TW_default as default };
|
package/lib/index.css
CHANGED
|
@@ -1 +1,192 @@
|
|
|
1
|
-
.univer-m-0
|
|
1
|
+
.univer-m-0 {
|
|
2
|
+
margin: 0;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.univer-flex {
|
|
6
|
+
display: flex;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.univer-inline-flex {
|
|
10
|
+
display: inline-flex;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.univer-h-8 {
|
|
14
|
+
height: 2rem;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.univer-w-8 {
|
|
18
|
+
width: 2rem;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@keyframes univer-pulse {
|
|
22
|
+
50% {
|
|
23
|
+
opacity: .5;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.univer-animate-pulse {
|
|
28
|
+
animation: 2s cubic-bezier(.4, 0, .6, 1) infinite univer-pulse;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@keyframes univer-spin {
|
|
32
|
+
to {
|
|
33
|
+
transform: rotate(360deg);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.univer-animate-spin {
|
|
38
|
+
animation: 1s linear infinite univer-spin;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.univer-cursor-default {
|
|
42
|
+
cursor: default;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.univer-cursor-pointer {
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.univer-appearance-none {
|
|
50
|
+
-webkit-appearance: none;
|
|
51
|
+
appearance: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.univer-flex-col {
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.univer-items-center {
|
|
59
|
+
align-items: center;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.univer-justify-center {
|
|
63
|
+
justify-content: center;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.univer-gap-3 {
|
|
67
|
+
gap: .75rem;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.univer-gap-4 {
|
|
71
|
+
gap: 1rem;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.univer-rounded-lg {
|
|
75
|
+
border-radius: .5rem;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.univer-border-none {
|
|
79
|
+
border-style: none;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.\!univer-bg-gray-700 {
|
|
83
|
+
background-color: var(--univer-gray-700) !important;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.univer-bg-primary-500 {
|
|
87
|
+
background-color: var(--univer-primary-500);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.univer-bg-transparent {
|
|
91
|
+
background-color: #0000;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.univer-p-0 {
|
|
95
|
+
padding: 0;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.univer-px-4 {
|
|
99
|
+
padding-left: 1rem;
|
|
100
|
+
padding-right: 1rem;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.univer-py-2 {
|
|
104
|
+
padding-top: .5rem;
|
|
105
|
+
padding-bottom: .5rem;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.univer-text-sm {
|
|
109
|
+
font-size: .875rem;
|
|
110
|
+
line-height: 1.25rem;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.univer-text-xl {
|
|
114
|
+
font-size: 1.25rem;
|
|
115
|
+
line-height: 1.75rem;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.univer-text-blue-500 {
|
|
119
|
+
color: var(--univer-blue-500);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.univer-text-gray-400 {
|
|
123
|
+
color: var(--univer-gray-400);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.univer-text-gray-600 {
|
|
127
|
+
color: var(--univer-gray-600);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.univer-text-green-500 {
|
|
131
|
+
color: var(--univer-green-500);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.univer-text-orange-500 {
|
|
135
|
+
color: var(--univer-orange-500);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.univer-text-red-500 {
|
|
139
|
+
color: var(--univer-red-500);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.univer-text-white {
|
|
143
|
+
color: var(--univer-white);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.univer-transition-all {
|
|
147
|
+
transition-property: all;
|
|
148
|
+
transition-duration: .15s;
|
|
149
|
+
transition-timing-function: cubic-bezier(.4, 0, .2, 1);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.univer-transition-colors {
|
|
153
|
+
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
154
|
+
transition-duration: .15s;
|
|
155
|
+
transition-timing-function: cubic-bezier(.4, 0, .2, 1);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.univer-duration-200 {
|
|
159
|
+
transition-duration: .2s;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.hover\:univer-bg-gray-100:hover {
|
|
163
|
+
background-color: var(--univer-gray-100);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.focus\:univer-outline-none:focus {
|
|
167
|
+
outline-offset: 2px;
|
|
168
|
+
outline: 2px solid #0000;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.focus\:univer-ring-2:focus {
|
|
172
|
+
--univer-tw-ring-offset-shadow: var(--univer-tw-ring-inset) 0 0 0 var(--univer-tw-ring-offset-width) var(--univer-tw-ring-offset-color);
|
|
173
|
+
--univer-tw-ring-shadow: var(--univer-tw-ring-inset) 0 0 0 calc(2px + var(--univer-tw-ring-offset-width)) var(--univer-tw-ring-color);
|
|
174
|
+
box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), 0 0 #0000;
|
|
175
|
+
box-shadow: var(--univer-tw-ring-offset-shadow), var(--univer-tw-ring-shadow), var(--univer-tw-shadow, 0 0 #0000);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.focus\:univer-ring-primary-500:focus {
|
|
179
|
+
--univer-tw-ring-color: var(--univer-primary-500);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.focus\:univer-ring-offset-2:focus {
|
|
183
|
+
--univer-tw-ring-offset-width: 2px;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.dark\:hover\:\!univer-bg-gray-700:hover:where(.univer-dark, .univer-dark *) {
|
|
187
|
+
background-color: var(--univer-gray-700) !important;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.dark\:focus\:\!univer-ring-offset-gray-800:focus:where(.univer-dark, .univer-dark *) {
|
|
191
|
+
--univer-tw-ring-offset-color: var(--univer-gray-800) !important;
|
|
192
|
+
}
|
package/lib/index.js
CHANGED
|
@@ -1,47 +1,51 @@
|
|
|
1
|
-
import { UniverCollaborationPlugin
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export * from "@univerjs-pro/collaboration
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { UniverCollaborationPlugin } from "@univerjs-pro/collaboration";
|
|
2
|
+
import { UniverCollaborationClientPlugin } from "@univerjs-pro/collaboration-client";
|
|
3
|
+
import { BrowserCollaborationSocketService, UniverCollaborationClientUIPlugin } from "@univerjs-pro/collaboration-client-ui";
|
|
4
|
+
import "@univerjs-pro/collaboration-client/facade";
|
|
5
|
+
|
|
6
|
+
export * from "@univerjs-pro/collaboration"
|
|
7
|
+
|
|
8
|
+
export * from "@univerjs-pro/collaboration-client"
|
|
9
|
+
|
|
10
|
+
export * from "@univerjs-pro/collaboration-client-ui"
|
|
11
|
+
|
|
12
|
+
//#region src/preset.ts
|
|
13
|
+
function transformUrlProtocolToWs(url) {
|
|
14
|
+
const wsUrl = new URL(url, window.location.origin);
|
|
15
|
+
switch (wsUrl.protocol) {
|
|
16
|
+
case "https:":
|
|
17
|
+
wsUrl.protocol = "wss:";
|
|
18
|
+
break;
|
|
19
|
+
case "http:":
|
|
20
|
+
wsUrl.protocol = "ws:";
|
|
21
|
+
break;
|
|
22
|
+
}
|
|
23
|
+
return wsUrl.toString();
|
|
19
24
|
}
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
};
|
|
25
|
+
function UniverDocsCollaborationPreset(config = {}) {
|
|
26
|
+
const { universerEndpoint } = config;
|
|
27
|
+
const serverEndpoint = universerEndpoint !== null && universerEndpoint !== void 0 ? universerEndpoint : `${window.location.protocol}//${window.location.host}`;
|
|
28
|
+
return { plugins: [
|
|
29
|
+
UniverCollaborationPlugin,
|
|
30
|
+
[UniverCollaborationClientPlugin, {
|
|
31
|
+
socketService: BrowserCollaborationSocketService,
|
|
32
|
+
enableOfflineEditing: true,
|
|
33
|
+
enableSingleActiveInstanceLock: true,
|
|
34
|
+
enableAuthServer: true,
|
|
35
|
+
authzUrl: `${serverEndpoint}/universer-api/authz`,
|
|
36
|
+
snapshotServerUrl: `${serverEndpoint}/universer-api/snapshot`,
|
|
37
|
+
collabSubmitChangesetUrl: `${serverEndpoint}/universer-api/comb`,
|
|
38
|
+
collabWebSocketUrl: transformUrlProtocolToWs(`${serverEndpoint}/universer-api/comb/connect`),
|
|
39
|
+
loginUrlKey: `${serverEndpoint}/universer-api/oidc/authpage`,
|
|
40
|
+
uploadFileServerUrl: `${serverEndpoint}/universer-api/stream/file/upload`,
|
|
41
|
+
signUrlServerUrl: `${serverEndpoint}/universer-api/file/{fileID}/sign-url`,
|
|
42
|
+
downloadEndpointUrl: `${serverEndpoint}/`,
|
|
43
|
+
wsSessionTicketUrl: `${serverEndpoint}/universer-api/user/session-ticket`,
|
|
44
|
+
sendChangesetTimeout: 200
|
|
45
|
+
}],
|
|
46
|
+
UniverCollaborationClientUIPlugin
|
|
47
|
+
] };
|
|
44
48
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
};
|
|
49
|
+
|
|
50
|
+
//#endregion
|
|
51
|
+
export { UniverDocsCollaborationPreset };
|
package/lib/locales/ar-SA.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
l as default
|
|
10
|
-
};
|
|
1
|
+
import univerjscollaborationclient from "@univerjs-pro/collaboration-client/locale/ar-SA";
|
|
2
|
+
import univerjscollaborationclientui from "@univerjs-pro/collaboration-client-ui/locale/ar-SA";
|
|
3
|
+
|
|
4
|
+
//#region src/locales/ar-SA.ts
|
|
5
|
+
var ar_SA_default = Object.assign({}, univerjscollaborationclient, univerjscollaborationclientui);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { ar_SA_default as default };
|
package/lib/locales/ca-ES.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
l as default
|
|
10
|
-
};
|
|
1
|
+
import univerjscollaborationclient from "@univerjs-pro/collaboration-client/locale/ca-ES";
|
|
2
|
+
import univerjscollaborationclientui from "@univerjs-pro/collaboration-client-ui/locale/ca-ES";
|
|
3
|
+
|
|
4
|
+
//#region src/locales/ca-ES.ts
|
|
5
|
+
var ca_ES_default = Object.assign({}, univerjscollaborationclient, univerjscollaborationclientui);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { ca_ES_default as default };
|
package/lib/locales/de-DE.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
a as default
|
|
10
|
-
};
|
|
1
|
+
import univerjscollaborationclient from "@univerjs-pro/collaboration-client/locale/de-DE";
|
|
2
|
+
import univerjscollaborationclientui from "@univerjs-pro/collaboration-client-ui/locale/de-DE";
|
|
3
|
+
|
|
4
|
+
//#region src/locales/de-DE.ts
|
|
5
|
+
var de_DE_default = Object.assign({}, univerjscollaborationclient, univerjscollaborationclientui);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { de_DE_default as default };
|
package/lib/locales/en-US.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
n as default
|
|
10
|
-
};
|
|
1
|
+
import univerjscollaborationclient from "@univerjs-pro/collaboration-client/locale/en-US";
|
|
2
|
+
import univerjscollaborationclientui from "@univerjs-pro/collaboration-client-ui/locale/en-US";
|
|
3
|
+
|
|
4
|
+
//#region src/locales/en-US.ts
|
|
5
|
+
var en_US_default = Object.assign({}, univerjscollaborationclient, univerjscollaborationclientui);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { en_US_default as default };
|
package/lib/locales/es-ES.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
a as default
|
|
10
|
-
};
|
|
1
|
+
import univerjscollaborationclient from "@univerjs-pro/collaboration-client/locale/es-ES";
|
|
2
|
+
import univerjscollaborationclientui from "@univerjs-pro/collaboration-client-ui/locale/es-ES";
|
|
3
|
+
|
|
4
|
+
//#region src/locales/es-ES.ts
|
|
5
|
+
var es_ES_default = Object.assign({}, univerjscollaborationclient, univerjscollaborationclientui);
|
|
6
|
+
|
|
7
|
+
//#endregion
|
|
8
|
+
export { es_ES_default as default };
|