[{"data":1,"prerenderedAt":380},["ShallowReactive",2],{"quirekit-doc:\u002Fen\u002Fplugins\u002Freference\u002Fcollaboration-flat":3},{"id":4,"title":5,"body":6,"description":12,"extension":367,"keywords":368,"locale":371,"meta":372,"navigation":373,"order":374,"path":375,"section":376,"seo":377,"stem":378,"__hash__":379},"docs\u002Fplugins\u002Freference\u002Fcollaboration-flat.en.md","CollaborationFlat",{"type":7,"value":8,"toc":350},"minimark",[9,13,24,29,35,78,87,91,97,105,134,141,145,148,151,155,161,165,168,174,180,183,189,194,199,202,205,210,215,218,221,225,229,233,236,240,245,249,252,257,262,266,269,307,315,318,322,333,346],[10,11,12],"p",{},"Binds Core to a shared CRDT replica with local-author undo. Supply doc, disable ordinary UndoRedo and provide transport and authorization.",[10,14,15,19,20],{},[16,17,18],"code",{},"@quirekit\u002Fcollab-flat"," · ",[21,22,23],"strong",{},"AGPL-3.0-only",[25,26,28],"h2",{"id":27},"editor-compatibility","Editor compatibility",[10,30,31,32],{},"Layer：",[21,33,34],{},"Shared document capability",[36,37,38,54],"table",{},[39,40,41],"thead",{},[42,43,44,48,51],"tr",{},[45,46,47],"th",{},"Editor",[45,49,50],{},"Status",[45,52,53],{},"Assembly and boundaries",[55,56,57,69],"tbody",{},[42,58,59,63,66],{},[60,61,62],"td",{},"Classic",[60,64,65],{},"Requires integration",[60,67,68],{},"Connect the services, targets and lifecycle described on this page and validate the selected View and document model. Core contracts are reusable, but there is no universal product installation without host ports.",[42,70,71,74,76],{},[60,72,73],{},"Block",[60,75,65],{},[60,77,68],{},[10,79,80,81,86],{},"“Supported” means the product assembly above exists; interaction, host services and file formats retain their own conditions. See ",[82,83,85],"a",{"href":84},"\u002Fen\u002Fplugins\u002Fcompatibility","status and integration rules",". Licensing is shown separately.",[25,88,90],{"id":89},"installation","Installation",[10,92,93,94,96],{},"The current ",[16,95,18],{}," manifest is private. This site uses workspace source; external projects need the relevant distribution package rather than assuming public npm availability.",[10,98,99,100,104],{},"Install in Editor extensions. The host supplies a view, container and persistence; see ",[82,101,103],{"href":102},"\u002Fen\u002Fguide\u002Fquick-start","Quick start",".",[106,107,112],"pre",{"className":108,"code":109,"language":110,"meta":111,"style":111},"language-ts shiki shiki-themes github-light github-light github-dark","import { CollaborationFlat } from '@quirekit\u002Fcollab-flat'\n","ts","",[16,113,114],{"__ignoreMap":111},[115,116,119,123,127,130],"span",{"class":117,"line":118},"line",1,[115,120,122],{"class":121},"sDD9d","import",[115,124,126],{"class":125},"sVPnS"," { CollaborationFlat } ",[115,128,129],{"class":121},"from",[115,131,133],{"class":132},"s-HEn"," '@quirekit\u002Fcollab-flat'\n",[10,135,136,137,104],{},"Use compatible versions available from your distribution source. This site uses the Alpha workspace. License labels come from package metadata; see ",[82,138,140],{"href":139},"\u002Fen\u002Fsupport","support and licensing",[25,142,144],{"id":143},"integration-by-editor","Integration by editor",[10,146,147],{},"These snippets use an existing host element named element. The host owns container sizing and persistence; call instance.destroy() on teardown. Avoid duplicating preset capabilities and supply required host ports before installation.",[149,150],"plugin-integration",{"name":5},[25,152,154],{"id":153},"configuration","Configuration",[10,156,157,158,104],{},"These are extension-level defaults. Presets can override them; they are distinct from current document attributes. See ",[82,159,153],{"href":160},"\u002Fen\u002Fplugins\u002Fconfiguration",[162,163,164],"h3",{"id":164},"doc",[10,166,167],{},"Replica of the session; required.",[10,169,170,171],{},"Type：",[16,172,173],{},"CrdtDoc | null",[10,175,176,177],{},"Default：",[16,178,179],{},"null",[162,181,182],{"id":182},"granularity",[10,184,185,186,104],{},"Attribute merge granularity overriding what the installed features declare through ",[16,187,188],{},"addCollaboration()",[10,190,170,191],{},[16,192,193],{},"AttributeGranularityResolver | undefined",[10,195,176,196],{},[16,197,198],{},"undefined",[162,200,201],{"id":201},"initialize",[10,203,204],{},"Writes this editor's content into the shared document when it is empty.",[10,206,170,207],{},[16,208,209],{},"boolean",[10,211,176,212],{},[16,213,214],{},"false",[162,216,217],{"id":217},"verify",[10,219,220],{},"Checks every change against a full decode; for tests and debugging.",[10,222,170,223],{},[16,224,209],{},[10,226,176,227],{},[16,228,214],{},[162,230,232],{"id":231},"repairidentity","repairIdentity",[10,234,235],{},"Whether this editor writes container identity repairs; turn off when the sync server repairs.",[10,237,170,238],{},[16,239,209],{},[10,241,176,242],{},[16,243,244],{},"true",[162,246,248],{"id":247},"capturetimeout","captureTimeout",[10,250,251],{},"Milliseconds within which consecutive local edits form one undo step.",[10,253,170,254],{},[16,255,256],{},"number",[10,258,176,259],{},[16,260,261],{},"500",[25,263,265],{"id":264},"commands-and-runtime","Commands and runtime",[10,267,268],{},"These commands are supplied directly by this extension. Availability depends on the installed schema, selection and protection policy; query editor.can() first.",[36,270,271,281],{},[39,272,273],{},[42,274,275,278],{},[45,276,277],{},"Command",[45,279,280],{},"Parameter signature",[55,282,283,295],{},[42,284,285,290],{},[60,286,287],{},[16,288,289],{},"undo",[60,291,292],{},[16,293,294],{},"undo()",[42,296,297,302],{},[60,298,299],{},[16,300,301],{},"redo",[60,303,304],{},[16,305,306],{},"redo()",[10,308,309,310,314],{},"These are parameter signatures. See ",[82,311,313],{"href":312},"\u002Fen\u002Fbuild\u002Fcommands","commands and controls"," to connect UI while retaining one transaction\u002Fhistory authority.",[10,316,317],{},"Disable StarterKit.undoRedo. The extension owns binding and collaboration history; authentication, transport, persisted replicas and recovery remain host integrations.",[25,319,321],{"id":320},"next-steps","Next steps",[10,323,324,325,329,330,332],{},"Return to ",[82,326,328],{"href":327},"\u002Fen\u002Fplugins","all plugins",", or read ",[82,331,153],{"href":160}," to distinguish options, attributes and commands.",[10,334,335,336,340,341,345],{},"See ",[82,337,339],{"href":338},"\u002Fen\u002Fbuild\u002Fextension","extension development"," for custom capabilities and ",[82,342,344],{"href":343},"\u002Fen\u002Fbuild","Build a product"," for complete hosting.",[347,348,349],"style",{},"html pre.shiki code .sDD9d, html code.shiki .sDD9d{--shiki-default:#D73A49;--shiki-light:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sVPnS, html code.shiki .sVPnS{--shiki-default:#24292E;--shiki-light:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .s-HEn, html code.shiki .s-HEn{--shiki-default:#032F62;--shiki-light:#032F62;--shiki-dark:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":111,"searchDepth":351,"depth":351,"links":352},2,[353,354,355,356,365,366],{"id":27,"depth":351,"text":28},{"id":89,"depth":351,"text":90},{"id":143,"depth":351,"text":144},{"id":153,"depth":351,"text":154,"children":357},[358,360,361,362,363,364],{"id":164,"depth":359,"text":164},3,{"id":182,"depth":359,"text":182},{"id":201,"depth":359,"text":201},{"id":217,"depth":359,"text":217},{"id":231,"depth":359,"text":232},{"id":247,"depth":359,"text":248},{"id":264,"depth":351,"text":265},{"id":320,"depth":351,"text":321},"md",[5,18,369,370,164,182,201,217,232,248,289,301,5],"CRDT 协作","integration","en",{"navigationTitle":5,"license":23},true,71,"\u002Fen\u002Fplugins\u002Freference\u002Fcollaboration-flat","Collaboration and accessibility",{"title":5,"description":12},"plugins\u002Freference\u002Fcollaboration-flat.en","BA_F9dWd3w4d-RJa-Ce9yeJyfF-JTm4EuQsQw64903k",1793045225852]