@builder.io/dev-tools 1.18.11-dev.202511202316.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 +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
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
WorkspaceFolder,
|
|
3
|
-
WorkspaceConfiguration,
|
|
4
|
-
} from "@builder.io/ai-utils";
|
|
5
|
-
import type { DevToolsSys } from "../../types";
|
|
6
|
-
export interface ResolveWorkspacePathOptions {
|
|
7
|
-
filePath: string;
|
|
8
|
-
forceWorkspace?: boolean;
|
|
9
|
-
workspace?: WorkspaceConfiguration;
|
|
10
|
-
workingDirectory: string;
|
|
11
|
-
sys: DevToolsSys;
|
|
12
|
-
canCollapseWorkspace?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export interface ResolveWorkspacePathResult {
|
|
15
|
-
resolvedPath: string;
|
|
16
|
-
workspaceFolder?: WorkspaceFolder;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Resolves a workspace file path to its actual file system path.
|
|
20
|
-
*
|
|
21
|
-
* This function handles various workspace configurations:
|
|
22
|
-
* - Single workspace named "." (treats paths as direct relative paths)
|
|
23
|
-
* - Multiple workspaces (matches path prefixes to workspace names/folder names)
|
|
24
|
-
* - No workspace configuration (falls back to working directory)
|
|
25
|
-
*
|
|
26
|
-
* @param options Configuration object containing all required parameters
|
|
27
|
-
* @param options.filePath A file path that may include a workspace prefix (e.g., "workspace1/path/to/file.js")
|
|
28
|
-
* @param options.forceWorkspace If true, will try the first workspace as fallback when no workspace folder is found
|
|
29
|
-
* @param options.workspace Optional workspace configuration with folders
|
|
30
|
-
* @param options.workingDirectory The base working directory to resolve paths against
|
|
31
|
-
* @param options.sys DevToolsSys object providing path resolution functions
|
|
32
|
-
* @returns Object containing the resolved file system path and matched workspace folder
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* ```typescript
|
|
36
|
-
* import { createNodeSys } from '@builder.io/dev-tools/node';
|
|
37
|
-
*
|
|
38
|
-
* const result = resolveWorkspacePath({
|
|
39
|
-
* filePath: 'frontend/src/components/Button.tsx',
|
|
40
|
-
* workingDirectory: '/home/user/project',
|
|
41
|
-
* sys: createNodeSys(),
|
|
42
|
-
* workspace: {
|
|
43
|
-
* folders: [
|
|
44
|
-
* { name: 'frontend', path: './packages/frontend' },
|
|
45
|
-
* { name: 'backend', path: './packages/backend' }
|
|
46
|
-
* ]
|
|
47
|
-
* }
|
|
48
|
-
* });
|
|
49
|
-
* // Returns: {
|
|
50
|
-
* // resolvedPath: '/home/user/project/packages/frontend/src/components/Button.tsx',
|
|
51
|
-
* // workspaceFolder: { name: 'frontend', path: './packages/frontend' }
|
|
52
|
-
* // }
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
export declare function resolveWorkspacePath(
|
|
56
|
-
options: ResolveWorkspacePathOptions,
|
|
57
|
-
): ResolveWorkspacePathResult;
|
|
58
|
-
export interface AbsolutePathToWorkspaceUrlOptions {
|
|
59
|
-
absolutePath: string;
|
|
60
|
-
workspace?: WorkspaceConfiguration;
|
|
61
|
-
workingDirectory: string;
|
|
62
|
-
sys: DevToolsSys;
|
|
63
|
-
canCollapseWorkspace?: boolean;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Converts an absolute file system path to a workspace URL if possible.
|
|
67
|
-
*
|
|
68
|
-
* This function is the inverse of `resolveWorkspacePath`. It takes an absolute path
|
|
69
|
-
* and attempts to convert it back to a workspace-relative path (e.g., "frontend/src/file.ts").
|
|
70
|
-
*
|
|
71
|
-
* @param options Configuration object containing all required parameters
|
|
72
|
-
* @param options.absolutePath The absolute file system path to convert
|
|
73
|
-
* @param options.workspace Optional workspace configuration with folders
|
|
74
|
-
* @param options.workingDirectory The base working directory
|
|
75
|
-
* @param options.sys DevToolsSys object providing path resolution functions
|
|
76
|
-
* @param options.canCollapseWorkspace If true, handles collapsible workspace scenarios
|
|
77
|
-
* @returns The workspace URL if the path can be converted, undefined otherwise
|
|
78
|
-
*
|
|
79
|
-
* @example
|
|
80
|
-
* ```typescript
|
|
81
|
-
* import { createNodeSys } from '@builder.io/dev-tools/node';
|
|
82
|
-
*
|
|
83
|
-
* const workspaceUrl = absolutePathToWorkspaceUrl({
|
|
84
|
-
* absolutePath: '/home/user/project/packages/frontend/src/components/Button.tsx',
|
|
85
|
-
* workingDirectory: '/home/user/project',
|
|
86
|
-
* sys: createNodeSys(),
|
|
87
|
-
* workspace: {
|
|
88
|
-
* folders: [
|
|
89
|
-
* { name: 'frontend', path: './packages/frontend' },
|
|
90
|
-
* { name: 'backend', path: './packages/backend' }
|
|
91
|
-
* ]
|
|
92
|
-
* }
|
|
93
|
-
* });
|
|
94
|
-
* // Returns: 'frontend/src/components/Button.tsx'
|
|
95
|
-
* ```
|
|
96
|
-
*/
|
|
97
|
-
export declare function absolutePathToWorkspaceUrl(
|
|
98
|
-
options: AbsolutePathToWorkspaceUrlOptions,
|
|
99
|
-
): string | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const pkgVersion: string;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
ComponentRegistry,
|
|
3
|
-
ConnectedBuilder,
|
|
4
|
-
GetRegistryOptions,
|
|
5
|
-
LaunchEditorFile,
|
|
6
|
-
LoadComponentOptions,
|
|
7
|
-
LocalConfig,
|
|
8
|
-
RegisterComponentOptions,
|
|
9
|
-
SetComponentInfoOptions,
|
|
10
|
-
SetComponentInputOptions,
|
|
11
|
-
UnregisterComponentOptions,
|
|
12
|
-
ValidatedBuilder,
|
|
13
|
-
} from "../types";
|
|
14
|
-
export declare const apiConnectBuilder: (
|
|
15
|
-
publicApiKey: string,
|
|
16
|
-
privateAuthKey: string,
|
|
17
|
-
kind: string | null,
|
|
18
|
-
) => Promise<ConnectedBuilder>;
|
|
19
|
-
export declare const apiValidateBuilder: () => Promise<ValidatedBuilder>;
|
|
20
|
-
export declare const apiLaunchEditor: (
|
|
21
|
-
file: LaunchEditorFile,
|
|
22
|
-
) => Promise<unknown>;
|
|
23
|
-
export declare const apiRegistry: (
|
|
24
|
-
opts?: GetRegistryOptions | undefined,
|
|
25
|
-
) => Promise<ComponentRegistry>;
|
|
26
|
-
export declare const apiLoadComponent: (
|
|
27
|
-
opts: LoadComponentOptions,
|
|
28
|
-
) => Promise<ComponentRegistry>;
|
|
29
|
-
export declare const apiRegisterComponent: (
|
|
30
|
-
opts: RegisterComponentOptions,
|
|
31
|
-
) => Promise<ComponentRegistry>;
|
|
32
|
-
export declare const apiSetComponentInfo: (
|
|
33
|
-
opts: SetComponentInfoOptions,
|
|
34
|
-
) => Promise<ComponentRegistry>;
|
|
35
|
-
export declare const apiSetComponentInput: (
|
|
36
|
-
opts: SetComponentInputOptions,
|
|
37
|
-
) => Promise<ComponentRegistry>;
|
|
38
|
-
export declare const apiUnregisterComponent: (
|
|
39
|
-
opts: UnregisterComponentOptions,
|
|
40
|
-
) => Promise<ComponentRegistry>;
|
|
41
|
-
export declare const apiDevToolsEnabled: (
|
|
42
|
-
enabled: boolean,
|
|
43
|
-
) => Promise<ComponentRegistry>;
|
|
44
|
-
export declare const apiLocalConfig: () => Promise<LocalConfig>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare class BuilderDevToolsEditButton extends HTMLElement {
|
|
2
|
-
openInBuilder: HTMLAnchorElement | null;
|
|
3
|
-
block: HTMLElement | null;
|
|
4
|
-
constructor();
|
|
5
|
-
connectedCallback(): void;
|
|
6
|
-
show(contentElm: HTMLElement, blockElm: HTMLElement): string | null;
|
|
7
|
-
hide(): void;
|
|
8
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ComponentInfo } from "../../../types";
|
|
2
|
-
export declare function initComponentDetailSection(shadow: ShadowRoot): void;
|
|
3
|
-
export declare function loadComponentDetail(
|
|
4
|
-
shadow: ShadowRoot,
|
|
5
|
-
opt: "load" | "update",
|
|
6
|
-
): Promise<void>;
|
|
7
|
-
export declare function renderComponentDetail(
|
|
8
|
-
shadow: ShadowRoot,
|
|
9
|
-
cmpId: string,
|
|
10
|
-
): ComponentInfo | null;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ComponentInfo } from "../../../types";
|
|
2
|
-
export declare function initComponentListSection(shadow: ShadowRoot): void;
|
|
3
|
-
export declare function loadComponentsSection(shadow: ShadowRoot): void;
|
|
4
|
-
export declare function renderComponentList(
|
|
5
|
-
shadow: ShadowRoot,
|
|
6
|
-
filteredComponents?: ComponentInfo[],
|
|
7
|
-
): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function initHomeSection(shadow: ShadowRoot): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function initSettingsSection(shadow: ShadowRoot): void;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const checkBuilderIntegration: () => Promise<void>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare const dispatch: (eventName: TriggerName) => void;
|
|
2
|
-
export declare const initTracking: () => Promise<void>;
|
|
3
|
-
export declare const getBuilderUserId: () => string;
|
|
4
|
-
export declare const setBuilderUserId: (builderUserId: string) => void;
|
|
5
|
-
export declare const getTracking: () => ClientTracking;
|
|
6
|
-
export declare const hasCTA: (ctaName: string) => boolean;
|
|
7
|
-
export declare const setCTA: (ctaName: string) => ClientTracking;
|
|
8
|
-
interface ClientTracking {
|
|
9
|
-
/**
|
|
10
|
-
* first time visit timestamp
|
|
11
|
-
*/
|
|
12
|
-
firstVisitTs: number;
|
|
13
|
-
/**
|
|
14
|
-
* Name of the call to actions and timestamps when they happened
|
|
15
|
-
*/
|
|
16
|
-
ctas: {
|
|
17
|
-
[ctaName: string]: number;
|
|
18
|
-
};
|
|
19
|
-
builderUserId: string;
|
|
20
|
-
}
|
|
21
|
-
export type TriggerName = "init" | "menuOpen" | "menuClose" | "registryUpdate";
|
|
22
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ComponentRegistry } from "../types";
|
|
2
|
-
export declare const goToSection: (shadow: ShadowRoot, view: string) => void;
|
|
3
|
-
export declare const initBackButtons: (shadow: ShadowRoot) => void;
|
|
4
|
-
export declare const showToast: (shadow: ShadowRoot, html: string) => void;
|
|
5
|
-
export declare const closeToasts: (shadow: ShadowRoot) => void;
|
|
6
|
-
export declare const isEditEnabled: () => boolean;
|
|
7
|
-
export declare const enableEdit: (enable: boolean) => void;
|
|
8
|
-
export declare const getEditorUrl: () => string;
|
|
9
|
-
export declare const getBuilderContentUrl: (
|
|
10
|
-
contentId?: string | null | undefined,
|
|
11
|
-
blockId?: string | null | undefined,
|
|
12
|
-
) => string;
|
|
13
|
-
export declare const DEV_TOOLS_URL = "__DEV_TOOLS_URL__";
|
|
14
|
-
export declare const APP_STATE: AppState;
|
|
15
|
-
export declare const updateAppState: (registry: ComponentRegistry) => void;
|
|
16
|
-
export interface AppState extends ComponentRegistry {}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { AppDependency, ComponentInfo, DevToolsSys } from "../../types";
|
|
2
|
-
import type ts from "typescript";
|
|
3
|
-
export declare function getSourceDependencies(
|
|
4
|
-
sys: DevToolsSys,
|
|
5
|
-
typeChecker: ts.TypeChecker | null,
|
|
6
|
-
fnNode: ts.Node,
|
|
7
|
-
): AppDependency[] | undefined;
|
|
8
|
-
export declare function getAppDependencies(
|
|
9
|
-
cmps: ComponentInfo[],
|
|
10
|
-
): AppDependency[];
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type ts from "typescript";
|
|
2
|
-
import type { ComponentInfo, ComponentInput, DevToolsSys } from "../../types";
|
|
3
|
-
export declare function parseRegisteredComponentInfo(
|
|
4
|
-
sys: DevToolsSys,
|
|
5
|
-
cmpInfo: ComponentInfo,
|
|
6
|
-
cmpObjLit: ts.ObjectLiteralExpression,
|
|
7
|
-
): ComponentInfo;
|
|
8
|
-
export declare function updateComponentObjLiteralInfoProperties(
|
|
9
|
-
sys: DevToolsSys,
|
|
10
|
-
cmpObjExp: ts.ObjectLiteralExpression,
|
|
11
|
-
cmpInfo: ComponentInfo,
|
|
12
|
-
): ts.ObjectLiteralExpression;
|
|
13
|
-
export declare function updateComponentInputsArrayLiteralExp(
|
|
14
|
-
sys: DevToolsSys,
|
|
15
|
-
arrExp: ts.ArrayLiteralExpression,
|
|
16
|
-
inputs: ComponentInput[],
|
|
17
|
-
): ts.ArrayLiteralExpression;
|
|
18
|
-
export declare function mergeComponentInputs(
|
|
19
|
-
cmp: ComponentInfo,
|
|
20
|
-
inputs: ComponentInput[],
|
|
21
|
-
): void;
|
|
22
|
-
export declare function componentAcceptsChildren(cmp: ComponentInfo): boolean;
|
|
23
|
-
export declare function normalizeComponentInput(
|
|
24
|
-
input: ComponentInput,
|
|
25
|
-
): ComponentInput;
|
|
26
|
-
export declare function componentHasAcceptChildrenProp(
|
|
27
|
-
sys: DevToolsSys,
|
|
28
|
-
cmpObjLit: ts.ObjectLiteralExpression,
|
|
29
|
-
): boolean;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type ts from "typescript";
|
|
2
|
-
import type { ComponentInput, DevToolsSys } from "../../types";
|
|
3
|
-
export declare function parseComponentSourcePropsFromNode(
|
|
4
|
-
sys: DevToolsSys,
|
|
5
|
-
typeChecker: ts.TypeChecker,
|
|
6
|
-
fnNode: ts.Node | undefined,
|
|
7
|
-
): ComponentInput[];
|
|
8
|
-
export declare function normalizeBuilderInputType(t: string): {
|
|
9
|
-
builderType: string;
|
|
10
|
-
knownType: boolean;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* https://www.builder.io/c/docs/custom-components-input-types
|
|
14
|
-
*/
|
|
15
|
-
export declare const INPUT_TYPES: {
|
|
16
|
-
value: string;
|
|
17
|
-
text: string;
|
|
18
|
-
}[];
|
|
19
|
-
export declare const STRING_TYPES: string[];
|
|
20
|
-
export declare const NUMBER_TYPES: string[];
|
|
21
|
-
export declare const BOOLEAN_TYPES: string[];
|
|
22
|
-
export declare const ARRAY_TYPES: string[];
|
|
23
|
-
export declare const OBJECT_TYPES: string[];
|
|
24
|
-
export declare function getPrimitiveType(
|
|
25
|
-
t: string,
|
|
26
|
-
): "array" | "boolean" | "number" | "object" | "string";
|
|
27
|
-
export declare function removeQuotes(text: string): string;
|
|
28
|
-
export declare const resolveType: (
|
|
29
|
-
sys: DevToolsSys,
|
|
30
|
-
checker: ts.TypeChecker,
|
|
31
|
-
type: ts.Type,
|
|
32
|
-
) => string[] | undefined;
|
|
33
|
-
export declare const typeToString: (
|
|
34
|
-
sys: DevToolsSys,
|
|
35
|
-
checker: ts.TypeChecker,
|
|
36
|
-
type: ts.Type,
|
|
37
|
-
) => string;
|
|
38
|
-
export declare const parseDocsType: (
|
|
39
|
-
sys: DevToolsSys,
|
|
40
|
-
checker: ts.TypeChecker,
|
|
41
|
-
type: ts.Type,
|
|
42
|
-
parts: Set<string>,
|
|
43
|
-
) => void;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
ComponentInfo,
|
|
3
|
-
SetComponentInfoOptions,
|
|
4
|
-
SetComponentInputOptions,
|
|
5
|
-
} from "../../types";
|
|
6
|
-
export declare function updateRegistry(
|
|
7
|
-
cmpId: string,
|
|
8
|
-
srcCmps: ComponentInfo[],
|
|
9
|
-
regCmps: ComponentInfo[],
|
|
10
|
-
registerCmp: boolean,
|
|
11
|
-
unregisterCmp: boolean,
|
|
12
|
-
setCmpInfo: SetComponentInfoOptions | null,
|
|
13
|
-
setCmpInput: SetComponentInputOptions | null,
|
|
14
|
-
): {
|
|
15
|
-
addCmpToRegistry: ComponentInfo | null;
|
|
16
|
-
removeCmpFromRegistry: ComponentInfo | null;
|
|
17
|
-
updateRegisteredCmp: ComponentInfo | null;
|
|
18
|
-
nodeIndex: number;
|
|
19
|
-
components: ComponentInfo[];
|
|
20
|
-
};
|
|
21
|
-
export declare function mergeComponents(
|
|
22
|
-
sourceComponents: ComponentInfo[],
|
|
23
|
-
registeredCmps: ComponentInfo[],
|
|
24
|
-
): ComponentInfo[];
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type ts from "typescript";
|
|
2
|
-
import type { DevToolsSys } from "../../types";
|
|
3
|
-
export declare function setObjectExpressionProperty(
|
|
4
|
-
sys: DevToolsSys,
|
|
5
|
-
obj: ts.ObjectLiteralExpression,
|
|
6
|
-
propName: string,
|
|
7
|
-
propValue: any,
|
|
8
|
-
deleteIfNullOrUndefined?: boolean,
|
|
9
|
-
): ts.ObjectLiteralExpression;
|
|
10
|
-
export declare function getObjLiteralPropertyIndex(
|
|
11
|
-
sys: DevToolsSys,
|
|
12
|
-
obj: ts.ObjectLiteralExpression,
|
|
13
|
-
propName: string,
|
|
14
|
-
): number;
|
|
15
|
-
export declare function expressionToValue(
|
|
16
|
-
sys: DevToolsSys,
|
|
17
|
-
exp: ts.Expression,
|
|
18
|
-
): any;
|
|
19
|
-
export declare function objectExpressionToObjectValue(
|
|
20
|
-
sys: DevToolsSys,
|
|
21
|
-
objectLiteral: ts.ObjectLiteralExpression,
|
|
22
|
-
): {
|
|
23
|
-
[key: string]: any;
|
|
24
|
-
};
|
|
25
|
-
export declare function convertArrayExpressionToJsArray(
|
|
26
|
-
sys: DevToolsSys,
|
|
27
|
-
arr: ts.ArrayLiteralExpression,
|
|
28
|
-
): any[];
|
|
29
|
-
export declare function getTextOfPropertyName(
|
|
30
|
-
sys: DevToolsSys,
|
|
31
|
-
prop: ts.PropertyAssignment | ts.ObjectLiteralElementLike | undefined,
|
|
32
|
-
): string | undefined;
|
|
33
|
-
export declare function valueToExpression(
|
|
34
|
-
sys: DevToolsSys,
|
|
35
|
-
val: any,
|
|
36
|
-
):
|
|
37
|
-
| ts.ArrayLiteralExpression
|
|
38
|
-
| ts.FalseLiteral
|
|
39
|
-
| ts.Identifier
|
|
40
|
-
| ts.NumericLiteral
|
|
41
|
-
| ts.ObjectLiteralExpression
|
|
42
|
-
| ts.StringLiteral
|
|
43
|
-
| ts.TrueLiteral;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type ts from "typescript";
|
|
2
|
-
import type { DevToolsSys } from "../../types";
|
|
3
|
-
export declare function ensureArrayStatement(
|
|
4
|
-
sys: DevToolsSys,
|
|
5
|
-
sourceFile: ts.SourceFile,
|
|
6
|
-
opts: EnsureArrayStatementOptions,
|
|
7
|
-
): ts.SourceFile;
|
|
8
|
-
export interface EnsureArrayStatementOptions {
|
|
9
|
-
variableName: string;
|
|
10
|
-
arrayType?: string;
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type ts from "typescript";
|
|
2
|
-
import type { DevToolsSys, ModuleFormat } from "../../types";
|
|
3
|
-
export declare function ensureImport(
|
|
4
|
-
sys: DevToolsSys,
|
|
5
|
-
sourceFile: ts.SourceFile,
|
|
6
|
-
opts: EnsureImportOptions,
|
|
7
|
-
moduleType?: ModuleFormat,
|
|
8
|
-
): ts.SourceFile;
|
|
9
|
-
export interface EnsureImportOptions {
|
|
10
|
-
defaultImport?: string;
|
|
11
|
-
namedImports?: string[];
|
|
12
|
-
importPath: string;
|
|
13
|
-
isTypeOnly?: boolean;
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type ts from "typescript";
|
|
2
|
-
import type { DevToolsSys, ModuleFormat } from "../../types";
|
|
3
|
-
export declare function getExportedStatements(
|
|
4
|
-
sys: DevToolsSys,
|
|
5
|
-
sourceFile: ts.SourceFile,
|
|
6
|
-
moduleType?: ModuleFormat,
|
|
7
|
-
): ExportedStatement[];
|
|
8
|
-
export interface ExportedStatement {
|
|
9
|
-
isDefaultExport: boolean;
|
|
10
|
-
statement: ts.Statement;
|
|
11
|
-
node: ts.Node;
|
|
12
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type ts from "typescript";
|
|
2
|
-
import type { DevToolsSys, ModuleFormat } from "../../types";
|
|
3
|
-
import type { ExportedStatement } from "./exported-statements";
|
|
4
|
-
export declare function getImportedStatements(
|
|
5
|
-
sys: DevToolsSys,
|
|
6
|
-
sourceFile: ts.SourceFile,
|
|
7
|
-
moduleType?: ModuleFormat,
|
|
8
|
-
): ExportedStatement[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type ts from "typescript";
|
|
2
|
-
import type { DevToolsSys } from "../../types";
|
|
3
|
-
export declare function normalizeImports(
|
|
4
|
-
sys: DevToolsSys,
|
|
5
|
-
sourceFile: ts.SourceFile,
|
|
6
|
-
): ts.SourceFile;
|
|
7
|
-
export declare function normalizeLineBreaks(code: string): string;
|
|
8
|
-
export declare function ensureUseClientStringLiteral(code: string): string;
|
|
9
|
-
export declare function removeUseClientStringLiteral(
|
|
10
|
-
sys: DevToolsSys,
|
|
11
|
-
sourceFile: ts.SourceFile,
|
|
12
|
-
): ts.SourceFile;
|
|
13
|
-
export declare function normalizeRegisteredArrayElements(
|
|
14
|
-
sys: DevToolsSys,
|
|
15
|
-
elements: ts.Expression[],
|
|
16
|
-
): ts.Expression[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type ts from "typescript";
|
|
2
|
-
import type { DevToolsSys } from "../../types";
|
|
3
|
-
export declare function codeToSource(
|
|
4
|
-
sys: DevToolsSys,
|
|
5
|
-
code?: string | null,
|
|
6
|
-
): ts.SourceFile;
|
|
7
|
-
export declare function codeToStatement(
|
|
8
|
-
sys: DevToolsSys,
|
|
9
|
-
code?: string | null,
|
|
10
|
-
): ts.Statement;
|
|
11
|
-
export declare function sourceToCode(
|
|
12
|
-
sys: DevToolsSys,
|
|
13
|
-
node: ts.Node | null | undefined,
|
|
14
|
-
removeComments?: boolean,
|
|
15
|
-
): string;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import type ts from "typescript";
|
|
2
|
-
import type { DevToolsSys, ExportType } from "../../types";
|
|
3
|
-
export declare function getImportPathFromIdentifier(
|
|
4
|
-
sys: DevToolsSys,
|
|
5
|
-
sourceFile: ts.SourceFile,
|
|
6
|
-
identifierName: string,
|
|
7
|
-
): {
|
|
8
|
-
importPath: string;
|
|
9
|
-
exportType: ExportType;
|
|
10
|
-
} | null;
|
|
11
|
-
export declare function getFilePathFromIdentifier(
|
|
12
|
-
sys: DevToolsSys,
|
|
13
|
-
containerPath: string,
|
|
14
|
-
sourceFile: ts.SourceFile,
|
|
15
|
-
identifierName: string,
|
|
16
|
-
): Promise<{
|
|
17
|
-
displayFilePath: string;
|
|
18
|
-
filePath: string;
|
|
19
|
-
relFilePath: string;
|
|
20
|
-
importPath: string;
|
|
21
|
-
exportType: ExportType;
|
|
22
|
-
} | null>;
|
|
23
|
-
export declare function findVariableStatement(
|
|
24
|
-
sys: DevToolsSys,
|
|
25
|
-
sourceFile: ts.SourceFile,
|
|
26
|
-
variableName: string,
|
|
27
|
-
): {
|
|
28
|
-
statement: ts.VariableStatement;
|
|
29
|
-
statementIndex: number;
|
|
30
|
-
} | null;
|
|
31
|
-
export declare function findArrayStatementInitializer(
|
|
32
|
-
sys: DevToolsSys,
|
|
33
|
-
sourceFile: ts.SourceFile,
|
|
34
|
-
variableName: string,
|
|
35
|
-
): {
|
|
36
|
-
statement: ts.VariableStatement;
|
|
37
|
-
statementIndex: number;
|
|
38
|
-
variableDeclaration: ts.VariableDeclaration;
|
|
39
|
-
arrayLiteralExp: ts.ArrayLiteralExpression;
|
|
40
|
-
} | null;
|
|
41
|
-
export declare function hasJsxNode(
|
|
42
|
-
sys: DevToolsSys,
|
|
43
|
-
n: ts.Node | undefined,
|
|
44
|
-
): boolean;
|
|
45
|
-
export declare function resolveComponentPath(
|
|
46
|
-
sys: DevToolsSys,
|
|
47
|
-
filePath: string,
|
|
48
|
-
): Promise<string>;
|
|
49
|
-
export declare const RESOLVE_EXTS: string[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { type DevToolsSys, type SPACE_KIND_VALUES } from "../../types";
|
|
2
|
-
export declare function hasBuilderContentViaQueryAPI(opts: {
|
|
3
|
-
publicApiKey: string;
|
|
4
|
-
privateAuthKey: string;
|
|
5
|
-
model: string;
|
|
6
|
-
pageUrl: string;
|
|
7
|
-
}): Promise<any>;
|
|
8
|
-
export declare function hasBuilderContentUrl(
|
|
9
|
-
sys: DevToolsSys,
|
|
10
|
-
opts: {
|
|
11
|
-
publicApiKey: string;
|
|
12
|
-
privateAuthKey: string;
|
|
13
|
-
model: string;
|
|
14
|
-
pageUrl: string;
|
|
15
|
-
kind: SPACE_KIND_VALUES;
|
|
16
|
-
},
|
|
17
|
-
): Promise<boolean>;
|
|
18
|
-
export declare function getBuilderContent(
|
|
19
|
-
sys: DevToolsSys,
|
|
20
|
-
opts: {
|
|
21
|
-
publicApiKey: string;
|
|
22
|
-
model: string;
|
|
23
|
-
pageUrl?: string;
|
|
24
|
-
id?: string;
|
|
25
|
-
},
|
|
26
|
-
): Promise<{
|
|
27
|
-
results: any[];
|
|
28
|
-
}>;
|
|
29
|
-
export declare function writeBuilderContent(
|
|
30
|
-
sys: DevToolsSys,
|
|
31
|
-
opts: {
|
|
32
|
-
privateAuthKey: string;
|
|
33
|
-
body: string;
|
|
34
|
-
model: string;
|
|
35
|
-
},
|
|
36
|
-
): Promise<void>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { SDKVersionInfo } from "../../types";
|
|
2
|
-
export declare const SUPPORTED_FRAMEWORKS: {
|
|
3
|
-
react: string;
|
|
4
|
-
remix: string;
|
|
5
|
-
angular: string;
|
|
6
|
-
next: string;
|
|
7
|
-
qwik: string;
|
|
8
|
-
vue: string;
|
|
9
|
-
};
|
|
10
|
-
export declare function getSDKDetailsForFramework(
|
|
11
|
-
framework: string,
|
|
12
|
-
): SDKVersionInfo[];
|