@fuma-content/studio 1.0.0 → 1.0.2
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/build/client/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/build/client/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/build/client/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/build/client/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/build/client/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/build/client/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/build/client/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/build/client/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/build/client/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/build/client/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/build/client/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/build/client/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/build/client/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/build/client/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/build/client/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/build/client/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/build/client/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/build/client/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/build/client/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/build/client/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/build/client/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/build/client/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/build/client/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/build/client/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/build/client/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/build/client/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/build/client/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/build/client/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/build/client/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/build/client/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/build/client/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/build/client/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/build/client/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/build/client/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/build/client/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/build/client/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/build/client/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/build/client/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/build/client/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/build/client/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/build/client/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/build/client/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/build/client/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/build/client/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/build/client/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/build/client/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/build/client/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/build/client/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/build/client/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/build/client/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/build/client/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/build/client/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/build/client/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/build/client/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/build/client/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/build/client/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/build/client/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/build/client/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/build/client/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/build/client/assets/QueryClientProvider-DqiXnN2L.js +1 -0
- package/build/client/assets/actions-DkbV2Z0p.js +1 -0
- package/build/client/assets/actions-DpkI7OTF.js +1 -0
- package/build/client/assets/badge-CZkdLoIP.js +1 -0
- package/build/client/assets/button-Bm94vje1.js +41 -0
- package/build/client/assets/client-BWBqEatf.js +1 -0
- package/build/client/assets/client-Crg-pMcu.js +1 -0
- package/build/client/assets/client-DVneG3Rq.css +1 -0
- package/build/client/assets/client-OSVRoCKH.js +569 -0
- package/build/client/assets/dropdown-menu-EF-sTINr.js +1 -0
- package/build/client/assets/entry.rsc-D51PwnQL.js +1 -0
- package/build/client/assets/index-BdrDVoE8.js +1 -0
- package/build/client/assets/index-BpILsqFO.js +1 -0
- package/build/client/assets/index-Bx93mXy1.js +11 -0
- package/build/client/assets/index-CQRgqbuL.js +1 -0
- package/build/client/assets/index-DOs5iMXj.js +1 -0
- package/build/client/assets/index-DTzAH5JX.js +1 -0
- package/build/client/assets/layout-CnpYRqF0.js +1 -0
- package/build/client/assets/mdx-BNErtsK6.js +1 -0
- package/build/client/assets/page-DOzl4Kpa.js +1 -0
- package/build/client/assets/page-uNpJU_rv.js +1 -0
- package/build/client/assets/query-z9oLNeTD.js +1 -0
- package/build/client/assets/react-B8--K7an.js +10 -0
- package/build/client/assets/root-B_CXTQpA.js +1 -0
- package/build/client/assets/root-D3NoAGI1.js +1 -0
- package/build/client/assets/root-z8crlXSh.css +1 -0
- package/build/client/assets/route-DVneG3Rq.css +1 -0
- package/build/client/assets/router-a9jyj9wf.js +10 -0
- package/build/client/assets/separator-tWFpvpUX.js +1 -0
- package/build/client/assets/sidebar-BBYit8gY.js +12 -0
- package/build/client/assets/site-header-DQkKe-WA.js +1 -0
- package/build/client/assets/spinner-BdPhtfsc.js +1 -0
- package/build/client/assets/tooltip-Dvh-iHDG.js +16 -0
- package/build/client/assets/use-sync-ZgcwUdu_.js +9 -0
- package/build/client/assets/yaml-Cloe7OVn.js +32 -0
- package/build/server/__ssr_build/__vite_rsc_assets_manifest.js +268 -0
- package/build/server/__ssr_build/assets/QueryClientProvider-DlvBH3OQ.js +30 -0
- package/build/server/__ssr_build/assets/actions-B50-3n-a.js +63 -0
- package/build/server/__ssr_build/assets/actions-BFtCTvOL.js +21 -0
- package/{src/components/ui/badge.tsx → build/server/__ssr_build/assets/badge-DYFvBSp8.js} +23 -28
- package/build/server/__ssr_build/assets/button-C_-b_vqm.js +4098 -0
- package/build/server/__ssr_build/assets/client--HXec13w.js +130 -0
- package/build/server/__ssr_build/assets/client-BqW9rGyi.js +116885 -0
- package/build/server/__ssr_build/assets/client-CU90j0R8.js +154 -0
- package/build/server/__ssr_build/assets/dropdown-menu-D2YyT3lP.js +1312 -0
- package/build/server/__ssr_build/assets/entry.rsc-Cg_DxYkh.js +12 -0
- package/build/server/__ssr_build/assets/index-B-gno69w.js +58 -0
- package/build/server/__ssr_build/assets/index-DBc0nhEL.js +288 -0
- package/build/server/__ssr_build/assets/index-Dtw6X3NW.js +1092 -0
- package/build/server/__ssr_build/assets/index-DvVNShHF.js +86 -0
- package/build/server/__ssr_build/assets/index-PpqpVA51.js +612 -0
- package/build/server/__ssr_build/assets/layout-CPnSx9PI.js +454 -0
- package/build/server/__ssr_build/assets/mdx-bmeV1kyx.js +44 -0
- package/build/server/__ssr_build/assets/page-BwoghW3K.js +38 -0
- package/build/server/__ssr_build/assets/page-HxttullC.js +89 -0
- package/build/server/__ssr_build/assets/query-C1_xUNXy.js +1975 -0
- package/build/server/__ssr_build/assets/root-CS7F-km4.js +16 -0
- package/build/server/__ssr_build/assets/root-D-Y-rGw5.js +73 -0
- package/build/server/__ssr_build/assets/separator-8UA_ceSq.js +49 -0
- package/build/server/__ssr_build/assets/sidebar-BzNOZeBO.js +13194 -0
- package/build/server/__ssr_build/assets/site-header-CXHKSzqk.js +13 -0
- package/build/server/__ssr_build/assets/spinner-BXcLlTNs.js +1291 -0
- package/build/server/__ssr_build/assets/tooltip-DZ4WdJt-.js +9553 -0
- package/build/server/__ssr_build/assets/use-sync-TRS0zL-Y.js +3404 -0
- package/build/server/__ssr_build/assets/yaml-BEdFfhvc.js +63 -0
- package/build/server/__ssr_build/index.js +36076 -0
- package/build/server/__vite_rsc_assets_manifest.js +268 -0
- package/build/server/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/build/server/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/build/server/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/build/server/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/build/server/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/build/server/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/build/server/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/build/server/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/build/server/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/build/server/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/build/server/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/build/server/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/build/server/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/build/server/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/build/server/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/build/server/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/build/server/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/build/server/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/build/server/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/build/server/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/build/server/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/build/server/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/build/server/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/build/server/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/build/server/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/build/server/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/build/server/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/build/server/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/build/server/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/build/server/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/build/server/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/build/server/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/build/server/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/build/server/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/build/server/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/build/server/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/build/server/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/build/server/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/build/server/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/build/server/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/build/server/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/build/server/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/build/server/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/build/server/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/build/server/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/build/server/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/build/server/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/build/server/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/build/server/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/build/server/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/build/server/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/build/server/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/build/server/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/build/server/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/build/server/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/build/server/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/build/server/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/build/server/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/build/server/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/build/server/assets/actions-C92yn6jE.js +61 -0
- package/build/server/assets/actions-CWWFIcb1.js +46 -0
- package/build/server/assets/actions-DZdN0IBq.js +73 -0
- package/build/server/assets/client-BdxXy6rH.js +13 -0
- package/build/server/assets/client-DLzFPnCR.js +13 -0
- package/build/server/assets/config-Cb909uq6.js +257 -0
- package/build/server/assets/index-X49ifkk3.js +9 -0
- package/build/server/assets/jsx-runtime.react-server-D3We4JeM.js +324 -0
- package/build/server/assets/layout-CRw_6FCt.js +2071 -0
- package/build/server/assets/page-BcrsPZbM.js +9 -0
- package/build/server/assets/page-zlF_Ew1s.js +72 -0
- package/build/server/assets/root-CVOXO6T9.js +23 -0
- package/build/server/assets/root-dGb6ch_9.js +38 -0
- package/build/server/assets/root-z8crlXSh.css +1 -0
- package/build/server/assets/route-DVneG3Rq.css +1 -0
- package/build/server/assets/route-Ds0B4hTo.js +44 -0
- package/build/server/assets/route-DvwlfKZg.js +21 -0
- package/build/server/assets/route-o-6k10r9.js +70774 -0
- package/build/server/index.js +17032 -0
- package/dist/bin/cli.d.mts +1 -0
- package/dist/bin/cli.mjs +71 -0
- package/dist/bin.mjs +14 -40
- package/dist/package.mjs +1 -1
- package/package.json +33 -32
- package/dist/index.d.mts +0 -52
- package/dist/index.mjs +0 -67
- package/dist/mdx/actions.mjs +0 -32
- package/dist/mdx/client.mjs +0 -167
- package/dist/src/components/code-editor/mdx.lazy.mjs +0 -19
- package/dist/src/components/code-editor/mdx.mjs +0 -44
- package/dist/src/components/code-editor/yaml.lazy.mjs +0 -22
- package/dist/src/components/code-editor/yaml.mjs +0 -63
- package/dist/src/components/editor/editor-base-kit.mjs +0 -41
- package/dist/src/components/editor/editor-kit.mjs +0 -73
- package/dist/src/components/editor/md.mjs +0 -42
- package/dist/src/components/editor/plugins/ai-kit.mjs +0 -68
- package/dist/src/components/editor/plugins/align-base-kit.mjs +0 -28
- package/dist/src/components/editor/plugins/align-kit.mjs +0 -30
- package/dist/src/components/editor/plugins/autoformat-kit.mjs +0 -214
- package/dist/src/components/editor/plugins/basic-blocks-base-kit.mjs +0 -22
- package/dist/src/components/editor/plugins/basic-blocks-kit.mjs +0 -51
- package/dist/src/components/editor/plugins/basic-marks-base-kit.mjs +0 -20
- package/dist/src/components/editor/plugins/basic-marks-kit.mjs +0 -28
- package/dist/src/components/editor/plugins/block-menu-kit.mjs +0 -11
- package/dist/src/components/editor/plugins/block-placeholder-kit.mjs +0 -14
- package/dist/src/components/editor/plugins/block-selection-kit.mjs +0 -48
- package/dist/src/components/editor/plugins/callout-base-kit.mjs +0 -8
- package/dist/src/components/editor/plugins/callout-kit.mjs +0 -10
- package/dist/src/components/editor/plugins/code-block-base-kit.mjs +0 -16
- package/dist/src/components/editor/plugins/code-block-kit.mjs +0 -19
- package/dist/src/components/editor/plugins/column-base-kit.mjs +0 -8
- package/dist/src/components/editor/plugins/column-kit.mjs +0 -10
- package/dist/src/components/editor/plugins/comment-base-kit.mjs +0 -8
- package/dist/src/components/editor/plugins/comment-kit.mjs +0 -53
- package/dist/src/components/editor/plugins/copilot-kit.mjs +0 -49
- package/dist/src/components/editor/plugins/cursor-overlay-kit.mjs +0 -11
- package/dist/src/components/editor/plugins/date-base-kit.mjs +0 -8
- package/dist/src/components/editor/plugins/date-kit.mjs +0 -10
- package/dist/src/components/editor/plugins/discussion-kit.mjs +0 -94
- package/dist/src/components/editor/plugins/dnd-kit.mjs +0 -31
- package/dist/src/components/editor/plugins/emoji-kit.mjs +0 -11
- package/dist/src/components/editor/plugins/exit-break-kit.mjs +0 -12
- package/dist/src/components/editor/plugins/fixed-toolbar-kit.mjs +0 -15
- package/dist/src/components/editor/plugins/floating-toolbar-kit.mjs +0 -15
- package/dist/src/components/editor/plugins/font-base-kit.mjs +0 -14
- package/dist/src/components/editor/plugins/font-kit.mjs +0 -19
- package/dist/src/components/editor/plugins/indent-base-kit.mjs +0 -17
- package/dist/src/components/editor/plugins/indent-kit.mjs +0 -20
- package/dist/src/components/editor/plugins/line-height-base-kit.mjs +0 -20
- package/dist/src/components/editor/plugins/line-height-kit.mjs +0 -22
- package/dist/src/components/editor/plugins/link-base-kit.mjs +0 -8
- package/dist/src/components/editor/plugins/link-kit.mjs +0 -15
- package/dist/src/components/editor/plugins/list-base-kit.mjs +0 -19
- package/dist/src/components/editor/plugins/list-kit.mjs +0 -22
- package/dist/src/components/editor/plugins/markdown-kit.mjs +0 -17
- package/dist/src/components/editor/plugins/math-base-kit.mjs +0 -8
- package/dist/src/components/editor/plugins/math-kit.mjs +0 -10
- package/dist/src/components/editor/plugins/media-base-kit.mjs +0 -23
- package/dist/src/components/editor/plugins/media-kit.mjs +0 -37
- package/dist/src/components/editor/plugins/slash-kit.mjs +0 -11
- package/dist/src/components/editor/plugins/suggestion-base-kit.mjs +0 -8
- package/dist/src/components/editor/plugins/suggestion-kit.mjs +0 -50
- package/dist/src/components/editor/plugins/table-base-kit.mjs +0 -13
- package/dist/src/components/editor/plugins/table-kit.mjs +0 -15
- package/dist/src/components/editor/transforms.mjs +0 -125
- package/dist/src/components/editor/ui/ai-chat-editor.mjs +0 -21
- package/dist/src/components/editor/ui/ai-menu.mjs +0 -488
- package/dist/src/components/editor/ui/ai-node.mjs +0 -24
- package/dist/src/components/editor/ui/ai-toolbar-button.mjs +0 -23
- package/dist/src/components/editor/ui/align-toolbar-button.mjs +0 -71
- package/dist/src/components/editor/ui/block-context-menu.mjs +0 -130
- package/dist/src/components/editor/ui/block-discussion.mjs +0 -200
- package/dist/src/components/editor/ui/block-draggable.mjs +0 -265
- package/dist/src/components/editor/ui/block-list-static.mjs +0 -48
- package/dist/src/components/editor/ui/block-list.mjs +0 -47
- package/dist/src/components/editor/ui/block-selection.mjs +0 -28
- package/dist/src/components/editor/ui/block-suggestion.mjs +0 -319
- package/dist/src/components/editor/ui/blockquote-node-static.mjs +0 -14
- package/dist/src/components/editor/ui/blockquote-node.mjs +0 -16
- package/dist/src/components/editor/ui/callout-node-static.mjs +0 -29
- package/dist/src/components/editor/ui/callout-node.mjs +0 -50
- package/dist/src/components/editor/ui/caption.mjs +0 -39
- package/dist/src/components/editor/ui/code-block-node-static.mjs +0 -30
- package/dist/src/components/editor/ui/code-block-node.mjs +0 -121
- package/dist/src/components/editor/ui/code-node-static.mjs +0 -15
- package/dist/src/components/editor/ui/code-node.mjs +0 -17
- package/dist/src/components/editor/ui/column-node-static.mjs +0 -32
- package/dist/src/components/editor/ui/column-node.mjs +0 -229
- package/dist/src/components/editor/ui/comment-node-static.mjs +0 -14
- package/dist/src/components/editor/ui/comment-node.mjs +0 -33
- package/dist/src/components/editor/ui/comment-toolbar-button.mjs +0 -23
- package/dist/src/components/editor/ui/comment.mjs +0 -422
- package/dist/src/components/editor/ui/cursor-overlay.mjs +0 -36
- package/dist/src/components/editor/ui/date-node-static.mjs +0 -32
- package/dist/src/components/editor/ui/date-node.mjs +0 -60
- package/dist/src/components/editor/ui/editor-static.mjs +0 -31
- package/dist/src/components/editor/ui/editor.mjs +0 -60
- package/dist/src/components/editor/ui/emoji-node.mjs +0 -46
- package/dist/src/components/editor/ui/emoji-toolbar-button.mjs +0 -415
- package/dist/src/components/editor/ui/equation-node-static.mjs +0 -65
- package/dist/src/components/editor/ui/equation-node.mjs +0 -159
- package/dist/src/components/editor/ui/equation-toolbar-button.mjs +0 -23
- package/dist/src/components/editor/ui/fixed-toolbar-buttons.mjs +0 -109
- package/dist/src/components/editor/ui/fixed-toolbar.mjs +0 -16
- package/dist/src/components/editor/ui/floating-toolbar-buttons.mjs +0 -54
- package/dist/src/components/editor/ui/floating-toolbar.mjs +0 -51
- package/dist/src/components/editor/ui/font-color-toolbar-button.mjs +0 -637
- package/dist/src/components/editor/ui/font-size-toolbar-button.mjs +0 -83
- package/dist/src/components/editor/ui/ghost-text.mjs +0 -22
- package/dist/src/components/editor/ui/heading-node-static.mjs +0 -60
- package/dist/src/components/editor/ui/heading-node.mjs +0 -62
- package/dist/src/components/editor/ui/highlight-node-static.mjs +0 -15
- package/dist/src/components/editor/ui/highlight-node.mjs +0 -17
- package/dist/src/components/editor/ui/history-toolbar-button.mjs +0 -35
- package/dist/src/components/editor/ui/hr-node-static.mjs +0 -18
- package/dist/src/components/editor/ui/hr-node.mjs +0 -23
- package/dist/src/components/editor/ui/indent-toolbar-button.mjs +0 -29
- package/dist/src/components/editor/ui/inline-combobox.mjs +0 -148
- package/dist/src/components/editor/ui/insert-toolbar-button.mjs +0 -199
- package/dist/src/components/editor/ui/kbd-node-static.mjs +0 -15
- package/dist/src/components/editor/ui/kbd-node.mjs +0 -17
- package/dist/src/components/editor/ui/line-height-toolbar-button.mjs +0 -56
- package/dist/src/components/editor/ui/link-node-static.mjs +0 -20
- package/dist/src/components/editor/ui/link-node.mjs +0 -28
- package/dist/src/components/editor/ui/link-toolbar-button.mjs +0 -21
- package/dist/src/components/editor/ui/link-toolbar.mjs +0 -141
- package/dist/src/components/editor/ui/list-toolbar-button.mjs +0 -131
- package/dist/src/components/editor/ui/mark-toolbar-button.mjs +0 -20
- package/dist/src/components/editor/ui/media-image-node-static.mjs +0 -32
- package/dist/src/components/editor/ui/media-image-node.mjs +0 -64
- package/dist/src/components/editor/ui/media-placeholder-node.mjs +0 -184
- package/dist/src/components/editor/ui/media-preview-dialog.mjs +0 -113
- package/dist/src/components/editor/ui/media-toolbar-button.mjs +0 -156
- package/dist/src/components/editor/ui/media-toolbar.mjs +0 -80
- package/dist/src/components/editor/ui/media-upload-toast.mjs +0 -39
- package/dist/src/components/editor/ui/media-video-node-static.mjs +0 -27
- package/dist/src/components/editor/ui/mode-toolbar-button.mjs +0 -112
- package/dist/src/components/editor/ui/paragraph-node-static.mjs +0 -15
- package/dist/src/components/editor/ui/paragraph-node.mjs +0 -17
- package/dist/src/components/editor/ui/resize-handle.mjs +0 -43
- package/dist/src/components/editor/ui/slash-node.mjs +0 -228
- package/dist/src/components/editor/ui/suggestion-node-static.mjs +0 -24
- package/dist/src/components/editor/ui/suggestion-node.mjs +0 -111
- package/dist/src/components/editor/ui/suggestion-toolbar-button.mjs +0 -24
- package/dist/src/components/editor/ui/table-icons.mjs +0 -1310
- package/dist/src/components/editor/ui/table-node-static.mjs +0 -68
- package/dist/src/components/editor/ui/table-node.mjs +0 -375
- package/dist/src/components/editor/ui/table-toolbar-button.mjs +0 -190
- package/dist/src/components/editor/ui/turn-into-toolbar-button.mjs +0 -168
- package/dist/src/components/editor/use-chat.mjs +0 -80
- package/dist/src/components/json-schema-editor/client.mjs +0 -46
- package/dist/src/components/json-schema-editor/components/inputs.mjs +0 -438
- package/dist/src/components/json-schema-editor/get-default-values.mjs +0 -23
- package/dist/src/components/json-schema-editor/schema.mjs +0 -131
- package/dist/src/components/json-schema-editor/utils/merge-schema.mjs +0 -134
- package/dist/src/components/json-schema-editor/utils/schema-to-string.mjs +0 -53
- package/dist/src/components/ui/alert-dialog.mjs +0 -90
- package/dist/src/components/ui/avatar.mjs +0 -32
- package/dist/src/components/ui/button.mjs +0 -48
- package/dist/src/components/ui/calendar.mjs +0 -108
- package/dist/src/components/ui/checkbox.mjs +0 -23
- package/dist/src/components/ui/combobox.mjs +0 -53
- package/dist/src/components/ui/command.mjs +0 -42
- package/dist/src/components/ui/context-menu.mjs +0 -67
- package/dist/src/components/ui/dialog.mjs +0 -9
- package/dist/src/components/ui/dropdown-menu.mjs +0 -122
- package/dist/src/components/ui/input-group.mjs +0 -31
- package/dist/src/components/ui/input.mjs +0 -15
- package/dist/src/components/ui/label.mjs +0 -19
- package/dist/src/components/ui/popover.mjs +0 -37
- package/dist/src/components/ui/select.mjs +0 -80
- package/dist/src/components/ui/separator.mjs +0 -19
- package/dist/src/components/ui/spinner.mjs +0 -16
- package/dist/src/components/ui/tabs.mjs +0 -39
- package/dist/src/components/ui/textarea.mjs +0 -14
- package/dist/src/components/ui/toolbar.mjs +0 -183
- package/dist/src/components/ui/tooltip.mjs +0 -38
- package/dist/src/hooks/editor/use-is-creator.mjs +0 -19
- package/dist/src/hooks/use-upload-file.mjs +0 -73
- package/dist/src/lib/config.mjs +0 -34
- package/dist/src/lib/data/store.d.mts +0 -15
- package/dist/src/lib/lowlight.mjs +0 -7
- package/dist/src/lib/utils/deep-equal.mjs +0 -18
- package/dist/src/lib/utils/remove-undefined.mjs +0 -18
- package/dist/src/lib/utils.mjs +0 -10
- package/next.config.ts +0 -23
- package/postcss.config.mjs +0 -7
- package/src/app/(dashboard)/collection/[name]/[...slug]/page.client.tsx +0 -26
- package/src/app/(dashboard)/collection/[name]/[...slug]/page.tsx +0 -18
- package/src/app/(dashboard)/collection/[name]/page.client.tsx +0 -82
- package/src/app/(dashboard)/collection/[name]/page.tsx +0 -11
- package/src/app/(dashboard)/layout.tsx +0 -34
- package/src/app/(dashboard)/page.tsx +0 -38
- package/src/app/api/ai/command/prompts.ts +0 -313
- package/src/app/api/ai/command/route.ts +0 -203
- package/src/app/api/ai/command/utils.ts +0 -242
- package/src/app/api/ai/copilot/route.ts +0 -33
- package/src/app/api/uploadthing/route.ts +0 -5
- package/src/app/codeblock/LICENSE +0 -21
- package/src/app/codeblock/styles.css +0 -289
- package/src/app/favicon.ico +0 -0
- package/src/app/globals.css +0 -223
- package/src/app/layout.client.tsx +0 -15
- package/src/app/layout.tsx +0 -30
- package/src/components/app-sidebar.tsx +0 -162
- package/src/components/code-editor/mdx.lazy.tsx +0 -18
- package/src/components/code-editor/mdx.tsx +0 -48
- package/src/components/code-editor/yaml.lazy.tsx +0 -20
- package/src/components/code-editor/yaml.tsx +0 -71
- package/src/components/collection/actions.tsx +0 -41
- package/src/components/collection/client.tsx +0 -63
- package/src/components/collection/context.tsx +0 -24
- package/src/components/collection/document/actions.tsx +0 -83
- package/src/components/editor/editor-base-kit.tsx +0 -37
- package/src/components/editor/editor-kit.tsx +0 -87
- package/src/components/editor/md.tsx +0 -60
- package/src/components/editor/plugins/ai-kit.tsx +0 -102
- package/src/components/editor/plugins/align-base-kit.tsx +0 -16
- package/src/components/editor/plugins/align-kit.tsx +0 -18
- package/src/components/editor/plugins/autoformat-kit.tsx +0 -236
- package/src/components/editor/plugins/basic-blocks-base-kit.tsx +0 -34
- package/src/components/editor/plugins/basic-blocks-kit.tsx +0 -87
- package/src/components/editor/plugins/basic-marks-base-kit.tsx +0 -26
- package/src/components/editor/plugins/basic-marks-kit.tsx +0 -40
- package/src/components/editor/plugins/basic-nodes-kit.tsx +0 -6
- package/src/components/editor/plugins/block-menu-kit.tsx +0 -14
- package/src/components/editor/plugins/block-placeholder-kit.tsx +0 -17
- package/src/components/editor/plugins/block-selection-kit.tsx +0 -54
- package/src/components/editor/plugins/callout-base-kit.tsx +0 -5
- package/src/components/editor/plugins/callout-kit.tsx +0 -7
- package/src/components/editor/plugins/code-block-base-kit.tsx +0 -16
- package/src/components/editor/plugins/code-block-kit.tsx +0 -19
- package/src/components/editor/plugins/column-base-kit.tsx +0 -11
- package/src/components/editor/plugins/column-kit.tsx +0 -10
- package/src/components/editor/plugins/comment-base-kit.tsx +0 -5
- package/src/components/editor/plugins/comment-kit.tsx +0 -92
- package/src/components/editor/plugins/copilot-kit.tsx +0 -70
- package/src/components/editor/plugins/cursor-overlay-kit.tsx +0 -13
- package/src/components/editor/plugins/date-base-kit.tsx +0 -5
- package/src/components/editor/plugins/date-kit.tsx +0 -7
- package/src/components/editor/plugins/discussion-kit.tsx +0 -142
- package/src/components/editor/plugins/dnd-kit.tsx +0 -25
- package/src/components/editor/plugins/emoji-kit.tsx +0 -13
- package/src/components/editor/plugins/exit-break-kit.tsx +0 -12
- package/src/components/editor/plugins/fixed-toolbar-kit.tsx +0 -19
- package/src/components/editor/plugins/floating-toolbar-kit.tsx +0 -19
- package/src/components/editor/plugins/font-base-kit.tsx +0 -20
- package/src/components/editor/plugins/font-kit.tsx +0 -29
- package/src/components/editor/plugins/indent-base-kit.tsx +0 -13
- package/src/components/editor/plugins/indent-kit.tsx +0 -22
- package/src/components/editor/plugins/line-height-base-kit.tsx +0 -14
- package/src/components/editor/plugins/line-height-kit.tsx +0 -16
- package/src/components/editor/plugins/link-base-kit.tsx +0 -5
- package/src/components/editor/plugins/link-kit.tsx +0 -15
- package/src/components/editor/plugins/list-base-kit.tsx +0 -17
- package/src/components/editor/plugins/list-kit.tsx +0 -26
- package/src/components/editor/plugins/markdown-kit.tsx +0 -13
- package/src/components/editor/plugins/math-base-kit.tsx +0 -11
- package/src/components/editor/plugins/math-kit.tsx +0 -10
- package/src/components/editor/plugins/media-base-kit.tsx +0 -25
- package/src/components/editor/plugins/media-kit.tsx +0 -28
- package/src/components/editor/plugins/slash-kit.tsx +0 -18
- package/src/components/editor/plugins/suggestion-base-kit.tsx +0 -5
- package/src/components/editor/plugins/suggestion-kit.tsx +0 -83
- package/src/components/editor/plugins/table-base-kit.tsx +0 -20
- package/src/components/editor/plugins/table-kit.tsx +0 -22
- package/src/components/editor/settings-dialog.tsx +0 -418
- package/src/components/editor/transforms.ts +0 -193
- package/src/components/editor/types.ts +0 -149
- package/src/components/editor/ui/ai-chat-editor.tsx +0 -20
- package/src/components/editor/ui/ai-menu.tsx +0 -663
- package/src/components/editor/ui/ai-node.tsx +0 -40
- package/src/components/editor/ui/ai-toolbar-button.tsx +0 -23
- package/src/components/editor/ui/align-toolbar-button.tsx +0 -78
- package/src/components/editor/ui/block-context-menu.tsx +0 -154
- package/src/components/editor/ui/block-discussion.tsx +0 -318
- package/src/components/editor/ui/block-draggable.tsx +0 -464
- package/src/components/editor/ui/block-list-static.tsx +0 -75
- package/src/components/editor/ui/block-list.tsx +0 -72
- package/src/components/editor/ui/block-selection.tsx +0 -37
- package/src/components/editor/ui/block-suggestion.tsx +0 -438
- package/src/components/editor/ui/blockquote-node-static.tsx +0 -5
- package/src/components/editor/ui/blockquote-node.tsx +0 -7
- package/src/components/editor/ui/callout-node-static.tsx +0 -30
- package/src/components/editor/ui/callout-node.tsx +0 -64
- package/src/components/editor/ui/caption.tsx +0 -55
- package/src/components/editor/ui/code-block-node-static.tsx +0 -33
- package/src/components/editor/ui/code-block-node.tsx +0 -161
- package/src/components/editor/ui/code-node-static.tsx +0 -15
- package/src/components/editor/ui/code-node.tsx +0 -17
- package/src/components/editor/ui/column-node-static.tsx +0 -27
- package/src/components/editor/ui/column-node.tsx +0 -285
- package/src/components/editor/ui/comment-node-static.tsx +0 -12
- package/src/components/editor/ui/comment-node.tsx +0 -43
- package/src/components/editor/ui/comment-toolbar-button.tsx +0 -24
- package/src/components/editor/ui/comment.tsx +0 -577
- package/src/components/editor/ui/cursor-overlay.tsx +0 -66
- package/src/components/editor/ui/date-node-static.tsx +0 -45
- package/src/components/editor/ui/date-node.tsx +0 -86
- package/src/components/editor/ui/editor-static.tsx +0 -47
- package/src/components/editor/ui/editor.tsx +0 -120
- package/src/components/editor/ui/emoji-node.tsx +0 -65
- package/src/components/editor/ui/emoji-toolbar-button.tsx +0 -582
- package/src/components/editor/ui/equation-node-static.tsx +0 -94
- package/src/components/editor/ui/equation-node.tsx +0 -218
- package/src/components/editor/ui/equation-toolbar-button.tsx +0 -24
- package/src/components/editor/ui/fixed-toolbar-buttons.tsx +0 -135
- package/src/components/editor/ui/fixed-toolbar.tsx +0 -17
- package/src/components/editor/ui/floating-toolbar-buttons.tsx +0 -72
- package/src/components/editor/ui/floating-toolbar.tsx +0 -76
- package/src/components/editor/ui/font-color-toolbar-button.tsx +0 -804
- package/src/components/editor/ui/font-size-toolbar-button.tsx +0 -102
- package/src/components/editor/ui/ghost-text.tsx +0 -27
- package/src/components/editor/ui/heading-node-static.tsx +0 -54
- package/src/components/editor/ui/heading-node.tsx +0 -54
- package/src/components/editor/ui/highlight-node-static.tsx +0 -11
- package/src/components/editor/ui/highlight-node.tsx +0 -13
- package/src/components/editor/ui/history-toolbar-button.tsx +0 -41
- package/src/components/editor/ui/hr-node-static.tsx +0 -16
- package/src/components/editor/ui/hr-node.tsx +0 -28
- package/src/components/editor/ui/indent-toolbar-button.tsx +0 -27
- package/src/components/editor/ui/inline-combobox.tsx +0 -251
- package/src/components/editor/ui/insert-toolbar-button.tsx +0 -242
- package/src/components/editor/ui/kbd-node-static.tsx +0 -15
- package/src/components/editor/ui/kbd-node.tsx +0 -17
- package/src/components/editor/ui/line-height-toolbar-button.tsx +0 -66
- package/src/components/editor/ui/link-node-static.tsx +0 -21
- package/src/components/editor/ui/link-node.tsx +0 -37
- package/src/components/editor/ui/link-toolbar-button.tsx +0 -18
- package/src/components/editor/ui/link-toolbar.tsx +0 -196
- package/src/components/editor/ui/list-toolbar-button.tsx +0 -195
- package/src/components/editor/ui/mark-toolbar-button.tsx +0 -20
- package/src/components/editor/ui/media-image-node-static.tsx +0 -33
- package/src/components/editor/ui/media-image-node.tsx +0 -75
- package/src/components/editor/ui/media-placeholder-node.tsx +0 -235
- package/src/components/editor/ui/media-preview-dialog.tsx +0 -145
- package/src/components/editor/ui/media-toolbar-button.tsx +0 -202
- package/src/components/editor/ui/media-toolbar.tsx +0 -100
- package/src/components/editor/ui/media-upload-toast.tsx +0 -59
- package/src/components/editor/ui/media-video-node-static.tsx +0 -23
- package/src/components/editor/ui/mode-toolbar-button.tsx +0 -121
- package/src/components/editor/ui/paragraph-node-static.tsx +0 -13
- package/src/components/editor/ui/paragraph-node.tsx +0 -15
- package/src/components/editor/ui/resize-handle.tsx +0 -79
- package/src/components/editor/ui/slash-node.tsx +0 -274
- package/src/components/editor/ui/suggestion-node-static.tsx +0 -30
- package/src/components/editor/ui/suggestion-node.tsx +0 -157
- package/src/components/editor/ui/suggestion-toolbar-button.tsx +0 -25
- package/src/components/editor/ui/table-icons.tsx +0 -685
- package/src/components/editor/ui/table-node-static.tsx +0 -86
- package/src/components/editor/ui/table-node.tsx +0 -569
- package/src/components/editor/ui/table-toolbar-button.tsx +0 -260
- package/src/components/editor/ui/turn-into-toolbar-button.tsx +0 -176
- package/src/components/editor/use-chat.ts +0 -120
- package/src/components/icons/logo.tsx +0 -37
- package/src/components/json-schema-editor/client.tsx +0 -55
- package/src/components/json-schema-editor/components/inputs.tsx +0 -612
- package/src/components/json-schema-editor/get-default-values.ts +0 -29
- package/src/components/json-schema-editor/schema.tsx +0 -206
- package/src/components/json-schema-editor/utils/merge-schema.ts +0 -167
- package/src/components/json-schema-editor/utils/schema-to-string.ts +0 -87
- package/src/components/nav-user.tsx +0 -102
- package/src/components/site-header.tsx +0 -13
- package/src/components/ui/alert-dialog.tsx +0 -182
- package/src/components/ui/avatar.tsx +0 -96
- package/src/components/ui/button.tsx +0 -65
- package/src/components/ui/calendar.tsx +0 -186
- package/src/components/ui/checkbox.tsx +0 -29
- package/src/components/ui/combobox.tsx +0 -267
- package/src/components/ui/command.tsx +0 -180
- package/src/components/ui/context-menu.tsx +0 -161
- package/src/components/ui/dialog.tsx +0 -142
- package/src/components/ui/drawer.tsx +0 -120
- package/src/components/ui/dropdown-menu.tsx +0 -239
- package/src/components/ui/field.tsx +0 -224
- package/src/components/ui/input-group.tsx +0 -144
- package/src/components/ui/input.tsx +0 -19
- package/src/components/ui/label.tsx +0 -18
- package/src/components/ui/popover.tsx +0 -76
- package/src/components/ui/select.tsx +0 -182
- package/src/components/ui/separator.tsx +0 -28
- package/src/components/ui/sheet.tsx +0 -130
- package/src/components/ui/sidebar.tsx +0 -608
- package/src/components/ui/sonner.tsx +0 -45
- package/src/components/ui/spinner.tsx +0 -15
- package/src/components/ui/table.tsx +0 -89
- package/src/components/ui/tabs.tsx +0 -60
- package/src/components/ui/textarea.tsx +0 -18
- package/src/components/ui/toggle-group.tsx +0 -86
- package/src/components/ui/toggle.tsx +0 -45
- package/src/components/ui/toolbar.tsx +0 -365
- package/src/components/ui/tooltip.tsx +0 -57
- package/src/hooks/editor/use-is-creator.ts +0 -21
- package/src/hooks/use-mobile.ts +0 -19
- package/src/hooks/use-mounted.ts +0 -11
- package/src/hooks/use-upload-file.ts +0 -121
- package/src/lib/ai/markdown-joiner-transform.ts +0 -235
- package/src/lib/config.ts +0 -42
- package/src/lib/data/actions.ts +0 -46
- package/src/lib/data/boundary.client.tsx +0 -22
- package/src/lib/data/boundary.tsx +0 -22
- package/src/lib/data/query.ts +0 -9
- package/src/lib/data/store.ts +0 -52
- package/src/lib/lowlight.ts +0 -3
- package/src/lib/uploadthing.ts +0 -19
- package/src/lib/utils/deep-equal.ts +0 -37
- package/src/lib/utils/remove-undefined.ts +0 -21
- package/src/lib/utils/urls.ts +0 -6
- package/src/lib/utils.ts +0 -6
- package/tsconfig.build.json +0 -24
- package/tsconfig.json +0 -37
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { defineCollectionHook } from "fuma-content/collections";
|
|
2
|
+
import { MDXCollection } from "fuma-content/collections/mdx";
|
|
3
|
+
import { j as jsxRuntime_reactServerExports } from "./jsx-runtime.react-server-D3We4JeM.js";
|
|
4
|
+
import fs from "node:fs/promises";
|
|
5
|
+
import minpath from "node:path";
|
|
6
|
+
import grayMatter from "gray-matter";
|
|
7
|
+
import { getJSONSchema, Core } from "fuma-content";
|
|
8
|
+
import { DataCollection } from "fuma-content/collections/data";
|
|
9
|
+
import { load, dump } from "js-yaml";
|
|
10
|
+
import { createDynamicCore } from "fuma-content/dynamic";
|
|
11
|
+
function fileDocument(collection, fullPath, name) {
|
|
12
|
+
const relativePath = minpath.relative(collection.dir, fullPath);
|
|
13
|
+
return {
|
|
14
|
+
id: encodeId(relativePath),
|
|
15
|
+
isFile: true,
|
|
16
|
+
filePath: fullPath,
|
|
17
|
+
name: name ?? relativePath,
|
|
18
|
+
toItem({ collectionId }) {
|
|
19
|
+
return {
|
|
20
|
+
id: this.id,
|
|
21
|
+
name: this.name,
|
|
22
|
+
permissions: {
|
|
23
|
+
delete: collection.pluginHook(studioHook).actions?.deleteDocument !== void 0
|
|
24
|
+
},
|
|
25
|
+
collectionId
|
|
26
|
+
};
|
|
27
|
+
},
|
|
28
|
+
async read() {
|
|
29
|
+
try {
|
|
30
|
+
return (await fs.readFile(this.filePath)).toString();
|
|
31
|
+
} catch {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
async write(content) {
|
|
36
|
+
await fs.writeFile(this.filePath, content);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function encodeId(file) {
|
|
41
|
+
return file.replaceAll("/", "--");
|
|
42
|
+
}
|
|
43
|
+
async function createFileDocument(collection, name, content) {
|
|
44
|
+
const filePath = minpath.join(collection.dir, name);
|
|
45
|
+
if (!collection.hasFile(filePath)) {
|
|
46
|
+
throw new Error(`invalid collection name: ${name}`);
|
|
47
|
+
}
|
|
48
|
+
const exists = await fs.access(filePath, fs.constants.R_OK).then(() => true).catch(() => false);
|
|
49
|
+
if (exists) {
|
|
50
|
+
throw new Error(`document ${name} already exists`);
|
|
51
|
+
}
|
|
52
|
+
await fs.mkdir(minpath.dirname(filePath), { recursive: true });
|
|
53
|
+
await fs.writeFile(filePath, content);
|
|
54
|
+
const relativePath = minpath.relative(collection.dir, filePath);
|
|
55
|
+
return {
|
|
56
|
+
id: encodeId(relativePath),
|
|
57
|
+
fullPath: filePath,
|
|
58
|
+
relativePath
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function isMDXDocument(doc) {
|
|
62
|
+
return "isMDX" in doc && doc.isMDX === true;
|
|
63
|
+
}
|
|
64
|
+
function mdxDocument(collection, file, name) {
|
|
65
|
+
return {
|
|
66
|
+
isMDX: true,
|
|
67
|
+
...fileDocument(collection, file, name)
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function mdxHook(collection) {
|
|
71
|
+
return {
|
|
72
|
+
async getDocuments() {
|
|
73
|
+
collection.invalidateCache();
|
|
74
|
+
const files = await collection.getFiles();
|
|
75
|
+
return files.map((file) => {
|
|
76
|
+
return mdxDocument(collection, minpath.join(collection.dir, file));
|
|
77
|
+
});
|
|
78
|
+
},
|
|
79
|
+
async getDocument(id) {
|
|
80
|
+
const docs = await this.getDocuments();
|
|
81
|
+
return docs.find((doc) => doc.id === id);
|
|
82
|
+
},
|
|
83
|
+
pages: {
|
|
84
|
+
async edit({ document }) {
|
|
85
|
+
const { MDXDocUpdateEditor } = await import("./client-DLzFPnCR.js");
|
|
86
|
+
const parsed = grayMatter(await document.read() ?? "");
|
|
87
|
+
const jsonSchema = collection.frontmatterSchema ? JSON.parse(JSON.stringify(getJSONSchema(collection.frontmatterSchema))) : void 0;
|
|
88
|
+
return /* @__PURE__ */ jsxRuntime_reactServerExports.jsx(
|
|
89
|
+
MDXDocUpdateEditor,
|
|
90
|
+
{
|
|
91
|
+
documentId: document.id,
|
|
92
|
+
collectionId: collection.name,
|
|
93
|
+
jsonSchema,
|
|
94
|
+
frontmatter: parsed.data,
|
|
95
|
+
content: parsed.content
|
|
96
|
+
},
|
|
97
|
+
document.id
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
toItem() {
|
|
102
|
+
return { id: collection.name, name: collection.name, supportStudio: true, badge: "MDX" };
|
|
103
|
+
},
|
|
104
|
+
async client() {
|
|
105
|
+
const { clientContext } = await import("./client-DLzFPnCR.js");
|
|
106
|
+
return clientContext;
|
|
107
|
+
},
|
|
108
|
+
actions: {
|
|
109
|
+
async deleteDocument(options) {
|
|
110
|
+
try {
|
|
111
|
+
await fs.rm(options.document.filePath);
|
|
112
|
+
} catch {
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
function isDataDocument(doc) {
|
|
119
|
+
return "isData" in doc && doc.isData === true;
|
|
120
|
+
}
|
|
121
|
+
const encoderDecoders = {
|
|
122
|
+
json: {
|
|
123
|
+
encode(data) {
|
|
124
|
+
return JSON.stringify(data, null, 2);
|
|
125
|
+
},
|
|
126
|
+
decode(content) {
|
|
127
|
+
return JSON.parse(content);
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
yaml: {
|
|
131
|
+
encode(data) {
|
|
132
|
+
return dump(data);
|
|
133
|
+
},
|
|
134
|
+
decode(content) {
|
|
135
|
+
return load(content);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
function getEncoderDecoder(format) {
|
|
140
|
+
return encoderDecoders[format] ?? encoderDecoders.json;
|
|
141
|
+
}
|
|
142
|
+
function dataDocument(collection, file, name) {
|
|
143
|
+
return {
|
|
144
|
+
isData: true,
|
|
145
|
+
...getEncoderDecoder(minpath.extname(file).slice(1)),
|
|
146
|
+
...fileDocument(collection, file, name)
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
function dataHook(collection) {
|
|
150
|
+
return {
|
|
151
|
+
async getDocuments() {
|
|
152
|
+
collection.invalidateCache();
|
|
153
|
+
const files = await collection.getFiles();
|
|
154
|
+
return files.map((file) => {
|
|
155
|
+
return dataDocument(collection, minpath.join(collection.dir, file));
|
|
156
|
+
});
|
|
157
|
+
},
|
|
158
|
+
async getDocument(id) {
|
|
159
|
+
const docs = await this.getDocuments();
|
|
160
|
+
return docs.find((doc) => doc.id === id);
|
|
161
|
+
},
|
|
162
|
+
toItem() {
|
|
163
|
+
return {
|
|
164
|
+
id: collection.name,
|
|
165
|
+
name: collection.name,
|
|
166
|
+
supportStudio: true,
|
|
167
|
+
badge: "Data",
|
|
168
|
+
_data: {
|
|
169
|
+
formats: collection.supportedFileFormats ?? ["json", "yaml"]
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
},
|
|
173
|
+
pages: {
|
|
174
|
+
async edit({ document }) {
|
|
175
|
+
const { DataDocEdit } = await import("./client-BdxXy6rH.js");
|
|
176
|
+
const content = await document.read() ?? "";
|
|
177
|
+
const jsonSchema = collection.schema ? JSON.parse(JSON.stringify(getJSONSchema(collection.schema))) : void 0;
|
|
178
|
+
return /* @__PURE__ */ jsxRuntime_reactServerExports.jsx(
|
|
179
|
+
DataDocEdit,
|
|
180
|
+
{
|
|
181
|
+
documentId: document.id,
|
|
182
|
+
collectionId: collection.name,
|
|
183
|
+
jsonSchema,
|
|
184
|
+
data: await document.decode(content)
|
|
185
|
+
},
|
|
186
|
+
document.id
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
async client() {
|
|
191
|
+
const { clientContext } = await import("./client-BdxXy6rH.js");
|
|
192
|
+
return clientContext;
|
|
193
|
+
},
|
|
194
|
+
actions: {
|
|
195
|
+
async deleteDocument(options) {
|
|
196
|
+
try {
|
|
197
|
+
await fs.rm(options.document.filePath);
|
|
198
|
+
} catch {
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
const studioHook = defineCollectionHook(
|
|
205
|
+
(collection, options) => {
|
|
206
|
+
if (options) return options;
|
|
207
|
+
if (collection instanceof MDXCollection) return mdxHook(collection);
|
|
208
|
+
if (collection instanceof DataCollection) return dataHook(collection);
|
|
209
|
+
return {
|
|
210
|
+
disabled: true,
|
|
211
|
+
getDocuments() {
|
|
212
|
+
return [];
|
|
213
|
+
},
|
|
214
|
+
getDocument() {
|
|
215
|
+
return void 0;
|
|
216
|
+
},
|
|
217
|
+
toItem() {
|
|
218
|
+
return {
|
|
219
|
+
id: collection.name,
|
|
220
|
+
name: collection.name,
|
|
221
|
+
supportStudio: false,
|
|
222
|
+
badge: collection.constructor.name
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
);
|
|
228
|
+
const dynamic = createDynamicCore({
|
|
229
|
+
core: new Core({
|
|
230
|
+
outDir: process.env.STUDIO_DIST,
|
|
231
|
+
configPath: process.env.STUDIO_CONFIG,
|
|
232
|
+
cwd: process.env.STUDIO_PARENT_DIR
|
|
233
|
+
}),
|
|
234
|
+
mode: "production",
|
|
235
|
+
compileMode: true
|
|
236
|
+
});
|
|
237
|
+
async function getCore() {
|
|
238
|
+
return dynamic.getCore();
|
|
239
|
+
}
|
|
240
|
+
async function requireDocument(collectionId, documentId) {
|
|
241
|
+
const core = await getCore();
|
|
242
|
+
const collection = core.getCollection(collectionId);
|
|
243
|
+
if (!collection) throw new Error(`Missing Collection ${collectionId}`);
|
|
244
|
+
const document = await collection.pluginHook(studioHook).getDocument(documentId);
|
|
245
|
+
if (!document) throw new Error(`Missing Document ${documentId}`);
|
|
246
|
+
return { collection, document };
|
|
247
|
+
}
|
|
248
|
+
export {
|
|
249
|
+
getEncoderDecoder as a,
|
|
250
|
+
isDataDocument as b,
|
|
251
|
+
createFileDocument as c,
|
|
252
|
+
encoderDecoders as e,
|
|
253
|
+
getCore as g,
|
|
254
|
+
isMDXDocument as i,
|
|
255
|
+
requireDocument as r,
|
|
256
|
+
studioHook as s
|
|
257
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { r as registerClientReference } from "../index.js";
|
|
2
|
+
import "node:async_hooks";
|
|
3
|
+
import "../__vite_rsc_assets_manifest.js";
|
|
4
|
+
const index = /* @__PURE__ */ registerClientReference(() => {
|
|
5
|
+
throw new Error("Unexpectedly client reference export 'default' is called on server");
|
|
6
|
+
}, "13fa49d3f75d", "default");
|
|
7
|
+
export {
|
|
8
|
+
index as default
|
|
9
|
+
};
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
import { a as requireReact_reactServer } from "../index.js";
|
|
2
|
+
var jsxRuntime_reactServer = { exports: {} };
|
|
3
|
+
var reactJsxRuntime_reactServer_production = {};
|
|
4
|
+
var hasRequiredReactJsxRuntime_reactServer_production;
|
|
5
|
+
function requireReactJsxRuntime_reactServer_production() {
|
|
6
|
+
if (hasRequiredReactJsxRuntime_reactServer_production) return reactJsxRuntime_reactServer_production;
|
|
7
|
+
hasRequiredReactJsxRuntime_reactServer_production = 1;
|
|
8
|
+
var React = requireReact_reactServer(), REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
9
|
+
if (!React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)
|
|
10
|
+
throw Error(
|
|
11
|
+
'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
|
|
12
|
+
);
|
|
13
|
+
function jsxProd(type, config, maybeKey) {
|
|
14
|
+
var key = null;
|
|
15
|
+
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
16
|
+
void 0 !== config.key && (key = "" + config.key);
|
|
17
|
+
if ("key" in config) {
|
|
18
|
+
maybeKey = {};
|
|
19
|
+
for (var propName in config)
|
|
20
|
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
21
|
+
} else maybeKey = config;
|
|
22
|
+
config = maybeKey.ref;
|
|
23
|
+
return {
|
|
24
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
25
|
+
type,
|
|
26
|
+
key,
|
|
27
|
+
ref: void 0 !== config ? config : null,
|
|
28
|
+
props: maybeKey
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
reactJsxRuntime_reactServer_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
32
|
+
reactJsxRuntime_reactServer_production.jsx = jsxProd;
|
|
33
|
+
reactJsxRuntime_reactServer_production.jsxDEV = void 0;
|
|
34
|
+
reactJsxRuntime_reactServer_production.jsxs = jsxProd;
|
|
35
|
+
return reactJsxRuntime_reactServer_production;
|
|
36
|
+
}
|
|
37
|
+
var reactJsxRuntime_reactServer_development = {};
|
|
38
|
+
var hasRequiredReactJsxRuntime_reactServer_development;
|
|
39
|
+
function requireReactJsxRuntime_reactServer_development() {
|
|
40
|
+
if (hasRequiredReactJsxRuntime_reactServer_development) return reactJsxRuntime_reactServer_development;
|
|
41
|
+
hasRequiredReactJsxRuntime_reactServer_development = 1;
|
|
42
|
+
"production" !== process.env.NODE_ENV && (function() {
|
|
43
|
+
function getComponentNameFromType(type) {
|
|
44
|
+
if (null == type) return null;
|
|
45
|
+
if ("function" === typeof type)
|
|
46
|
+
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
47
|
+
if ("string" === typeof type) return type;
|
|
48
|
+
switch (type) {
|
|
49
|
+
case REACT_FRAGMENT_TYPE:
|
|
50
|
+
return "Fragment";
|
|
51
|
+
case REACT_PROFILER_TYPE:
|
|
52
|
+
return "Profiler";
|
|
53
|
+
case REACT_STRICT_MODE_TYPE:
|
|
54
|
+
return "StrictMode";
|
|
55
|
+
case REACT_SUSPENSE_TYPE:
|
|
56
|
+
return "Suspense";
|
|
57
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
58
|
+
return "SuspenseList";
|
|
59
|
+
case REACT_ACTIVITY_TYPE:
|
|
60
|
+
return "Activity";
|
|
61
|
+
}
|
|
62
|
+
if ("object" === typeof type)
|
|
63
|
+
switch ("number" === typeof type.tag && console.error(
|
|
64
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
65
|
+
), type.$$typeof) {
|
|
66
|
+
case REACT_PORTAL_TYPE:
|
|
67
|
+
return "Portal";
|
|
68
|
+
case REACT_CONTEXT_TYPE:
|
|
69
|
+
return type.displayName || "Context";
|
|
70
|
+
case REACT_CONSUMER_TYPE:
|
|
71
|
+
return (type._context.displayName || "Context") + ".Consumer";
|
|
72
|
+
case REACT_FORWARD_REF_TYPE:
|
|
73
|
+
var innerType = type.render;
|
|
74
|
+
type = type.displayName;
|
|
75
|
+
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
76
|
+
return type;
|
|
77
|
+
case REACT_MEMO_TYPE:
|
|
78
|
+
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
79
|
+
case REACT_LAZY_TYPE:
|
|
80
|
+
innerType = type._payload;
|
|
81
|
+
type = type._init;
|
|
82
|
+
try {
|
|
83
|
+
return getComponentNameFromType(type(innerType));
|
|
84
|
+
} catch (x) {
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return null;
|
|
88
|
+
}
|
|
89
|
+
function testStringCoercion(value) {
|
|
90
|
+
return "" + value;
|
|
91
|
+
}
|
|
92
|
+
function checkKeyStringCoercion(value) {
|
|
93
|
+
try {
|
|
94
|
+
testStringCoercion(value);
|
|
95
|
+
var JSCompiler_inline_result = false;
|
|
96
|
+
} catch (e) {
|
|
97
|
+
JSCompiler_inline_result = true;
|
|
98
|
+
}
|
|
99
|
+
if (JSCompiler_inline_result) {
|
|
100
|
+
JSCompiler_inline_result = console;
|
|
101
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
102
|
+
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
103
|
+
JSCompiler_temp_const.call(
|
|
104
|
+
JSCompiler_inline_result,
|
|
105
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
106
|
+
JSCompiler_inline_result$jscomp$0
|
|
107
|
+
);
|
|
108
|
+
return testStringCoercion(value);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
function getTaskName(type) {
|
|
112
|
+
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
113
|
+
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
114
|
+
return "<...>";
|
|
115
|
+
try {
|
|
116
|
+
var name = getComponentNameFromType(type);
|
|
117
|
+
return name ? "<" + name + ">" : "<...>";
|
|
118
|
+
} catch (x) {
|
|
119
|
+
return "<...>";
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
function getOwner() {
|
|
123
|
+
var dispatcher = ReactSharedInternalsServer.A;
|
|
124
|
+
return null === dispatcher ? null : dispatcher.getOwner();
|
|
125
|
+
}
|
|
126
|
+
function UnknownOwner() {
|
|
127
|
+
return Error("react-stack-top-frame");
|
|
128
|
+
}
|
|
129
|
+
function hasValidKey(config) {
|
|
130
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
131
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
132
|
+
if (getter && getter.isReactWarning) return false;
|
|
133
|
+
}
|
|
134
|
+
return void 0 !== config.key;
|
|
135
|
+
}
|
|
136
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
137
|
+
function warnAboutAccessingKey() {
|
|
138
|
+
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
139
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
140
|
+
displayName
|
|
141
|
+
));
|
|
142
|
+
}
|
|
143
|
+
warnAboutAccessingKey.isReactWarning = true;
|
|
144
|
+
Object.defineProperty(props, "key", {
|
|
145
|
+
get: warnAboutAccessingKey,
|
|
146
|
+
configurable: true
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
function elementRefGetterWithDeprecationWarning() {
|
|
150
|
+
var componentName = getComponentNameFromType(this.type);
|
|
151
|
+
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
152
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
153
|
+
));
|
|
154
|
+
componentName = this.props.ref;
|
|
155
|
+
return void 0 !== componentName ? componentName : null;
|
|
156
|
+
}
|
|
157
|
+
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
158
|
+
var refProp = props.ref;
|
|
159
|
+
type = {
|
|
160
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
161
|
+
type,
|
|
162
|
+
key,
|
|
163
|
+
props,
|
|
164
|
+
_owner: owner
|
|
165
|
+
};
|
|
166
|
+
null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
|
|
167
|
+
enumerable: false,
|
|
168
|
+
get: elementRefGetterWithDeprecationWarning
|
|
169
|
+
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
170
|
+
type._store = {};
|
|
171
|
+
Object.defineProperty(type._store, "validated", {
|
|
172
|
+
configurable: false,
|
|
173
|
+
enumerable: false,
|
|
174
|
+
writable: true,
|
|
175
|
+
value: 0
|
|
176
|
+
});
|
|
177
|
+
Object.defineProperty(type, "_debugInfo", {
|
|
178
|
+
configurable: false,
|
|
179
|
+
enumerable: false,
|
|
180
|
+
writable: true,
|
|
181
|
+
value: null
|
|
182
|
+
});
|
|
183
|
+
Object.defineProperty(type, "_debugStack", {
|
|
184
|
+
configurable: false,
|
|
185
|
+
enumerable: false,
|
|
186
|
+
writable: true,
|
|
187
|
+
value: debugStack
|
|
188
|
+
});
|
|
189
|
+
Object.defineProperty(type, "_debugTask", {
|
|
190
|
+
configurable: false,
|
|
191
|
+
enumerable: false,
|
|
192
|
+
writable: true,
|
|
193
|
+
value: debugTask
|
|
194
|
+
});
|
|
195
|
+
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
196
|
+
return type;
|
|
197
|
+
}
|
|
198
|
+
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
|
|
199
|
+
var children = config.children;
|
|
200
|
+
if (void 0 !== children)
|
|
201
|
+
if (isStaticChildren)
|
|
202
|
+
if (isArrayImpl(children)) {
|
|
203
|
+
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
|
|
204
|
+
validateChildKeys(children[isStaticChildren]);
|
|
205
|
+
Object.freeze && Object.freeze(children);
|
|
206
|
+
} else
|
|
207
|
+
console.error(
|
|
208
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
209
|
+
);
|
|
210
|
+
else validateChildKeys(children);
|
|
211
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
212
|
+
children = getComponentNameFromType(type);
|
|
213
|
+
var keys = Object.keys(config).filter(function(k) {
|
|
214
|
+
return "key" !== k;
|
|
215
|
+
});
|
|
216
|
+
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
217
|
+
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
218
|
+
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
|
|
219
|
+
isStaticChildren,
|
|
220
|
+
children,
|
|
221
|
+
keys,
|
|
222
|
+
children
|
|
223
|
+
), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
|
224
|
+
}
|
|
225
|
+
children = null;
|
|
226
|
+
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
227
|
+
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
|
228
|
+
if ("key" in config) {
|
|
229
|
+
maybeKey = {};
|
|
230
|
+
for (var propName in config)
|
|
231
|
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
232
|
+
} else maybeKey = config;
|
|
233
|
+
children && defineKeyPropWarningGetter(
|
|
234
|
+
maybeKey,
|
|
235
|
+
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
236
|
+
);
|
|
237
|
+
return ReactElement(
|
|
238
|
+
type,
|
|
239
|
+
children,
|
|
240
|
+
maybeKey,
|
|
241
|
+
getOwner(),
|
|
242
|
+
debugStack,
|
|
243
|
+
debugTask
|
|
244
|
+
);
|
|
245
|
+
}
|
|
246
|
+
function validateChildKeys(node) {
|
|
247
|
+
isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
|
|
248
|
+
}
|
|
249
|
+
function isValidElement(object) {
|
|
250
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
251
|
+
}
|
|
252
|
+
var React = requireReact_reactServer(), REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), ReactSharedInternalsServer = React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
253
|
+
if (!ReactSharedInternalsServer)
|
|
254
|
+
throw Error(
|
|
255
|
+
'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
|
|
256
|
+
);
|
|
257
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
258
|
+
return null;
|
|
259
|
+
};
|
|
260
|
+
React = {
|
|
261
|
+
react_stack_bottom_frame: function(callStackForError) {
|
|
262
|
+
return callStackForError();
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
var specialPropKeyWarningShown;
|
|
266
|
+
var didWarnAboutElementRef = {};
|
|
267
|
+
var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
|
|
268
|
+
React,
|
|
269
|
+
UnknownOwner
|
|
270
|
+
)();
|
|
271
|
+
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
272
|
+
var didWarnAboutKeySpread = {};
|
|
273
|
+
reactJsxRuntime_reactServer_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
274
|
+
reactJsxRuntime_reactServer_development.jsx = function(type, config, maybeKey) {
|
|
275
|
+
var trackActualOwner = 1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++;
|
|
276
|
+
return jsxDEVImpl(
|
|
277
|
+
type,
|
|
278
|
+
config,
|
|
279
|
+
maybeKey,
|
|
280
|
+
false,
|
|
281
|
+
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
282
|
+
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
283
|
+
);
|
|
284
|
+
};
|
|
285
|
+
reactJsxRuntime_reactServer_development.jsxDEV = function(type, config, maybeKey, isStaticChildren) {
|
|
286
|
+
var trackActualOwner = 1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++;
|
|
287
|
+
return jsxDEVImpl(
|
|
288
|
+
type,
|
|
289
|
+
config,
|
|
290
|
+
maybeKey,
|
|
291
|
+
isStaticChildren,
|
|
292
|
+
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
293
|
+
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
294
|
+
);
|
|
295
|
+
};
|
|
296
|
+
reactJsxRuntime_reactServer_development.jsxs = function(type, config, maybeKey) {
|
|
297
|
+
var trackActualOwner = 1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++;
|
|
298
|
+
return jsxDEVImpl(
|
|
299
|
+
type,
|
|
300
|
+
config,
|
|
301
|
+
maybeKey,
|
|
302
|
+
true,
|
|
303
|
+
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
304
|
+
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
305
|
+
);
|
|
306
|
+
};
|
|
307
|
+
})();
|
|
308
|
+
return reactJsxRuntime_reactServer_development;
|
|
309
|
+
}
|
|
310
|
+
var hasRequiredJsxRuntime_reactServer;
|
|
311
|
+
function requireJsxRuntime_reactServer() {
|
|
312
|
+
if (hasRequiredJsxRuntime_reactServer) return jsxRuntime_reactServer.exports;
|
|
313
|
+
hasRequiredJsxRuntime_reactServer = 1;
|
|
314
|
+
if (process.env.NODE_ENV === "production") {
|
|
315
|
+
jsxRuntime_reactServer.exports = requireReactJsxRuntime_reactServer_production();
|
|
316
|
+
} else {
|
|
317
|
+
jsxRuntime_reactServer.exports = requireReactJsxRuntime_reactServer_development();
|
|
318
|
+
}
|
|
319
|
+
return jsxRuntime_reactServer.exports;
|
|
320
|
+
}
|
|
321
|
+
var jsxRuntime_reactServerExports = requireJsxRuntime_reactServer();
|
|
322
|
+
export {
|
|
323
|
+
jsxRuntime_reactServerExports as j
|
|
324
|
+
};
|