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