@frontmcp/ui 0.6.0 → 0.6.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/README.md +140 -362
- package/bridge/core/bridge-factory.d.ts +1 -0
- package/bridge/core/bridge-factory.d.ts.map +1 -1
- package/bridge/index.d.ts +1 -1
- package/bridge/index.d.ts.map +1 -1
- package/bridge/index.js +39 -881
- package/bridge/runtime/index.d.ts +2 -1
- package/bridge/runtime/index.d.ts.map +1 -1
- package/bundler/browser-components.d.ts +42 -0
- package/bundler/browser-components.d.ts.map +1 -0
- package/bundler/bundler.d.ts +78 -4
- package/bundler/bundler.d.ts.map +1 -1
- package/bundler/index.d.ts +8 -8
- package/bundler/index.d.ts.map +1 -1
- package/bundler/index.js +1411 -2997
- package/bundler/types.d.ts +188 -7
- package/bundler/types.d.ts.map +1 -1
- package/components/alert.schema.d.ts +6 -6
- package/components/avatar.schema.d.ts +9 -9
- package/components/badge.schema.d.ts +9 -9
- package/components/button.schema.d.ts +9 -9
- package/components/card.schema.d.ts +7 -7
- package/components/form.schema.d.ts +24 -24
- package/components/index.js +128 -198
- package/components/modal.schema.d.ts +8 -8
- package/components/table.schema.d.ts +6 -6
- package/esm/bridge/{index.js → index.mjs} +40 -877
- package/esm/bundler/index.mjs +3136 -0
- package/esm/components/{index.js → index.mjs} +136 -196
- package/esm/index.mjs +5450 -0
- package/esm/layouts/index.mjs +409 -0
- package/esm/package.json +15 -32
- package/esm/react/{index.js → index.mjs} +71 -260
- package/esm/renderers/index.mjs +611 -0
- package/esm/universal/index.mjs +1951 -0
- package/esm/web-components/{index.js → index.mjs} +232 -287
- package/index.d.ts +22 -41
- package/index.d.ts.map +1 -1
- package/index.js +4286 -19607
- package/layouts/base.d.ts +2 -2
- package/layouts/base.d.ts.map +1 -1
- package/layouts/index.js +46 -539
- package/layouts/presets.d.ts.map +1 -1
- package/package.json +15 -32
- package/react/Alert.d.ts +1 -2
- package/react/Alert.d.ts.map +1 -1
- package/react/Badge.d.ts +1 -2
- package/react/Badge.d.ts.map +1 -1
- package/react/Button.d.ts +1 -2
- package/react/Button.d.ts.map +1 -1
- package/react/Card.d.ts +1 -2
- package/react/Card.d.ts.map +1 -1
- package/react/hooks/context.d.ts +1 -1
- package/react/hooks/context.d.ts.map +1 -1
- package/react/index.d.ts +5 -7
- package/react/index.d.ts.map +1 -1
- package/react/index.js +55 -269
- package/react/types.d.ts +1 -2
- package/react/types.d.ts.map +1 -1
- package/renderers/index.d.ts +15 -25
- package/renderers/index.d.ts.map +1 -1
- package/renderers/index.js +393 -1619
- package/renderers/mdx.renderer.d.ts +13 -34
- package/renderers/mdx.renderer.d.ts.map +1 -1
- package/{esm/runtime/adapters → renderers}/react.adapter.d.ts +2 -2
- package/renderers/react.adapter.d.ts.map +1 -0
- package/renderers/react.renderer.d.ts +25 -16
- package/renderers/react.renderer.d.ts.map +1 -1
- package/renderers/transpiler.d.ts +49 -0
- package/renderers/transpiler.d.ts.map +1 -0
- package/universal/cached-runtime.d.ts +25 -1
- package/universal/cached-runtime.d.ts.map +1 -1
- package/universal/index.js +2037 -0
- package/universal/runtime-builder.d.ts.map +1 -1
- package/universal/types.d.ts.map +1 -1
- package/web-components/elements/fmcp-input.d.ts.map +1 -1
- package/web-components/elements/fmcp-select.d.ts.map +1 -1
- package/web-components/index.d.ts +0 -1
- package/web-components/index.d.ts.map +1 -1
- package/web-components/index.js +224 -289
- package/adapters/index.d.ts +0 -13
- package/adapters/index.d.ts.map +0 -1
- package/adapters/index.js +0 -462
- package/adapters/platform-meta.d.ts +0 -166
- package/adapters/platform-meta.d.ts.map +0 -1
- package/adapters/response-builder.d.ts +0 -108
- package/adapters/response-builder.d.ts.map +0 -1
- package/adapters/serving-mode.d.ts +0 -107
- package/adapters/serving-mode.d.ts.map +0 -1
- package/base-template/bridge.d.ts +0 -90
- package/base-template/bridge.d.ts.map +0 -1
- package/base-template/default-base-template.d.ts +0 -92
- package/base-template/default-base-template.d.ts.map +0 -1
- package/base-template/index.d.ts +0 -15
- package/base-template/index.d.ts.map +0 -1
- package/base-template/index.js +0 -1398
- package/base-template/polyfills.d.ts +0 -31
- package/base-template/polyfills.d.ts.map +0 -1
- package/base-template/theme-styles.d.ts +0 -74
- package/base-template/theme-styles.d.ts.map +0 -1
- package/build/cdn-resources.d.ts +0 -243
- package/build/cdn-resources.d.ts.map +0 -1
- package/build/index.d.ts +0 -295
- package/build/index.d.ts.map +0 -1
- package/build/index.js +0 -7096
- package/build/widget-manifest.d.ts +0 -362
- package/build/widget-manifest.d.ts.map +0 -1
- package/bundler/cache.d.ts +0 -173
- package/bundler/cache.d.ts.map +0 -1
- package/bundler/file-cache/component-builder.d.ts +0 -167
- package/bundler/file-cache/component-builder.d.ts.map +0 -1
- package/bundler/file-cache/hash-calculator.d.ts +0 -155
- package/bundler/file-cache/hash-calculator.d.ts.map +0 -1
- package/bundler/file-cache/index.d.ts +0 -12
- package/bundler/file-cache/index.d.ts.map +0 -1
- package/bundler/file-cache/storage/filesystem.d.ts +0 -149
- package/bundler/file-cache/storage/filesystem.d.ts.map +0 -1
- package/bundler/file-cache/storage/index.d.ts +0 -11
- package/bundler/file-cache/storage/index.d.ts.map +0 -1
- package/bundler/file-cache/storage/interface.d.ts +0 -152
- package/bundler/file-cache/storage/interface.d.ts.map +0 -1
- package/bundler/file-cache/storage/redis.d.ts +0 -139
- package/bundler/file-cache/storage/redis.d.ts.map +0 -1
- package/bundler/sandbox/enclave-adapter.d.ts +0 -121
- package/bundler/sandbox/enclave-adapter.d.ts.map +0 -1
- package/bundler/sandbox/executor.d.ts +0 -14
- package/bundler/sandbox/executor.d.ts.map +0 -1
- package/bundler/sandbox/policy.d.ts +0 -62
- package/bundler/sandbox/policy.d.ts.map +0 -1
- package/dependency/cdn-registry.d.ts +0 -98
- package/dependency/cdn-registry.d.ts.map +0 -1
- package/dependency/import-map.d.ts +0 -186
- package/dependency/import-map.d.ts.map +0 -1
- package/dependency/import-parser.d.ts +0 -82
- package/dependency/import-parser.d.ts.map +0 -1
- package/dependency/index.d.ts +0 -17
- package/dependency/index.d.ts.map +0 -1
- package/dependency/resolver.d.ts +0 -164
- package/dependency/resolver.d.ts.map +0 -1
- package/dependency/schemas.d.ts +0 -486
- package/dependency/schemas.d.ts.map +0 -1
- package/dependency/template-loader.d.ts +0 -204
- package/dependency/template-loader.d.ts.map +0 -1
- package/dependency/template-processor.d.ts +0 -118
- package/dependency/template-processor.d.ts.map +0 -1
- package/dependency/types.d.ts +0 -739
- package/dependency/types.d.ts.map +0 -1
- package/esm/adapters/index.d.ts +0 -13
- package/esm/adapters/index.d.ts.map +0 -1
- package/esm/adapters/index.js +0 -427
- package/esm/adapters/platform-meta.d.ts +0 -166
- package/esm/adapters/platform-meta.d.ts.map +0 -1
- package/esm/adapters/response-builder.d.ts +0 -108
- package/esm/adapters/response-builder.d.ts.map +0 -1
- package/esm/adapters/serving-mode.d.ts +0 -107
- package/esm/adapters/serving-mode.d.ts.map +0 -1
- package/esm/base-template/bridge.d.ts +0 -90
- package/esm/base-template/bridge.d.ts.map +0 -1
- package/esm/base-template/default-base-template.d.ts +0 -92
- package/esm/base-template/default-base-template.d.ts.map +0 -1
- package/esm/base-template/index.d.ts +0 -15
- package/esm/base-template/index.d.ts.map +0 -1
- package/esm/base-template/index.js +0 -1364
- package/esm/base-template/polyfills.d.ts +0 -31
- package/esm/base-template/polyfills.d.ts.map +0 -1
- package/esm/base-template/theme-styles.d.ts +0 -74
- package/esm/base-template/theme-styles.d.ts.map +0 -1
- package/esm/bridge/adapters/base-adapter.d.ts +0 -104
- package/esm/bridge/adapters/base-adapter.d.ts.map +0 -1
- package/esm/bridge/adapters/claude.adapter.d.ts +0 -67
- package/esm/bridge/adapters/claude.adapter.d.ts.map +0 -1
- package/esm/bridge/adapters/ext-apps.adapter.d.ts +0 -143
- package/esm/bridge/adapters/ext-apps.adapter.d.ts.map +0 -1
- package/esm/bridge/adapters/gemini.adapter.d.ts +0 -64
- package/esm/bridge/adapters/gemini.adapter.d.ts.map +0 -1
- package/esm/bridge/adapters/generic.adapter.d.ts +0 -56
- package/esm/bridge/adapters/generic.adapter.d.ts.map +0 -1
- package/esm/bridge/adapters/index.d.ts +0 -26
- package/esm/bridge/adapters/index.d.ts.map +0 -1
- package/esm/bridge/adapters/openai.adapter.d.ts +0 -65
- package/esm/bridge/adapters/openai.adapter.d.ts.map +0 -1
- package/esm/bridge/core/adapter-registry.d.ts +0 -122
- package/esm/bridge/core/adapter-registry.d.ts.map +0 -1
- package/esm/bridge/core/bridge-factory.d.ts +0 -199
- package/esm/bridge/core/bridge-factory.d.ts.map +0 -1
- package/esm/bridge/core/index.d.ts +0 -10
- package/esm/bridge/core/index.d.ts.map +0 -1
- package/esm/bridge/index.d.ts +0 -62
- package/esm/bridge/index.d.ts.map +0 -1
- package/esm/bridge/runtime/iife-generator.d.ts +0 -62
- package/esm/bridge/runtime/iife-generator.d.ts.map +0 -1
- package/esm/bridge/runtime/index.d.ts +0 -9
- package/esm/bridge/runtime/index.d.ts.map +0 -1
- package/esm/bridge/types.d.ts +0 -386
- package/esm/bridge/types.d.ts.map +0 -1
- package/esm/build/cdn-resources.d.ts +0 -243
- package/esm/build/cdn-resources.d.ts.map +0 -1
- package/esm/build/index.d.ts +0 -295
- package/esm/build/index.d.ts.map +0 -1
- package/esm/build/index.js +0 -7021
- package/esm/build/widget-manifest.d.ts +0 -362
- package/esm/build/widget-manifest.d.ts.map +0 -1
- package/esm/bundler/bundler.d.ts +0 -208
- package/esm/bundler/bundler.d.ts.map +0 -1
- package/esm/bundler/cache.d.ts +0 -173
- package/esm/bundler/cache.d.ts.map +0 -1
- package/esm/bundler/file-cache/component-builder.d.ts +0 -167
- package/esm/bundler/file-cache/component-builder.d.ts.map +0 -1
- package/esm/bundler/file-cache/hash-calculator.d.ts +0 -155
- package/esm/bundler/file-cache/hash-calculator.d.ts.map +0 -1
- package/esm/bundler/file-cache/index.d.ts +0 -12
- package/esm/bundler/file-cache/index.d.ts.map +0 -1
- package/esm/bundler/file-cache/storage/filesystem.d.ts +0 -149
- package/esm/bundler/file-cache/storage/filesystem.d.ts.map +0 -1
- package/esm/bundler/file-cache/storage/index.d.ts +0 -11
- package/esm/bundler/file-cache/storage/index.d.ts.map +0 -1
- package/esm/bundler/file-cache/storage/interface.d.ts +0 -152
- package/esm/bundler/file-cache/storage/interface.d.ts.map +0 -1
- package/esm/bundler/file-cache/storage/redis.d.ts +0 -139
- package/esm/bundler/file-cache/storage/redis.d.ts.map +0 -1
- package/esm/bundler/index.d.ts +0 -43
- package/esm/bundler/index.d.ts.map +0 -1
- package/esm/bundler/index.js +0 -4687
- package/esm/bundler/sandbox/enclave-adapter.d.ts +0 -121
- package/esm/bundler/sandbox/enclave-adapter.d.ts.map +0 -1
- package/esm/bundler/sandbox/executor.d.ts +0 -14
- package/esm/bundler/sandbox/executor.d.ts.map +0 -1
- package/esm/bundler/sandbox/policy.d.ts +0 -62
- package/esm/bundler/sandbox/policy.d.ts.map +0 -1
- package/esm/bundler/types.d.ts +0 -702
- package/esm/bundler/types.d.ts.map +0 -1
- package/esm/components/alert.d.ts +0 -66
- package/esm/components/alert.d.ts.map +0 -1
- package/esm/components/alert.schema.d.ts +0 -98
- package/esm/components/alert.schema.d.ts.map +0 -1
- package/esm/components/avatar.d.ts +0 -77
- package/esm/components/avatar.d.ts.map +0 -1
- package/esm/components/avatar.schema.d.ts +0 -170
- package/esm/components/avatar.schema.d.ts.map +0 -1
- package/esm/components/badge.d.ts +0 -64
- package/esm/components/badge.d.ts.map +0 -1
- package/esm/components/badge.schema.d.ts +0 -91
- package/esm/components/badge.schema.d.ts.map +0 -1
- package/esm/components/button.d.ts +0 -100
- package/esm/components/button.d.ts.map +0 -1
- package/esm/components/button.schema.d.ts +0 -120
- package/esm/components/button.schema.d.ts.map +0 -1
- package/esm/components/card.d.ts +0 -53
- package/esm/components/card.d.ts.map +0 -1
- package/esm/components/card.schema.d.ts +0 -93
- package/esm/components/card.schema.d.ts.map +0 -1
- package/esm/components/form.d.ts +0 -212
- package/esm/components/form.d.ts.map +0 -1
- package/esm/components/form.schema.d.ts +0 -365
- package/esm/components/form.schema.d.ts.map +0 -1
- package/esm/components/index.d.ts +0 -29
- package/esm/components/index.d.ts.map +0 -1
- package/esm/components/list.d.ts +0 -121
- package/esm/components/list.d.ts.map +0 -1
- package/esm/components/list.schema.d.ts +0 -129
- package/esm/components/list.schema.d.ts.map +0 -1
- package/esm/components/modal.d.ts +0 -100
- package/esm/components/modal.d.ts.map +0 -1
- package/esm/components/modal.schema.d.ts +0 -151
- package/esm/components/modal.schema.d.ts.map +0 -1
- package/esm/components/table.d.ts +0 -91
- package/esm/components/table.d.ts.map +0 -1
- package/esm/components/table.schema.d.ts +0 -123
- package/esm/components/table.schema.d.ts.map +0 -1
- package/esm/dependency/cdn-registry.d.ts +0 -98
- package/esm/dependency/cdn-registry.d.ts.map +0 -1
- package/esm/dependency/import-map.d.ts +0 -186
- package/esm/dependency/import-map.d.ts.map +0 -1
- package/esm/dependency/import-parser.d.ts +0 -82
- package/esm/dependency/import-parser.d.ts.map +0 -1
- package/esm/dependency/index.d.ts +0 -17
- package/esm/dependency/index.d.ts.map +0 -1
- package/esm/dependency/resolver.d.ts +0 -164
- package/esm/dependency/resolver.d.ts.map +0 -1
- package/esm/dependency/schemas.d.ts +0 -486
- package/esm/dependency/schemas.d.ts.map +0 -1
- package/esm/dependency/template-loader.d.ts +0 -204
- package/esm/dependency/template-loader.d.ts.map +0 -1
- package/esm/dependency/template-processor.d.ts +0 -118
- package/esm/dependency/template-processor.d.ts.map +0 -1
- package/esm/dependency/types.d.ts +0 -739
- package/esm/dependency/types.d.ts.map +0 -1
- package/esm/handlebars/expression-extractor.d.ts +0 -147
- package/esm/handlebars/expression-extractor.d.ts.map +0 -1
- package/esm/handlebars/helpers.d.ts +0 -339
- package/esm/handlebars/helpers.d.ts.map +0 -1
- package/esm/handlebars/index.d.ts +0 -195
- package/esm/handlebars/index.d.ts.map +0 -1
- package/esm/handlebars/index.js +0 -587
- package/esm/index.d.ts +0 -56
- package/esm/index.d.ts.map +0 -1
- package/esm/index.js +0 -20511
- package/esm/layouts/base.d.ts +0 -86
- package/esm/layouts/base.d.ts.map +0 -1
- package/esm/layouts/index.d.ts +0 -8
- package/esm/layouts/index.d.ts.map +0 -1
- package/esm/layouts/index.js +0 -892
- package/esm/layouts/presets.d.ts +0 -134
- package/esm/layouts/presets.d.ts.map +0 -1
- package/esm/pages/consent.d.ts +0 -117
- package/esm/pages/consent.d.ts.map +0 -1
- package/esm/pages/error.d.ts +0 -101
- package/esm/pages/error.d.ts.map +0 -1
- package/esm/pages/index.d.ts +0 -9
- package/esm/pages/index.d.ts.map +0 -1
- package/esm/pages/index.js +0 -1563
- package/esm/react/Alert.d.ts +0 -102
- package/esm/react/Alert.d.ts.map +0 -1
- package/esm/react/Badge.d.ts +0 -101
- package/esm/react/Badge.d.ts.map +0 -1
- package/esm/react/Button.d.ts +0 -109
- package/esm/react/Button.d.ts.map +0 -1
- package/esm/react/Card.d.ts +0 -104
- package/esm/react/Card.d.ts.map +0 -1
- package/esm/react/hooks/context.d.ts +0 -179
- package/esm/react/hooks/context.d.ts.map +0 -1
- package/esm/react/hooks/index.d.ts +0 -42
- package/esm/react/hooks/index.d.ts.map +0 -1
- package/esm/react/hooks/tools.d.ts +0 -284
- package/esm/react/hooks/tools.d.ts.map +0 -1
- package/esm/react/index.d.ts +0 -81
- package/esm/react/index.d.ts.map +0 -1
- package/esm/react/types.d.ts +0 -106
- package/esm/react/types.d.ts.map +0 -1
- package/esm/react/utils.d.ts +0 -43
- package/esm/react/utils.d.ts.map +0 -1
- package/esm/registry/index.d.ts +0 -46
- package/esm/registry/index.d.ts.map +0 -1
- package/esm/registry/index.js +0 -6422
- package/esm/registry/render-template.d.ts +0 -91
- package/esm/registry/render-template.d.ts.map +0 -1
- package/esm/registry/tool-ui.registry.d.ts +0 -294
- package/esm/registry/tool-ui.registry.d.ts.map +0 -1
- package/esm/registry/uri-utils.d.ts +0 -56
- package/esm/registry/uri-utils.d.ts.map +0 -1
- package/esm/render/index.d.ts +0 -8
- package/esm/render/index.d.ts.map +0 -1
- package/esm/render/prerender.d.ts +0 -57
- package/esm/render/prerender.d.ts.map +0 -1
- package/esm/renderers/cache.d.ts +0 -145
- package/esm/renderers/cache.d.ts.map +0 -1
- package/esm/renderers/html.renderer.d.ts +0 -123
- package/esm/renderers/html.renderer.d.ts.map +0 -1
- package/esm/renderers/index.d.ts +0 -36
- package/esm/renderers/index.d.ts.map +0 -1
- package/esm/renderers/index.js +0 -1827
- package/esm/renderers/mdx.renderer.d.ts +0 -120
- package/esm/renderers/mdx.renderer.d.ts.map +0 -1
- package/esm/renderers/react.renderer.d.ts +0 -96
- package/esm/renderers/react.renderer.d.ts.map +0 -1
- package/esm/renderers/registry.d.ts +0 -134
- package/esm/renderers/registry.d.ts.map +0 -1
- package/esm/renderers/types.d.ts +0 -342
- package/esm/renderers/types.d.ts.map +0 -1
- package/esm/renderers/utils/detect.d.ts +0 -107
- package/esm/renderers/utils/detect.d.ts.map +0 -1
- package/esm/renderers/utils/hash.d.ts +0 -40
- package/esm/renderers/utils/hash.d.ts.map +0 -1
- package/esm/renderers/utils/index.d.ts +0 -9
- package/esm/renderers/utils/index.d.ts.map +0 -1
- package/esm/renderers/utils/transpiler.d.ts +0 -89
- package/esm/renderers/utils/transpiler.d.ts.map +0 -1
- package/esm/runtime/adapters/html.adapter.d.ts +0 -59
- package/esm/runtime/adapters/html.adapter.d.ts.map +0 -1
- package/esm/runtime/adapters/index.d.ts +0 -26
- package/esm/runtime/adapters/index.d.ts.map +0 -1
- package/esm/runtime/adapters/mdx.adapter.d.ts +0 -73
- package/esm/runtime/adapters/mdx.adapter.d.ts.map +0 -1
- package/esm/runtime/adapters/react.adapter.d.ts.map +0 -1
- package/esm/runtime/adapters/types.d.ts +0 -95
- package/esm/runtime/adapters/types.d.ts.map +0 -1
- package/esm/runtime/csp.d.ts +0 -48
- package/esm/runtime/csp.d.ts.map +0 -1
- package/esm/runtime/index.d.ts +0 -17
- package/esm/runtime/index.d.ts.map +0 -1
- package/esm/runtime/index.js +0 -5186
- package/esm/runtime/mcp-bridge.d.ts +0 -101
- package/esm/runtime/mcp-bridge.d.ts.map +0 -1
- package/esm/runtime/renderer-runtime.d.ts +0 -133
- package/esm/runtime/renderer-runtime.d.ts.map +0 -1
- package/esm/runtime/sanitizer.d.ts +0 -172
- package/esm/runtime/sanitizer.d.ts.map +0 -1
- package/esm/runtime/types.d.ts +0 -415
- package/esm/runtime/types.d.ts.map +0 -1
- package/esm/runtime/wrapper.d.ts +0 -421
- package/esm/runtime/wrapper.d.ts.map +0 -1
- package/esm/styles/index.d.ts +0 -8
- package/esm/styles/index.d.ts.map +0 -1
- package/esm/styles/index.js +0 -171
- package/esm/styles/variants.d.ts +0 -51
- package/esm/styles/variants.d.ts.map +0 -1
- package/esm/theme/cdn.d.ts +0 -195
- package/esm/theme/cdn.d.ts.map +0 -1
- package/esm/theme/index.d.ts +0 -18
- package/esm/theme/index.d.ts.map +0 -1
- package/esm/theme/index.js +0 -700
- package/esm/theme/platforms.d.ts +0 -107
- package/esm/theme/platforms.d.ts.map +0 -1
- package/esm/theme/presets/github-openai.d.ts +0 -50
- package/esm/theme/presets/github-openai.d.ts.map +0 -1
- package/esm/theme/presets/index.d.ts +0 -11
- package/esm/theme/presets/index.d.ts.map +0 -1
- package/esm/theme/theme.d.ts +0 -396
- package/esm/theme/theme.d.ts.map +0 -1
- package/esm/tool-template/builder.d.ts +0 -213
- package/esm/tool-template/builder.d.ts.map +0 -1
- package/esm/tool-template/index.d.ts +0 -16
- package/esm/tool-template/index.d.ts.map +0 -1
- package/esm/tool-template/index.js +0 -3515
- package/esm/types/index.d.ts +0 -14
- package/esm/types/index.d.ts.map +0 -1
- package/esm/types/index.js +0 -75
- package/esm/types/ui-config.d.ts +0 -639
- package/esm/types/ui-config.d.ts.map +0 -1
- package/esm/types/ui-runtime.d.ts +0 -1007
- package/esm/types/ui-runtime.d.ts.map +0 -1
- package/esm/typings/cache/cache-adapter.d.ts +0 -125
- package/esm/typings/cache/cache-adapter.d.ts.map +0 -1
- package/esm/typings/cache/index.d.ts +0 -10
- package/esm/typings/cache/index.d.ts.map +0 -1
- package/esm/typings/cache/memory-cache.d.ts +0 -92
- package/esm/typings/cache/memory-cache.d.ts.map +0 -1
- package/esm/typings/dts-parser.d.ts +0 -90
- package/esm/typings/dts-parser.d.ts.map +0 -1
- package/esm/typings/index.d.ts +0 -48
- package/esm/typings/index.d.ts.map +0 -1
- package/esm/typings/schemas.d.ts +0 -232
- package/esm/typings/schemas.d.ts.map +0 -1
- package/esm/typings/type-fetcher.d.ts +0 -89
- package/esm/typings/type-fetcher.d.ts.map +0 -1
- package/esm/typings/types.d.ts +0 -320
- package/esm/typings/types.d.ts.map +0 -1
- package/esm/universal/UniversalApp.d.ts +0 -108
- package/esm/universal/UniversalApp.d.ts.map +0 -1
- package/esm/universal/cached-runtime.d.ts +0 -115
- package/esm/universal/cached-runtime.d.ts.map +0 -1
- package/esm/universal/context.d.ts +0 -122
- package/esm/universal/context.d.ts.map +0 -1
- package/esm/universal/index.d.ts +0 -57
- package/esm/universal/index.d.ts.map +0 -1
- package/esm/universal/renderers/html.renderer.d.ts +0 -37
- package/esm/universal/renderers/html.renderer.d.ts.map +0 -1
- package/esm/universal/renderers/index.d.ts +0 -112
- package/esm/universal/renderers/index.d.ts.map +0 -1
- package/esm/universal/renderers/markdown.renderer.d.ts +0 -33
- package/esm/universal/renderers/markdown.renderer.d.ts.map +0 -1
- package/esm/universal/renderers/mdx.renderer.d.ts +0 -38
- package/esm/universal/renderers/mdx.renderer.d.ts.map +0 -1
- package/esm/universal/renderers/react.renderer.d.ts +0 -46
- package/esm/universal/renderers/react.renderer.d.ts.map +0 -1
- package/esm/universal/runtime-builder.d.ts +0 -33
- package/esm/universal/runtime-builder.d.ts.map +0 -1
- package/esm/universal/store.d.ts +0 -135
- package/esm/universal/store.d.ts.map +0 -1
- package/esm/universal/types.d.ts +0 -199
- package/esm/universal/types.d.ts.map +0 -1
- package/esm/utils/escape-html.d.ts +0 -58
- package/esm/utils/escape-html.d.ts.map +0 -1
- package/esm/utils/index.d.ts +0 -10
- package/esm/utils/index.d.ts.map +0 -1
- package/esm/utils/index.js +0 -40
- package/esm/utils/safe-stringify.d.ts +0 -30
- package/esm/utils/safe-stringify.d.ts.map +0 -1
- package/esm/validation/error-box.d.ts +0 -56
- package/esm/validation/error-box.d.ts.map +0 -1
- package/esm/validation/index.d.ts +0 -13
- package/esm/validation/index.d.ts.map +0 -1
- package/esm/validation/index.js +0 -562
- package/esm/validation/schema-paths.d.ts +0 -118
- package/esm/validation/schema-paths.d.ts.map +0 -1
- package/esm/validation/template-validator.d.ts +0 -143
- package/esm/validation/template-validator.d.ts.map +0 -1
- package/esm/validation/wrapper.d.ts +0 -97
- package/esm/validation/wrapper.d.ts.map +0 -1
- package/esm/web-components/core/attribute-parser.d.ts +0 -82
- package/esm/web-components/core/attribute-parser.d.ts.map +0 -1
- package/esm/web-components/core/base-element.d.ts +0 -197
- package/esm/web-components/core/base-element.d.ts.map +0 -1
- package/esm/web-components/core/index.d.ts +0 -9
- package/esm/web-components/core/index.d.ts.map +0 -1
- package/esm/web-components/elements/fmcp-alert.d.ts +0 -46
- package/esm/web-components/elements/fmcp-alert.d.ts.map +0 -1
- package/esm/web-components/elements/fmcp-badge.d.ts +0 -47
- package/esm/web-components/elements/fmcp-badge.d.ts.map +0 -1
- package/esm/web-components/elements/fmcp-button.d.ts +0 -117
- package/esm/web-components/elements/fmcp-button.d.ts.map +0 -1
- package/esm/web-components/elements/fmcp-card.d.ts +0 -53
- package/esm/web-components/elements/fmcp-card.d.ts.map +0 -1
- package/esm/web-components/elements/fmcp-input.d.ts +0 -96
- package/esm/web-components/elements/fmcp-input.d.ts.map +0 -1
- package/esm/web-components/elements/fmcp-select.d.ts +0 -100
- package/esm/web-components/elements/fmcp-select.d.ts.map +0 -1
- package/esm/web-components/elements/index.d.ts +0 -13
- package/esm/web-components/elements/index.d.ts.map +0 -1
- package/esm/web-components/index.d.ts +0 -50
- package/esm/web-components/index.d.ts.map +0 -1
- package/esm/web-components/register.d.ts +0 -57
- package/esm/web-components/register.d.ts.map +0 -1
- package/esm/web-components/types.d.ts +0 -122
- package/esm/web-components/types.d.ts.map +0 -1
- package/esm/widgets/index.d.ts +0 -8
- package/esm/widgets/index.d.ts.map +0 -1
- package/esm/widgets/index.js +0 -941
- package/esm/widgets/progress.d.ts +0 -133
- package/esm/widgets/progress.d.ts.map +0 -1
- package/esm/widgets/resource.d.ts +0 -163
- package/esm/widgets/resource.d.ts.map +0 -1
- package/handlebars/expression-extractor.d.ts +0 -147
- package/handlebars/expression-extractor.d.ts.map +0 -1
- package/handlebars/helpers.d.ts +0 -339
- package/handlebars/helpers.d.ts.map +0 -1
- package/handlebars/index.d.ts +0 -195
- package/handlebars/index.d.ts.map +0 -1
- package/handlebars/index.js +0 -666
- package/pages/consent.d.ts +0 -117
- package/pages/consent.d.ts.map +0 -1
- package/pages/error.d.ts +0 -101
- package/pages/error.d.ts.map +0 -1
- package/pages/index.d.ts +0 -9
- package/pages/index.d.ts.map +0 -1
- package/pages/index.js +0 -1602
- package/react/utils.d.ts +0 -43
- package/react/utils.d.ts.map +0 -1
- package/registry/index.d.ts +0 -46
- package/registry/index.d.ts.map +0 -1
- package/registry/index.js +0 -6465
- package/registry/render-template.d.ts +0 -91
- package/registry/render-template.d.ts.map +0 -1
- package/registry/tool-ui.registry.d.ts +0 -294
- package/registry/tool-ui.registry.d.ts.map +0 -1
- package/registry/uri-utils.d.ts +0 -56
- package/registry/uri-utils.d.ts.map +0 -1
- package/renderers/cache.d.ts +0 -145
- package/renderers/cache.d.ts.map +0 -1
- package/renderers/html.renderer.d.ts +0 -123
- package/renderers/html.renderer.d.ts.map +0 -1
- package/renderers/registry.d.ts +0 -134
- package/renderers/registry.d.ts.map +0 -1
- package/renderers/types.d.ts +0 -342
- package/renderers/types.d.ts.map +0 -1
- package/renderers/utils/detect.d.ts +0 -107
- package/renderers/utils/detect.d.ts.map +0 -1
- package/renderers/utils/hash.d.ts +0 -40
- package/renderers/utils/hash.d.ts.map +0 -1
- package/renderers/utils/index.d.ts +0 -9
- package/renderers/utils/index.d.ts.map +0 -1
- package/renderers/utils/transpiler.d.ts +0 -89
- package/renderers/utils/transpiler.d.ts.map +0 -1
- package/runtime/adapters/html.adapter.d.ts +0 -59
- package/runtime/adapters/html.adapter.d.ts.map +0 -1
- package/runtime/adapters/index.d.ts +0 -26
- package/runtime/adapters/index.d.ts.map +0 -1
- package/runtime/adapters/mdx.adapter.d.ts +0 -73
- package/runtime/adapters/mdx.adapter.d.ts.map +0 -1
- package/runtime/adapters/react.adapter.d.ts +0 -70
- package/runtime/adapters/react.adapter.d.ts.map +0 -1
- package/runtime/adapters/types.d.ts +0 -95
- package/runtime/adapters/types.d.ts.map +0 -1
- package/runtime/csp.d.ts +0 -48
- package/runtime/csp.d.ts.map +0 -1
- package/runtime/index.d.ts +0 -17
- package/runtime/index.d.ts.map +0 -1
- package/runtime/index.js +0 -5264
- package/runtime/mcp-bridge.d.ts +0 -101
- package/runtime/mcp-bridge.d.ts.map +0 -1
- package/runtime/renderer-runtime.d.ts +0 -133
- package/runtime/renderer-runtime.d.ts.map +0 -1
- package/runtime/sanitizer.d.ts +0 -172
- package/runtime/sanitizer.d.ts.map +0 -1
- package/runtime/types.d.ts +0 -415
- package/runtime/types.d.ts.map +0 -1
- package/runtime/wrapper.d.ts +0 -421
- package/runtime/wrapper.d.ts.map +0 -1
- package/styles/index.d.ts +0 -8
- package/styles/index.d.ts.map +0 -1
- package/styles/index.js +0 -222
- package/styles/variants.d.ts +0 -51
- package/styles/variants.d.ts.map +0 -1
- package/theme/cdn.d.ts +0 -195
- package/theme/cdn.d.ts.map +0 -1
- package/theme/index.d.ts +0 -18
- package/theme/index.d.ts.map +0 -1
- package/theme/index.js +0 -757
- package/theme/platforms.d.ts +0 -107
- package/theme/platforms.d.ts.map +0 -1
- package/theme/presets/github-openai.d.ts +0 -50
- package/theme/presets/github-openai.d.ts.map +0 -1
- package/theme/presets/index.d.ts +0 -11
- package/theme/presets/index.d.ts.map +0 -1
- package/theme/theme.d.ts +0 -396
- package/theme/theme.d.ts.map +0 -1
- package/tool-template/builder.d.ts +0 -213
- package/tool-template/builder.d.ts.map +0 -1
- package/tool-template/index.d.ts +0 -16
- package/tool-template/index.d.ts.map +0 -1
- package/tool-template/index.js +0 -3559
- package/types/index.d.ts +0 -14
- package/types/index.d.ts.map +0 -1
- package/types/index.js +0 -108
- package/types/ui-config.d.ts +0 -639
- package/types/ui-config.d.ts.map +0 -1
- package/types/ui-runtime.d.ts +0 -1007
- package/types/ui-runtime.d.ts.map +0 -1
- package/typings/cache/cache-adapter.d.ts +0 -125
- package/typings/cache/cache-adapter.d.ts.map +0 -1
- package/typings/cache/index.d.ts +0 -10
- package/typings/cache/index.d.ts.map +0 -1
- package/typings/cache/memory-cache.d.ts +0 -92
- package/typings/cache/memory-cache.d.ts.map +0 -1
- package/typings/dts-parser.d.ts +0 -90
- package/typings/dts-parser.d.ts.map +0 -1
- package/typings/index.d.ts +0 -48
- package/typings/index.d.ts.map +0 -1
- package/typings/schemas.d.ts +0 -232
- package/typings/schemas.d.ts.map +0 -1
- package/typings/type-fetcher.d.ts +0 -89
- package/typings/type-fetcher.d.ts.map +0 -1
- package/typings/types.d.ts +0 -320
- package/typings/types.d.ts.map +0 -1
- package/utils/escape-html.d.ts +0 -58
- package/utils/escape-html.d.ts.map +0 -1
- package/utils/index.d.ts +0 -10
- package/utils/index.d.ts.map +0 -1
- package/utils/index.js +0 -70
- package/utils/safe-stringify.d.ts +0 -30
- package/utils/safe-stringify.d.ts.map +0 -1
- package/validation/error-box.d.ts +0 -56
- package/validation/error-box.d.ts.map +0 -1
- package/validation/index.d.ts +0 -13
- package/validation/index.d.ts.map +0 -1
- package/validation/index.js +0 -603
- package/validation/schema-paths.d.ts +0 -118
- package/validation/schema-paths.d.ts.map +0 -1
- package/validation/template-validator.d.ts +0 -143
- package/validation/template-validator.d.ts.map +0 -1
- package/validation/wrapper.d.ts +0 -97
- package/validation/wrapper.d.ts.map +0 -1
- package/widgets/index.d.ts +0 -8
- package/widgets/index.d.ts.map +0 -1
- package/widgets/index.js +0 -978
- package/widgets/progress.d.ts +0 -133
- package/widgets/progress.d.ts.map +0 -1
- package/widgets/resource.d.ts +0 -163
- package/widgets/resource.d.ts.map +0 -1
- /package/esm/render/{index.js → index.mjs} +0 -0
|
@@ -1,365 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file form.schema.ts
|
|
3
|
-
* @description Zod schemas for Form component options validation.
|
|
4
|
-
*
|
|
5
|
-
* Provides strict validation schemas for all form-related components including
|
|
6
|
-
* input, select, textarea, checkbox, radio groups, and form layouts.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```typescript
|
|
10
|
-
* import { InputOptionsSchema, SelectOptionsSchema } from '@frontmcp/ui';
|
|
11
|
-
*
|
|
12
|
-
* const inputResult = InputOptionsSchema.safeParse({
|
|
13
|
-
* name: 'email',
|
|
14
|
-
* type: 'email',
|
|
15
|
-
* label: 'Email Address',
|
|
16
|
-
* });
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @module @frontmcp/ui/components/form.schema
|
|
20
|
-
*/
|
|
21
|
-
import { z } from 'zod';
|
|
22
|
-
/**
|
|
23
|
-
* Input type enum schema
|
|
24
|
-
*/
|
|
25
|
-
export declare const InputTypeSchema: z.ZodEnum<{
|
|
26
|
-
number: "number";
|
|
27
|
-
url: "url";
|
|
28
|
-
text: "text";
|
|
29
|
-
search: "search";
|
|
30
|
-
time: "time";
|
|
31
|
-
date: "date";
|
|
32
|
-
email: "email";
|
|
33
|
-
password: "password";
|
|
34
|
-
tel: "tel";
|
|
35
|
-
"datetime-local": "datetime-local";
|
|
36
|
-
hidden: "hidden";
|
|
37
|
-
}>;
|
|
38
|
-
/**
|
|
39
|
-
* Input type
|
|
40
|
-
*/
|
|
41
|
-
export type InputType = z.infer<typeof InputTypeSchema>;
|
|
42
|
-
/**
|
|
43
|
-
* Input size enum schema
|
|
44
|
-
*/
|
|
45
|
-
export declare const InputSizeSchema: z.ZodEnum<{
|
|
46
|
-
sm: "sm";
|
|
47
|
-
lg: "lg";
|
|
48
|
-
md: "md";
|
|
49
|
-
}>;
|
|
50
|
-
/**
|
|
51
|
-
* Input size type
|
|
52
|
-
*/
|
|
53
|
-
export type InputSize = z.infer<typeof InputSizeSchema>;
|
|
54
|
-
/**
|
|
55
|
-
* Input state enum schema
|
|
56
|
-
*/
|
|
57
|
-
export declare const InputStateSchema: z.ZodEnum<{
|
|
58
|
-
default: "default";
|
|
59
|
-
success: "success";
|
|
60
|
-
warning: "warning";
|
|
61
|
-
error: "error";
|
|
62
|
-
}>;
|
|
63
|
-
/**
|
|
64
|
-
* Input state type
|
|
65
|
-
*/
|
|
66
|
-
export type InputState = z.infer<typeof InputStateSchema>;
|
|
67
|
-
/**
|
|
68
|
-
* Complete input options schema
|
|
69
|
-
*/
|
|
70
|
-
export declare const InputOptionsSchema: z.ZodObject<{
|
|
71
|
-
type: z.ZodOptional<z.ZodEnum<{
|
|
72
|
-
number: "number";
|
|
73
|
-
url: "url";
|
|
74
|
-
text: "text";
|
|
75
|
-
search: "search";
|
|
76
|
-
time: "time";
|
|
77
|
-
date: "date";
|
|
78
|
-
email: "email";
|
|
79
|
-
password: "password";
|
|
80
|
-
tel: "tel";
|
|
81
|
-
"datetime-local": "datetime-local";
|
|
82
|
-
hidden: "hidden";
|
|
83
|
-
}>>;
|
|
84
|
-
name: z.ZodString;
|
|
85
|
-
id: z.ZodOptional<z.ZodString>;
|
|
86
|
-
value: z.ZodOptional<z.ZodString>;
|
|
87
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
88
|
-
label: z.ZodOptional<z.ZodString>;
|
|
89
|
-
helper: z.ZodOptional<z.ZodString>;
|
|
90
|
-
error: z.ZodOptional<z.ZodString>;
|
|
91
|
-
size: z.ZodOptional<z.ZodEnum<{
|
|
92
|
-
sm: "sm";
|
|
93
|
-
lg: "lg";
|
|
94
|
-
md: "md";
|
|
95
|
-
}>>;
|
|
96
|
-
state: z.ZodOptional<z.ZodEnum<{
|
|
97
|
-
default: "default";
|
|
98
|
-
success: "success";
|
|
99
|
-
warning: "warning";
|
|
100
|
-
error: "error";
|
|
101
|
-
}>>;
|
|
102
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
-
readonly: z.ZodOptional<z.ZodBoolean>;
|
|
105
|
-
autocomplete: z.ZodOptional<z.ZodString>;
|
|
106
|
-
pattern: z.ZodOptional<z.ZodString>;
|
|
107
|
-
min: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
108
|
-
max: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
109
|
-
step: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
110
|
-
className: z.ZodOptional<z.ZodString>;
|
|
111
|
-
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
112
|
-
iconBefore: z.ZodOptional<z.ZodString>;
|
|
113
|
-
iconAfter: z.ZodOptional<z.ZodString>;
|
|
114
|
-
}, z.core.$strict>;
|
|
115
|
-
/**
|
|
116
|
-
* Input options type (derived from schema)
|
|
117
|
-
*/
|
|
118
|
-
export type InputOptions = z.infer<typeof InputOptionsSchema>;
|
|
119
|
-
/**
|
|
120
|
-
* Select option item schema
|
|
121
|
-
*/
|
|
122
|
-
export declare const SelectOptionItemSchema: z.ZodObject<{
|
|
123
|
-
value: z.ZodString;
|
|
124
|
-
label: z.ZodString;
|
|
125
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
-
selected: z.ZodOptional<z.ZodBoolean>;
|
|
127
|
-
}, z.core.$strict>;
|
|
128
|
-
/**
|
|
129
|
-
* Select option item type
|
|
130
|
-
*/
|
|
131
|
-
export type SelectOptionItem = z.infer<typeof SelectOptionItemSchema>;
|
|
132
|
-
/**
|
|
133
|
-
* Complete select options schema
|
|
134
|
-
*/
|
|
135
|
-
export declare const SelectOptionsSchema: z.ZodObject<{
|
|
136
|
-
name: z.ZodString;
|
|
137
|
-
id: z.ZodOptional<z.ZodString>;
|
|
138
|
-
value: z.ZodOptional<z.ZodString>;
|
|
139
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
140
|
-
label: z.ZodOptional<z.ZodString>;
|
|
141
|
-
helper: z.ZodOptional<z.ZodString>;
|
|
142
|
-
error: z.ZodOptional<z.ZodString>;
|
|
143
|
-
size: z.ZodOptional<z.ZodEnum<{
|
|
144
|
-
sm: "sm";
|
|
145
|
-
lg: "lg";
|
|
146
|
-
md: "md";
|
|
147
|
-
}>>;
|
|
148
|
-
state: z.ZodOptional<z.ZodEnum<{
|
|
149
|
-
default: "default";
|
|
150
|
-
success: "success";
|
|
151
|
-
warning: "warning";
|
|
152
|
-
error: "error";
|
|
153
|
-
}>>;
|
|
154
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
155
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
156
|
-
readonly: z.ZodOptional<z.ZodBoolean>;
|
|
157
|
-
className: z.ZodOptional<z.ZodString>;
|
|
158
|
-
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
159
|
-
iconBefore: z.ZodOptional<z.ZodString>;
|
|
160
|
-
iconAfter: z.ZodOptional<z.ZodString>;
|
|
161
|
-
options: z.ZodArray<z.ZodObject<{
|
|
162
|
-
value: z.ZodString;
|
|
163
|
-
label: z.ZodString;
|
|
164
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
165
|
-
selected: z.ZodOptional<z.ZodBoolean>;
|
|
166
|
-
}, z.core.$strict>>;
|
|
167
|
-
multiple: z.ZodOptional<z.ZodBoolean>;
|
|
168
|
-
}, z.core.$strict>;
|
|
169
|
-
/**
|
|
170
|
-
* Select options type
|
|
171
|
-
*/
|
|
172
|
-
export type SelectOptions = z.infer<typeof SelectOptionsSchema>;
|
|
173
|
-
/**
|
|
174
|
-
* Textarea resize enum schema
|
|
175
|
-
*/
|
|
176
|
-
export declare const TextareaResizeSchema: z.ZodEnum<{
|
|
177
|
-
none: "none";
|
|
178
|
-
both: "both";
|
|
179
|
-
horizontal: "horizontal";
|
|
180
|
-
vertical: "vertical";
|
|
181
|
-
}>;
|
|
182
|
-
/**
|
|
183
|
-
* Complete textarea options schema
|
|
184
|
-
*/
|
|
185
|
-
export declare const TextareaOptionsSchema: z.ZodObject<{
|
|
186
|
-
name: z.ZodString;
|
|
187
|
-
id: z.ZodOptional<z.ZodString>;
|
|
188
|
-
value: z.ZodOptional<z.ZodString>;
|
|
189
|
-
placeholder: z.ZodOptional<z.ZodString>;
|
|
190
|
-
label: z.ZodOptional<z.ZodString>;
|
|
191
|
-
helper: z.ZodOptional<z.ZodString>;
|
|
192
|
-
error: z.ZodOptional<z.ZodString>;
|
|
193
|
-
size: z.ZodOptional<z.ZodEnum<{
|
|
194
|
-
sm: "sm";
|
|
195
|
-
lg: "lg";
|
|
196
|
-
md: "md";
|
|
197
|
-
}>>;
|
|
198
|
-
state: z.ZodOptional<z.ZodEnum<{
|
|
199
|
-
default: "default";
|
|
200
|
-
success: "success";
|
|
201
|
-
warning: "warning";
|
|
202
|
-
error: "error";
|
|
203
|
-
}>>;
|
|
204
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
205
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
206
|
-
readonly: z.ZodOptional<z.ZodBoolean>;
|
|
207
|
-
autocomplete: z.ZodOptional<z.ZodString>;
|
|
208
|
-
className: z.ZodOptional<z.ZodString>;
|
|
209
|
-
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
210
|
-
iconBefore: z.ZodOptional<z.ZodString>;
|
|
211
|
-
iconAfter: z.ZodOptional<z.ZodString>;
|
|
212
|
-
rows: z.ZodOptional<z.ZodNumber>;
|
|
213
|
-
resize: z.ZodOptional<z.ZodEnum<{
|
|
214
|
-
none: "none";
|
|
215
|
-
both: "both";
|
|
216
|
-
horizontal: "horizontal";
|
|
217
|
-
vertical: "vertical";
|
|
218
|
-
}>>;
|
|
219
|
-
}, z.core.$strict>;
|
|
220
|
-
/**
|
|
221
|
-
* Textarea options type
|
|
222
|
-
*/
|
|
223
|
-
export type TextareaOptions = z.infer<typeof TextareaOptionsSchema>;
|
|
224
|
-
/**
|
|
225
|
-
* Complete checkbox options schema
|
|
226
|
-
*/
|
|
227
|
-
export declare const CheckboxOptionsSchema: z.ZodObject<{
|
|
228
|
-
name: z.ZodString;
|
|
229
|
-
id: z.ZodOptional<z.ZodString>;
|
|
230
|
-
value: z.ZodOptional<z.ZodString>;
|
|
231
|
-
label: z.ZodString;
|
|
232
|
-
checked: z.ZodOptional<z.ZodBoolean>;
|
|
233
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
234
|
-
helper: z.ZodOptional<z.ZodString>;
|
|
235
|
-
error: z.ZodOptional<z.ZodString>;
|
|
236
|
-
className: z.ZodOptional<z.ZodString>;
|
|
237
|
-
}, z.core.$strict>;
|
|
238
|
-
/**
|
|
239
|
-
* Checkbox options type
|
|
240
|
-
*/
|
|
241
|
-
export type CheckboxOptions = z.infer<typeof CheckboxOptionsSchema>;
|
|
242
|
-
/**
|
|
243
|
-
* Radio option item schema
|
|
244
|
-
*/
|
|
245
|
-
export declare const RadioOptionItemSchema: z.ZodObject<{
|
|
246
|
-
value: z.ZodString;
|
|
247
|
-
label: z.ZodString;
|
|
248
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
249
|
-
}, z.core.$strict>;
|
|
250
|
-
/**
|
|
251
|
-
* Radio option item type
|
|
252
|
-
*/
|
|
253
|
-
export type RadioOptionItem = z.infer<typeof RadioOptionItemSchema>;
|
|
254
|
-
/**
|
|
255
|
-
* Complete radio group options schema
|
|
256
|
-
*/
|
|
257
|
-
export declare const RadioGroupOptionsSchema: z.ZodObject<{
|
|
258
|
-
name: z.ZodString;
|
|
259
|
-
options: z.ZodArray<z.ZodObject<{
|
|
260
|
-
value: z.ZodString;
|
|
261
|
-
label: z.ZodString;
|
|
262
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
263
|
-
}, z.core.$strict>>;
|
|
264
|
-
value: z.ZodOptional<z.ZodString>;
|
|
265
|
-
label: z.ZodOptional<z.ZodString>;
|
|
266
|
-
helper: z.ZodOptional<z.ZodString>;
|
|
267
|
-
error: z.ZodOptional<z.ZodString>;
|
|
268
|
-
direction: z.ZodOptional<z.ZodEnum<{
|
|
269
|
-
horizontal: "horizontal";
|
|
270
|
-
vertical: "vertical";
|
|
271
|
-
}>>;
|
|
272
|
-
className: z.ZodOptional<z.ZodString>;
|
|
273
|
-
}, z.core.$strict>;
|
|
274
|
-
/**
|
|
275
|
-
* Radio group options type
|
|
276
|
-
*/
|
|
277
|
-
export type RadioGroupOptions = z.infer<typeof RadioGroupOptionsSchema>;
|
|
278
|
-
/**
|
|
279
|
-
* Form method enum schema
|
|
280
|
-
*/
|
|
281
|
-
export declare const FormMethodSchema: z.ZodEnum<{
|
|
282
|
-
get: "get";
|
|
283
|
-
dialog: "dialog";
|
|
284
|
-
post: "post";
|
|
285
|
-
}>;
|
|
286
|
-
/**
|
|
287
|
-
* Form enctype enum schema
|
|
288
|
-
*/
|
|
289
|
-
export declare const FormEnctypeSchema: z.ZodEnum<{
|
|
290
|
-
"application/x-www-form-urlencoded": "application/x-www-form-urlencoded";
|
|
291
|
-
"multipart/form-data": "multipart/form-data";
|
|
292
|
-
"text/plain": "text/plain";
|
|
293
|
-
}>;
|
|
294
|
-
/**
|
|
295
|
-
* Complete form options schema
|
|
296
|
-
*/
|
|
297
|
-
export declare const FormOptionsSchema: z.ZodObject<{
|
|
298
|
-
action: z.ZodOptional<z.ZodString>;
|
|
299
|
-
method: z.ZodOptional<z.ZodEnum<{
|
|
300
|
-
get: "get";
|
|
301
|
-
dialog: "dialog";
|
|
302
|
-
post: "post";
|
|
303
|
-
}>>;
|
|
304
|
-
id: z.ZodOptional<z.ZodString>;
|
|
305
|
-
enctype: z.ZodOptional<z.ZodEnum<{
|
|
306
|
-
"application/x-www-form-urlencoded": "application/x-www-form-urlencoded";
|
|
307
|
-
"multipart/form-data": "multipart/form-data";
|
|
308
|
-
"text/plain": "text/plain";
|
|
309
|
-
}>>;
|
|
310
|
-
novalidate: z.ZodOptional<z.ZodBoolean>;
|
|
311
|
-
autocomplete: z.ZodOptional<z.ZodEnum<{
|
|
312
|
-
on: "on";
|
|
313
|
-
off: "off";
|
|
314
|
-
}>>;
|
|
315
|
-
className: z.ZodOptional<z.ZodString>;
|
|
316
|
-
}, z.core.$strict>;
|
|
317
|
-
/**
|
|
318
|
-
* Form options type
|
|
319
|
-
*/
|
|
320
|
-
export type FormOptions = z.infer<typeof FormOptionsSchema>;
|
|
321
|
-
/**
|
|
322
|
-
* Form row options schema
|
|
323
|
-
*/
|
|
324
|
-
export declare const FormRowOptionsSchema: z.ZodObject<{
|
|
325
|
-
cols: z.ZodOptional<z.ZodNumber>;
|
|
326
|
-
gap: z.ZodOptional<z.ZodEnum<{
|
|
327
|
-
sm: "sm";
|
|
328
|
-
lg: "lg";
|
|
329
|
-
md: "md";
|
|
330
|
-
}>>;
|
|
331
|
-
className: z.ZodOptional<z.ZodString>;
|
|
332
|
-
}, z.core.$strict>;
|
|
333
|
-
/**
|
|
334
|
-
* Form row options type
|
|
335
|
-
*/
|
|
336
|
-
export type FormRowOptions = z.infer<typeof FormRowOptionsSchema>;
|
|
337
|
-
/**
|
|
338
|
-
* Form section options schema
|
|
339
|
-
*/
|
|
340
|
-
export declare const FormSectionOptionsSchema: z.ZodObject<{
|
|
341
|
-
title: z.ZodOptional<z.ZodString>;
|
|
342
|
-
description: z.ZodOptional<z.ZodString>;
|
|
343
|
-
className: z.ZodOptional<z.ZodString>;
|
|
344
|
-
}, z.core.$strict>;
|
|
345
|
-
/**
|
|
346
|
-
* Form section options type
|
|
347
|
-
*/
|
|
348
|
-
export type FormSectionOptions = z.infer<typeof FormSectionOptionsSchema>;
|
|
349
|
-
/**
|
|
350
|
-
* Form actions options schema
|
|
351
|
-
*/
|
|
352
|
-
export declare const FormActionsOptionsSchema: z.ZodObject<{
|
|
353
|
-
align: z.ZodOptional<z.ZodEnum<{
|
|
354
|
-
center: "center";
|
|
355
|
-
left: "left";
|
|
356
|
-
right: "right";
|
|
357
|
-
between: "between";
|
|
358
|
-
}>>;
|
|
359
|
-
className: z.ZodOptional<z.ZodString>;
|
|
360
|
-
}, z.core.$strict>;
|
|
361
|
-
/**
|
|
362
|
-
* Form actions options type
|
|
363
|
-
*/
|
|
364
|
-
export type FormActionsOptions = z.infer<typeof FormActionsOptionsSchema>;
|
|
365
|
-
//# sourceMappingURL=form.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form.schema.d.ts","sourceRoot":"","sources":["../../../src/components/form.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;EAY1B,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,eAAe;;;;EAA6B,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;EAAqD,CAAC;AAEnF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAM1D;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CAAC,OAAO,uBAAuB,CAAC,CAAC;AAMxE;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;EAAoC,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;EAAqF,CAAC;AAEpH;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;kBAiBnB,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAM5D;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;kBAStB,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;kBAS1B,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;kBAO1B,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file index.ts
|
|
3
|
-
* @description UI Components Module for FrontMCP.
|
|
4
|
-
*
|
|
5
|
-
* Provides reusable UI components for FrontMCP pages including:
|
|
6
|
-
* - Button, Card, Badge, Alert, Avatar, Modal, Table, Form, List components
|
|
7
|
-
* - Zod schemas for all component options (for runtime validation)
|
|
8
|
-
*
|
|
9
|
-
* @module @frontmcp/ui/components
|
|
10
|
-
*/
|
|
11
|
-
export * from './button.schema';
|
|
12
|
-
export * from './card.schema';
|
|
13
|
-
export * from './badge.schema';
|
|
14
|
-
export * from './alert.schema';
|
|
15
|
-
export * from './avatar.schema';
|
|
16
|
-
export * from './modal.schema';
|
|
17
|
-
export * from './table.schema';
|
|
18
|
-
export * from './form.schema';
|
|
19
|
-
export * from './list.schema';
|
|
20
|
-
export { type ButtonVariant, type ButtonSize, type ButtonOptions, type ButtonGroupOptions, button, buttonGroup, primaryButton, secondaryButton, outlineButton, ghostButton, dangerButton, linkButton, } from './button';
|
|
21
|
-
export { type CardVariant, type CardSize, type CardOptions, card, cardGroup } from './card';
|
|
22
|
-
export { type InputType, type InputSize, type InputState, type InputOptions, type SelectOption, type SelectOptions, type TextareaOptions, type CheckboxOptions, type RadioGroupOptions, type FormOptions, input, select, textarea, checkbox, radioGroup, form, formRow, formSection, formActions, hiddenInput, csrfInput, } from './form';
|
|
23
|
-
export { type BadgeVariant, type BadgeSize, type BadgeOptions, badge, badgeGroup, activeBadge, inactiveBadge, pendingBadge, errorBadge, newBadge, betaBadge, onlineDot, offlineDot, busyDot, awayDot, } from './badge';
|
|
24
|
-
export { type AlertVariant, type AlertOptions, type ToastOptions, alert, infoAlert, successAlert, warningAlert, dangerAlert, toast, toastContainer, } from './alert';
|
|
25
|
-
export { type AvatarSize, type AvatarShape, type AvatarStatus, type AvatarOptions, type AvatarGroupOptions, type AvatarWithTextOptions, avatar, avatarGroup, avatarWithText, } from './avatar';
|
|
26
|
-
export { type ModalSize, type ModalOptions, type ConfirmModalOptions, type DrawerPosition, type DrawerOptions, modal, modalTrigger, confirmModal, drawer, } from './modal';
|
|
27
|
-
export { type TableColumn, type TableOptions, type PaginationOptions, table, pagination } from './table';
|
|
28
|
-
export { type PermissionItem, type FeatureItem, type DescriptionItem, type PermissionListOptions, type FeatureListOptions, type DescriptionListOptions, type ActionItem, permissionList, featureList, descriptionList, actionList, } from './list';
|
|
29
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,cAAc,iBAAiB,CAAC;AA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ACf,MAAM,SAAS,CAAC;AAGjB,OAAO,EACL,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,MAAM,EACN,WAAW,EACX,cAAc,GACf,MAAM,UAAU,CAAC;AAGlB,OAAO,EACL,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,EACL,YAAY,EACZ,YAAY,EACZ,MAAM,GACP,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,KAAK,iBAAiB,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAGzG,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,cAAc,EACd,WAAW,EACX,eAAe,EACf,UAAU,GACX,MAAM,QAAQ,CAAC"}
|
package/esm/components/list.d.ts
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* List Components
|
|
3
|
-
*
|
|
4
|
-
* Various list presentations including permission lists, feature lists, and data lists.
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Permission/Scope item for OAuth consent
|
|
8
|
-
*/
|
|
9
|
-
export interface PermissionItem {
|
|
10
|
-
/** Scope identifier */
|
|
11
|
-
scope: string;
|
|
12
|
-
/** Display name */
|
|
13
|
-
name: string;
|
|
14
|
-
/** Description */
|
|
15
|
-
description?: string;
|
|
16
|
-
/** Icon HTML */
|
|
17
|
-
icon?: string;
|
|
18
|
-
/** Required permission (cannot be unchecked) */
|
|
19
|
-
required?: boolean;
|
|
20
|
-
/** Checked by default */
|
|
21
|
-
checked?: boolean;
|
|
22
|
-
/** Sensitive/dangerous permission */
|
|
23
|
-
sensitive?: boolean;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Feature list item
|
|
27
|
-
*/
|
|
28
|
-
export interface FeatureItem {
|
|
29
|
-
/** Feature name */
|
|
30
|
-
name: string;
|
|
31
|
-
/** Feature description */
|
|
32
|
-
description?: string;
|
|
33
|
-
/** Icon HTML */
|
|
34
|
-
icon?: string;
|
|
35
|
-
/** Included in plan */
|
|
36
|
-
included?: boolean;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Description list item
|
|
40
|
-
*/
|
|
41
|
-
export interface DescriptionItem {
|
|
42
|
-
/** Term/label */
|
|
43
|
-
term: string;
|
|
44
|
-
/** Description/value */
|
|
45
|
-
description: string;
|
|
46
|
-
/** Copy button */
|
|
47
|
-
copyable?: boolean;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Permission list options
|
|
51
|
-
*/
|
|
52
|
-
export interface PermissionListOptions {
|
|
53
|
-
/** List ID */
|
|
54
|
-
id?: string;
|
|
55
|
-
/** Checkable permissions */
|
|
56
|
-
checkable?: boolean;
|
|
57
|
-
/** Input name for checkable */
|
|
58
|
-
inputName?: string;
|
|
59
|
-
/** Group title */
|
|
60
|
-
title?: string;
|
|
61
|
-
/** Additional CSS classes */
|
|
62
|
-
className?: string;
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Build a permission list for OAuth consent
|
|
66
|
-
*/
|
|
67
|
-
export declare function permissionList(permissions: PermissionItem[], options?: PermissionListOptions): string;
|
|
68
|
-
/**
|
|
69
|
-
* Feature list options
|
|
70
|
-
*/
|
|
71
|
-
export interface FeatureListOptions {
|
|
72
|
-
/** List style */
|
|
73
|
-
style?: 'check' | 'bullet' | 'number';
|
|
74
|
-
/** Icon for included items */
|
|
75
|
-
includedIcon?: string;
|
|
76
|
-
/** Icon for excluded items */
|
|
77
|
-
excludedIcon?: string;
|
|
78
|
-
/** Additional CSS classes */
|
|
79
|
-
className?: string;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Build a feature list
|
|
83
|
-
*/
|
|
84
|
-
export declare function featureList(features: FeatureItem[], options?: FeatureListOptions): string;
|
|
85
|
-
/**
|
|
86
|
-
* Description list options
|
|
87
|
-
*/
|
|
88
|
-
export interface DescriptionListOptions {
|
|
89
|
-
/** Layout style */
|
|
90
|
-
layout?: 'stacked' | 'horizontal' | 'grid';
|
|
91
|
-
/** Dividers between items */
|
|
92
|
-
dividers?: boolean;
|
|
93
|
-
/** Additional CSS classes */
|
|
94
|
-
className?: string;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Build a description list
|
|
98
|
-
*/
|
|
99
|
-
export declare function descriptionList(items: DescriptionItem[], options?: DescriptionListOptions): string;
|
|
100
|
-
/**
|
|
101
|
-
* Action list item
|
|
102
|
-
*/
|
|
103
|
-
export interface ActionItem {
|
|
104
|
-
/** Item label */
|
|
105
|
-
label: string;
|
|
106
|
-
/** Item description */
|
|
107
|
-
description?: string;
|
|
108
|
-
/** Icon HTML */
|
|
109
|
-
icon?: string;
|
|
110
|
-
/** Click URL */
|
|
111
|
-
href?: string;
|
|
112
|
-
/** Destructive action */
|
|
113
|
-
destructive?: boolean;
|
|
114
|
-
/** Disabled state */
|
|
115
|
-
disabled?: boolean;
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Build an action list (menu-like)
|
|
119
|
-
*/
|
|
120
|
-
export declare function actionList(items: ActionItem[], className?: string): string;
|
|
121
|
-
//# sourceMappingURL=list.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/components/list.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,uBAAuB;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,kBAA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AM,CAAC;IACtB,8BAA8B;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,WAAW,EAAE,EAAE,OAAO,GAAE,kBAAuB,GAAG,MAAM,CAuC7F;AAMD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,mBAAmB;IACnB,MAAM,CAAC,EAAE,SAAS,GAAG,YAAY,GAAG,MAAM,CAAC;IAC3C,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,eAAe,EAAE,EAAE,OAAO,GAAE,sBAA2B,GAAG,MAAM,CA2FtG;AAMD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yBAAyB;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,qBAAqB;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,UAAU,EAAE,EAAE,SAAS,SAAK,GAAG,MAAM,CA0CtE"}
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @file list.schema.ts
|
|
3
|
-
* @description Zod schemas for List component options validation.
|
|
4
|
-
*
|
|
5
|
-
* Provides strict validation schemas for permission lists, feature lists,
|
|
6
|
-
* description lists, and action lists.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```typescript
|
|
10
|
-
* import { PermissionItemSchema, PermissionListOptionsSchema } from '@frontmcp/ui';
|
|
11
|
-
*
|
|
12
|
-
* const itemResult = PermissionItemSchema.safeParse({
|
|
13
|
-
* scope: 'read:profile',
|
|
14
|
-
* name: 'Read Profile',
|
|
15
|
-
* });
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* @module @frontmcp/ui/components/list.schema
|
|
19
|
-
*/
|
|
20
|
-
import { z } from 'zod';
|
|
21
|
-
/**
|
|
22
|
-
* Permission/Scope item schema for OAuth consent
|
|
23
|
-
*/
|
|
24
|
-
export declare const PermissionItemSchema: z.ZodObject<{
|
|
25
|
-
scope: z.ZodString;
|
|
26
|
-
name: z.ZodString;
|
|
27
|
-
description: z.ZodOptional<z.ZodString>;
|
|
28
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
29
|
-
required: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
-
checked: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
-
sensitive: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
-
}, z.core.$strict>;
|
|
33
|
-
/**
|
|
34
|
-
* Permission item type
|
|
35
|
-
*/
|
|
36
|
-
export type PermissionItem = z.infer<typeof PermissionItemSchema>;
|
|
37
|
-
/**
|
|
38
|
-
* Permission list options schema
|
|
39
|
-
*/
|
|
40
|
-
export declare const PermissionListOptionsSchema: z.ZodObject<{
|
|
41
|
-
id: z.ZodOptional<z.ZodString>;
|
|
42
|
-
checkable: z.ZodOptional<z.ZodBoolean>;
|
|
43
|
-
inputName: z.ZodOptional<z.ZodString>;
|
|
44
|
-
title: z.ZodOptional<z.ZodString>;
|
|
45
|
-
className: z.ZodOptional<z.ZodString>;
|
|
46
|
-
}, z.core.$strict>;
|
|
47
|
-
/**
|
|
48
|
-
* Permission list options type
|
|
49
|
-
*/
|
|
50
|
-
export type PermissionListOptions = z.infer<typeof PermissionListOptionsSchema>;
|
|
51
|
-
/**
|
|
52
|
-
* Feature list item schema
|
|
53
|
-
*/
|
|
54
|
-
export declare const FeatureItemSchema: z.ZodObject<{
|
|
55
|
-
name: z.ZodString;
|
|
56
|
-
description: z.ZodOptional<z.ZodString>;
|
|
57
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
58
|
-
included: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
-
}, z.core.$strict>;
|
|
60
|
-
/**
|
|
61
|
-
* Feature item type
|
|
62
|
-
*/
|
|
63
|
-
export type FeatureItem = z.infer<typeof FeatureItemSchema>;
|
|
64
|
-
/**
|
|
65
|
-
* Feature list options schema
|
|
66
|
-
*/
|
|
67
|
-
export declare const FeatureListOptionsSchema: z.ZodObject<{
|
|
68
|
-
title: z.ZodOptional<z.ZodString>;
|
|
69
|
-
showStatus: z.ZodOptional<z.ZodBoolean>;
|
|
70
|
-
className: z.ZodOptional<z.ZodString>;
|
|
71
|
-
}, z.core.$strict>;
|
|
72
|
-
/**
|
|
73
|
-
* Feature list options type
|
|
74
|
-
*/
|
|
75
|
-
export type FeatureListOptions = z.infer<typeof FeatureListOptionsSchema>;
|
|
76
|
-
/**
|
|
77
|
-
* Description list item schema
|
|
78
|
-
*/
|
|
79
|
-
export declare const DescriptionItemSchema: z.ZodObject<{
|
|
80
|
-
term: z.ZodString;
|
|
81
|
-
description: z.ZodString;
|
|
82
|
-
copyable: z.ZodOptional<z.ZodBoolean>;
|
|
83
|
-
}, z.core.$strict>;
|
|
84
|
-
/**
|
|
85
|
-
* Description item type
|
|
86
|
-
*/
|
|
87
|
-
export type DescriptionItem = z.infer<typeof DescriptionItemSchema>;
|
|
88
|
-
/**
|
|
89
|
-
* Description list options schema
|
|
90
|
-
*/
|
|
91
|
-
export declare const DescriptionListOptionsSchema: z.ZodObject<{
|
|
92
|
-
direction: z.ZodOptional<z.ZodEnum<{
|
|
93
|
-
horizontal: "horizontal";
|
|
94
|
-
vertical: "vertical";
|
|
95
|
-
}>>;
|
|
96
|
-
striped: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
-
className: z.ZodOptional<z.ZodString>;
|
|
98
|
-
}, z.core.$strict>;
|
|
99
|
-
/**
|
|
100
|
-
* Description list options type
|
|
101
|
-
*/
|
|
102
|
-
export type DescriptionListOptions = z.infer<typeof DescriptionListOptionsSchema>;
|
|
103
|
-
/**
|
|
104
|
-
* Action list item schema
|
|
105
|
-
*/
|
|
106
|
-
export declare const ActionItemSchema: z.ZodObject<{
|
|
107
|
-
label: z.ZodString;
|
|
108
|
-
description: z.ZodOptional<z.ZodString>;
|
|
109
|
-
icon: z.ZodOptional<z.ZodString>;
|
|
110
|
-
href: z.ZodOptional<z.ZodString>;
|
|
111
|
-
destructive: z.ZodOptional<z.ZodBoolean>;
|
|
112
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
-
}, z.core.$strict>;
|
|
114
|
-
/**
|
|
115
|
-
* Action item type
|
|
116
|
-
*/
|
|
117
|
-
export type ActionItem = z.infer<typeof ActionItemSchema>;
|
|
118
|
-
/**
|
|
119
|
-
* Action list options schema
|
|
120
|
-
*/
|
|
121
|
-
export declare const ActionListOptionsSchema: z.ZodObject<{
|
|
122
|
-
divided: z.ZodOptional<z.ZodBoolean>;
|
|
123
|
-
className: z.ZodOptional<z.ZodString>;
|
|
124
|
-
}, z.core.$strict>;
|
|
125
|
-
/**
|
|
126
|
-
* Action list options type
|
|
127
|
-
*/
|
|
128
|
-
export type ActionListOptions = z.infer<typeof ActionListOptionsSchema>;
|
|
129
|
-
//# sourceMappingURL=list.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list.schema.d.ts","sourceRoot":"","sources":["../../../src/components/list.schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;kBAiBtB,CAAC;AAEZ;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,CAA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