@docx-editor.dev/pro 2.35.1-canary.20261107032606.sha-f311676 → 2.36.0
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/LICENSE.md +15 -14
- package/THIRD_PARTY_NOTICES.md +6 -0
- package/dist/chunk-3HW2VWFW.js +5 -0
- package/dist/{chunk-BRCSTRTI.js → chunk-5INMVI3O.js} +6 -1
- package/dist/chunk-6DEUT2RQ.js +5 -0
- package/dist/chunk-B4OWKZIG.js +5 -0
- package/dist/chunk-EOZ44UA7.js +5 -0
- package/dist/chunk-GOUTDQFX.cjs +5 -0
- package/dist/chunk-GSBQ5AHL.cjs +5 -0
- package/dist/chunk-HMU7J34H.js +5 -0
- package/dist/chunk-IULA3QRZ.cjs +5 -0
- package/dist/{chunk-RUF2QVRK.cjs → chunk-J42DN4K5.cjs} +6 -1
- package/dist/{chunk-DJILTQDJ.cjs → chunk-JKQRYHCO.cjs} +6 -1
- package/dist/chunk-K7IGLB5D.js +5 -0
- package/dist/chunk-LUUFBXJ5.cjs +5 -0
- package/dist/chunk-NTBGYQX4.js +5 -0
- package/dist/chunk-OF673SN2.cjs +5 -0
- package/dist/chunk-QEULTKCT.cjs +5 -0
- package/dist/chunk-QOXYHVBM.cjs +5 -0
- package/dist/chunk-QWEU3QRC.js +5 -0
- package/dist/chunk-STTJA26X.js +5 -0
- package/dist/chunk-VJOGWUUQ.cjs +5 -0
- package/dist/chunk-VMSFNR4O.cjs +5 -0
- package/dist/{chunk-3Q6Q5XFQ.js → chunk-VYJGXASU.js} +6 -1
- package/dist/collaboration/hocuspocus.cjs +5 -0
- package/dist/collaboration/hocuspocus.js +5 -0
- package/dist/collaboration/index.cjs +5 -0
- package/dist/collaboration/index.js +5 -0
- package/dist/collaboration/webrtc.cjs +5 -0
- package/dist/collaboration/webrtc.js +5 -0
- package/dist/compare-worker.cjs +5 -0
- package/dist/compare-worker.js +5 -0
- package/dist/document-session-FTMVM6IL.js +5 -0
- package/dist/document-session-GB52JVCQ.cjs +5 -0
- package/dist/drawing/index.cjs +6 -1
- package/dist/drawing/index.js +6 -1
- package/dist/index.cjs +6 -1
- package/dist/index.js +6 -1
- package/dist/metafile-raster-XCBH7SX6.cjs +6 -0
- package/dist/metafile-raster-YDSJWU5A.js +6 -0
- package/dist/metafile-replay-FQK2GCTR.js +5 -0
- package/dist/metafile-replay-YIWHTU6Z.cjs +5 -0
- package/dist/react/hocuspocus.cjs +5 -0
- package/dist/react/hocuspocus.js +5 -0
- package/dist/react/index.cjs +7 -2
- package/dist/react/index.js +6 -1
- package/dist/react/webrtc.cjs +5 -0
- package/dist/react/webrtc.js +5 -0
- package/dist/vue/hocuspocus.cjs +5 -0
- package/dist/vue/hocuspocus.js +5 -0
- package/dist/vue/index.cjs +7 -2
- package/dist/vue/index.js +6 -1
- package/dist/vue/webrtc.cjs +5 -0
- package/dist/vue/webrtc.js +5 -0
- package/licenses/MaterialSymbols-NOTICE.md +186 -0
- package/package.json +7 -6
- package/dist/metafile-raster-OMXYAIEW.js +0 -1
- package/dist/metafile-raster-PERDATFJ.cjs +0 -1
package/LICENSE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# EigenPal Pro Evaluation License 1.0
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2026
|
|
3
|
+
Copyright (c) 2026 Eigenpal, Inc. All rights reserved.
|
|
4
4
|
|
|
5
5
|
By copying, modifying, or using the Software, you agree to these terms.
|
|
6
6
|
|
|
@@ -8,12 +8,13 @@ By copying, modifying, or using the Software, you agree to these terms.
|
|
|
8
8
|
|
|
9
9
|
“Software” means all source code, object code, documentation, assets, and other
|
|
10
10
|
materials contained in the “packages/pro/” directory of the EigenPal DOCX
|
|
11
|
-
Editor repository,
|
|
11
|
+
Editor repository, and in every copy of the `@docx-editor.dev/pro` npm package
|
|
12
|
+
published from it, except for any material that expressly states that it is
|
|
12
13
|
subject to a different license.
|
|
13
14
|
|
|
14
15
|
## 2. Evaluation Permission; Modifications
|
|
15
16
|
|
|
16
|
-
Subject to these terms,
|
|
17
|
+
Subject to these terms, Eigenpal, Inc. grants you a limited, non-exclusive,
|
|
17
18
|
non-transferable, non-sublicensable, royalty-free license to:
|
|
18
19
|
|
|
19
20
|
1. view, clone, and copy the Software;
|
|
@@ -24,11 +25,11 @@ non-transferable, non-sublicensable, royalty-free license to:
|
|
|
24
25
|
|
|
25
26
|
For any such modification, the following applies:
|
|
26
27
|
|
|
27
|
-
You may keep any modification to yourself. If you do not disclose it to
|
|
28
|
-
If you disclose a modification to
|
|
28
|
+
You may keep any modification to yourself. If you do not disclose it to Eigenpal, Inc. or to anyone else, it remains yours.
|
|
29
|
+
If you disclose a modification to Eigenpal, Inc. or to any third party, in any form, you assign all right, title, and interest in it to Eigenpal, Inc. at the moment of disclosure. The same applies to any feedback you give Eigenpal, Inc. You will promptly send Eigenpal, Inc. the source code of any modification you disclose, and will sign any document needed to record the assignment.
|
|
29
30
|
Disclosing a modification to a third party grants that third party no rights in it or in the Software. You will not license or purport to license any modification to anyone.
|
|
30
|
-
You may continue using an assigned modification for the internal, non-production evaluation permitted by Section 2 for as long as this license is in effect.
|
|
31
|
-
You confirm that any modification or feedback you disclose is yours to assign and is not subject to any license that would impose obligations on
|
|
31
|
+
You may continue using an assigned modification for the internal, non-production evaluation permitted by Section 2 for as long as this license is in effect. Eigenpal, Inc. is not obliged to use or support any modification or feedback, and owes you nothing for it.
|
|
32
|
+
You confirm that any modification or feedback you disclose is yours to assign and is not subject to any license that would impose obligations on Eigenpal, Inc. or grant rights to any third party.
|
|
32
33
|
|
|
33
34
|
|
|
34
35
|
No other rights are granted.
|
|
@@ -62,17 +63,17 @@ as these terms. You are responsible for their compliance.
|
|
|
62
63
|
## 5. Commercial Rights
|
|
63
64
|
|
|
64
65
|
Production Use and any rights not expressly granted by this license require a
|
|
65
|
-
separate written commercial agreement signed by
|
|
66
|
+
separate written commercial agreement signed by Eigenpal, Inc.
|
|
66
67
|
|
|
67
68
|
Commercial licenses are available by contacting licensing@eigenpal.com.
|
|
68
69
|
|
|
69
|
-
Access to the Software, correspondence with
|
|
70
|
+
Access to the Software, correspondence with Eigenpal, Inc., or payment of an
|
|
70
71
|
invoice does not by itself grant production or commercial rights unless those
|
|
71
|
-
rights are set out in a written agreement signed by
|
|
72
|
+
rights are set out in a written agreement signed by Eigenpal, Inc.
|
|
72
73
|
|
|
73
74
|
## 6. Ownership
|
|
74
75
|
|
|
75
|
-
|
|
76
|
+
Eigenpal, Inc. and its licensors retain all rights, title, and interest in the
|
|
76
77
|
Software. This license does not transfer ownership or grant any rights by
|
|
77
78
|
implication.
|
|
78
79
|
|
|
@@ -86,7 +87,7 @@ terms or if EigenPal terminates this license.
|
|
|
86
87
|
|
|
87
88
|
Following termination, you must stop using the Software and delete your copies
|
|
88
89
|
and modifications, except for copies that you are legally required to retain.
|
|
89
|
-
|
|
90
|
+
Eigenpal, Inc. may reinstate your rights in writing.
|
|
90
91
|
|
|
91
92
|
## 8. No Warranty
|
|
92
93
|
|
|
@@ -102,7 +103,7 @@ TO THE MAXIMUM EXTENT PERMITTED BY LAW, EIGENPAL, INC. AND ITS LICENSORS WILL NO
|
|
|
102
103
|
## 10. Trademarks
|
|
103
104
|
|
|
104
105
|
This license does not grant permission to use the names, trademarks, service
|
|
105
|
-
marks, or logos of
|
|
106
|
+
marks, or logos of Eigenpal, Inc., except to identify the origin of an
|
|
106
107
|
unmodified copy of the Software.
|
|
107
108
|
|
|
108
109
|
## 11. Governing Law and Jurisdiction
|
|
@@ -116,6 +117,6 @@ and you consent to their jurisdiction.
|
|
|
116
117
|
|
|
117
118
|
## 12. Separate Commercial Agreements
|
|
118
119
|
|
|
119
|
-
If
|
|
120
|
+
If Eigenpal, Inc. and you enter into a separate written commercial agreement,
|
|
120
121
|
that agreement controls to the extent it grants additional rights or conflicts
|
|
121
122
|
with this license.
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -19,4 +19,10 @@ the consumer and are not repeated here.
|
|
|
19
19
|
Generated by `bun run notices:generate` from the build's esbuild metafile.
|
|
20
20
|
Do not edit by hand.
|
|
21
21
|
|
|
22
|
+
This package also ships prebuilt third-party assets that are not esbuild inputs,
|
|
23
|
+
so they cannot appear below. Their licenses travel with the package in
|
|
24
|
+
`licenses/`:
|
|
25
|
+
|
|
26
|
+
- `licenses/MaterialSymbols-NOTICE.md`
|
|
27
|
+
|
|
22
28
|
No third-party code is bundled into this package.
|
package/dist/chunk-3HW2VWFW.js
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
Copyright (c) 2026 Eigenpal, Inc. All rights reserved.
|
|
3
|
+
Licensed under the EigenPal Pro Evaluation License 1.0. See LICENSE.md in this package.
|
|
4
|
+
Production use requires a commercial agreement: licensing@eigenpal.com
|
|
5
|
+
*/
|
|
1
6
|
import {a}from'./chunk-EOZ44UA7.js';import {useState,useRef,useCallback,useEffect,useMemo}from'react';import {isCollaborationFailureCode}from'@docx-editor.dev/core/collaboration';var T=new Map;function N(e=queueMicrotask,r=()=>{},o=()=>{}){let t=null,a=0,c=()=>{a+=1;};return {autoKey:null,current:()=>t,adopt(i){c(),t&&t!==i&&t.destroy(),t=i;},leave(){c();let i=t;t=null,i?.destroy();},reclaimOwner(){c(),o();},disposeOwner(){let i=++a,C=t;e(()=>{i===a&&(C?.destroy(),t===C&&(t=null),r());});}}}function I(e){let r=T.get(e);if(r)return r;let o=N(queueMicrotask,()=>{T.get(e)===o&&T.delete(e);},()=>{T.has(e)||T.set(e,o);});return o}var Z=Object.freeze([]);function L(e,r){for(let o of r)if(o.collaboration)throw new Error(`${e}: host \`modules\` already include a collaboration contribution. This hook supplies \`collaborationModule({ session })\`. Pass review and custom-node modules only.`)}function B(e){if(typeof e=="object"&&e!==null&&"code"in e){let r=e.code;if(typeof r=="string"&&isCollaborationFailureCode(r)){let o=e.detail;return typeof o=="string"&&o.length>0?{code:r,detail:o}:{code:r}}}return e instanceof Error&&e.message.length>0?{code:"transport",detail:e.message}:{code:"transport"}}function Y(e,r){if(!(r instanceof Uint8Array))throw new TypeError(`${e}: leave requires the current document bytes \u2014 pass \`await editor.save()\` so the edits made in the room survive locally.`)}var _=0;function oo(e){let[r]=useState(()=>_+=1),[o]=useState(()=>I(`${e.ownerKey}#${r}`)),t=useRef(e);t.current=e,L(e.hookName,e.hostModules);let a$1=useRef(0),c=useRef(null),[i,C]=useState(()=>o.current()),[E,H]=useState(()=>o.current()?.document??null),[k,h]=useState(()=>e.autoRoom!==null&&o.current()===null),[K,d]=useState(null),m=useCallback(n=>{C(n),H(n?.document??null);},[]),y=useCallback(async n=>{let l=++a$1.current;c.current=n,h(true),d(null);try{let s=await t.current.createRoom(n);return l!==a$1.current?(s.destroy(),null):(o.adopt(s),m(s),null)}catch(s){let f=B(s);return l!==a$1.current||d(f),f}finally{l===a$1.current&&h(false);}},[o,m]),U=useCallback(n=>(o.autoKey=null,y(n)),[y]),O=useCallback(n=>{Y(t.current.hookName,n),a$1.current+=1,o.leave(),C(null),H(n),h(false),d(null);},[o]),A=useCallback(n=>{o.autoKey=null,O(n);},[O]),D=useCallback(async n=>{let l=c.current;if(l===null)throw new Error(`${t.current.hookName}: rejoin needs a room this hook connected before. Call connect first.`);return O(n),y(t.current.rejoinOptionsOf(l))},[y,O]);useEffect(()=>{o.reclaimOwner();let n=o.current();return n&&m(n),()=>{a$1.current+=1,o.disposeOwner();}},[o,m]);let u=i?.session??null,x=useRef(null);useEffect(()=>{if(!u)return;let n=()=>{let l=u.statusSnapshot();if(l.status!=="error"){let f=x.current;x.current=null,f&&d(W=>W===f?null:W);return}let s=l.reason??l.lastFailure??{code:"transport"};x.current=s,d(s);};return n(),u.subscribeStatus(()=>n())},[u]);let R=t.current.autoRoom?t.current.identityOf(t.current.autoRoom):null,q=R?`${R.name}\0${R.color??""}`:"",P=useRef(R);P.current=R,useEffect(()=>{let n=P.current;if(!u||!n)return;u.setIdentity?.({name:n.name,...n.color!==void 0?{color:n.color}:{}});},[q,u]);let M=e.autoKey;useEffect(()=>{let n=t.current.autoRoom;if(o.autoKey!==null&&o.autoKey!==M&&(a$1.current+=1,o.autoKey=null,o.current()&&o.leave(),m(null),d(null),h(false)),!n||o.current())return;o.autoKey=M;let s=false;return queueMicrotask(()=>{s||o.current()||y(n).catch(()=>{});}),()=>{s=true;}},[M,y,o,m]);let F=e.hostModules,w=i?.session??null,S=useMemo(()=>w?Object.freeze([...F,a({session:w})]):F,[F,w]);return useMemo(()=>({room:i,document:E,modules:S,session:w,pending:k,error:K,connect:U,leave:A,rejoin:D}),[U,E,K,A,S,k,D,i,w])}export{Z as a,oo as b};
|