[{"data":1,"prerenderedAt":431},["ShallowReactive",2],{"quirekit-doc:\u002Fen\u002Fplugins\u002Freference\u002Fsearch":3},{"id":4,"title":5,"body":6,"description":12,"extension":418,"keywords":419,"locale":422,"meta":423,"navigation":424,"order":425,"path":426,"section":427,"seo":428,"stem":429,"__hash__":430},"docs\u002Fplugins\u002Freference\u002Fsearch.en.md","Search",{"type":7,"value":8,"toc":402},"minimark",[9,13,24,29,35,88,96,100,116,124,148,155,159,162,165,169,175,179,182,188,194,198,201,206,211,215,218,222,226,230,233,238,242,245,248,253,257,261,264,362,370,374,385,398],[10,11,12],"p",{},"Maintains find\u002Freplace matches and transient highlights. Hosts can restrict scopes, guard replacement and reveal active matches.",[10,14,15,19,20],{},[16,17,18],"code",{},"@quirekit\u002Fextension-search"," · ",[21,22,23],"strong",{},"MIT",[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,74],"tbody",{},[42,58,59,63,66],{},[60,61,62],"td",{},"Classic",[60,64,65],{},"Supported",[60,67,68,73],{},[69,70,72],"a",{"href":71},"\u002Fen\u002Fplugins\u002Freference\u002Fclassic-editor-preset","classicEditorPreset"," — Use the product-neutral classicEditorPreset without duplicating installed capabilities. The Word preset replaces paragraphs, headings and container lists; do not stack generic structures onto that model.",[42,75,76,79,81],{},[60,77,78],{},"Block",[60,80,65],{},[60,82,83,87],{},[69,84,86],{"href":85},"\u002Fen\u002Fplugins\u002Freference\u002Fcreate-block-editor-preset","createBlockEditorPreset"," — The default createBlockEditor preset installs this capability. Configure the corresponding preset child; graphic editing uses the preset's workspace ports, while persistence and assets remain host-owned. Avoid duplicate extensions.",[10,89,90,91,95],{},"“Supported” means the product assembly above exists; interaction, host services and file formats retain their own conditions. See ",[69,92,94],{"href":93},"\u002Fen\u002Fplugins\u002Fcompatibility","status and integration rules",". Licensing is shown separately.",[25,97,99],{"id":98},"installation","Installation",[101,102,107],"pre",{"className":103,"code":104,"language":105,"meta":106,"style":106},"language-sh shiki shiki-themes github-light github-light github-dark","pnpm add @quirekit\u002Fextension-search@alpha\n","sh","",[16,108,109],{"__ignoreMap":106},[110,111,114],"span",{"class":112,"line":113},"line",1,[110,115,104],{},[10,117,118,119,123],{},"Install in Editor extensions. The host supplies a view, container and persistence; see ",[69,120,122],{"href":121},"\u002Fen\u002Fguide\u002Fquick-start","Quick start",".",[101,125,129],{"className":126,"code":127,"language":128,"meta":106,"style":106},"language-ts shiki shiki-themes github-light github-light github-dark","import { Search } from '@quirekit\u002Fextension-search'\n","ts",[16,130,131],{"__ignoreMap":106},[110,132,133,137,141,144],{"class":112,"line":113},[110,134,136],{"class":135},"sDD9d","import",[110,138,140],{"class":139},"sVPnS"," { Search } ",[110,142,143],{"class":135},"from",[110,145,147],{"class":146},"s-HEn"," '@quirekit\u002Fextension-search'\n",[10,149,150,151,123],{},"Use compatible versions available from your distribution source. This site uses the Alpha workspace. License labels come from package metadata; see ",[69,152,154],{"href":153},"\u002Fen\u002Fsupport","support and licensing",[25,156,158],{"id":157},"integration-by-editor","Integration by editor",[10,160,161],{},"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.",[163,164],"plugin-integration",{"name":5},[25,166,168],{"id":167},"configuration","Configuration",[10,170,171,172,123],{},"These are extension-level defaults. Presets can override them; they are distinct from current document attributes. See ",[69,173,167],{"href":174},"\u002Fen\u002Fplugins\u002Fconfiguration",[176,177,178],"h3",{"id":178},"highlight",[10,180,181],{},"Highlight colors.",[10,183,184,185],{},"Type：",[16,186,187],{},"SearchHighlightStyle",[10,189,190,191],{},"Default：",[16,192,193],{},"{ match: \"rgba(255, 196, 0, 0.35)\", active: \"transparent\", activeOutline: \"#e8710a\" }",[176,195,197],{"id":196},"resolvescope","resolveScope",[10,199,200],{},"Resolves ordered searchable intervals.",[10,202,184,203],{},[16,204,205],{},"((state: EditorState) => readonly SearchScopeSegment[]) | undefined",[10,207,190,208],{},[16,209,210],{},"undefined",[176,212,214],{"id":213},"resolveexcludedscope","resolveExcludedScope",[10,216,217],{},"Resolves intervals deliberately left out of the scope, used only to count\nmatches the user cannot reach so the UI can say so.",[10,219,184,220],{},[16,221,205],{},[10,223,190,224],{},[16,225,210],{},[176,227,229],{"id":228},"checkreplaceable","checkReplaceable",[10,231,232],{},"Decides whether a match may be replaced.",[10,234,184,235],{},[16,236,237],{},"((state: EditorState, match: SearchMatch) => SearchReplaceVerdict) | undefined",[10,239,190,240],{},[16,241,210],{},[176,243,244],{"id":244},"reveal",[10,246,247],{},"Applies host-specific presentation for a newly active match.",[10,249,184,250],{},[16,251,252],{},"((tr: Transaction, match: SearchMatch) => void) | undefined",[10,254,190,255],{},[16,256,210],{},[25,258,260],{"id":259},"commands-and-runtime","Commands and runtime",[10,262,263],{},"These commands are supplied directly by this extension. Availability depends on the installed schema, selection and protection policy; query editor.can() first.",[36,265,266,276],{},[39,267,268],{},[42,269,270,273],{},[45,271,272],{},"Command",[45,274,275],{},"Parameter signature",[55,277,278,290,302,314,326,338,350],{},[42,279,280,285],{},[60,281,282],{},[16,283,284],{},"setSearchQuery",[60,286,287],{},[16,288,289],{},"setSearchQuery(text: string, queryOptions?: Partial\u003CSearchOptions> | undefined, limit?: SearchRange | undefined)",[42,291,292,297],{},[60,293,294],{},[16,295,296],{},"clearSearch",[60,298,299],{},[16,300,301],{},"clearSearch()",[42,303,304,309],{},[60,305,306],{},[16,307,308],{},"findNext",[60,310,311],{},[16,312,313],{},"findNext()",[42,315,316,321],{},[60,317,318],{},[16,319,320],{},"findPrevious",[60,322,323],{},[16,324,325],{},"findPrevious()",[42,327,328,333],{},[60,329,330],{},[16,331,332],{},"selectSearchMatch",[60,334,335],{},[16,336,337],{},"selectSearchMatch(index: number)",[42,339,340,345],{},[60,341,342],{},[16,343,344],{},"replaceSearchMatch",[60,346,347],{},[16,348,349],{},"replaceSearchMatch(text: string)",[42,351,352,357],{},[60,353,354],{},[16,355,356],{},"replaceAllSearchMatches",[60,358,359],{},[16,360,361],{},"replaceAllSearchMatches(text: string)",[10,363,364,365,369],{},"These are parameter signatures. See ",[69,366,368],{"href":367},"\u002Fen\u002Fbuild\u002Fcommands","commands and controls"," to connect UI while retaining one transaction\u002Fhistory authority.",[25,371,373],{"id":372},"next-steps","Next steps",[10,375,376,377,381,382,384],{},"Return to ",[69,378,380],{"href":379},"\u002Fen\u002Fplugins","all plugins",", or read ",[69,383,167],{"href":174}," to distinguish options, attributes and commands.",[10,386,387,388,392,393,397],{},"See ",[69,389,391],{"href":390},"\u002Fen\u002Fbuild\u002Fextension","extension development"," for custom capabilities and ",[69,394,396],{"href":395},"\u002Fen\u002Fbuild","Build a product"," for complete hosting.",[399,400,401],"style",{},"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);}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}",{"title":106,"searchDepth":403,"depth":403,"links":404},2,[405,406,407,408,416,417],{"id":27,"depth":403,"text":28},{"id":98,"depth":403,"text":99},{"id":157,"depth":403,"text":158},{"id":167,"depth":403,"text":168,"children":409},[410,412,413,414,415],{"id":178,"depth":411,"text":178},3,{"id":196,"depth":411,"text":197},{"id":213,"depth":411,"text":214},{"id":228,"depth":411,"text":229},{"id":244,"depth":411,"text":244},{"id":259,"depth":403,"text":260},{"id":372,"depth":403,"text":373},"md",[5,18,420,421,178,197,214,229,244,284,296,308,320,332,344,356,5],"查找与替换","behavior","en",{"navigationTitle":5,"license":23},true,127,"\u002Fen\u002Fplugins\u002Freference\u002Fsearch","Editing behavior",{"title":5,"description":12},"plugins\u002Freference\u002Fsearch.en","RCvRYNoQeKwetZzik6MDBXUvqzUb00tF6kXJxjdRbS0",1793045228560]