@builder.io/dev-tools 1.18.11-dev.202511202306.80563b8f8 → 1.18.11-dev.202511202319.621aec6ae
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/cli/index.cjs +115 -91
- package/cli/index.cjs.map +3 -3
- package/core/index.cjs +1 -1
- package/core/index.mjs +1 -1
- package/node/index.cjs +1 -1
- package/node/index.mjs +1 -1
- package/package.json +1 -1
- package/server/index.cjs +2 -2
- package/server/index.mjs +2 -2
- package/types/_tests_/utils.d.ts +48 -35
- package/types/cli/abort-signal-any.d.ts +3 -1
- package/types/cli/auth/auth-utils.d.ts +3 -1
- package/types/cli/auth/auth.d.ts +5 -1
- package/types/cli/backup.d.ts +112 -58
- package/types/cli/builder-add/interface.d.ts +21 -4
- package/types/cli/code-file-utils.d.ts +17 -9
- package/types/cli/code.d.ts +13 -3
- package/types/cli/credentials.d.ts +61 -45
- package/types/cli/download.d.ts +9 -4
- package/types/cli/env-substitution.d.ts +22 -0
- package/types/cli/env-substitution.test.d.ts +1 -0
- package/types/cli/figma-publish.d.ts +34 -17
- package/types/cli/figma-utils.d.ts +51 -21
- package/types/cli/figma.d.ts +9 -2
- package/types/cli/generate.d.ts +14 -11
- package/types/cli/incremental-tsc.d.ts +19 -7
- package/types/cli/launch/config.d.ts +13 -3
- package/types/cli/launch/dry-run-backup.d.ts +14 -7
- package/types/cli/launch/errors.d.ts +7 -2
- package/types/cli/launch/github.d.ts +8 -2
- package/types/cli/launch/grafana.d.ts +5 -1
- package/types/cli/launch/machine-health.d.ts +8 -3
- package/types/cli/launch/proxy.d.ts +6 -3
- package/types/cli/launch/server.d.ts +16 -10
- package/types/cli/launch.d.ts +102 -99
- package/types/cli/prettier.d.ts +9 -2
- package/types/cli/repo-connect/env-collector.d.ts +16 -11
- package/types/cli/repo-connect/file-collector.d.ts +22 -15
- package/types/cli/repo-connect/install-runner.d.ts +8 -5
- package/types/cli/repo-connect/package-detector.d.ts +12 -8
- package/types/cli/repo-connect/repo-connect.d.ts +4 -1
- package/types/cli/repo-indexing/repo-indexing.d.ts +37 -17
- package/types/cli/repo-indexing/repo-indexing.mock.d.ts +3 -3
- package/types/cli/repo-metrics.d.ts +4 -1
- package/types/cli/report/figma-report.d.ts +63 -36
- package/types/cli/server-ws.d.ts +40 -32
- package/types/cli/spinner.d.ts +4 -4
- package/types/cli/sync-utils.d.ts +39 -16
- package/types/cli/track.d.ts +4 -1
- package/types/cli/utils/component-group-mdx-prompt.d.ts +2 -1
- package/types/cli/utils/dev-server-url-parser.d.ts +6 -3
- package/types/cli/utils/env-capture.d.ts +21 -15
- package/types/cli/utils/env-filter.d.ts +42 -0
- package/types/cli/utils/feature-flags.d.ts +3 -1
- package/types/cli/utils/file-overrides-manager.d.ts +39 -23
- package/types/cli/utils/git.d.ts +28 -16
- package/types/cli/utils/hosts-file-manager.d.ts +7 -4
- package/types/cli/utils/lock-file-example.d.ts +30 -0
- package/types/cli/utils/lock-file.d.ts +10 -7
- package/types/cli/utils/parseGitDiff.d.ts +4 -1
- package/types/cli/utils/process-tracker.d.ts +85 -51
- package/types/cli/utils/repo-indexing-agent-prompt.d.ts +2 -1
- package/types/cli/utils/sudo-helper.d.ts +21 -0
- package/types/cli/utils/terminal-buffer.d.ts +23 -23
- package/types/cli/utils/workspace-path-resolver.d.ts +23 -16
- package/types/client/client-api.d.ts +42 -10
- package/types/client/edit-button/document-listeners.d.ts +3 -1
- package/types/client/edit-button/index.d.ts +6 -6
- package/types/client/menu/index.d.ts +3 -3
- package/types/client/menu/pages/component-detail.d.ts +8 -2
- package/types/client/menu/pages/component-input.d.ts +5 -1
- package/types/client/menu/pages/component-list.d.ts +4 -1
- package/types/client/menu/toggle/menu-toggle.d.ts +4 -1
- package/types/client/setup-ui/overview.d.ts +2 -2
- package/types/client/tracking.d.ts +11 -11
- package/types/client/utils.d.ts +5 -3
- package/types/common/ast/app-dependencies.d.ts +8 -2
- package/types/common/ast/component-info.d.ts +26 -6
- package/types/common/ast/component-input-types.d.ts +1 -1
- package/types/common/ast/component-registry.d.ts +23 -8
- package/types/common/ast/ensure-array-statement.d.ts +7 -3
- package/types/common/ast/ensure-comments.d.ts +5 -1
- package/types/common/ast/ensure-imports.d.ts +10 -5
- package/types/common/ast/exported-statements.d.ts +8 -4
- package/types/common/ast/imported-statements.d.ts +5 -1
- package/types/common/ast/normalize-statements.d.ts +12 -3
- package/types/common/ast/remove-unused-imports.d.ts +4 -1
- package/types/common/ast/transform.d.ts +13 -3
- package/types/common/ast/utils.d.ts +42 -19
- package/types/common/builder/builder-api.d.ts +32 -23
- package/types/common/builder/builder-sdks.d.ts +10 -8
- package/types/common/builder/content-generation.d.ts +10 -7
- package/types/common/builder/content-ids.d.ts +2 -1
- package/types/common/cache.d.ts +4 -1
- package/types/common/constants.d.ts +2 -1
- package/types/common/dotenv.d.ts +24 -5
- package/types/common/fs.d.ts +17 -4
- package/types/common/interactive-select-files.d.ts +16 -2
- package/types/common/mem-sys.d.ts +7 -5
- package/types/common/node-request.d.ts +4 -4
- package/types/common/path.d.ts +1 -3
- package/types/common/test-utils.d.ts +21 -7
- package/types/common/typescript.d.ts +26 -7
- package/types/common/utils.d.ts +1 -1
- package/types/core/adapters/angular/angular-api-key.d.ts +29 -6
- package/types/core/adapters/angular/angular-app-module-imports.d.ts +12 -2
- package/types/core/adapters/angular/angular-app-routes-update.d.ts +6 -1
- package/types/core/adapters/angular/angular-components.d.ts +40 -12
- package/types/core/adapters/angular/angular-ensure-builder-setup.d.ts +9 -3
- package/types/core/adapters/angular/angular-ensure-config-plugin.d.ts +16 -4
- package/types/core/adapters/angular/angular-fix-tsconfig.d.ts +3 -1
- package/types/core/adapters/angular/angular-registry-parse.d.ts +22 -10
- package/types/core/adapters/angular/angular-registry.d.ts +15 -2
- package/types/core/adapters/angular/angular-test-utils.d.ts +8 -4
- package/types/core/adapters/angular/index.d.ts +20 -12
- package/types/core/adapters/angular/types.d.ts +5 -5
- package/types/core/adapters/next/index.d.ts +26 -18
- package/types/core/adapters/next/next-api-key.d.ts +4 -1
- package/types/core/adapters/next/next-component-info.d.ts +9 -2
- package/types/core/adapters/next/next-components.d.ts +4 -1
- package/types/core/adapters/next/next-ensure-builder-setup.d.ts +6 -2
- package/types/core/adapters/next/next-ensure-config-plugin.d.ts +5 -1
- package/types/core/adapters/next/next-registry-parse.d.ts +21 -8
- package/types/core/adapters/next/next-registry.d.ts +15 -2
- package/types/core/adapters/next/next-test-utils.d.ts +21 -11
- package/types/core/adapters/qwik-city/index.d.ts +14 -6
- package/types/core/adapters/qwik-city/qwik-api-key.d.ts +4 -1
- package/types/core/adapters/qwik-city/qwik-component-source-inputs.d.ts +4 -1
- package/types/core/adapters/qwik-city/qwik-components.d.ts +23 -8
- package/types/core/adapters/qwik-city/qwik-ensure-builder-setup.d.ts +6 -2
- package/types/core/adapters/qwik-city/qwik-ensure-config-plugin.d.ts +5 -1
- package/types/core/adapters/qwik-city/qwik-registry-parse.d.ts +22 -10
- package/types/core/adapters/qwik-city/qwik-registry.d.ts +15 -2
- package/types/core/adapters/qwik-city/qwik-test-utils.d.ts +8 -4
- package/types/core/adapters/qwik-city/qwik-ts-program.d.ts +3 -1
- package/types/core/adapters/react/index.d.ts +19 -11
- package/types/core/adapters/react/react-api-key.d.ts +4 -1
- package/types/core/adapters/react/react-builder-sdk-setup.d.ts +3 -1
- package/types/core/adapters/react/react-component-info.d.ts +9 -2
- package/types/core/adapters/react/react-components.d.ts +37 -11
- package/types/core/adapters/react/react-ensure-builder-setup.d.ts +6 -2
- package/types/core/adapters/react/react-registry-parse.d.ts +21 -8
- package/types/core/adapters/react/react-registry.d.ts +15 -2
- package/types/core/adapters/react/react-test-utils.d.ts +11 -5
- package/types/core/adapters/react/react-ts-program.d.ts +3 -1
- package/types/core/adapters/remix/index.d.ts +19 -11
- package/types/core/adapters/remix/remix-api-key.d.ts +4 -1
- package/types/core/adapters/remix/remix-components.d.ts +4 -1
- package/types/core/adapters/remix/remix-ensure-builder-setup.d.ts +9 -3
- package/types/core/adapters/remix/remix-ensure-config-plugin.d.ts +5 -1
- package/types/core/adapters/remix/remix-registry-parse.d.ts +22 -10
- package/types/core/adapters/remix/remix-registry.d.ts +15 -2
- package/types/core/adapters/remix/remix-test-utils.d.ts +11 -5
- package/types/core/adapters/vite/vite-ensure-config-plugin.d.ts +12 -2
- package/types/core/adapters/vue/index.d.ts +20 -12
- package/types/core/adapters/vue/vue-api-key.d.ts +4 -1
- package/types/core/adapters/vue/vue-components.d.ts +10 -2
- package/types/core/adapters/vue/vue-ensure-builder-setup.d.ts +7 -3
- package/types/core/adapters/vue/vue-registry-parse.d.ts +19 -9
- package/types/core/adapters/vue/vue-registry.d.ts +6 -3
- package/types/core/adapters/webpack/webpack-config-helpers.d.ts +8 -3
- package/types/core/adapters/webpack/webpack-ensure-config-plugin.d.ts +5 -1
- package/types/core/create-dev-tools.d.ts +4 -1
- package/types/core/detect-frameworks.d.ts +7 -2
- package/types/core/ensure-config-plugin.d.ts +6 -2
- package/types/core/find-dependencies.d.ts +6 -3
- package/types/core/import-export-registry.d.ts +9 -2
- package/types/core/index.d.ts +18 -3
- package/types/figma/index.d.ts +95 -64
- package/types/node/node-sys.d.ts +13 -6
- package/types/packages/dev-tools/_tests_/code.e2e.d.ts +1 -0
- package/types/packages/dev-tools/_tests_/create-builder.e2e.d.ts +1 -0
- package/types/packages/dev-tools/_tests_/dev-tools.e2e.d.ts +1 -0
- package/types/packages/dev-tools/_tests_/figma-generate.e2e.d.ts +1 -0
- package/types/packages/dev-tools/_tests_/figma-publish.e2e.d.ts +1 -0
- package/types/packages/dev-tools/_tests_/fusionInit.e2e.d.ts +1 -0
- package/types/packages/dev-tools/_tests_/help.e2e.d.ts +1 -0
- package/types/packages/dev-tools/_tests_/launch.e2e.d.ts +1 -0
- package/types/packages/dev-tools/_tests_/repo-indexing.test.d.ts +1 -0
- package/types/packages/dev-tools/_tests_/sync-utils.test.d.ts +1 -0
- package/types/packages/dev-tools/_tests_/utils.d.ts +57 -0
- package/types/packages/dev-tools/_tests_/vitest.config.d.ts +2 -0
- package/types/packages/dev-tools/_tests_/workspace.e2e.d.ts +1 -0
- package/types/packages/dev-tools/angular/index.d.ts +1 -0
- package/types/packages/dev-tools/cli/__tests__/isLikelyFixedString.spec.d.ts +1 -0
- package/types/packages/dev-tools/cli/__tests__/parseGitDiffToApplyActions.spec.d.ts +1 -0
- package/types/packages/dev-tools/cli/abort-signal-any.d.ts +3 -0
- package/types/packages/dev-tools/cli/auth/auth-utils.d.ts +4 -0
- package/types/packages/dev-tools/cli/auth/auth.d.ts +7 -0
- package/types/packages/dev-tools/cli/auth/status.d.ts +3 -0
- package/types/packages/dev-tools/cli/backup.d.ts +172 -0
- package/types/packages/dev-tools/cli/builder-add/interface.d.ts +22 -0
- package/types/packages/dev-tools/cli/builder-add/options.d.ts +2 -0
- package/types/packages/dev-tools/cli/code-file-utils.d.ts +20 -0
- package/types/packages/dev-tools/cli/code-file-utils.unit.d.ts +1 -0
- package/types/packages/dev-tools/cli/code-tools.d.ts +131 -0
- package/types/packages/dev-tools/cli/code.d.ts +17 -0
- package/types/packages/dev-tools/cli/codegen.d.ts +456 -0
- package/types/packages/dev-tools/cli/constants.d.ts +1 -0
- package/types/packages/dev-tools/cli/credentials.d.ts +69 -0
- package/types/packages/dev-tools/cli/download.d.ts +15 -0
- package/types/packages/dev-tools/cli/exit.d.ts +1 -0
- package/types/packages/dev-tools/cli/fetch.d.ts +1 -0
- package/types/packages/dev-tools/cli/figma-publish.d.ts +41 -0
- package/types/packages/dev-tools/cli/figma-publish.spec.d.ts +1 -0
- package/types/packages/dev-tools/cli/figma-utils.d.ts +61 -0
- package/types/packages/dev-tools/cli/figma.d.ts +11 -0
- package/types/packages/dev-tools/cli/generate.d.ts +19 -0
- package/types/packages/dev-tools/cli/help.d.ts +1 -0
- package/types/packages/dev-tools/cli/incremental-tsc.d.ts +42 -0
- package/types/packages/dev-tools/cli/index.d.ts +97 -0
- package/types/packages/dev-tools/cli/indexing.d.ts +11 -0
- package/types/packages/dev-tools/cli/launch/InitStateMachine.d.ts +142 -0
- package/types/packages/dev-tools/cli/launch/config.d.ts +15 -0
- package/types/packages/dev-tools/cli/launch/dev-server-orchestrator.d.ts +114 -0
- package/types/packages/dev-tools/cli/launch/dry-run-backup.d.ts +16 -0
- package/types/packages/dev-tools/cli/launch/errors.d.ts +8 -0
- package/types/packages/dev-tools/cli/launch/github.d.ts +9 -0
- package/types/packages/dev-tools/cli/launch/grafana.d.ts +8 -0
- package/types/packages/dev-tools/cli/launch/helpers.d.ts +42 -0
- package/types/packages/dev-tools/cli/launch/helpers.test.d.ts +1 -0
- package/types/packages/dev-tools/cli/launch/machine-health.d.ts +17 -0
- package/types/packages/dev-tools/cli/launch/proxy.d.ts +6 -0
- package/types/packages/dev-tools/cli/launch/server.d.ts +26 -0
- package/types/packages/dev-tools/cli/launch.d.ts +93 -0
- package/types/packages/dev-tools/cli/prettier.d.ts +10 -0
- package/types/packages/dev-tools/cli/prettier.integration.test.d.ts +1 -0
- package/types/packages/dev-tools/cli/repo-indexing/component-discovery.d.ts +21 -0
- package/types/packages/dev-tools/cli/repo-indexing/component-indexing.d.ts +34 -0
- package/types/packages/dev-tools/cli/repo-indexing/icons.d.ts +32 -0
- package/types/packages/dev-tools/cli/repo-indexing/repo-indexing-utils.d.ts +109 -0
- package/types/packages/dev-tools/cli/repo-indexing/repo-indexing.d.ts +41 -0
- package/types/packages/dev-tools/cli/repo-indexing/repo-indexing.mock.d.ts +5 -0
- package/types/packages/dev-tools/cli/repo-indexing/types.d.ts +12 -0
- package/types/packages/dev-tools/cli/repo-metrics.d.ts +9 -0
- package/types/packages/dev-tools/cli/report/figma-report.d.ts +81 -0
- package/types/packages/dev-tools/cli/server-ws.d.ts +60 -0
- package/types/packages/dev-tools/cli/spinner.d.ts +6 -0
- package/types/packages/dev-tools/cli/sync-utils.d.ts +45 -0
- package/types/packages/dev-tools/cli/track.d.ts +8 -0
- package/types/packages/dev-tools/cli/utils/component-group-mdx-prompt.d.ts +2 -0
- package/types/packages/dev-tools/cli/utils/dev-server-url-parser.d.ts +15 -0
- package/types/packages/dev-tools/cli/utils/dev-server-url-parser.test.d.ts +1 -0
- package/types/packages/dev-tools/cli/utils/feature-flags.d.ts +4 -0
- package/types/packages/dev-tools/cli/utils/git.d.ts +34 -0
- package/types/packages/dev-tools/cli/utils/open.d.ts +1 -0
- package/types/packages/dev-tools/cli/utils/parseGitDiff.d.ts +11 -0
- package/types/packages/dev-tools/cli/utils/repo-indexing-agent-prompt.d.ts +2 -0
- package/types/packages/dev-tools/cli/utils/repo-indexing-group-prompt.d.ts +1 -0
- package/types/packages/dev-tools/cli/utils/signals.d.ts +2 -0
- package/types/packages/dev-tools/cli/utils/terminal-buffer.d.ts +29 -0
- package/types/packages/dev-tools/cli/utils/terminal-buffer.spec.d.ts +1 -0
- package/types/packages/dev-tools/cli/utils/workspace-path-resolver.d.ts +99 -0
- package/types/packages/dev-tools/cli/utils/workspace-path-resolver.unit.d.ts +1 -0
- package/types/packages/dev-tools/cli/version.d.ts +1 -0
- package/types/packages/dev-tools/client/client-api.d.ts +44 -0
- package/types/packages/dev-tools/client/edit-button/document-listeners.d.ts +4 -0
- package/types/packages/dev-tools/client/edit-button/index.d.ts +8 -0
- package/types/packages/dev-tools/client/index.d.ts +1 -0
- package/types/packages/dev-tools/client/menu/index.d.ts +5 -0
- package/types/packages/dev-tools/client/menu/pages/component-detail.d.ts +10 -0
- package/types/packages/dev-tools/client/menu/pages/component-input.d.ts +7 -0
- package/types/packages/dev-tools/client/menu/pages/component-list.d.ts +7 -0
- package/types/packages/dev-tools/client/menu/pages/home.d.ts +1 -0
- package/types/packages/dev-tools/client/menu/pages/settings.d.ts +1 -0
- package/types/packages/dev-tools/client/menu/toggle/menu-toggle.d.ts +5 -0
- package/types/packages/dev-tools/client/setup-ui/connected.d.ts +1 -0
- package/types/packages/dev-tools/client/setup-ui/index.d.ts +1 -0
- package/types/packages/dev-tools/client/setup-ui/overview.d.ts +4 -0
- package/types/packages/dev-tools/client/tracking.d.ts +22 -0
- package/types/packages/dev-tools/client/utils.d.ts +16 -0
- package/types/packages/dev-tools/common/ast/app-dependencies.d.ts +10 -0
- package/types/packages/dev-tools/common/ast/component-info.d.ts +29 -0
- package/types/packages/dev-tools/common/ast/component-input-types.d.ts +43 -0
- package/types/packages/dev-tools/common/ast/component-registry.d.ts +24 -0
- package/types/packages/dev-tools/common/ast/convert-values.d.ts +43 -0
- package/types/packages/dev-tools/common/ast/convert-values.unit.d.ts +1 -0
- package/types/packages/dev-tools/common/ast/ensure-array-statement.d.ts +11 -0
- package/types/packages/dev-tools/common/ast/ensure-array-statement.unit.d.ts +1 -0
- package/types/packages/dev-tools/common/ast/ensure-comments.d.ts +5 -0
- package/types/packages/dev-tools/common/ast/ensure-imports.d.ts +14 -0
- package/types/packages/dev-tools/common/ast/ensure-imports.unit.d.ts +1 -0
- package/types/packages/dev-tools/common/ast/exported-statements.d.ts +12 -0
- package/types/packages/dev-tools/common/ast/exported-statements.unit.d.ts +1 -0
- package/types/packages/dev-tools/common/ast/imported-statements.d.ts +8 -0
- package/types/packages/dev-tools/common/ast/imported-statements.unit.d.ts +1 -0
- package/types/packages/dev-tools/common/ast/normalize-statements.d.ts +16 -0
- package/types/packages/dev-tools/common/ast/normalize-statements.unit.d.ts +1 -0
- package/types/packages/dev-tools/common/ast/remove-unused-imports.d.ts +6 -0
- package/types/packages/dev-tools/common/ast/remove-unused-imports.unit.d.ts +1 -0
- package/types/packages/dev-tools/common/ast/transform.d.ts +15 -0
- package/types/packages/dev-tools/common/ast/utils.d.ts +49 -0
- package/types/packages/dev-tools/common/ast/utils.unit.d.ts +1 -0
- package/types/packages/dev-tools/common/builder/builder-api.d.ts +36 -0
- package/types/packages/dev-tools/common/builder/builder-sdks.d.ts +12 -0
- package/types/packages/dev-tools/common/builder/content-generation.d.ts +11 -0
- package/types/packages/dev-tools/common/builder/content-ids.d.ts +4 -0
- package/types/packages/dev-tools/common/cache.d.ts +6 -0
- package/types/packages/dev-tools/common/constants.d.ts +17 -0
- package/types/packages/dev-tools/common/dotenv.d.ts +25 -0
- package/types/packages/dev-tools/common/dotenv.test.d.ts +1 -0
- package/types/packages/dev-tools/common/errors.d.ts +50 -0
- package/types/packages/dev-tools/common/estimate-code-tokens.d.ts +1 -0
- package/types/packages/dev-tools/common/fs.d.ts +19 -0
- package/types/packages/dev-tools/common/interactive-select-files.d.ts +17 -0
- package/types/packages/dev-tools/common/mem-sys.d.ts +10 -0
- package/types/packages/dev-tools/common/node-request.d.ts +7 -0
- package/types/packages/dev-tools/common/path.d.ts +2 -0
- package/types/packages/dev-tools/common/test-utils.d.ts +23 -0
- package/types/packages/dev-tools/common/typescript.d.ts +28 -0
- package/types/packages/dev-tools/common/utils.d.ts +55 -0
- package/types/packages/dev-tools/common/utils.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-api-key.d.ts +33 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-api-key.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-app-module-imports.d.ts +13 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-app-module-imports.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-app-routes-update.d.ts +7 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-app-routes-update.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-components.d.ts +46 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-components.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-ensure-builder-setup.d.ts +11 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-ensure-config-plugin.d.ts +21 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-ensure-config-plugin.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-fix-tsconfig.d.ts +4 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-registry-parse.d.ts +28 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-registry-parse.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-registry.d.ts +16 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-registry.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/angular/angular-test-utils.d.ts +10 -0
- package/types/packages/dev-tools/core/adapters/angular/index.d.ts +22 -0
- package/types/packages/dev-tools/core/adapters/angular/types.d.ts +11 -0
- package/types/packages/dev-tools/core/adapters/next/index.d.ts +36 -0
- package/types/packages/dev-tools/core/adapters/next/next-api-key.d.ts +7 -0
- package/types/packages/dev-tools/core/adapters/next/next-component-info.d.ts +12 -0
- package/types/packages/dev-tools/core/adapters/next/next-component-info.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/next/next-component-inputs.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/next/next-component-source-inputs.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/next/next-components.d.ts +7 -0
- package/types/packages/dev-tools/core/adapters/next/next-ensure-builder-setup.d.ts +8 -0
- package/types/packages/dev-tools/core/adapters/next/next-ensure-config-plugin.d.ts +7 -0
- package/types/packages/dev-tools/core/adapters/next/next-ensure-config-plugin.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/next/next-registry-parse.d.ts +26 -0
- package/types/packages/dev-tools/core/adapters/next/next-registry-parse.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/next/next-registry.d.ts +16 -0
- package/types/packages/dev-tools/core/adapters/next/next-registry.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/next/next-test-utils.d.ts +26 -0
- package/types/packages/dev-tools/core/adapters/qwik-city/index.d.ts +16 -0
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-api-key.d.ts +7 -0
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-component-source-inputs.d.ts +6 -0
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-components.d.ts +30 -0
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-components.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-ensure-builder-setup.d.ts +8 -0
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-ensure-config-plugin.d.ts +6 -0
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry-parse.d.ts +28 -0
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry-parse.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry.d.ts +16 -0
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-registry.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-test-utils.d.ts +10 -0
- package/types/packages/dev-tools/core/adapters/qwik-city/qwik-ts-program.d.ts +4 -0
- package/types/packages/dev-tools/core/adapters/react/index.d.ts +21 -0
- package/types/packages/dev-tools/core/adapters/react/react-api-key.d.ts +9 -0
- package/types/packages/dev-tools/core/adapters/react/react-builder-sdk-setup.d.ts +4 -0
- package/types/packages/dev-tools/core/adapters/react/react-component-info.d.ts +12 -0
- package/types/packages/dev-tools/core/adapters/react/react-components.d.ts +44 -0
- package/types/packages/dev-tools/core/adapters/react/react-components.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/react/react-ensure-builder-setup.d.ts +8 -0
- package/types/packages/dev-tools/core/adapters/react/react-registry-parse.d.ts +26 -0
- package/types/packages/dev-tools/core/adapters/react/react-registry-parse.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/react/react-registry.d.ts +16 -0
- package/types/packages/dev-tools/core/adapters/react/react-registry.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/react/react-test-utils.d.ts +13 -0
- package/types/packages/dev-tools/core/adapters/react/react-ts-program.d.ts +4 -0
- package/types/packages/dev-tools/core/adapters/remix/index.d.ts +21 -0
- package/types/packages/dev-tools/core/adapters/remix/remix-api-key.d.ts +7 -0
- package/types/packages/dev-tools/core/adapters/remix/remix-components.d.ts +7 -0
- package/types/packages/dev-tools/core/adapters/remix/remix-ensure-builder-setup.d.ts +11 -0
- package/types/packages/dev-tools/core/adapters/remix/remix-ensure-config-plugin.d.ts +7 -0
- package/types/packages/dev-tools/core/adapters/remix/remix-ensure-config-plugin.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/remix/remix-registry-parse.d.ts +28 -0
- package/types/packages/dev-tools/core/adapters/remix/remix-registry.d.ts +16 -0
- package/types/packages/dev-tools/core/adapters/remix/remix-registry.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/remix/remix-test-utils.d.ts +13 -0
- package/types/packages/dev-tools/core/adapters/vite/vite-ensure-config-plugin.d.ts +17 -0
- package/types/packages/dev-tools/core/adapters/vite/vite-ensure-config-plugin.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/vue/index.d.ts +22 -0
- package/types/packages/dev-tools/core/adapters/vue/vue-api-key.d.ts +9 -0
- package/types/packages/dev-tools/core/adapters/vue/vue-components.d.ts +12 -0
- package/types/packages/dev-tools/core/adapters/vue/vue-ensure-builder-setup.d.ts +11 -0
- package/types/packages/dev-tools/core/adapters/vue/vue-registry-parse.d.ts +26 -0
- package/types/packages/dev-tools/core/adapters/vue/vue-registry.d.ts +8 -0
- package/types/packages/dev-tools/core/adapters/webpack/webpack-config-helpers.d.ts +16 -0
- package/types/packages/dev-tools/core/adapters/webpack/webpack-config-helpers.unit.d.ts +1 -0
- package/types/packages/dev-tools/core/adapters/webpack/webpack-ensure-config-plugin.d.ts +7 -0
- package/types/packages/dev-tools/core/client-script.d.ts +1 -0
- package/types/packages/dev-tools/core/create-dev-tools.d.ts +4 -0
- package/types/packages/dev-tools/core/detect-frameworks.d.ts +9 -0
- package/types/packages/dev-tools/core/ensure-config-plugin.d.ts +7 -0
- package/types/packages/dev-tools/core/find-dependencies.d.ts +10 -0
- package/types/packages/dev-tools/core/import-export-registry.d.ts +10 -0
- package/types/packages/dev-tools/core/index.d.ts +23 -0
- package/types/packages/dev-tools/figma/index.d.ts +119 -0
- package/types/packages/dev-tools/node/index.d.ts +2 -0
- package/types/packages/dev-tools/node/node-sys.d.ts +21 -0
- package/types/packages/dev-tools/remix/index.d.ts +8 -0
- package/types/packages/dev-tools/server/auth.d.ts +5 -0
- package/types/packages/dev-tools/server/builder-connect.d.ts +21 -0
- package/types/packages/dev-tools/server/client-script.d.ts +7 -0
- package/types/packages/dev-tools/server/create-dev-tools-server.d.ts +4 -0
- package/types/packages/dev-tools/server/dev-tools-api.d.ts +5 -0
- package/types/packages/dev-tools/server/dev-tools-http-server.d.ts +4 -0
- package/types/packages/dev-tools/server/index.d.ts +30 -0
- package/types/packages/dev-tools/server/request-handler.d.ts +8 -0
- package/types/packages/dev-tools/types/codegen-server.d.ts +14 -0
- package/types/packages/dev-tools/types/connection-tracker.d.ts +41 -0
- package/types/packages/dev-tools/types/proxy-middleware.d.ts +41 -0
- package/types/packages/dev-tools/types/websocket-types.d.ts +19 -0
- package/types/packages/dev-tools/types.d.ts +554 -0
- package/types/packages/dev-tools/vite/main.d.ts +7 -0
- package/types/packages/dev-tools/vitest.config.d.ts +2 -0
- package/types/packages/dev-tools/webpack/main.d.ts +9 -0
- package/types/remix/index.d.ts +5 -3
- package/types/server/auth.d.ts +4 -1
- package/types/server/builder-connect.d.ts +21 -6
- package/types/server/client-script.d.ts +6 -2
- package/types/server/create-dev-tools-server.d.ts +3 -1
- package/types/server/dev-tools-api.d.ts +4 -1
- package/types/server/dev-tools-http-server.d.ts +3 -1
- package/types/server/index.d.ts +28 -1
- package/types/server/request-handler.d.ts +6 -1
- package/types/tsconfig.tsbuildinfo +1 -1
- package/types/types/codegen-server.d.ts +1 -1
- package/types/types/connection-tracker.d.ts +34 -34
- package/types/types/proxy-middleware.d.ts +24 -14
- package/types/types/websocket-types.d.ts +9 -7
- package/types/types.d.ts +387 -358
- package/types/vite/main.d.ts +1 -1
- package/types/webpack/main.d.ts +5 -5
package/types/types.d.ts
CHANGED
|
@@ -1,528 +1,557 @@
|
|
|
1
1
|
import type { spawnSync } from "node:child_process";
|
|
2
2
|
export interface DevToolsPath {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
basename: (path: string, suffix?: string) => string;
|
|
4
|
+
extname: (path: string) => string;
|
|
5
|
+
dirname: (path: string) => string;
|
|
6
|
+
isAbsolute: (path: string) => boolean;
|
|
7
|
+
join: (...paths: string[]) => string;
|
|
8
|
+
normalize: (path: string) => string;
|
|
9
|
+
relative: (from: string, to: string) => string;
|
|
10
|
+
resolve: (...pathSegments: string[]) => string;
|
|
11
11
|
}
|
|
12
12
|
export interface RepoInfo {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
hasGit: boolean;
|
|
14
|
+
remoteUrl: string;
|
|
15
|
+
defaultBranch: string;
|
|
16
|
+
currentBranch: string;
|
|
17
|
+
commit: string;
|
|
18
18
|
}
|
|
19
19
|
export interface DevToolsSys extends DevToolsPath {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
20
|
+
cwd: () => string;
|
|
21
|
+
getCwdDir: () => string;
|
|
22
|
+
getAppRootDir: () => string;
|
|
23
|
+
getRepoRootDir: () => string;
|
|
24
|
+
exists: (path: string) => Promise<boolean>;
|
|
25
|
+
existsSync: (path: string) => boolean;
|
|
26
|
+
readdir: (path: string, absolutePaths?: boolean) => Promise<string[]>;
|
|
27
|
+
readdirRecursive: (path: string, skipFolders?: string[]) => Promise<string[]>;
|
|
28
|
+
readdirSync: (path: string) => string[];
|
|
29
|
+
readFile: (filePath: string) => Promise<string | null>;
|
|
30
|
+
readFileSync: (filePath: string) => string | null;
|
|
31
|
+
readFileSyncBuffer: (filePath: string) => Uint8Array | null;
|
|
32
|
+
spawnSync: typeof spawnSync | undefined;
|
|
33
|
+
stat: (path: string) => Promise<{
|
|
34
|
+
isDirectory: () => boolean;
|
|
35
|
+
isFile: () => boolean;
|
|
36
|
+
size: number;
|
|
37
|
+
}>;
|
|
38
|
+
statSync: (path: string) => {
|
|
39
|
+
isDirectory: () => boolean;
|
|
40
|
+
isFile: () => boolean;
|
|
41
|
+
size: number;
|
|
42
|
+
};
|
|
43
|
+
writeFile: (filePath: string, content: string | Uint8Array) => Promise<void>;
|
|
44
|
+
unlink: (filePath: string) => Promise<void>;
|
|
45
|
+
unlinkSync: (filePath: string) => void;
|
|
46
|
+
formatCode: (filePath: string, code: string) => Promise<string>;
|
|
47
|
+
hash: (str: string) => Promise<string>;
|
|
48
|
+
on: (eventName: "change", callback: FileChangeCallback) => void;
|
|
49
|
+
off: (eventName: "change", callback: FileChangeCallback) => void;
|
|
50
|
+
debug: (...args: any[]) => void;
|
|
51
|
+
launchEditor: (file: LaunchEditorFile) => Promise<{
|
|
52
|
+
success: boolean;
|
|
53
|
+
message?: string;
|
|
54
|
+
}>;
|
|
55
|
+
platform: () => DevtoolsPlatform;
|
|
56
|
+
getDeviceId: () => Promise<string>;
|
|
57
|
+
getFrameworks: () => Framework[];
|
|
58
|
+
getRepoInfo: (githubWorkingDirectory?: string) => Promise<RepoInfo>;
|
|
59
|
+
Sentry: typeof import("@sentry/node") | undefined;
|
|
60
|
+
connectionTracker: import("./types/connection-tracker").ConnectionTracker;
|
|
61
|
+
ts: typeof import("typescript");
|
|
62
|
+
version: string;
|
|
63
|
+
sdkVersion: SDK_VERSION_VALUES | null;
|
|
64
|
+
ignoreMissingConfig?: boolean;
|
|
65
|
+
kind: SPACE_KIND_VALUES;
|
|
66
|
+
magicast: typeof import("magicast") | undefined;
|
|
67
67
|
}
|
|
68
68
|
export interface DevtoolsPlatform {
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
runtime: string;
|
|
70
|
+
os: string;
|
|
71
71
|
}
|
|
72
72
|
export type FileChangeCallback = (file: FileChangeInfo) => Promise<void> | void;
|
|
73
73
|
export interface FileChangeInfo {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
path: string;
|
|
75
|
+
basename: string;
|
|
76
|
+
extname: string;
|
|
77
|
+
dirname: string;
|
|
78
78
|
}
|
|
79
79
|
export interface EnsureConfigResult {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
content: string;
|
|
81
|
+
filePath: string;
|
|
82
|
+
fileName: string;
|
|
83
|
+
outcome: "already-exists" | "added" | "no-update";
|
|
84
84
|
}
|
|
85
85
|
export interface FrameworkDependency {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
name: string;
|
|
87
|
+
version?: string;
|
|
88
|
+
devDependency?: boolean;
|
|
89
89
|
}
|
|
90
90
|
export interface BuildToolConfig {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
id: string;
|
|
92
|
+
content: string;
|
|
93
|
+
filePath: string;
|
|
94
94
|
}
|
|
95
95
|
export interface CreateDevToolsOptions extends DevToolsSys {
|
|
96
|
-
|
|
96
|
+
frameworks?: Framework[];
|
|
97
97
|
}
|
|
98
98
|
export interface FrameworkBuilderPageOptions {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
templateContentId: string;
|
|
100
|
+
title: string;
|
|
101
|
+
pathname: string;
|
|
102
|
+
localePathname?: string;
|
|
103
103
|
}
|
|
104
104
|
export interface DevToolsAdapter {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
105
|
+
getPublicApiKey: () => Promise<EnvInfo>;
|
|
106
|
+
setPublicApiKey: (opts: SetPublicApiKeyOptions) => Promise<EnvInfo>;
|
|
107
|
+
builderPageOptions: () => Promise<FrameworkBuilderPageOptions>;
|
|
108
|
+
ensureBuilderSetup: () => Promise<ModifiedFile[]>;
|
|
109
|
+
ensureFigmaImportPage: () => Promise<ModifiedFile[]>;
|
|
110
|
+
getRegistry: (opts?: GetRegistryOptions) => Promise<ComponentRegistry>;
|
|
111
|
+
getRegistryPath: () => string;
|
|
112
|
+
loadComponent: (opts: LoadComponentOptions) => Promise<LoadComponent>;
|
|
113
|
+
addExternalPackage: (pkgName: string) => void;
|
|
114
|
+
registerComponent: (
|
|
115
|
+
opts: RegisterComponentOptions,
|
|
116
|
+
) => Promise<ComponentRegistry>;
|
|
117
|
+
unregisterComponent: (
|
|
118
|
+
opts: UnregisterComponentOptions,
|
|
119
|
+
) => Promise<ComponentRegistry>;
|
|
120
|
+
setRegisteredComponentInfo: (
|
|
121
|
+
opts: SetComponentInfoOptions,
|
|
122
|
+
) => Promise<ComponentRegistry>;
|
|
123
|
+
setRegisteredComponentInput: (
|
|
124
|
+
opts: SetComponentInputOptions,
|
|
125
|
+
) => Promise<ComponentRegistry>;
|
|
126
|
+
getDependencies: (opts: DependenciesOptions) => FrameworkDependency[];
|
|
127
|
+
getDevRunCommand: () => string;
|
|
128
|
+
getCache: () => Promise<Record<string, any>>;
|
|
129
|
+
setCache: (cache: Record<string, any>) => Promise<void>;
|
|
122
130
|
}
|
|
123
131
|
export interface DevTools extends DevToolsAdapter {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
132
|
+
exportRegistry: () => Promise<string>;
|
|
133
|
+
importRegistry: (exportedRegistry: string) => Promise<ComponentRegistry>;
|
|
134
|
+
framework: string;
|
|
135
|
+
findAllDependencies: () => Promise<DependencyTree>;
|
|
128
136
|
}
|
|
129
137
|
export interface DevToolsServerOptions extends DevToolsSys, DevTools {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}) => any;
|
|
139
|
-
enableAppWatch: (enabled: boolean) => Promise<boolean>;
|
|
140
|
-
closeAppServer: () => Promise<void>;
|
|
141
|
-
restartAppServer: () => Promise<void>;
|
|
142
|
-
port?: number;
|
|
143
|
-
getAllProjectFiles?: () => Promise<string[]>;
|
|
138
|
+
getClientId: () => string;
|
|
139
|
+
getPastSyncInfo?: (data: { sessionKey: string; since: number }) => any;
|
|
140
|
+
resyncSnippet?: (data: { syncInfo: SyncInfo; snippet: Snippet }) => any;
|
|
141
|
+
enableAppWatch: (enabled: boolean) => Promise<boolean>;
|
|
142
|
+
closeAppServer: () => Promise<void>;
|
|
143
|
+
restartAppServer: () => Promise<void>;
|
|
144
|
+
port?: number;
|
|
145
|
+
getAllProjectFiles?: () => Promise<string[]>;
|
|
144
146
|
}
|
|
145
147
|
export interface DevToolsHttpServer {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
url: string;
|
|
149
|
+
port: number;
|
|
150
|
+
setContext(ctx: DevToolsServerContext): void;
|
|
151
|
+
close(): Promise<void>;
|
|
150
152
|
}
|
|
151
153
|
export interface BuilderAppCredentials {
|
|
152
|
-
|
|
153
|
-
}
|
|
154
|
-
export interface DevToolsServerContext
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
154
|
+
publicApiKey: string | null;
|
|
155
|
+
}
|
|
156
|
+
export interface DevToolsServerContext
|
|
157
|
+
extends Omit<DevToolsServerOptions, "getAllProjectFiles"> {
|
|
158
|
+
devToolsServerUrl: string;
|
|
159
|
+
isValid: boolean;
|
|
160
|
+
serverShouldRestart: boolean;
|
|
161
|
+
publicApiKey: string;
|
|
162
|
+
port: number;
|
|
163
|
+
ignoreMissingConfig: boolean;
|
|
164
|
+
getAllProjectFiles: () => Promise<string[]>;
|
|
162
165
|
}
|
|
163
166
|
export interface SetPublicApiKeyOptions {
|
|
164
|
-
|
|
167
|
+
publicApiKey: string;
|
|
165
168
|
}
|
|
166
169
|
export interface EnvInfo {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
170
|
+
envKey: string;
|
|
171
|
+
envValue: string | null;
|
|
172
|
+
file: string;
|
|
173
|
+
modifiedType?: "create" | "update" | "permission-error" | null;
|
|
171
174
|
}
|
|
172
175
|
export interface DevToolsServer {
|
|
173
|
-
|
|
174
|
-
}
|
|
175
|
-
export type ApiRequest =
|
|
176
|
+
getUrl: () => string;
|
|
177
|
+
}
|
|
178
|
+
export type ApiRequest =
|
|
179
|
+
| ApiConnectBuilderRequest
|
|
180
|
+
| ApiDevToolsEnabledRequest
|
|
181
|
+
| ApiGetRegistryRequest
|
|
182
|
+
| ApiLaunchEditorRequest
|
|
183
|
+
| ApiRegisterComponentRequest
|
|
184
|
+
| ApiRegisteredComponentInfoRequest
|
|
185
|
+
| ApiRegisteredComponentInputRequest
|
|
186
|
+
| ApiLoadComponentRequest
|
|
187
|
+
| ApiUnregisterComponentRequest
|
|
188
|
+
| ApiValidateBuilderRequest
|
|
189
|
+
| ApiFrameworksRequest
|
|
190
|
+
| ApiReadFileRequest
|
|
191
|
+
| ApiWriteFileRequest
|
|
192
|
+
| ApiReaddirRequest
|
|
193
|
+
| ApiGetBuilderCacheRequest
|
|
194
|
+
| ApiEnsureFigmaImportPageRequest
|
|
195
|
+
| ApiSetBuilderCacheRequest
|
|
196
|
+
| ApiTranspileModuleRequest
|
|
197
|
+
| ApiTranspileFileRequest
|
|
198
|
+
| ApiPastSyncInfoRequest
|
|
199
|
+
| ApiResyncSnippetRequest
|
|
200
|
+
| ApiLocalConfigRequest
|
|
201
|
+
| ApiGetAllProjectFilesRequest;
|
|
176
202
|
export interface ApiTranspileModuleRequest extends TranspileModuleOptions {
|
|
177
|
-
|
|
203
|
+
type: "transileModule";
|
|
178
204
|
}
|
|
179
205
|
export interface ApiTranspileFileRequest extends TranspileFileOptions {
|
|
180
|
-
|
|
206
|
+
type: "transileFile";
|
|
181
207
|
}
|
|
182
208
|
export interface ApiGetBuilderCacheRequest {
|
|
183
|
-
|
|
209
|
+
type: "getCache";
|
|
184
210
|
}
|
|
185
211
|
export interface ApiSetBuilderCacheRequest {
|
|
186
|
-
|
|
187
|
-
|
|
212
|
+
type: "setCache";
|
|
213
|
+
data: Record<string, any>;
|
|
188
214
|
}
|
|
189
215
|
export interface ApiPastSyncInfoRequest {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
216
|
+
type: "getPastSyncInfo";
|
|
217
|
+
data: {
|
|
218
|
+
sessionKey: string;
|
|
219
|
+
since: number;
|
|
220
|
+
};
|
|
195
221
|
}
|
|
196
222
|
export interface ApiResyncSnippetRequest {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
223
|
+
type: "resyncSnippet";
|
|
224
|
+
data: {
|
|
225
|
+
syncInfo: SyncInfo;
|
|
226
|
+
snippet: Snippet;
|
|
227
|
+
};
|
|
202
228
|
}
|
|
203
229
|
export interface ApiEnsureFigmaImportPageRequest {
|
|
204
|
-
|
|
230
|
+
type: "ensureFigmaImportPage";
|
|
205
231
|
}
|
|
206
232
|
export interface ApiConnectBuilderRequest {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
233
|
+
type: "connectBuilder";
|
|
234
|
+
data: {
|
|
235
|
+
publicApiKey: string;
|
|
236
|
+
privateAuthKey: string;
|
|
237
|
+
kind: string | null;
|
|
238
|
+
};
|
|
213
239
|
}
|
|
214
240
|
export interface ApiDevToolsEnabledRequest {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
241
|
+
type: "enableDevTools";
|
|
242
|
+
data: {
|
|
243
|
+
enabled: boolean;
|
|
244
|
+
};
|
|
219
245
|
}
|
|
220
246
|
export interface ApiGetRegistryRequest {
|
|
221
|
-
|
|
222
|
-
|
|
247
|
+
type: "getRegistry";
|
|
248
|
+
data?: GetRegistryOptions;
|
|
223
249
|
}
|
|
224
250
|
export interface GetRegistryOptions {
|
|
225
|
-
|
|
251
|
+
readAllInputTypes?: boolean;
|
|
226
252
|
}
|
|
227
253
|
export interface ApiLocalConfigRequest {
|
|
228
|
-
|
|
254
|
+
type: "localConfig";
|
|
229
255
|
}
|
|
230
256
|
export interface ApiLaunchEditorRequest {
|
|
231
|
-
|
|
232
|
-
|
|
257
|
+
type: "launchEditor";
|
|
258
|
+
data: LaunchEditorFile;
|
|
233
259
|
}
|
|
234
260
|
export interface ApiRegisterComponentRequest {
|
|
235
|
-
|
|
236
|
-
|
|
261
|
+
type: "registerComponent";
|
|
262
|
+
data: RegisterComponentOptions;
|
|
237
263
|
}
|
|
238
264
|
export interface ApiUnregisterComponentRequest {
|
|
239
|
-
|
|
240
|
-
|
|
265
|
+
type: "unregisterComponent";
|
|
266
|
+
data: UnregisterComponentOptions;
|
|
241
267
|
}
|
|
242
268
|
export interface ApiRegisteredComponentInfoRequest {
|
|
243
|
-
|
|
244
|
-
|
|
269
|
+
type: "setComponentInfo";
|
|
270
|
+
data: SetComponentInfoOptions;
|
|
245
271
|
}
|
|
246
272
|
export interface ApiRegisteredComponentInputRequest {
|
|
247
|
-
|
|
248
|
-
|
|
273
|
+
type: "setComponentInput";
|
|
274
|
+
data: SetComponentInputOptions;
|
|
249
275
|
}
|
|
250
276
|
export interface ApiLoadComponentRequest {
|
|
251
|
-
|
|
252
|
-
|
|
277
|
+
type: "loadComponent";
|
|
278
|
+
data: LoadComponentOptions;
|
|
253
279
|
}
|
|
254
280
|
export interface ApiValidateBuilderRequest {
|
|
255
|
-
|
|
281
|
+
type: "validateBuilder";
|
|
256
282
|
}
|
|
257
283
|
export interface ApiFrameworksRequest {
|
|
258
|
-
|
|
284
|
+
type: "getFrameworks";
|
|
259
285
|
}
|
|
260
286
|
export interface ApiReadFileRequest {
|
|
261
|
-
|
|
262
|
-
|
|
287
|
+
type: "readFile";
|
|
288
|
+
path: string;
|
|
263
289
|
}
|
|
264
290
|
export interface ApiWriteFileRequest {
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
291
|
+
type: "writeFile";
|
|
292
|
+
path: string;
|
|
293
|
+
content: string;
|
|
268
294
|
}
|
|
269
295
|
export interface ApiReaddirRequest {
|
|
270
|
-
|
|
271
|
-
|
|
296
|
+
type: "readdir";
|
|
297
|
+
path: string;
|
|
272
298
|
}
|
|
273
299
|
export interface ApiResponse<T = any> {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
300
|
+
type?: string;
|
|
301
|
+
data?: T;
|
|
302
|
+
errors?: string[];
|
|
277
303
|
}
|
|
278
304
|
export interface ValidatedBuilder {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
305
|
+
isValid: boolean;
|
|
306
|
+
pathname: string;
|
|
307
|
+
platform: DevtoolsPlatform;
|
|
282
308
|
}
|
|
283
309
|
export interface ConnectedBuilder {
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
310
|
+
success: boolean;
|
|
311
|
+
pathname: string;
|
|
312
|
+
modifiedFiles: ModifiedFile[];
|
|
313
|
+
platform: DevtoolsPlatform;
|
|
314
|
+
kind: SPACE_KIND_VALUES;
|
|
289
315
|
}
|
|
290
316
|
export interface LocalConfig {
|
|
291
|
-
|
|
292
|
-
|
|
317
|
+
userId?: string;
|
|
318
|
+
deviceId?: string;
|
|
293
319
|
}
|
|
294
320
|
export interface ModifiedFile {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
321
|
+
filePath: string;
|
|
322
|
+
displayFilePath?: string;
|
|
323
|
+
modifiedType: "create" | "update";
|
|
298
324
|
}
|
|
299
325
|
export interface Framework {
|
|
300
|
-
|
|
301
|
-
|
|
326
|
+
name: string;
|
|
327
|
+
version?: SemanticVersion;
|
|
302
328
|
}
|
|
303
329
|
export interface SemanticVersion {
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
330
|
+
major?: number;
|
|
331
|
+
minor?: number;
|
|
332
|
+
patch?: number;
|
|
307
333
|
}
|
|
308
334
|
export interface ComponentRegistry {
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
335
|
+
components: ComponentInfo[];
|
|
336
|
+
registryPath: string;
|
|
337
|
+
registryDisplayPath: string;
|
|
338
|
+
frameworks: Framework[];
|
|
339
|
+
dependencies: AppDependency[];
|
|
340
|
+
publicApiKey: string | undefined;
|
|
341
|
+
devToolsVersion: string;
|
|
316
342
|
}
|
|
317
343
|
export interface AppDependency {
|
|
318
|
-
|
|
344
|
+
name: string;
|
|
319
345
|
}
|
|
320
346
|
export interface ExportedRegistry {
|
|
321
|
-
|
|
322
|
-
|
|
347
|
+
components: MinimalComponentInfo[];
|
|
348
|
+
version: number;
|
|
323
349
|
}
|
|
324
350
|
export interface LoadComponent extends ComponentRegistry {
|
|
325
|
-
|
|
351
|
+
component: ComponentInfo;
|
|
326
352
|
}
|
|
327
353
|
export interface LoadComponentOptions {
|
|
328
|
-
|
|
354
|
+
cmpId: string;
|
|
329
355
|
}
|
|
330
356
|
export interface RegisterComponentOptions {
|
|
331
|
-
|
|
357
|
+
cmpId: string | string[];
|
|
332
358
|
}
|
|
333
359
|
export interface UnregisterComponentOptions {
|
|
334
|
-
|
|
360
|
+
cmpId: string;
|
|
335
361
|
}
|
|
336
362
|
export interface SetComponentInfoOptions {
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
363
|
+
cmpId: string;
|
|
364
|
+
name?: string;
|
|
365
|
+
image?: string | null;
|
|
366
|
+
description?: string | null;
|
|
341
367
|
}
|
|
342
|
-
export interface SetComponentInputOptions
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
368
|
+
export interface SetComponentInputOptions
|
|
369
|
+
extends Partial<Omit<ComponentInput, "isRegistered">> {
|
|
370
|
+
cmpId: string;
|
|
371
|
+
name: string;
|
|
372
|
+
registerInput?: boolean;
|
|
346
373
|
}
|
|
347
374
|
export interface DependenciesOptions {
|
|
348
|
-
|
|
375
|
+
sdkVersion: SDK_VERSION_VALUES | null;
|
|
349
376
|
}
|
|
350
377
|
export interface ComponentInfo {
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
378
|
+
id: string;
|
|
379
|
+
filePath: string;
|
|
380
|
+
relFilePath: string;
|
|
381
|
+
importPath: string;
|
|
382
|
+
name: string;
|
|
383
|
+
image?: string;
|
|
384
|
+
description?: string;
|
|
385
|
+
inputs: ComponentInput[];
|
|
386
|
+
displayFilePath?: string;
|
|
387
|
+
exportName: string;
|
|
388
|
+
exportType?: ExportType;
|
|
389
|
+
importName: string;
|
|
390
|
+
nodeIndex?: number;
|
|
391
|
+
isRegistered?: boolean;
|
|
392
|
+
acceptsChildren?: boolean;
|
|
393
|
+
meta?: Record<string, any>;
|
|
394
|
+
dependencies?: AppDependency[];
|
|
395
|
+
externalImportPath?: string;
|
|
396
|
+
framework: "react" | "angular" | "qwik" | "vue";
|
|
397
|
+
vueApiType?: "composition-setup" | "composition" | "options";
|
|
371
398
|
}
|
|
372
399
|
export interface MinimalComponentInfo {
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
400
|
+
filePath: string;
|
|
401
|
+
name: string;
|
|
402
|
+
image?: string;
|
|
403
|
+
description?: string;
|
|
404
|
+
inputs: ComponentInput[];
|
|
405
|
+
exportName: string;
|
|
379
406
|
}
|
|
380
407
|
/**
|
|
381
408
|
* Extends the @builder.io/sdk Input type to include additional properties.
|
|
382
409
|
* If a property is set to null, it will be removed from the input.
|
|
383
410
|
*/
|
|
384
411
|
export interface ComponentInput {
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
412
|
+
/** This is the name of the component prop this input represents */
|
|
413
|
+
name: string;
|
|
414
|
+
/** A friendlier name to show in the UI if the component prop name is not ideal for end users. Setting to null will remove the value. */
|
|
415
|
+
friendlyName?: string | null;
|
|
416
|
+
/** A default value to use. Setting to null will remove the value. */
|
|
417
|
+
defaultValue?: string | number | boolean | null;
|
|
418
|
+
/**
|
|
419
|
+
* The type of input to use, such as 'text'
|
|
420
|
+
*
|
|
421
|
+
* See all available inputs [here](https://www.builder.io/c/docs/custom-react-components#input-types)
|
|
422
|
+
* and you can create your own custom input types and associated editor UIs with [plugins](https://www.builder.io/c/docs/extending/plugins)
|
|
423
|
+
*/
|
|
424
|
+
type: string;
|
|
425
|
+
/** Is this input mandatory or not. Setting to null will remove the setting. */
|
|
426
|
+
required?: boolean | null;
|
|
427
|
+
/**
|
|
428
|
+
* Additional text to render in the UI to give guidance on how to use this
|
|
429
|
+
*
|
|
430
|
+
* @example
|
|
431
|
+
* ```js
|
|
432
|
+
* helperText: 'Be sure to use a proper URL, starting with "https://"'
|
|
433
|
+
* 111
|
|
434
|
+
*/
|
|
435
|
+
helperText?: string | null;
|
|
436
|
+
/**
|
|
437
|
+
* For "text" input type, specifying an enum will show a dropdown of options instead
|
|
438
|
+
*/
|
|
439
|
+
enum?:
|
|
440
|
+
| string[]
|
|
441
|
+
| {
|
|
442
|
+
label: string;
|
|
443
|
+
value: string | number | boolean;
|
|
444
|
+
helperText?: string;
|
|
445
|
+
}[];
|
|
446
|
+
meta?: Record<string, any>;
|
|
447
|
+
/** Add-on data that should not go in the registry */
|
|
448
|
+
isRegistered?: boolean;
|
|
449
|
+
hideFromUI?: boolean;
|
|
421
450
|
}
|
|
422
451
|
export type ExportType = "default" | "named";
|
|
423
452
|
export interface PackageJSON {
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
453
|
+
dependencies?: {
|
|
454
|
+
[pkgName: string]: string;
|
|
455
|
+
};
|
|
456
|
+
devDependencies?: {
|
|
457
|
+
[pkgName: string]: string;
|
|
458
|
+
};
|
|
459
|
+
scripts?: {
|
|
460
|
+
[scriptName: string]: string;
|
|
461
|
+
};
|
|
462
|
+
[key: string]: any;
|
|
434
463
|
}
|
|
435
464
|
export type ModuleFormat = "esm" | "cjs";
|
|
436
465
|
export interface LaunchEditorFile {
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
466
|
+
filePath: string;
|
|
467
|
+
line?: number;
|
|
468
|
+
column?: number;
|
|
440
469
|
}
|
|
441
470
|
export interface TranspileFileOptions {
|
|
442
|
-
|
|
443
|
-
|
|
471
|
+
filePath: string;
|
|
472
|
+
compilerOptions: import("typescript").CompilerOptions;
|
|
444
473
|
}
|
|
445
474
|
export interface TranspileModuleOptions {
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
475
|
+
code: string;
|
|
476
|
+
filePath?: string;
|
|
477
|
+
compilerOptions: import("typescript").CompilerOptions;
|
|
449
478
|
}
|
|
450
479
|
export interface TranspileResult {
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
480
|
+
code: string | null;
|
|
481
|
+
output: string | null;
|
|
482
|
+
diagnostics: TranspileDiagnostic[];
|
|
454
483
|
}
|
|
455
484
|
export interface TranspileDiagnostic {
|
|
456
|
-
|
|
485
|
+
messageText: string;
|
|
457
486
|
}
|
|
458
487
|
export declare const SDK_VERSIONS: {
|
|
459
|
-
|
|
460
|
-
|
|
488
|
+
readonly gen1: "Gen 1";
|
|
489
|
+
readonly gen2: "Gen 2";
|
|
461
490
|
};
|
|
462
491
|
type SDK_VERSION_KEYS = keyof typeof SDK_VERSIONS;
|
|
463
492
|
export type SDK_VERSION_VALUES = (typeof SDK_VERSIONS)[SDK_VERSION_KEYS];
|
|
464
493
|
export interface SDKVersionInfo {
|
|
465
|
-
|
|
466
|
-
|
|
494
|
+
version: SDK_VERSION_VALUES;
|
|
495
|
+
recommended: boolean;
|
|
467
496
|
}
|
|
468
497
|
export interface SDKFrameworks {
|
|
469
|
-
|
|
498
|
+
[key: string]: SDKVersionInfo[];
|
|
470
499
|
}
|
|
471
500
|
export interface UpdateRegistry {
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
501
|
+
addCmpToRegistry: ComponentInfo | null;
|
|
502
|
+
removeCmpFromRegistry: ComponentInfo | null;
|
|
503
|
+
updateRegisteredCmp: ComponentInfo | null;
|
|
504
|
+
nodeIndex: number;
|
|
505
|
+
components: ComponentInfo[];
|
|
477
506
|
}
|
|
478
507
|
export interface AddCliOptions {
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
508
|
+
cwd: string;
|
|
509
|
+
command?: string;
|
|
510
|
+
snippetId?: string;
|
|
511
|
+
snippet?: Snippet;
|
|
512
|
+
path?: string;
|
|
484
513
|
}
|
|
485
514
|
export interface FileNode {
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
515
|
+
name: string;
|
|
516
|
+
code: string;
|
|
517
|
+
path: string;
|
|
518
|
+
timestamp?: number;
|
|
519
|
+
snippetId?: string;
|
|
491
520
|
}
|
|
492
521
|
export interface FolderNode {
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
522
|
+
name: string;
|
|
523
|
+
path: string;
|
|
524
|
+
files: (FileNode | FolderNode)[];
|
|
496
525
|
}
|
|
497
526
|
export interface Snippet {
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
527
|
+
createdDate: number;
|
|
528
|
+
contentId: string;
|
|
529
|
+
code: string;
|
|
530
|
+
framework: string;
|
|
531
|
+
suggestedName: string;
|
|
532
|
+
id: string;
|
|
533
|
+
files: Array<FileNode | FolderNode>;
|
|
534
|
+
sessionKey: string;
|
|
506
535
|
}
|
|
507
536
|
export interface SyncInfo {
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
537
|
+
snippet: Snippet;
|
|
538
|
+
pathInput: string;
|
|
539
|
+
writtenFiles: Array<FileNode>;
|
|
540
|
+
timeStamp: number;
|
|
512
541
|
}
|
|
513
542
|
export interface Package {
|
|
514
|
-
|
|
515
|
-
|
|
543
|
+
name: string;
|
|
544
|
+
subPackages: string[];
|
|
516
545
|
}
|
|
517
546
|
export type DependencyTree = Package[];
|
|
518
547
|
export declare const SPACE_KIND: {
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
548
|
+
readonly CMS: "cms";
|
|
549
|
+
readonly VCP: "vcp";
|
|
550
|
+
readonly HYBRID: "hybrid";
|
|
522
551
|
};
|
|
523
552
|
type SPACE_KIND_KEYS = keyof typeof SPACE_KIND;
|
|
524
553
|
export type SPACE_KIND_VALUES = (typeof SPACE_KIND)[SPACE_KIND_KEYS] | null;
|
|
525
554
|
export interface ApiGetAllProjectFilesRequest {
|
|
526
|
-
|
|
555
|
+
type: "getAllProjectFiles";
|
|
527
556
|
}
|
|
528
557
|
export {};
|