@builder.io/dev-tools 1.18.11-dev.202511202319.621aec6ae → 1.18.11-dev.202511210323.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 +76 -107
- 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
package/types/types.d.ts
CHANGED
|
@@ -1,557 +1,528 @@
|
|
|
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
|
-
|
|
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>;
|
|
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: (opts: RegisterComponentOptions) => Promise<ComponentRegistry>;
|
|
115
|
+
unregisterComponent: (opts: UnregisterComponentOptions) => Promise<ComponentRegistry>;
|
|
116
|
+
setRegisteredComponentInfo: (opts: SetComponentInfoOptions) => Promise<ComponentRegistry>;
|
|
117
|
+
setRegisteredComponentInput: (opts: SetComponentInputOptions) => Promise<ComponentRegistry>;
|
|
118
|
+
getDependencies: (opts: DependenciesOptions) => FrameworkDependency[];
|
|
119
|
+
getDevRunCommand: () => string;
|
|
120
|
+
getCache: () => Promise<Record<string, any>>;
|
|
121
|
+
setCache: (cache: Record<string, any>) => Promise<void>;
|
|
130
122
|
}
|
|
131
123
|
export interface DevTools extends DevToolsAdapter {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
124
|
+
exportRegistry: () => Promise<string>;
|
|
125
|
+
importRegistry: (exportedRegistry: string) => Promise<ComponentRegistry>;
|
|
126
|
+
framework: string;
|
|
127
|
+
findAllDependencies: () => Promise<DependencyTree>;
|
|
136
128
|
}
|
|
137
129
|
export interface DevToolsServerOptions extends DevToolsSys, DevTools {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
130
|
+
getClientId: () => string;
|
|
131
|
+
getPastSyncInfo?: (data: {
|
|
132
|
+
sessionKey: string;
|
|
133
|
+
since: number;
|
|
134
|
+
}) => any;
|
|
135
|
+
resyncSnippet?: (data: {
|
|
136
|
+
syncInfo: SyncInfo;
|
|
137
|
+
snippet: Snippet;
|
|
138
|
+
}) => any;
|
|
139
|
+
enableAppWatch: (enabled: boolean) => Promise<boolean>;
|
|
140
|
+
closeAppServer: () => Promise<void>;
|
|
141
|
+
restartAppServer: () => Promise<void>;
|
|
142
|
+
port?: number;
|
|
143
|
+
getAllProjectFiles?: () => Promise<string[]>;
|
|
146
144
|
}
|
|
147
145
|
export interface DevToolsHttpServer {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
146
|
+
url: string;
|
|
147
|
+
port: number;
|
|
148
|
+
setContext(ctx: DevToolsServerContext): void;
|
|
149
|
+
close(): Promise<void>;
|
|
152
150
|
}
|
|
153
151
|
export interface BuilderAppCredentials {
|
|
154
|
-
|
|
155
|
-
}
|
|
156
|
-
export interface DevToolsServerContext
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
getAllProjectFiles: () => Promise<string[]>;
|
|
152
|
+
publicApiKey: string | null;
|
|
153
|
+
}
|
|
154
|
+
export interface DevToolsServerContext 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[]>;
|
|
165
162
|
}
|
|
166
163
|
export interface SetPublicApiKeyOptions {
|
|
167
|
-
|
|
164
|
+
publicApiKey: string;
|
|
168
165
|
}
|
|
169
166
|
export interface EnvInfo {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
167
|
+
envKey: string;
|
|
168
|
+
envValue: string | null;
|
|
169
|
+
file: string;
|
|
170
|
+
modifiedType?: "create" | "update" | "permission-error" | null;
|
|
174
171
|
}
|
|
175
172
|
export interface DevToolsServer {
|
|
176
|
-
|
|
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;
|
|
173
|
+
getUrl: () => string;
|
|
174
|
+
}
|
|
175
|
+
export type ApiRequest = ApiConnectBuilderRequest | ApiDevToolsEnabledRequest | ApiGetRegistryRequest | ApiLaunchEditorRequest | ApiRegisterComponentRequest | ApiRegisteredComponentInfoRequest | ApiRegisteredComponentInputRequest | ApiLoadComponentRequest | ApiUnregisterComponentRequest | ApiValidateBuilderRequest | ApiFrameworksRequest | ApiReadFileRequest | ApiWriteFileRequest | ApiReaddirRequest | ApiGetBuilderCacheRequest | ApiEnsureFigmaImportPageRequest | ApiSetBuilderCacheRequest | ApiTranspileModuleRequest | ApiTranspileFileRequest | ApiPastSyncInfoRequest | ApiResyncSnippetRequest | ApiLocalConfigRequest | ApiGetAllProjectFilesRequest;
|
|
202
176
|
export interface ApiTranspileModuleRequest extends TranspileModuleOptions {
|
|
203
|
-
|
|
177
|
+
type: "transileModule";
|
|
204
178
|
}
|
|
205
179
|
export interface ApiTranspileFileRequest extends TranspileFileOptions {
|
|
206
|
-
|
|
180
|
+
type: "transileFile";
|
|
207
181
|
}
|
|
208
182
|
export interface ApiGetBuilderCacheRequest {
|
|
209
|
-
|
|
183
|
+
type: "getCache";
|
|
210
184
|
}
|
|
211
185
|
export interface ApiSetBuilderCacheRequest {
|
|
212
|
-
|
|
213
|
-
|
|
186
|
+
type: "setCache";
|
|
187
|
+
data: Record<string, any>;
|
|
214
188
|
}
|
|
215
189
|
export interface ApiPastSyncInfoRequest {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
190
|
+
type: "getPastSyncInfo";
|
|
191
|
+
data: {
|
|
192
|
+
sessionKey: string;
|
|
193
|
+
since: number;
|
|
194
|
+
};
|
|
221
195
|
}
|
|
222
196
|
export interface ApiResyncSnippetRequest {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
197
|
+
type: "resyncSnippet";
|
|
198
|
+
data: {
|
|
199
|
+
syncInfo: SyncInfo;
|
|
200
|
+
snippet: Snippet;
|
|
201
|
+
};
|
|
228
202
|
}
|
|
229
203
|
export interface ApiEnsureFigmaImportPageRequest {
|
|
230
|
-
|
|
204
|
+
type: "ensureFigmaImportPage";
|
|
231
205
|
}
|
|
232
206
|
export interface ApiConnectBuilderRequest {
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
207
|
+
type: "connectBuilder";
|
|
208
|
+
data: {
|
|
209
|
+
publicApiKey: string;
|
|
210
|
+
privateAuthKey: string;
|
|
211
|
+
kind: string | null;
|
|
212
|
+
};
|
|
239
213
|
}
|
|
240
214
|
export interface ApiDevToolsEnabledRequest {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
215
|
+
type: "enableDevTools";
|
|
216
|
+
data: {
|
|
217
|
+
enabled: boolean;
|
|
218
|
+
};
|
|
245
219
|
}
|
|
246
220
|
export interface ApiGetRegistryRequest {
|
|
247
|
-
|
|
248
|
-
|
|
221
|
+
type: "getRegistry";
|
|
222
|
+
data?: GetRegistryOptions;
|
|
249
223
|
}
|
|
250
224
|
export interface GetRegistryOptions {
|
|
251
|
-
|
|
225
|
+
readAllInputTypes?: boolean;
|
|
252
226
|
}
|
|
253
227
|
export interface ApiLocalConfigRequest {
|
|
254
|
-
|
|
228
|
+
type: "localConfig";
|
|
255
229
|
}
|
|
256
230
|
export interface ApiLaunchEditorRequest {
|
|
257
|
-
|
|
258
|
-
|
|
231
|
+
type: "launchEditor";
|
|
232
|
+
data: LaunchEditorFile;
|
|
259
233
|
}
|
|
260
234
|
export interface ApiRegisterComponentRequest {
|
|
261
|
-
|
|
262
|
-
|
|
235
|
+
type: "registerComponent";
|
|
236
|
+
data: RegisterComponentOptions;
|
|
263
237
|
}
|
|
264
238
|
export interface ApiUnregisterComponentRequest {
|
|
265
|
-
|
|
266
|
-
|
|
239
|
+
type: "unregisterComponent";
|
|
240
|
+
data: UnregisterComponentOptions;
|
|
267
241
|
}
|
|
268
242
|
export interface ApiRegisteredComponentInfoRequest {
|
|
269
|
-
|
|
270
|
-
|
|
243
|
+
type: "setComponentInfo";
|
|
244
|
+
data: SetComponentInfoOptions;
|
|
271
245
|
}
|
|
272
246
|
export interface ApiRegisteredComponentInputRequest {
|
|
273
|
-
|
|
274
|
-
|
|
247
|
+
type: "setComponentInput";
|
|
248
|
+
data: SetComponentInputOptions;
|
|
275
249
|
}
|
|
276
250
|
export interface ApiLoadComponentRequest {
|
|
277
|
-
|
|
278
|
-
|
|
251
|
+
type: "loadComponent";
|
|
252
|
+
data: LoadComponentOptions;
|
|
279
253
|
}
|
|
280
254
|
export interface ApiValidateBuilderRequest {
|
|
281
|
-
|
|
255
|
+
type: "validateBuilder";
|
|
282
256
|
}
|
|
283
257
|
export interface ApiFrameworksRequest {
|
|
284
|
-
|
|
258
|
+
type: "getFrameworks";
|
|
285
259
|
}
|
|
286
260
|
export interface ApiReadFileRequest {
|
|
287
|
-
|
|
288
|
-
|
|
261
|
+
type: "readFile";
|
|
262
|
+
path: string;
|
|
289
263
|
}
|
|
290
264
|
export interface ApiWriteFileRequest {
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
265
|
+
type: "writeFile";
|
|
266
|
+
path: string;
|
|
267
|
+
content: string;
|
|
294
268
|
}
|
|
295
269
|
export interface ApiReaddirRequest {
|
|
296
|
-
|
|
297
|
-
|
|
270
|
+
type: "readdir";
|
|
271
|
+
path: string;
|
|
298
272
|
}
|
|
299
273
|
export interface ApiResponse<T = any> {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
274
|
+
type?: string;
|
|
275
|
+
data?: T;
|
|
276
|
+
errors?: string[];
|
|
303
277
|
}
|
|
304
278
|
export interface ValidatedBuilder {
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
279
|
+
isValid: boolean;
|
|
280
|
+
pathname: string;
|
|
281
|
+
platform: DevtoolsPlatform;
|
|
308
282
|
}
|
|
309
283
|
export interface ConnectedBuilder {
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
284
|
+
success: boolean;
|
|
285
|
+
pathname: string;
|
|
286
|
+
modifiedFiles: ModifiedFile[];
|
|
287
|
+
platform: DevtoolsPlatform;
|
|
288
|
+
kind: SPACE_KIND_VALUES;
|
|
315
289
|
}
|
|
316
290
|
export interface LocalConfig {
|
|
317
|
-
|
|
318
|
-
|
|
291
|
+
userId?: string;
|
|
292
|
+
deviceId?: string;
|
|
319
293
|
}
|
|
320
294
|
export interface ModifiedFile {
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
295
|
+
filePath: string;
|
|
296
|
+
displayFilePath?: string;
|
|
297
|
+
modifiedType: "create" | "update";
|
|
324
298
|
}
|
|
325
299
|
export interface Framework {
|
|
326
|
-
|
|
327
|
-
|
|
300
|
+
name: string;
|
|
301
|
+
version?: SemanticVersion;
|
|
328
302
|
}
|
|
329
303
|
export interface SemanticVersion {
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
304
|
+
major?: number;
|
|
305
|
+
minor?: number;
|
|
306
|
+
patch?: number;
|
|
333
307
|
}
|
|
334
308
|
export interface ComponentRegistry {
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
309
|
+
components: ComponentInfo[];
|
|
310
|
+
registryPath: string;
|
|
311
|
+
registryDisplayPath: string;
|
|
312
|
+
frameworks: Framework[];
|
|
313
|
+
dependencies: AppDependency[];
|
|
314
|
+
publicApiKey: string | undefined;
|
|
315
|
+
devToolsVersion: string;
|
|
342
316
|
}
|
|
343
317
|
export interface AppDependency {
|
|
344
|
-
|
|
318
|
+
name: string;
|
|
345
319
|
}
|
|
346
320
|
export interface ExportedRegistry {
|
|
347
|
-
|
|
348
|
-
|
|
321
|
+
components: MinimalComponentInfo[];
|
|
322
|
+
version: number;
|
|
349
323
|
}
|
|
350
324
|
export interface LoadComponent extends ComponentRegistry {
|
|
351
|
-
|
|
325
|
+
component: ComponentInfo;
|
|
352
326
|
}
|
|
353
327
|
export interface LoadComponentOptions {
|
|
354
|
-
|
|
328
|
+
cmpId: string;
|
|
355
329
|
}
|
|
356
330
|
export interface RegisterComponentOptions {
|
|
357
|
-
|
|
331
|
+
cmpId: string | string[];
|
|
358
332
|
}
|
|
359
333
|
export interface UnregisterComponentOptions {
|
|
360
|
-
|
|
334
|
+
cmpId: string;
|
|
361
335
|
}
|
|
362
336
|
export interface SetComponentInfoOptions {
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
337
|
+
cmpId: string;
|
|
338
|
+
name?: string;
|
|
339
|
+
image?: string | null;
|
|
340
|
+
description?: string | null;
|
|
367
341
|
}
|
|
368
|
-
export interface SetComponentInputOptions
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
registerInput?: boolean;
|
|
342
|
+
export interface SetComponentInputOptions extends Partial<Omit<ComponentInput, "isRegistered">> {
|
|
343
|
+
cmpId: string;
|
|
344
|
+
name: string;
|
|
345
|
+
registerInput?: boolean;
|
|
373
346
|
}
|
|
374
347
|
export interface DependenciesOptions {
|
|
375
|
-
|
|
348
|
+
sdkVersion: SDK_VERSION_VALUES | null;
|
|
376
349
|
}
|
|
377
350
|
export interface ComponentInfo {
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
351
|
+
id: string;
|
|
352
|
+
filePath: string;
|
|
353
|
+
relFilePath: string;
|
|
354
|
+
importPath: string;
|
|
355
|
+
name: string;
|
|
356
|
+
image?: string;
|
|
357
|
+
description?: string;
|
|
358
|
+
inputs: ComponentInput[];
|
|
359
|
+
displayFilePath?: string;
|
|
360
|
+
exportName: string;
|
|
361
|
+
exportType?: ExportType;
|
|
362
|
+
importName: string;
|
|
363
|
+
nodeIndex?: number;
|
|
364
|
+
isRegistered?: boolean;
|
|
365
|
+
acceptsChildren?: boolean;
|
|
366
|
+
meta?: Record<string, any>;
|
|
367
|
+
dependencies?: AppDependency[];
|
|
368
|
+
externalImportPath?: string;
|
|
369
|
+
framework: "react" | "angular" | "qwik" | "vue";
|
|
370
|
+
vueApiType?: "composition-setup" | "composition" | "options";
|
|
398
371
|
}
|
|
399
372
|
export interface MinimalComponentInfo {
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
373
|
+
filePath: string;
|
|
374
|
+
name: string;
|
|
375
|
+
image?: string;
|
|
376
|
+
description?: string;
|
|
377
|
+
inputs: ComponentInput[];
|
|
378
|
+
exportName: string;
|
|
406
379
|
}
|
|
407
380
|
/**
|
|
408
381
|
* Extends the @builder.io/sdk Input type to include additional properties.
|
|
409
382
|
* If a property is set to null, it will be removed from the input.
|
|
410
383
|
*/
|
|
411
384
|
export interface ComponentInput {
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
isRegistered?: boolean;
|
|
449
|
-
hideFromUI?: boolean;
|
|
385
|
+
/** This is the name of the component prop this input represents */
|
|
386
|
+
name: string;
|
|
387
|
+
/** 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. */
|
|
388
|
+
friendlyName?: string | null;
|
|
389
|
+
/** A default value to use. Setting to null will remove the value. */
|
|
390
|
+
defaultValue?: string | number | boolean | null;
|
|
391
|
+
/**
|
|
392
|
+
* The type of input to use, such as 'text'
|
|
393
|
+
*
|
|
394
|
+
* See all available inputs [here](https://www.builder.io/c/docs/custom-react-components#input-types)
|
|
395
|
+
* and you can create your own custom input types and associated editor UIs with [plugins](https://www.builder.io/c/docs/extending/plugins)
|
|
396
|
+
*/
|
|
397
|
+
type: string;
|
|
398
|
+
/** Is this input mandatory or not. Setting to null will remove the setting. */
|
|
399
|
+
required?: boolean | null;
|
|
400
|
+
/**
|
|
401
|
+
* Additional text to render in the UI to give guidance on how to use this
|
|
402
|
+
*
|
|
403
|
+
* @example
|
|
404
|
+
* ```js
|
|
405
|
+
* helperText: 'Be sure to use a proper URL, starting with "https://"'
|
|
406
|
+
* 111
|
|
407
|
+
*/
|
|
408
|
+
helperText?: string | null;
|
|
409
|
+
/**
|
|
410
|
+
* For "text" input type, specifying an enum will show a dropdown of options instead
|
|
411
|
+
*/
|
|
412
|
+
enum?: string[] | {
|
|
413
|
+
label: string;
|
|
414
|
+
value: string | number | boolean;
|
|
415
|
+
helperText?: string;
|
|
416
|
+
}[];
|
|
417
|
+
meta?: Record<string, any>;
|
|
418
|
+
/** Add-on data that should not go in the registry */
|
|
419
|
+
isRegistered?: boolean;
|
|
420
|
+
hideFromUI?: boolean;
|
|
450
421
|
}
|
|
451
422
|
export type ExportType = "default" | "named";
|
|
452
423
|
export interface PackageJSON {
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
424
|
+
dependencies?: {
|
|
425
|
+
[pkgName: string]: string;
|
|
426
|
+
};
|
|
427
|
+
devDependencies?: {
|
|
428
|
+
[pkgName: string]: string;
|
|
429
|
+
};
|
|
430
|
+
scripts?: {
|
|
431
|
+
[scriptName: string]: string;
|
|
432
|
+
};
|
|
433
|
+
[key: string]: any;
|
|
463
434
|
}
|
|
464
435
|
export type ModuleFormat = "esm" | "cjs";
|
|
465
436
|
export interface LaunchEditorFile {
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
437
|
+
filePath: string;
|
|
438
|
+
line?: number;
|
|
439
|
+
column?: number;
|
|
469
440
|
}
|
|
470
441
|
export interface TranspileFileOptions {
|
|
471
|
-
|
|
472
|
-
|
|
442
|
+
filePath: string;
|
|
443
|
+
compilerOptions: import("typescript").CompilerOptions;
|
|
473
444
|
}
|
|
474
445
|
export interface TranspileModuleOptions {
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
446
|
+
code: string;
|
|
447
|
+
filePath?: string;
|
|
448
|
+
compilerOptions: import("typescript").CompilerOptions;
|
|
478
449
|
}
|
|
479
450
|
export interface TranspileResult {
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
451
|
+
code: string | null;
|
|
452
|
+
output: string | null;
|
|
453
|
+
diagnostics: TranspileDiagnostic[];
|
|
483
454
|
}
|
|
484
455
|
export interface TranspileDiagnostic {
|
|
485
|
-
|
|
456
|
+
messageText: string;
|
|
486
457
|
}
|
|
487
458
|
export declare const SDK_VERSIONS: {
|
|
488
|
-
|
|
489
|
-
|
|
459
|
+
readonly gen1: "Gen 1";
|
|
460
|
+
readonly gen2: "Gen 2";
|
|
490
461
|
};
|
|
491
462
|
type SDK_VERSION_KEYS = keyof typeof SDK_VERSIONS;
|
|
492
463
|
export type SDK_VERSION_VALUES = (typeof SDK_VERSIONS)[SDK_VERSION_KEYS];
|
|
493
464
|
export interface SDKVersionInfo {
|
|
494
|
-
|
|
495
|
-
|
|
465
|
+
version: SDK_VERSION_VALUES;
|
|
466
|
+
recommended: boolean;
|
|
496
467
|
}
|
|
497
468
|
export interface SDKFrameworks {
|
|
498
|
-
|
|
469
|
+
[key: string]: SDKVersionInfo[];
|
|
499
470
|
}
|
|
500
471
|
export interface UpdateRegistry {
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
472
|
+
addCmpToRegistry: ComponentInfo | null;
|
|
473
|
+
removeCmpFromRegistry: ComponentInfo | null;
|
|
474
|
+
updateRegisteredCmp: ComponentInfo | null;
|
|
475
|
+
nodeIndex: number;
|
|
476
|
+
components: ComponentInfo[];
|
|
506
477
|
}
|
|
507
478
|
export interface AddCliOptions {
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
479
|
+
cwd: string;
|
|
480
|
+
command?: string;
|
|
481
|
+
snippetId?: string;
|
|
482
|
+
snippet?: Snippet;
|
|
483
|
+
path?: string;
|
|
513
484
|
}
|
|
514
485
|
export interface FileNode {
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
486
|
+
name: string;
|
|
487
|
+
code: string;
|
|
488
|
+
path: string;
|
|
489
|
+
timestamp?: number;
|
|
490
|
+
snippetId?: string;
|
|
520
491
|
}
|
|
521
492
|
export interface FolderNode {
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
493
|
+
name: string;
|
|
494
|
+
path: string;
|
|
495
|
+
files: (FileNode | FolderNode)[];
|
|
525
496
|
}
|
|
526
497
|
export interface Snippet {
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
498
|
+
createdDate: number;
|
|
499
|
+
contentId: string;
|
|
500
|
+
code: string;
|
|
501
|
+
framework: string;
|
|
502
|
+
suggestedName: string;
|
|
503
|
+
id: string;
|
|
504
|
+
files: Array<FileNode | FolderNode>;
|
|
505
|
+
sessionKey: string;
|
|
535
506
|
}
|
|
536
507
|
export interface SyncInfo {
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
508
|
+
snippet: Snippet;
|
|
509
|
+
pathInput: string;
|
|
510
|
+
writtenFiles: Array<FileNode>;
|
|
511
|
+
timeStamp: number;
|
|
541
512
|
}
|
|
542
513
|
export interface Package {
|
|
543
|
-
|
|
544
|
-
|
|
514
|
+
name: string;
|
|
515
|
+
subPackages: string[];
|
|
545
516
|
}
|
|
546
517
|
export type DependencyTree = Package[];
|
|
547
518
|
export declare const SPACE_KIND: {
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
519
|
+
readonly CMS: "cms";
|
|
520
|
+
readonly VCP: "vcp";
|
|
521
|
+
readonly HYBRID: "hybrid";
|
|
551
522
|
};
|
|
552
523
|
type SPACE_KIND_KEYS = keyof typeof SPACE_KIND;
|
|
553
524
|
export type SPACE_KIND_VALUES = (typeof SPACE_KIND)[SPACE_KIND_KEYS] | null;
|
|
554
525
|
export interface ApiGetAllProjectFilesRequest {
|
|
555
|
-
|
|
526
|
+
type: "getAllProjectFiles";
|
|
556
527
|
}
|
|
557
528
|
export {};
|