@plitzi/sdk-server 0.32.3 → 0.32.5
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/CHANGELOG.md +18 -0
- package/dist/adapters/jsonAdapters.js +6 -1
- package/dist/core/createServer.js +8 -44
- package/dist/core/health.js +15 -0
- package/dist/core/http/dispatcher.js +29 -0
- package/dist/core/http/securityHeaders.js +15 -0
- package/dist/core/http/stages/authRoutes.js +41 -0
- package/dist/core/http/stages/health.js +12 -0
- package/dist/core/http/stages/middlewares.js +16 -0
- package/dist/core/http/stages/pluginAssets.js +20 -0
- package/dist/core/http/stages/static.js +30 -0
- package/dist/core/server/baseServer.js +29 -0
- package/dist/core/server/mcpServer.js +29 -0
- package/dist/core/server/ssrServer.js +54 -0
- package/dist/core/services/mcp.js +22 -0
- package/dist/core/services/preview.js +37 -0
- package/dist/core/services/registry.js +30 -0
- package/dist/core/services/resolve.js +12 -0
- package/dist/core/services/rsc.js +11 -0
- package/dist/core/services/ssr.js +13 -0
- package/dist/core/transports.js +9 -9
- package/dist/helpers/buildServerInfo.js +11 -11
- package/dist/index.js +19 -6
- package/dist/modules/ai/AIEngine.js +4 -4
- package/dist/modules/ai/toolkit.js +58 -0
- package/dist/modules/mcp/constants.js +4 -0
- package/dist/modules/mcp/handler.js +15 -21
- package/dist/modules/mcp/helpers/computeVersion.js +16 -0
- package/dist/modules/mcp/helpers/guide.js +130 -0
- package/dist/modules/mcp/helpers/opResult.js +18 -0
- package/dist/modules/mcp/helpers/space.js +137 -0
- package/dist/modules/mcp/previewClient.js +31 -0
- package/dist/modules/mcp/resources/canonical.js +45 -0
- package/dist/modules/mcp/resources/core.js +14 -0
- package/dist/modules/mcp/resources/envelope.js +14 -0
- package/dist/modules/mcp/resources/primer.js +25 -0
- package/dist/modules/mcp/resources/register.js +142 -0
- package/dist/modules/mcp/resources/router.js +25 -0
- package/dist/modules/mcp/resources/schema.js +33 -0
- package/dist/modules/mcp/resources/style.js +27 -0
- package/dist/modules/mcp/screenshotClient.js +47 -0
- package/dist/modules/mcp/server.js +52 -20
- package/dist/modules/mcp/tools/apply/dispatch.js +83 -0
- package/dist/modules/mcp/tools/apply/index.js +121 -0
- package/dist/modules/mcp/tools/apply/writeResult.js +36 -0
- package/dist/modules/mcp/tools/index.js +20 -148
- package/dist/modules/mcp/tools/operations/index.js +30 -0
- package/dist/modules/mcp/tools/operations/schema/deleteElement.js +25 -0
- package/dist/modules/mcp/tools/operations/schema/deleteFolder.js +30 -0
- package/dist/modules/mcp/tools/operations/schema/deletePage.js +22 -0
- package/dist/modules/mcp/tools/operations/schema/deleteVariable.js +18 -0
- package/dist/modules/mcp/tools/operations/schema/moveElement.js +39 -0
- package/dist/modules/mcp/tools/operations/schema/operations.js +25 -0
- package/dist/modules/mcp/tools/operations/schema/patchElement.js +46 -0
- package/dist/modules/mcp/tools/operations/schema/registry.js +55 -0
- package/dist/modules/mcp/tools/operations/schema/shared.js +27 -0
- package/dist/modules/mcp/tools/operations/schema/translator.js +148 -0
- package/dist/modules/mcp/tools/operations/schema/upsertElement.js +59 -0
- package/dist/modules/mcp/tools/operations/schema/upsertFolder.js +49 -0
- package/dist/modules/mcp/tools/operations/schema/upsertPage.js +64 -0
- package/dist/modules/mcp/tools/operations/schema/upsertVariable.js +42 -0
- package/dist/modules/mcp/tools/operations/schema/write.js +44 -0
- package/dist/modules/mcp/tools/operations/style/cssCatalog.js +132 -0
- package/dist/modules/mcp/tools/operations/style/deleteDefinition.js +20 -0
- package/dist/modules/mcp/tools/operations/style/deleteGlobalStyle.js +20 -0
- package/dist/modules/mcp/tools/operations/style/deleteStyleVariable.js +21 -0
- package/dist/modules/mcp/tools/operations/style/operations.js +21 -0
- package/dist/modules/mcp/tools/operations/style/patchDefinition.js +27 -0
- package/dist/modules/mcp/tools/operations/style/patchGlobalStyle.js +27 -0
- package/dist/modules/mcp/tools/operations/style/shared.js +59 -0
- package/dist/modules/mcp/tools/operations/style/translator.js +77 -0
- package/dist/modules/mcp/tools/operations/style/upsertDefinition.js +23 -0
- package/dist/modules/mcp/tools/operations/style/upsertGlobalStyle.js +23 -0
- package/dist/modules/mcp/tools/operations/style/upsertStyleVariable.js +22 -0
- package/dist/modules/mcp/tools/operations/style/write.js +100 -0
- package/dist/modules/mcp/tools/preview.js +37 -0
- package/dist/modules/mcp/tools/read.js +33 -0
- package/dist/modules/mcp/tools/screenshot.js +83 -0
- package/dist/modules/mcp/tools/search.js +108 -0
- package/dist/modules/mcp/tools/shared/tool.js +26 -0
- package/dist/modules/mcp/tools/shared/validator.js +262 -0
- package/dist/modules/mcp/tools/validate.js +19 -0
- package/dist/modules/ssr/buildBody.js +2 -2
- package/dist/modules/ssr/handler.js +6 -4
- package/dist/modules/ssr/prepareRender.js +5 -5
- package/dist/modules/ssr/preview.js +106 -0
- package/dist/modules/ssr/registerExternalPlugins.js +1 -1
- package/dist/modules/ssr/streamBody.js +3 -3
- package/dist/modules/ssr/template.js +1 -1
- package/dist/plugins/compile.js +1 -1
- package/dist/plugins/copy.js +1 -1
- package/dist/plugins/manager.js +1 -1
- package/dist/server.js +34 -9
- package/dist/src/core/createServer.d.ts +5 -1
- package/dist/src/core/health.d.ts +10 -0
- package/dist/src/core/http/dispatcher.d.ts +7 -0
- package/dist/src/core/http/securityHeaders.d.ts +2 -0
- package/dist/src/core/http/stages/authRoutes.d.ts +4 -0
- package/dist/src/core/http/stages/health.d.ts +2 -0
- package/dist/src/core/http/stages/middlewares.d.ts +2 -0
- package/dist/src/core/http/stages/pluginAssets.d.ts +2 -0
- package/dist/src/core/http/stages/static.d.ts +5 -0
- package/dist/src/core/http/types.d.ts +19 -0
- package/dist/src/core/server/baseServer.d.ts +9 -0
- package/dist/src/core/server/mcpServer.d.ts +2 -0
- package/dist/src/core/server/ssrServer.d.ts +2 -0
- package/dist/src/core/services/mcp.d.ts +3 -0
- package/dist/src/core/services/preview.d.ts +2 -0
- package/dist/src/core/services/registry.d.ts +4 -0
- package/dist/src/core/services/resolve.d.ts +3 -0
- package/dist/src/core/services/rsc.d.ts +2 -0
- package/dist/src/core/services/ssr.d.ts +3 -0
- package/dist/src/core/transports.d.ts +2 -2
- package/dist/src/index.d.ts +12 -3
- package/dist/src/modules/ai/index.d.ts +1 -0
- package/dist/src/modules/ai/toolkit.d.ts +17 -0
- package/dist/src/modules/mcp/constants.d.ts +1 -0
- package/dist/src/modules/mcp/handler.d.ts +6 -3
- package/dist/src/modules/mcp/helpers/computeVersion.d.ts +1 -0
- package/dist/src/modules/mcp/helpers/guide.d.ts +2 -0
- package/dist/src/modules/mcp/helpers/index.d.ts +4 -0
- package/dist/src/modules/mcp/helpers/opResult.d.ts +13 -0
- package/dist/src/modules/mcp/helpers/space.d.ts +49 -0
- package/dist/src/modules/mcp/index.d.ts +12 -5
- package/dist/src/modules/mcp/previewClient.d.ts +13 -0
- package/dist/src/modules/mcp/resources/canonical.d.ts +7 -0
- package/dist/src/modules/mcp/resources/core.d.ts +5 -0
- package/dist/src/modules/mcp/resources/envelope.d.ts +10 -0
- package/dist/src/modules/mcp/resources/index.d.ts +8 -10
- package/dist/src/modules/mcp/resources/primer.d.ts +6 -0
- package/dist/src/modules/mcp/resources/register.d.ts +6 -0
- package/dist/src/modules/mcp/resources/router.d.ts +6 -0
- package/dist/src/modules/mcp/resources/schema.d.ts +5 -0
- package/dist/src/modules/mcp/resources/style.d.ts +5 -0
- package/dist/src/modules/mcp/screenshotClient.d.ts +13 -0
- package/dist/src/modules/mcp/server.d.ts +18 -3
- package/dist/src/modules/mcp/tools/apply/dispatch.d.ts +6 -0
- package/dist/src/modules/mcp/tools/apply/index.d.ts +231 -0
- package/dist/src/modules/mcp/tools/apply/writeResult.d.ts +8 -0
- package/dist/src/modules/mcp/tools/index.d.ts +17 -6
- package/dist/src/modules/mcp/tools/operations/index.d.ts +449 -0
- package/dist/src/modules/mcp/tools/operations/schema/deleteElement.d.ts +10 -0
- package/dist/src/modules/mcp/tools/operations/schema/deleteFolder.d.ts +9 -0
- package/dist/src/modules/mcp/tools/operations/schema/deletePage.d.ts +9 -0
- package/dist/src/modules/mcp/tools/operations/schema/deleteVariable.d.ts +9 -0
- package/dist/src/modules/mcp/tools/operations/schema/index.d.ts +14 -0
- package/dist/src/modules/mcp/tools/operations/schema/moveElement.d.ts +16 -0
- package/dist/src/modules/mcp/tools/operations/schema/operations.d.ts +79 -0
- package/dist/src/modules/mcp/tools/operations/schema/patchElement.d.ts +17 -0
- package/dist/src/modules/mcp/tools/operations/schema/registry.d.ts +22 -0
- package/dist/src/modules/mcp/tools/operations/schema/shared.d.ts +24 -0
- package/dist/src/modules/mcp/tools/operations/schema/translator.d.ts +9 -0
- package/dist/src/modules/mcp/tools/operations/schema/upsertElement.d.ts +16 -0
- package/dist/src/modules/mcp/tools/operations/schema/upsertFolder.d.ts +12 -0
- package/dist/src/modules/mcp/tools/operations/schema/upsertPage.d.ts +13 -0
- package/dist/src/modules/mcp/tools/operations/schema/upsertVariable.d.ts +16 -0
- package/dist/src/modules/mcp/tools/operations/schema/write.d.ts +12 -0
- package/dist/src/modules/mcp/tools/operations/style/cssCatalog.d.ts +10 -0
- package/dist/src/modules/mcp/tools/operations/style/deleteDefinition.d.ts +9 -0
- package/dist/src/modules/mcp/tools/operations/style/deleteGlobalStyle.d.ts +9 -0
- package/dist/src/modules/mcp/tools/operations/style/deleteStyleVariable.d.ts +15 -0
- package/dist/src/modules/mcp/tools/operations/style/index.d.ts +12 -0
- package/dist/src/modules/mcp/tools/operations/style/operations.d.ts +163 -0
- package/dist/src/modules/mcp/tools/operations/style/patchDefinition.d.ts +37 -0
- package/dist/src/modules/mcp/tools/operations/style/patchGlobalStyle.d.ts +37 -0
- package/dist/src/modules/mcp/tools/operations/style/shared.d.ts +115 -0
- package/dist/src/modules/mcp/tools/operations/style/translator.d.ts +9 -0
- package/dist/src/modules/mcp/tools/operations/style/upsertDefinition.d.ts +37 -0
- package/dist/src/modules/mcp/tools/operations/style/upsertGlobalStyle.d.ts +37 -0
- package/dist/src/modules/mcp/tools/operations/style/upsertStyleVariable.d.ts +20 -0
- package/dist/src/modules/mcp/tools/operations/style/write.d.ts +17 -0
- package/dist/src/modules/mcp/tools/preview.d.ts +226 -0
- package/dist/src/modules/mcp/tools/read.d.ts +8 -0
- package/dist/src/modules/mcp/tools/screenshot.d.ts +231 -0
- package/dist/src/modules/mcp/tools/search.d.ts +15 -0
- package/dist/src/modules/mcp/tools/shared/tool.d.ts +50 -0
- package/dist/src/modules/mcp/tools/shared/validator.d.ts +4 -0
- package/dist/src/modules/mcp/tools/validate.d.ts +228 -0
- package/dist/src/modules/mcp/types/aiSchema.d.ts +126 -0
- package/dist/src/modules/mcp/types/index.d.ts +4 -0
- package/dist/src/modules/mcp/types/previewTypes.d.ts +25 -0
- package/dist/src/modules/mcp/types/screenshotTypes.d.ts +29 -0
- package/dist/src/modules/mcp/types/toolTypes.d.ts +138 -0
- package/dist/src/modules/ssr/buildBody.d.ts +2 -2
- package/dist/src/modules/ssr/prepareRender.d.ts +2 -2
- package/dist/src/modules/ssr/preview.d.ts +16 -0
- package/dist/src/modules/ssr/streamBody.d.ts +2 -2
- package/package.json +10 -10
- package/dist/_virtual/_rolldown/runtime.js +0 -13
- package/dist/core/requestHandler.js +0 -126
- package/dist/modules/mcp/helpers.js +0 -75
- package/dist/modules/mcp/resources/glossary/binding.js +0 -73
- package/dist/modules/mcp/resources/glossary/collection.js +0 -76
- package/dist/modules/mcp/resources/glossary/displayMode.js +0 -50
- package/dist/modules/mcp/resources/glossary/element.js +0 -68
- package/dist/modules/mcp/resources/glossary/environment.js +0 -48
- package/dist/modules/mcp/resources/glossary/interaction.js +0 -62
- package/dist/modules/mcp/resources/glossary/page.js +0 -70
- package/dist/modules/mcp/resources/glossary/plugin.js +0 -96
- package/dist/modules/mcp/resources/glossary/resource.js +0 -75
- package/dist/modules/mcp/resources/glossary/schema.js +0 -69
- package/dist/modules/mcp/resources/glossary/schemaVariable.js +0 -60
- package/dist/modules/mcp/resources/glossary/segment.js +0 -59
- package/dist/modules/mcp/resources/glossary/space.js +0 -73
- package/dist/modules/mcp/resources/glossary/style.js +0 -81
- package/dist/modules/mcp/resources/glossary/styleSelector.js +0 -77
- package/dist/modules/mcp/resources/glossary/styleVariable.js +0 -72
- package/dist/modules/mcp/resources/index.js +0 -71
- package/dist/modules/mcp/resources/workflows/data.js +0 -49
- package/dist/modules/mcp/resources/workflows/elements.js +0 -53
- package/dist/modules/mcp/resources/workflows/segments.js +0 -55
- package/dist/modules/mcp/resources/workflows/styles.js +0 -91
- package/dist/modules/mcp/tools/collections/createCollection.js +0 -25
- package/dist/modules/mcp/tools/collections/createCollectionRecord.js +0 -27
- package/dist/modules/mcp/tools/collections/deleteCollection.js +0 -16
- package/dist/modules/mcp/tools/collections/deleteCollectionRecord.js +0 -16
- package/dist/modules/mcp/tools/collections/getCollection.js +0 -21
- package/dist/modules/mcp/tools/collections/getCollectionRecord.js +0 -25
- package/dist/modules/mcp/tools/collections/getCollectionRecords.js +0 -29
- package/dist/modules/mcp/tools/collections/getCollections.js +0 -19
- package/dist/modules/mcp/tools/collections/updateCollection.js +0 -28
- package/dist/modules/mcp/tools/collections/updateCollectionRecord.js +0 -31
- package/dist/modules/mcp/tools/docs/listResources.js +0 -16
- package/dist/modules/mcp/tools/docs/readResource.js +0 -23
- package/dist/modules/mcp/tools/plugins/addPlugin.js +0 -24
- package/dist/modules/mcp/tools/plugins/listPlugins.js +0 -20
- package/dist/modules/mcp/tools/plugins/removePlugin.js +0 -16
- package/dist/modules/mcp/tools/plugins/updatePlugin.js +0 -23
- package/dist/modules/mcp/tools/resources/addResource.js +0 -33
- package/dist/modules/mcp/tools/resources/getResource.js +0 -29
- package/dist/modules/mcp/tools/resources/getResources.js +0 -27
- package/dist/modules/mcp/tools/resources/moveResource.js +0 -30
- package/dist/modules/mcp/tools/resources/removeResource.js +0 -19
- package/dist/modules/mcp/tools/segment/createSegment.js +0 -27
- package/dist/modules/mcp/tools/segment/deleteSegment.js +0 -16
- package/dist/modules/mcp/tools/segment/getSegment.js +0 -19
- package/dist/modules/mcp/tools/segment/getSegments.js +0 -27
- package/dist/modules/mcp/tools/segment/schema/elements/createSegmentElement.js +0 -24
- package/dist/modules/mcp/tools/segment/schema/elements/deleteSegmentElement.js +0 -19
- package/dist/modules/mcp/tools/segment/schema/elements/moveSegmentElement.js +0 -28
- package/dist/modules/mcp/tools/segment/schema/elements/updateSegmentElement.js +0 -23
- package/dist/modules/mcp/tools/segment/schema/variables/createSegmentVariable.js +0 -41
- package/dist/modules/mcp/tools/segment/schema/variables/deleteSegmentVariable.js +0 -19
- package/dist/modules/mcp/tools/segment/schema/variables/updateSegmentVariable.js +0 -41
- package/dist/modules/mcp/tools/segment/style/variables/createSegmentStyleVariable.js +0 -34
- package/dist/modules/mcp/tools/segment/style/variables/deleteSegmentStyleVariable.js +0 -21
- package/dist/modules/mcp/tools/segment/style/variables/updateSegmentStyleVariable.js +0 -34
- package/dist/modules/mcp/tools/segment/updateSegment.js +0 -30
- package/dist/modules/mcp/tools/space/schema/applyPreview.js +0 -33
- package/dist/modules/mcp/tools/space/schema/elements/cloneElement.js +0 -34
- package/dist/modules/mcp/tools/space/schema/elements/createElement.js +0 -50
- package/dist/modules/mcp/tools/space/schema/elements/deleteElement.js +0 -16
- package/dist/modules/mcp/tools/space/schema/elements/getElement.js +0 -17
- package/dist/modules/mcp/tools/space/schema/elements/getElements.js +0 -21
- package/dist/modules/mcp/tools/space/schema/elements/listElements.js +0 -28
- package/dist/modules/mcp/tools/space/schema/elements/moveElement.js +0 -27
- package/dist/modules/mcp/tools/space/schema/elements/updateElement.js +0 -49
- package/dist/modules/mcp/tools/space/schema/getSpaceSettings.js +0 -46
- package/dist/modules/mcp/tools/space/schema/pageFolders/createPageFolder.js +0 -24
- package/dist/modules/mcp/tools/space/schema/pageFolders/deletePageFolder.js +0 -16
- package/dist/modules/mcp/tools/space/schema/pageFolders/getPageFolder.js +0 -17
- package/dist/modules/mcp/tools/space/schema/pageFolders/getPageFolders.js +0 -17
- package/dist/modules/mcp/tools/space/schema/pageFolders/updatePageFolder.js +0 -28
- package/dist/modules/mcp/tools/space/schema/pages/createPage.js +0 -37
- package/dist/modules/mcp/tools/space/schema/pages/deletePage.js +0 -16
- package/dist/modules/mcp/tools/space/schema/pages/getPage.js +0 -28
- package/dist/modules/mcp/tools/space/schema/pages/getPageBySlug.js +0 -17
- package/dist/modules/mcp/tools/space/schema/pages/getPages.js +0 -17
- package/dist/modules/mcp/tools/space/schema/pages/updatePage.js +0 -25
- package/dist/modules/mcp/tools/space/schema/schemas.js +0 -53
- package/dist/modules/mcp/tools/space/schema/updateSpaceSettings.js +0 -23
- package/dist/modules/mcp/tools/space/schema/variables/createVariable.js +0 -38
- package/dist/modules/mcp/tools/space/schema/variables/deleteVariable.js +0 -16
- package/dist/modules/mcp/tools/space/schema/variables/getVariable.js +0 -17
- package/dist/modules/mcp/tools/space/schema/variables/getVariables.js +0 -17
- package/dist/modules/mcp/tools/space/schema/variables/updateVariable.js +0 -38
- package/dist/modules/mcp/tools/space/style/selectors/createStyleSelector.js +0 -37
- package/dist/modules/mcp/tools/space/style/selectors/deleteStyleSelector.js +0 -24
- package/dist/modules/mcp/tools/space/style/selectors/getStyleSelectors.js +0 -20
- package/dist/modules/mcp/tools/space/style/selectors/updateStyleSelector.js +0 -37
- package/dist/modules/mcp/tools/space/style/variables/createStyleVariable.js +0 -33
- package/dist/modules/mcp/tools/space/style/variables/deleteStyleVariable.js +0 -20
- package/dist/modules/mcp/tools/space/style/variables/getStyleVariable.js +0 -19
- package/dist/modules/mcp/tools/space/style/variables/getStyleVariables.js +0 -16
- package/dist/modules/mcp/tools/space/style/variables/updateStyleVariable.js +0 -33
- package/dist/package.js +0 -77
- package/dist/package.json.d.ts +0 -67
- package/dist/src/core/requestHandler.d.ts +0 -5
- package/dist/src/modules/mcp/helpers.d.ts +0 -9
- package/dist/src/modules/mcp/resources/glossary/binding.d.ts +0 -7
- package/dist/src/modules/mcp/resources/glossary/collection.d.ts +0 -7
- package/dist/src/modules/mcp/resources/glossary/displayMode.d.ts +0 -7
- package/dist/src/modules/mcp/resources/glossary/element.d.ts +0 -7
- package/dist/src/modules/mcp/resources/glossary/environment.d.ts +0 -7
- package/dist/src/modules/mcp/resources/glossary/interaction.d.ts +0 -7
- package/dist/src/modules/mcp/resources/glossary/page.d.ts +0 -7
- package/dist/src/modules/mcp/resources/glossary/plugin.d.ts +0 -7
- package/dist/src/modules/mcp/resources/glossary/resource.d.ts +0 -7
- package/dist/src/modules/mcp/resources/glossary/schema.d.ts +0 -7
- package/dist/src/modules/mcp/resources/glossary/schemaVariable.d.ts +0 -7
- package/dist/src/modules/mcp/resources/glossary/segment.d.ts +0 -7
- package/dist/src/modules/mcp/resources/glossary/space.d.ts +0 -7
- package/dist/src/modules/mcp/resources/glossary/style.d.ts +0 -7
- package/dist/src/modules/mcp/resources/glossary/styleSelector.d.ts +0 -7
- package/dist/src/modules/mcp/resources/glossary/styleVariable.d.ts +0 -7
- package/dist/src/modules/mcp/resources/workflows/data.d.ts +0 -7
- package/dist/src/modules/mcp/resources/workflows/elements.d.ts +0 -7
- package/dist/src/modules/mcp/resources/workflows/segments.d.ts +0 -7
- package/dist/src/modules/mcp/resources/workflows/styles.d.ts +0 -7
- package/dist/src/modules/mcp/tools/collections/createCollection.d.ts +0 -3
- package/dist/src/modules/mcp/tools/collections/createCollectionRecord.d.ts +0 -3
- package/dist/src/modules/mcp/tools/collections/deleteCollection.d.ts +0 -3
- package/dist/src/modules/mcp/tools/collections/deleteCollectionRecord.d.ts +0 -3
- package/dist/src/modules/mcp/tools/collections/getCollection.d.ts +0 -3
- package/dist/src/modules/mcp/tools/collections/getCollectionRecord.d.ts +0 -3
- package/dist/src/modules/mcp/tools/collections/getCollectionRecords.d.ts +0 -3
- package/dist/src/modules/mcp/tools/collections/getCollections.d.ts +0 -3
- package/dist/src/modules/mcp/tools/collections/index.d.ts +0 -10
- package/dist/src/modules/mcp/tools/collections/updateCollection.d.ts +0 -3
- package/dist/src/modules/mcp/tools/collections/updateCollectionRecord.d.ts +0 -3
- package/dist/src/modules/mcp/tools/docs/index.d.ts +0 -2
- package/dist/src/modules/mcp/tools/docs/listResources.d.ts +0 -3
- package/dist/src/modules/mcp/tools/docs/readResource.d.ts +0 -3
- package/dist/src/modules/mcp/tools/plugins/addPlugin.d.ts +0 -3
- package/dist/src/modules/mcp/tools/plugins/index.d.ts +0 -5
- package/dist/src/modules/mcp/tools/plugins/listPlugins.d.ts +0 -3
- package/dist/src/modules/mcp/tools/plugins/removePlugin.d.ts +0 -3
- package/dist/src/modules/mcp/tools/plugins/updatePlugin.d.ts +0 -3
- package/dist/src/modules/mcp/tools/resources/addResource.d.ts +0 -3
- package/dist/src/modules/mcp/tools/resources/getResource.d.ts +0 -3
- package/dist/src/modules/mcp/tools/resources/getResources.d.ts +0 -3
- package/dist/src/modules/mcp/tools/resources/index.d.ts +0 -6
- package/dist/src/modules/mcp/tools/resources/moveResource.d.ts +0 -3
- package/dist/src/modules/mcp/tools/resources/removeResource.d.ts +0 -3
- package/dist/src/modules/mcp/tools/resources/resources.test.d.ts +0 -1
- package/dist/src/modules/mcp/tools/segment/createSegment.d.ts +0 -3
- package/dist/src/modules/mcp/tools/segment/deleteSegment.d.ts +0 -3
- package/dist/src/modules/mcp/tools/segment/getSegment.d.ts +0 -3
- package/dist/src/modules/mcp/tools/segment/getSegments.d.ts +0 -3
- package/dist/src/modules/mcp/tools/segment/index.d.ts +0 -8
- package/dist/src/modules/mcp/tools/segment/schema/elements/createSegmentElement.d.ts +0 -3
- package/dist/src/modules/mcp/tools/segment/schema/elements/deleteSegmentElement.d.ts +0 -3
- package/dist/src/modules/mcp/tools/segment/schema/elements/index.d.ts +0 -5
- package/dist/src/modules/mcp/tools/segment/schema/elements/moveSegmentElement.d.ts +0 -3
- package/dist/src/modules/mcp/tools/segment/schema/elements/segmentElements.test.d.ts +0 -1
- package/dist/src/modules/mcp/tools/segment/schema/elements/updateSegmentElement.d.ts +0 -3
- package/dist/src/modules/mcp/tools/segment/schema/index.d.ts +0 -2
- package/dist/src/modules/mcp/tools/segment/schema/variables/createSegmentVariable.d.ts +0 -3
- package/dist/src/modules/mcp/tools/segment/schema/variables/deleteSegmentVariable.d.ts +0 -3
- package/dist/src/modules/mcp/tools/segment/schema/variables/index.d.ts +0 -4
- package/dist/src/modules/mcp/tools/segment/schema/variables/segmentVariables.test.d.ts +0 -1
- package/dist/src/modules/mcp/tools/segment/schema/variables/updateSegmentVariable.d.ts +0 -3
- package/dist/src/modules/mcp/tools/segment/segment.test.d.ts +0 -1
- package/dist/src/modules/mcp/tools/segment/style/index.d.ts +0 -1
- package/dist/src/modules/mcp/tools/segment/style/variables/createSegmentStyleVariable.d.ts +0 -3
- package/dist/src/modules/mcp/tools/segment/style/variables/deleteSegmentStyleVariable.d.ts +0 -3
- package/dist/src/modules/mcp/tools/segment/style/variables/index.d.ts +0 -4
- package/dist/src/modules/mcp/tools/segment/style/variables/segmentStyleVariables.test.d.ts +0 -1
- package/dist/src/modules/mcp/tools/segment/style/variables/updateSegmentStyleVariable.d.ts +0 -3
- package/dist/src/modules/mcp/tools/segment/updateSegment.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/index.d.ts +0 -2
- package/dist/src/modules/mcp/tools/space/schema/applyPreview.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/schema/elements/cloneElement.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/schema/elements/createElement.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/schema/elements/deleteElement.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/schema/elements/elements.test.d.ts +0 -1
- package/dist/src/modules/mcp/tools/space/schema/elements/getElement.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/schema/elements/getElements.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/schema/elements/index.d.ts +0 -9
- package/dist/src/modules/mcp/tools/space/schema/elements/listElements.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/schema/elements/moveElement.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/schema/elements/updateElement.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/schema/getSpaceSettings.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/schema/index.d.ts +0 -8
- package/dist/src/modules/mcp/tools/space/schema/pageFolders/createPageFolder.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/schema/pageFolders/deletePageFolder.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/schema/pageFolders/getPageFolder.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/schema/pageFolders/getPageFolders.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/schema/pageFolders/index.d.ts +0 -6
- package/dist/src/modules/mcp/tools/space/schema/pageFolders/pageFolders.test.d.ts +0 -1
- package/dist/src/modules/mcp/tools/space/schema/pageFolders/updatePageFolder.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/schema/pages/createPage.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/schema/pages/deletePage.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/schema/pages/getPage.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/schema/pages/getPageBySlug.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/schema/pages/getPages.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/schema/pages/index.d.ts +0 -7
- package/dist/src/modules/mcp/tools/space/schema/pages/pages.test.d.ts +0 -1
- package/dist/src/modules/mcp/tools/space/schema/pages/updatePage.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/schema/schemas.d.ts +0 -66
- package/dist/src/modules/mcp/tools/space/schema/updateSpaceSettings.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/schema/variables/createVariable.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/schema/variables/deleteVariable.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/schema/variables/getVariable.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/schema/variables/getVariables.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/schema/variables/index.d.ts +0 -6
- package/dist/src/modules/mcp/tools/space/schema/variables/updateVariable.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/schema/variables/variables.test.d.ts +0 -1
- package/dist/src/modules/mcp/tools/space/space.test.d.ts +0 -1
- package/dist/src/modules/mcp/tools/space/style/index.d.ts +0 -2
- package/dist/src/modules/mcp/tools/space/style/selectors/createStyleSelector.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/style/selectors/deleteStyleSelector.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/style/selectors/getStyleSelectors.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/style/selectors/index.d.ts +0 -5
- package/dist/src/modules/mcp/tools/space/style/selectors/styleSelectors.test.d.ts +0 -1
- package/dist/src/modules/mcp/tools/space/style/selectors/updateStyleSelector.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/style/variables/createStyleVariable.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/style/variables/deleteStyleVariable.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/style/variables/getStyleVariable.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/style/variables/getStyleVariables.d.ts +0 -3
- package/dist/src/modules/mcp/tools/space/style/variables/index.d.ts +0 -6
- package/dist/src/modules/mcp/tools/space/style/variables/styleVariables.test.d.ts +0 -1
- package/dist/src/modules/mcp/tools/space/style/variables/updateStyleVariable.d.ts +0 -3
- /package/dist/src/{modules/mcp/helpers.test.d.ts → core/server/mcpServer.test.d.ts} +0 -0
- /package/dist/src/modules/{mcp/tools/collections/collections.test.d.ts → ai/toolkit.test.d.ts} +0 -0
- /package/dist/src/modules/mcp/{tools/plugins/plugins.test.d.ts → mcp.test.d.ts} +0 -0
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
//#region src/modules/mcp/resources/glossary/interaction.ts
|
|
2
|
-
var interactionResource = {
|
|
3
|
-
uri: "plitzi://docs/interaction",
|
|
4
|
-
name: "Plitzi Docs: Interaction",
|
|
5
|
-
description: "Event-driven action handlers in Plitzi — connect user events (click, change, submit) to platform actions.",
|
|
6
|
-
mimeType: "text/markdown",
|
|
7
|
-
content: `# Interaction
|
|
8
|
-
|
|
9
|
-
An **Interaction** is an event handler attached to an element. When a user triggers an event (click, change, form submit, etc.), the interaction executes a configured action — navigation, state mutation, data operation, animation, etc.
|
|
10
|
-
|
|
11
|
-
## TypeScript Shape
|
|
12
|
-
|
|
13
|
-
\`\`\`typescript
|
|
14
|
-
type ElementInteraction = {
|
|
15
|
-
id: string;
|
|
16
|
-
title: string; // Human-readable name
|
|
17
|
-
type: InteractionCallbackType; // Event type (e.g. 'onClick', 'onChange')
|
|
18
|
-
action: string; // Action identifier (e.g. 'navigate', 'setVariable')
|
|
19
|
-
params: InteractionCallbackParamValues; // Action-specific parameters
|
|
20
|
-
preview: Record<string, unknown>; // Preview data for the builder
|
|
21
|
-
elementId: string; // Element this interaction belongs to
|
|
22
|
-
beforeNode: string; // Flow order: ID of preceding step
|
|
23
|
-
afterNode: string; // Flow order: ID of following step
|
|
24
|
-
flowId: string; // Groups interactions in the same flow
|
|
25
|
-
enabled: boolean;
|
|
26
|
-
when?: RuleGroup; // Conditional: only fire when rule matches
|
|
27
|
-
};
|
|
28
|
-
\`\`\`
|
|
29
|
-
|
|
30
|
-
## Key Properties
|
|
31
|
-
|
|
32
|
-
- **\`type\`** — the DOM or lifecycle event to listen on (e.g. \`onClick\`, \`onChange\`, \`onSubmit\`, \`onLoad\`).
|
|
33
|
-
- **\`action\`** — the platform action to execute. Common actions: \`navigate\`, \`setSchemaVariable\`, \`toggleVisibility\`, \`submitForm\`, \`openModal\`.
|
|
34
|
-
- **\`params\`** — action-specific configuration object. Shape depends on \`action\`.
|
|
35
|
-
- **\`flowId\` + \`beforeNode\` / \`afterNode\`** — interactions can be chained into a sequential flow. Multiple interactions sharing a \`flowId\` form an ordered chain.
|
|
36
|
-
- **\`when\`** — a \`RuleGroup\` condition; the interaction only fires when the condition is true.
|
|
37
|
-
|
|
38
|
-
## Where Interactions Are Stored
|
|
39
|
-
|
|
40
|
-
Interactions are stored in \`element.definition.interactions\` as a record keyed by interaction ID:
|
|
41
|
-
|
|
42
|
-
\`\`\`typescript
|
|
43
|
-
element.definition.interactions = {
|
|
44
|
-
'inter-abc': {
|
|
45
|
-
id: 'inter-abc',
|
|
46
|
-
type: 'onClick',
|
|
47
|
-
action: 'navigate',
|
|
48
|
-
params: { url: '/dashboard' },
|
|
49
|
-
...
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
\`\`\`
|
|
53
|
-
|
|
54
|
-
## Relationships
|
|
55
|
-
|
|
56
|
-
- Interactions belong to **Elements**.
|
|
57
|
-
- **Bindings** handle passive data-driven updates; interactions handle active user-triggered events.
|
|
58
|
-
- Interactions can mutate **Schema Variables** (via \`setSchemaVariable\` action), which then propagate through bindings.
|
|
59
|
-
`
|
|
60
|
-
};
|
|
61
|
-
//#endregion
|
|
62
|
-
export { interactionResource };
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
//#region src/modules/mcp/resources/glossary/page.ts
|
|
2
|
-
var pageResource = {
|
|
3
|
-
uri: "plitzi://docs/page",
|
|
4
|
-
name: "Plitzi Docs: Page",
|
|
5
|
-
description: "A top-level page in a Plitzi space — a root element whose ID appears in schema.pages.",
|
|
6
|
-
mimeType: "text/markdown",
|
|
7
|
-
content: `# Page
|
|
8
|
-
|
|
9
|
-
A **Page** in Plitzi is a root-level element. It is stored in \`schema.flat\` like any other element, but its ID is listed in \`schema.pages\` to identify it as a navigable page. Pages are the containers that hold all other elements.
|
|
10
|
-
|
|
11
|
-
## Structure
|
|
12
|
-
|
|
13
|
-
Pages are regular \`Element\` objects:
|
|
14
|
-
|
|
15
|
-
\`\`\`typescript
|
|
16
|
-
// A page element in schema.flat
|
|
17
|
-
{
|
|
18
|
-
id: 'page-abc123',
|
|
19
|
-
attributes: { title: 'Home', slug: '/' }, // Page-specific attributes
|
|
20
|
-
definition: {
|
|
21
|
-
rootId: 'page-abc123', // Points to itself — pages are their own root
|
|
22
|
-
label: 'Home',
|
|
23
|
-
type: 'page', // Type matches the page plugin identifier
|
|
24
|
-
items: ['section-1', 'section-2'], // Top-level child elements
|
|
25
|
-
styleSelectors: { base: '.page-home' }
|
|
26
|
-
// No parentId — pages have no parent
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// Referenced in schema.pages
|
|
31
|
-
schema.pages = ['page-abc123', 'page-def456', ...]
|
|
32
|
-
\`\`\`
|
|
33
|
-
|
|
34
|
-
## Key Properties
|
|
35
|
-
|
|
36
|
-
- **\`schema.pages\`** — ordered array of page element IDs. The order controls navigation/sidebar ordering.
|
|
37
|
-
- **\`definition.rootId === id\`** — a page's \`rootId\` always points to itself.
|
|
38
|
-
- **\`definition.parentId\`** — absent (undefined) for pages; they are top-level.
|
|
39
|
-
- **\`attributes.slug\`** — the URL path segment for this page (e.g. \`/about\`).
|
|
40
|
-
|
|
41
|
-
## Page Folders
|
|
42
|
-
|
|
43
|
-
Pages can be organized into **page folders** (\`schema.pageFolders\`):
|
|
44
|
-
|
|
45
|
-
\`\`\`typescript
|
|
46
|
-
type PageFolder = {
|
|
47
|
-
id: string;
|
|
48
|
-
name: string;
|
|
49
|
-
slug: string;
|
|
50
|
-
parentId?: string; // Nested folders supported
|
|
51
|
-
};
|
|
52
|
-
\`\`\`
|
|
53
|
-
|
|
54
|
-
Folders only affect visual organization in the builder sidebar — they do not affect routing.
|
|
55
|
-
|
|
56
|
-
## Relationships
|
|
57
|
-
|
|
58
|
-
- Pages are a special-case of **Element** — same structure, just listed in \`schema.pages\`.
|
|
59
|
-
- All child elements are regular elements in \`schema.flat\`, linked via \`definition.parentId\` / \`definition.items\`.
|
|
60
|
-
|
|
61
|
-
## Common Operations
|
|
62
|
-
|
|
63
|
-
- \`create_page\` — add a new page element.
|
|
64
|
-
- \`update_page\` — rename or modify a page.
|
|
65
|
-
- \`delete_page\` — remove a page and all its children.
|
|
66
|
-
- \`create_page_folder\` / \`update_page_folder\` / \`delete_page_folder\` — manage page folder hierarchy.
|
|
67
|
-
`
|
|
68
|
-
};
|
|
69
|
-
//#endregion
|
|
70
|
-
export { pageResource };
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
//#region src/modules/mcp/resources/glossary/plugin.ts
|
|
2
|
-
var pluginResource = {
|
|
3
|
-
uri: "plitzi://docs/plugin",
|
|
4
|
-
name: "Plitzi Docs: Plugin",
|
|
5
|
-
description: "An external UI component definition in Plitzi — a packaged React component with manifest, assets, and builder constraints.",
|
|
6
|
-
mimeType: "text/markdown",
|
|
7
|
-
content: `# Plugin
|
|
8
|
-
|
|
9
|
-
A **Plugin** is a packaged UI component definition loaded into a Plitzi space. Plugins provide the React component code that renders elements.
|
|
10
|
-
|
|
11
|
-
**Important distinction:** A *plugin* is what you install in a space. An *element type identifier* is what you pass as \`type\` when creating elements. The two are related (each plugin exposes one or more element types), but they are accessed differently:
|
|
12
|
-
- \`list_plugins\` returns installed plugins with their name, version, and description — it does NOT return element type identifiers.
|
|
13
|
-
- Element type identifiers are the keys of \`elementDefaults\` in \`get_builder_context\`, or the \`type\` field on existing elements from \`get_schema\`.
|
|
14
|
-
|
|
15
|
-
## TypeScript Shape
|
|
16
|
-
|
|
17
|
-
\`\`\`typescript
|
|
18
|
-
type Plugin = {
|
|
19
|
-
type: string; // Plugin type ID — matches element.definition.type
|
|
20
|
-
scope: string; // Module federation scope name
|
|
21
|
-
module: string; // Module federation module name
|
|
22
|
-
resource: string; // CDN URL of the plugin bundle
|
|
23
|
-
manifest: PluginManifest;
|
|
24
|
-
assets: Asset[];
|
|
25
|
-
assetsSettings: Asset[];
|
|
26
|
-
attributes: ComponentDefinition['attributes']; // Attribute schema
|
|
27
|
-
defaultStyle: ComponentDefinition['defaultStyle'];
|
|
28
|
-
builder: PluginBuilder; // Visual editor constraints
|
|
29
|
-
settings: Record<string, unknown>;
|
|
30
|
-
subPlugins?: string[]; // Other plugin types this can contain
|
|
31
|
-
isMain?: boolean;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
type PluginManifest = {
|
|
35
|
-
version: string;
|
|
36
|
-
author: string;
|
|
37
|
-
icon?: string;
|
|
38
|
-
definition: {
|
|
39
|
-
name: string;
|
|
40
|
-
backgroundColor: string;
|
|
41
|
-
category: string;
|
|
42
|
-
icon: string;
|
|
43
|
-
license: string;
|
|
44
|
-
owner: string;
|
|
45
|
-
verified: boolean;
|
|
46
|
-
website: string;
|
|
47
|
-
};
|
|
48
|
-
pluginSchema: Record<string, PluginSchema>; // Schema per subType
|
|
49
|
-
assets: Record<string, ManifestAsset>;
|
|
50
|
-
assetsSettings: Record<string, ManifestAsset>;
|
|
51
|
-
root: string;
|
|
52
|
-
runtime: { module: string; scope: string };
|
|
53
|
-
created: string;
|
|
54
|
-
updated: string;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
type PluginBuilder = {
|
|
58
|
-
canDelete?: boolean;
|
|
59
|
-
canDragDrop?: boolean;
|
|
60
|
-
canSelect?: boolean;
|
|
61
|
-
canMove?: boolean;
|
|
62
|
-
canTemplate?: boolean;
|
|
63
|
-
itemsAllowed?: string[]; // Which plugin types can be children
|
|
64
|
-
itemsNotAllowed?: string[];
|
|
65
|
-
};
|
|
66
|
-
\`\`\`
|
|
67
|
-
|
|
68
|
-
## Key Properties
|
|
69
|
-
|
|
70
|
-
- **\`type\`** — internal identifier that links this plugin to elements. When an element has \`definition.type === plugin.type\`, that plugin renders it. You do not reference this directly — use \`elementDefaults\` keys from \`get_builder_context\` to get valid element type values.
|
|
71
|
-
- **\`manifest.pluginSchema\`** — per-subType attribute schema. Controls what fields appear in the builder panel for each element variant (\`attributes.subType\`).
|
|
72
|
-
- **\`builder\`** — constraints for the visual editor. \`itemsAllowed\` restricts which plugin types can be dropped as children.
|
|
73
|
-
- **\`subPlugins\`** — additional plugin types bundled with this one (loaded together).
|
|
74
|
-
- **\`scope\` / \`module\` / \`resource\`** — Module Federation coordinates used to load the component at runtime.
|
|
75
|
-
|
|
76
|
-
## Relationship to Elements
|
|
77
|
-
|
|
78
|
-
When a page renders, each element is matched to its plugin by \`definition.type\`. The plugin provides:
|
|
79
|
-
1. The React component for rendering.
|
|
80
|
-
2. The builder UI for editing \`attributes\`.
|
|
81
|
-
3. The default style selectors and style structure.
|
|
82
|
-
|
|
83
|
-
## Resource Type
|
|
84
|
-
|
|
85
|
-
Plugins can also be stored as CDN **Resources** with \`type: 'plugin'\`. In that case, the resource includes a \`metadata\` field containing the \`PluginManifest\`.
|
|
86
|
-
|
|
87
|
-
## Common Operations
|
|
88
|
-
|
|
89
|
-
- \`list_plugins\` — list all plugins installed in the space.
|
|
90
|
-
- \`add_plugin\` — install a plugin from the resource library.
|
|
91
|
-
- \`update_plugin\` — update plugin settings or version.
|
|
92
|
-
- \`remove_plugin\` — uninstall a plugin.
|
|
93
|
-
`
|
|
94
|
-
};
|
|
95
|
-
//#endregion
|
|
96
|
-
export { pluginResource };
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
//#region src/modules/mcp/resources/glossary/resource.ts
|
|
2
|
-
var resourceResource = {
|
|
3
|
-
uri: "plitzi://docs/resource",
|
|
4
|
-
name: "Plitzi Docs: Resource",
|
|
5
|
-
description: "A CDN-stored file in a Plitzi space — images, videos, documents, plugins, and templates uploaded to cloud storage.",
|
|
6
|
-
mimeType: "text/markdown",
|
|
7
|
-
content: `# Resource
|
|
8
|
-
|
|
9
|
-
A **Resource** is a file stored on a CDN (AWS S3 or Cloudflare R2) and associated with a Plitzi space. Resources include images, videos, documents, application files, plugin bundles, and page templates.
|
|
10
|
-
|
|
11
|
-
## TypeScript Shape
|
|
12
|
-
|
|
13
|
-
\`\`\`typescript
|
|
14
|
-
type ResourceType = 'image' | 'video' | 'document' | 'application' | 'plugin' | 'template';
|
|
15
|
-
|
|
16
|
-
type Resource = {
|
|
17
|
-
id: string; // Storage key (S3/R2 object path)
|
|
18
|
-
cdnIdentifier: string; // Which CDN configuration to use
|
|
19
|
-
name: string; // Display filename
|
|
20
|
-
path: string; // Full public CDN URL
|
|
21
|
-
type: ResourceType;
|
|
22
|
-
size: number; // File size in bytes
|
|
23
|
-
metadata?: PluginManifest; // Present when type === 'plugin' or 'template'
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
type Cdn = {
|
|
27
|
-
identifier: string;
|
|
28
|
-
name: string;
|
|
29
|
-
domain: string;
|
|
30
|
-
provider: 's3' | 'r2';
|
|
31
|
-
region: string;
|
|
32
|
-
endpoint?: string; // Custom endpoint for R2 / S3-compatible storage
|
|
33
|
-
bucketName: string;
|
|
34
|
-
prefix: string;
|
|
35
|
-
credential?: SpaceCredential;
|
|
36
|
-
createdAt: number;
|
|
37
|
-
updatedAt: number;
|
|
38
|
-
};
|
|
39
|
-
\`\`\`
|
|
40
|
-
|
|
41
|
-
## Resource Types
|
|
42
|
-
|
|
43
|
-
| Type | Description |
|
|
44
|
-
|---|---|
|
|
45
|
-
| \`image\` | PNG, JPEG, GIF, WebP, SVG |
|
|
46
|
-
| \`video\` | MP4, WebM, OGG |
|
|
47
|
-
| \`document\` | PDF, Word, Excel, etc. |
|
|
48
|
-
| \`application\` | Generic binary files |
|
|
49
|
-
| \`plugin\` | Plugin JS bundles — \`metadata\` contains \`PluginManifest\` |
|
|
50
|
-
| \`template\` | Page template presets — \`metadata\` contains \`PluginManifest\` |
|
|
51
|
-
|
|
52
|
-
## Key Properties
|
|
53
|
-
|
|
54
|
-
- **\`id\`** — the storage object path (e.g. \`images/hero.jpg\`). Used together with \`cdnIdentifier\` to address the file.
|
|
55
|
-
- **\`cdnIdentifier\`** — references a configured CDN (the space can have multiple CDNs).
|
|
56
|
-
- **\`path\`** — the full public URL to use in \`<img src>\`, CSS \`url()\`, etc.
|
|
57
|
-
- **\`metadata\`** — only present for \`plugin\` and \`template\` types; contains the \`PluginManifest\`.
|
|
58
|
-
|
|
59
|
-
## Relationships
|
|
60
|
-
|
|
61
|
-
- Resources are managed at the **Space** level and shared across all environments.
|
|
62
|
-
- **Plugin** resources (type \`plugin\`) power the component library.
|
|
63
|
-
- Elements reference image/video resources via \`attributes\` (e.g. \`element.attributes.src\`).
|
|
64
|
-
|
|
65
|
-
## Common Operations
|
|
66
|
-
|
|
67
|
-
- \`get_resources\` — list all resources, optionally filtered by type or CDN.
|
|
68
|
-
- \`get_resource\` — fetch a single resource by \`id\` and \`cdnIdentifier\`.
|
|
69
|
-
- \`add_resource\` — upload a file from a URL to the CDN.
|
|
70
|
-
- \`move_resource\` — relocate a resource to a different CDN prefix/folder.
|
|
71
|
-
- \`remove_resource\` — delete a resource from the CDN.
|
|
72
|
-
`
|
|
73
|
-
};
|
|
74
|
-
//#endregion
|
|
75
|
-
export { resourceResource };
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
//#region src/modules/mcp/resources/glossary/schema.ts
|
|
2
|
-
var schemaResource = {
|
|
3
|
-
uri: "plitzi://docs/schema",
|
|
4
|
-
name: "Plitzi Docs: Schema",
|
|
5
|
-
description: "Core data structure of a Plitzi space — holds all pages, elements, variables, and settings.",
|
|
6
|
-
mimeType: "text/markdown",
|
|
7
|
-
content: `# Schema
|
|
8
|
-
|
|
9
|
-
The \`Schema\` is the primary data structure of a Plitzi space. It is a serializable, flat representation of the entire page tree plus global configuration.
|
|
10
|
-
|
|
11
|
-
## TypeScript Shape
|
|
12
|
-
|
|
13
|
-
\`\`\`typescript
|
|
14
|
-
type Schema = {
|
|
15
|
-
flat: Record<string, Element>; // All elements keyed by their ID
|
|
16
|
-
definition: {
|
|
17
|
-
name: string; // Human-readable space name
|
|
18
|
-
permanentUrl: string; // URL slug (e.g. "my-app")
|
|
19
|
-
};
|
|
20
|
-
variables: SchemaVariable[]; // Space-level dynamic variables
|
|
21
|
-
settings: {
|
|
22
|
-
keepState?: boolean;
|
|
23
|
-
stateStorage?: 'localStorage' | 'sessionStorage';
|
|
24
|
-
customCss: string;
|
|
25
|
-
userProvider?: 'auth0' | 'basic' | 'custom' | '';
|
|
26
|
-
auth0Domain?: string;
|
|
27
|
-
auth0ClientId?: string;
|
|
28
|
-
tokenStorage?: 'localStorage' | 'sessionStorage' | '';
|
|
29
|
-
loginUrl?: string;
|
|
30
|
-
userUrl?: string;
|
|
31
|
-
refreshUrl?: string;
|
|
32
|
-
logoutUrl?: string;
|
|
33
|
-
detailsPath?: string;
|
|
34
|
-
tokenPath?: string;
|
|
35
|
-
expirationTimePath?: string;
|
|
36
|
-
};
|
|
37
|
-
rsc?: {
|
|
38
|
-
enabled?: boolean;
|
|
39
|
-
transport?: 'json' | 'stream';
|
|
40
|
-
path?: string; // Defaults to '/_rsc'
|
|
41
|
-
};
|
|
42
|
-
pages: string[]; // Ordered list of root page element IDs
|
|
43
|
-
pageFolders: PageFolder[]; // Hierarchical page organization
|
|
44
|
-
};
|
|
45
|
-
\`\`\`
|
|
46
|
-
|
|
47
|
-
## Key Properties
|
|
48
|
-
|
|
49
|
-
- **\`flat\`** — the entire element tree as a dictionary. Every element (page, container, component) lives here. Children are referenced by IDs stored in \`definition.items\`.
|
|
50
|
-
- **\`pages\`** — ordered list of element IDs for the top-level pages. The elements themselves are in \`flat\`.
|
|
51
|
-
- **\`pageFolders\`** — hierarchical folder structure for organizing pages in the builder sidebar.
|
|
52
|
-
- **\`variables\`** — schema-level variables that can be injected into elements via bindings.
|
|
53
|
-
- **\`settings\`** — authentication provider configuration (Auth0, basic, custom token), state persistence, and custom global CSS.
|
|
54
|
-
- **\`rsc\`** — optional React Server Components configuration.
|
|
55
|
-
|
|
56
|
-
## Relationships
|
|
57
|
-
|
|
58
|
-
- Contains **Element** objects in \`flat\`.
|
|
59
|
-
- Contains **SchemaVariable** entries in \`variables\`.
|
|
60
|
-
- Paired with a **Style** object that holds all CSS for the same space/environment.
|
|
61
|
-
- Each **Segment** also has its own \`schema\` with the same structure but scoped to the segment.
|
|
62
|
-
|
|
63
|
-
## Environments
|
|
64
|
-
|
|
65
|
-
Each environment (\`main\`, \`development\`, \`staging\`, \`production\`) can have an independent schema snapshot. The \`main\` environment is the live working copy.
|
|
66
|
-
`
|
|
67
|
-
};
|
|
68
|
-
//#endregion
|
|
69
|
-
export { schemaResource };
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
//#region src/modules/mcp/resources/glossary/schemaVariable.ts
|
|
2
|
-
var schemaVariableResource = {
|
|
3
|
-
uri: "plitzi://docs/schema-variable",
|
|
4
|
-
name: "Plitzi Docs: Schema Variable",
|
|
5
|
-
description: "A space-level dynamic variable in Plitzi — typed values that can be injected into elements via bindings.",
|
|
6
|
-
mimeType: "text/markdown",
|
|
7
|
-
content: `# Schema Variable
|
|
8
|
-
|
|
9
|
-
A **Schema Variable** is a space-level dynamic variable defined in \`schema.variables\`. Variables can be injected into element \`attributes\` or \`style\` via bindings, making them a lightweight way to parameterize behavior and appearance without hardcoding values.
|
|
10
|
-
|
|
11
|
-
## TypeScript Shape
|
|
12
|
-
|
|
13
|
-
\`\`\`typescript
|
|
14
|
-
type SchemaVariable = {
|
|
15
|
-
name: string; // Unique identifier used in bindings (e.g. 'primaryColor')
|
|
16
|
-
category: string; // Grouping label shown in the builder UI
|
|
17
|
-
type:
|
|
18
|
-
| 'text'
|
|
19
|
-
| 'number'
|
|
20
|
-
| 'email'
|
|
21
|
-
| 'password'
|
|
22
|
-
| 'select'
|
|
23
|
-
| 'select2'
|
|
24
|
-
| 'checkbox'
|
|
25
|
-
| 'textarea'
|
|
26
|
-
| 'color'
|
|
27
|
-
| 'switch';
|
|
28
|
-
value: string; // Default/current value
|
|
29
|
-
subValues: { when: RuleGroup; value: string }[]; // Conditional overrides
|
|
30
|
-
};
|
|
31
|
-
\`\`\`
|
|
32
|
-
|
|
33
|
-
## Key Properties
|
|
34
|
-
|
|
35
|
-
- **\`name\`** — the variable identifier used when binding to elements. Must be unique within the schema.
|
|
36
|
-
- **\`category\`** — organizes variables into logical groups in the builder panel (e.g. \`'Colors'\`, \`'Typography'\`).
|
|
37
|
-
- **\`type\`** — determines the editor widget and value format. \`color\` stores a hex/rgba string; \`switch\` stores \`'true'\`/\`'false'\`.
|
|
38
|
-
- **\`value\`** — the base value. All values are stored as strings regardless of type.
|
|
39
|
-
- **\`subValues\`** — conditional overrides: when a \`RuleGroup\` condition is met, the variable uses that value instead of the default. Enables rule-based theming and personalization.
|
|
40
|
-
|
|
41
|
-
## Difference from Style Variables
|
|
42
|
-
|
|
43
|
-
| | Schema Variable | Style Variable |
|
|
44
|
-
|---|---|---|
|
|
45
|
-
| Stored in | \`schema.variables\` | \`style.variables\` |
|
|
46
|
-
| Used for | Element attributes, logic | CSS design tokens |
|
|
47
|
-
| Types | text, color, switch, etc. | string, number, theme-aware |
|
|
48
|
-
| Scope | Element bindings | CSS properties |
|
|
49
|
-
|
|
50
|
-
## Common Operations
|
|
51
|
-
|
|
52
|
-
- \`create_schema_variable\` — define a new variable.
|
|
53
|
-
- \`update_schema_variable\` — change the value, category, or conditional rules.
|
|
54
|
-
- \`delete_schema_variable\` — remove a variable (breaks any bindings referencing it).
|
|
55
|
-
|
|
56
|
-
Segment variables use: \`create_segment_variable\`, \`update_segment_variable\`, \`delete_segment_variable\`.
|
|
57
|
-
`
|
|
58
|
-
};
|
|
59
|
-
//#endregion
|
|
60
|
-
export { schemaVariableResource };
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
//#region src/modules/mcp/resources/glossary/segment.ts
|
|
2
|
-
var segmentResource = {
|
|
3
|
-
uri: "plitzi://docs/segment",
|
|
4
|
-
name: "Plitzi Docs: Segment",
|
|
5
|
-
description: "A reusable UI template in Plitzi — a named, versioned component group with its own schema and style.",
|
|
6
|
-
mimeType: "text/markdown",
|
|
7
|
-
content: `# Segment
|
|
8
|
-
|
|
9
|
-
A **Segment** is a reusable UI template. It encapsulates a sub-tree of elements with its own isolated schema and style. Segments can be embedded inside pages and reused across the space. Think of them as design-system components built visually.
|
|
10
|
-
|
|
11
|
-
## TypeScript Shape
|
|
12
|
-
|
|
13
|
-
\`\`\`typescript
|
|
14
|
-
type Segment = {
|
|
15
|
-
id: string;
|
|
16
|
-
identifier: string; // Unique string key (e.g. 'hero-banner')
|
|
17
|
-
definition: {
|
|
18
|
-
name: string; // Human-readable display name
|
|
19
|
-
description: string;
|
|
20
|
-
baseElementId: string; // Root element ID within segment.schema.flat
|
|
21
|
-
};
|
|
22
|
-
environment: Environment; // 'main' | 'development' | 'staging' | 'production'
|
|
23
|
-
schema: Schema; // The segment's own element tree
|
|
24
|
-
style: Style; // The segment's own CSS definitions
|
|
25
|
-
};
|
|
26
|
-
\`\`\`
|
|
27
|
-
|
|
28
|
-
## Key Properties
|
|
29
|
-
|
|
30
|
-
- **\`identifier\`** — the stable string ID used to reference this segment when embedding it in pages.
|
|
31
|
-
- **\`definition.baseElementId\`** — the ID of the root element inside \`segment.schema.flat\`. This is the entry point when the segment is rendered.
|
|
32
|
-
- **\`schema\`** — a full \`Schema\` object scoped to the segment. Contains the element sub-tree in \`flat\`.
|
|
33
|
-
- **\`style\`** — a full \`Style\` object scoped to the segment. CSS is isolated from the space style.
|
|
34
|
-
- **\`environment\`** — each environment has an independent version of the segment.
|
|
35
|
-
|
|
36
|
-
## Isolation
|
|
37
|
-
|
|
38
|
-
Segment schema and style are completely isolated from the space schema/style. This means:
|
|
39
|
-
- Style selectors in a segment do not conflict with space-level selectors.
|
|
40
|
-
- Variables inside a segment are scoped to the segment.
|
|
41
|
-
- When a segment is updated and published, all pages using it pick up the new version.
|
|
42
|
-
|
|
43
|
-
## Relationships
|
|
44
|
-
|
|
45
|
-
- A **Segment** contains a **Schema** and a **Style** just like a space.
|
|
46
|
-
- Elements inside the segment follow the same **Element** structure.
|
|
47
|
-
- Segments reference **Environment** for versioning.
|
|
48
|
-
|
|
49
|
-
## Common Operations
|
|
50
|
-
|
|
51
|
-
- \`create_segment\` — create a new segment definition.
|
|
52
|
-
- \`update_segment\` — rename or update description.
|
|
53
|
-
- \`delete_segment\` — remove a segment.
|
|
54
|
-
- \`create_segment_element\` / \`update_segment_element\` / \`delete_segment_element\` — manage elements inside.
|
|
55
|
-
- \`create_segment_variable\` / \`update_segment_variable\` / \`delete_segment_variable\` — manage schema variables inside.
|
|
56
|
-
`
|
|
57
|
-
};
|
|
58
|
-
//#endregion
|
|
59
|
-
export { segmentResource };
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
//#region src/modules/mcp/resources/glossary/space.ts
|
|
2
|
-
var spaceResource = {
|
|
3
|
-
uri: "plitzi://docs/space",
|
|
4
|
-
name: "Plitzi Docs: Space",
|
|
5
|
-
description: "A Plitzi project workspace — the top-level container for schema, style, plugins, segments, collections, and deployments.",
|
|
6
|
-
mimeType: "text/markdown",
|
|
7
|
-
content: `# Space
|
|
8
|
-
|
|
9
|
-
A **Space** is the top-level container of a Plitzi project. It holds everything: the page structure (schema), styling (style), plugins, segments, collections, CDN resources, and deployment configurations.
|
|
10
|
-
|
|
11
|
-
## TypeScript Shape (partial)
|
|
12
|
-
|
|
13
|
-
\`\`\`typescript
|
|
14
|
-
type Space = {
|
|
15
|
-
id: number;
|
|
16
|
-
name: string;
|
|
17
|
-
permanentUrl: string; // URL slug identifying the space
|
|
18
|
-
verified: boolean; // Whether the custom domain is verified
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
type SpaceDeployment = {
|
|
22
|
-
id: number;
|
|
23
|
-
environment: Environment; // 'production' | 'staging' | 'development' | 'main'
|
|
24
|
-
revision: number | null;
|
|
25
|
-
domain: string;
|
|
26
|
-
isVerified: boolean;
|
|
27
|
-
default: boolean;
|
|
28
|
-
credential: SpaceCredential | null; // Cloud storage credential for deployment
|
|
29
|
-
createdAt: number;
|
|
30
|
-
updatedAt: number;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
type SpaceCredential = {
|
|
34
|
-
identifier: string;
|
|
35
|
-
name: string;
|
|
36
|
-
provider: 's3' | 'r2' | 'ssr';
|
|
37
|
-
inUse: boolean;
|
|
38
|
-
usedIn: { usedFrom: string; name: string }[];
|
|
39
|
-
createdAt: number;
|
|
40
|
-
updatedAt: number;
|
|
41
|
-
};
|
|
42
|
-
\`\`\`
|
|
43
|
-
|
|
44
|
-
## Key Concepts
|
|
45
|
-
|
|
46
|
-
- **\`permanentUrl\`** — a stable URL slug (e.g. \`my-app\`) that identifies the space. Also stored in \`schema.definition.permanentUrl\`.
|
|
47
|
-
- **Environments** — each space has up to 4 environments: \`main\` (working copy), \`development\`, \`staging\`, \`production\`. Each has its own schema, style, and deployment.
|
|
48
|
-
- **\`SpaceDeployment\`** — maps an environment to a public domain and cloud storage credential for publishing.
|
|
49
|
-
- **\`SpaceCredential\`** — AWS S3 or Cloudflare R2 credentials used to store published assets.
|
|
50
|
-
|
|
51
|
-
## Relationships
|
|
52
|
-
|
|
53
|
-
- A space has one **Schema** and one **Style** per environment.
|
|
54
|
-
- A space owns all **Segments**, **Collections**, and **Resources** (CDN files).
|
|
55
|
-
- A space has installed **Plugins**.
|
|
56
|
-
- The \`main\` environment is always the live editing copy; publishing copies it to \`production\` (or another target environment).
|
|
57
|
-
|
|
58
|
-
## Settings
|
|
59
|
-
|
|
60
|
-
Space-level settings live in \`schema.settings\` and control:
|
|
61
|
-
- Authentication provider (Auth0, basic JWT, custom token endpoint)
|
|
62
|
-
- State persistence (localStorage vs. sessionStorage)
|
|
63
|
-
- Custom global CSS
|
|
64
|
-
|
|
65
|
-
## Common Operations
|
|
66
|
-
|
|
67
|
-
- \`list_spaces\` — list all accessible spaces.
|
|
68
|
-
- \`publish_space\` — publish \`main\` environment to a target environment.
|
|
69
|
-
- \`update_space_settings\` — modify \`schema.settings\` fields.
|
|
70
|
-
`
|
|
71
|
-
};
|
|
72
|
-
//#endregion
|
|
73
|
-
export { spaceResource };
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
//#region src/modules/mcp/resources/glossary/style.ts
|
|
2
|
-
var styleResource = {
|
|
3
|
-
uri: "plitzi://docs/style",
|
|
4
|
-
name: "Plitzi Docs: Style",
|
|
5
|
-
description: "The styling system of a Plitzi space — CSS definitions organized by display mode, selector, and theme.",
|
|
6
|
-
mimeType: "text/markdown",
|
|
7
|
-
content: `# Style
|
|
8
|
-
|
|
9
|
-
The \`Style\` object holds all CSS definitions for a Plitzi space. It is paired one-to-one with a \`Schema\` per environment. Styles are organized by display mode (responsive breakpoints), CSS selector, and optionally by theme (light/dark).
|
|
10
|
-
|
|
11
|
-
## TypeScript Shape
|
|
12
|
-
|
|
13
|
-
\`\`\`typescript
|
|
14
|
-
type Style = {
|
|
15
|
-
platform: Record<DisplayMode, Record<string, StyleItem>>;
|
|
16
|
-
mode?: 'mobile-first' | 'desktop-first';
|
|
17
|
-
theme: {
|
|
18
|
-
default: StyleThemeMode; // 'system' | 'light' | 'dark'
|
|
19
|
-
schemes: StyleThemeMode[]; // Enabled theme schemes
|
|
20
|
-
};
|
|
21
|
-
variables: Partial<StyleVariables>;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
type DisplayMode = 'desktop' | 'tablet' | 'mobile';
|
|
25
|
-
type StyleThemeMode = 'system' | 'light' | 'dark';
|
|
26
|
-
|
|
27
|
-
type StyleItem = {
|
|
28
|
-
name: string; // The CSS selector string
|
|
29
|
-
type: 'class' | 'element' | 'id';
|
|
30
|
-
variables?: Partial<StyleVariables>;
|
|
31
|
-
attributes: StyleAttributes; // CSS properties per sub-selector
|
|
32
|
-
cache: string; // Pre-compiled CSS string (read-only)
|
|
33
|
-
componentType?: string; // Plugin type that owns this selector
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
type StyleAttributes = Record<string, StyleBlock>; // key = sub-selector name (e.g. 'base', 'header')
|
|
37
|
-
|
|
38
|
-
type StyleBlock = {
|
|
39
|
-
default?: StyleObject; // Base CSS properties
|
|
40
|
-
states?: Partial<Record<StyleState, StyleObject>>; // Pseudo-classes
|
|
41
|
-
variants?: Record<string, Omit<StyleBlock, 'variants'>>; // Custom variants
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
type StyleState = 'hover' | 'active' | 'focus' | 'disabled' | 'checked' | 'visited';
|
|
45
|
-
type StyleObject = Partial<Record<StyleCategory, StyleValue>>;
|
|
46
|
-
type StyleValue = number | string;
|
|
47
|
-
|
|
48
|
-
// StyleVariableValue can be theme-aware
|
|
49
|
-
type StyleVariableValue = string | number | {
|
|
50
|
-
light?: string;
|
|
51
|
-
dark?: string;
|
|
52
|
-
default?: string;
|
|
53
|
-
};
|
|
54
|
-
\`\`\`
|
|
55
|
-
|
|
56
|
-
## Key Properties
|
|
57
|
-
|
|
58
|
-
- **\`platform\`** — top-level split by \`DisplayMode\`. Each mode holds a dictionary of selector → \`StyleItem\`. Desktop is the base; tablet and mobile override via breakpoints.
|
|
59
|
-
- **\`StyleItem.name\`** — the raw CSS selector (e.g. \`.btn-primary\`, \`#hero\`, \`button\`).
|
|
60
|
-
- **\`StyleItem.type\`** — whether the selector is a class, element tag, or ID.
|
|
61
|
-
- **\`StyleItem.attributes\`** — the CSS data, keyed by sub-selector slot names. The \`base\` slot always corresponds to the element itself. Other slots (e.g. \`header\`, \`icon\`) target internal parts of a component.
|
|
62
|
-
- **\`StyleBlock.default\`** — normal-state CSS properties.
|
|
63
|
-
- **\`StyleBlock.states\`** — CSS overrides for pseudo-classes (hover, focus, disabled, etc.).
|
|
64
|
-
- **\`StyleBlock.variants\`** — named visual variants applied via \`element.definition.initialState.styleVariant\`.
|
|
65
|
-
- **\`StyleItem.cache\`** — compiled CSS string. Recomputed automatically; do not modify directly.
|
|
66
|
-
- **\`variables\`** — design tokens (colors, spacing, shadows, custom) at the style or item level.
|
|
67
|
-
|
|
68
|
-
## Relationships
|
|
69
|
-
|
|
70
|
-
- Each \`Element\` references its style entries via \`definition.styleSelectors\`, mapping slot names to selector strings in \`style.platform[mode]\`.
|
|
71
|
-
- **Style variables** (\`StyleVariable\`) are design tokens shared across the style system.
|
|
72
|
-
- A **Segment** has its own isolated \`Style\` object, separate from the space style.
|
|
73
|
-
|
|
74
|
-
## Display Mode Behavior
|
|
75
|
-
|
|
76
|
-
- Styles are applied from most-specific breakpoint down to \`desktop\`.
|
|
77
|
-
- In \`mobile-first\` mode, \`desktop\` styles are the widest override; in \`desktop-first\` (default), \`mobile\` overrides narrow screens.
|
|
78
|
-
`
|
|
79
|
-
};
|
|
80
|
-
//#endregion
|
|
81
|
-
export { styleResource };
|