You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In superdoc@2.4.0, supplying an external Y.Doc + provider pair (the externally-typed collaboration surface) is rejected fail-closed by the v2 constructor before any editor becomes ready, with collaboration-v1-config-unsupported:
SuperDoc v2 cannot use modules.collaboration because it is the SuperDoc v1
collaboration API. SuperDoc did not attach the provider or change the document.
Configure Document.v2Collaboration with a v2 room instead.
Combined with #3876 (on the v2 path, save() never resolves because shell documents never receive a Y.Doc), this means 2.4.0 has no public collaboration configuration in which await superdoc.save() can complete:
External Y.Doc/provider (modules.collaboration): rejected by the v2 constructor at startup.
The package still ships the external-provider types, and the bundle retains the external attachment path (dist/superdoc.es.js:43491-43503 is the only site that assigns a Y.Doc to shell documents), but the public constructor refuses the only configuration surface that supplies the pair.
Reproduction
Construct SuperDoc with an external HocuspocusProvider + Y.Doc passed through the document entry and modules.collaboration, pointed at a self-hosted Hocuspocus server.
The constructor fails closed with collaboration-v1-config-unsupported before the first editor is ready; the provider is never attached.
Questions
What is the supported configuration for self-hosted collaboration in 2.x where save() can resolve — is there a v2-compatible way to supply or reach the document's Y.Doc?
Summary
In
superdoc@2.4.0, supplying an external Y.Doc + provider pair (the externally-typed collaboration surface) is rejected fail-closed by the v2 constructor before any editor becomes ready, withcollaboration-v1-config-unsupported:Combined with #3876 (on the v2 path,
save()never resolves because shell documents never receive a Y.Doc), this means 2.4.0 has no public collaboration configuration in whichawait superdoc.save()can complete:save()hangs (v2 collaboration: SuperDoc.save() never resolves — shell documents get no Y.Doc on the v2 path (2.4.0) #3876).modules.collaboration): rejected by the v2 constructor at startup.The package still ships the external-provider types, and the bundle retains the external attachment path (
dist/superdoc.es.js:43491-43503is the only site that assigns a Y.Doc to shell documents), but the public constructor refuses the only configuration surface that supplies the pair.Reproduction
HocuspocusProvider+Y.Docpassed through the document entry andmodules.collaboration, pointed at a self-hosted Hocuspocus server.collaboration-v1-config-unsupportedbefore the first editor is ready; the provider is never attached.Questions
save()can resolve — is there a v2-compatible way to supply or reach the document's Y.Doc?Environment
superdoc@2.4.0(npmlatestat time of filing)