twenty-sdk 0.5.2 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -10
- package/dist/{AllIcons-CGPKtPQS-C-ZFgy8B.mjs → AllIcons-CGPKtPQS-CBzLmrUd.mjs} +6666 -6695
- package/dist/{AllIcons-CGPKtPQS-sO2O4z-k.js → AllIcons-CGPKtPQS-CoHKEEHb.js} +3790 -3810
- package/dist/HtmlTagToRemoteComponent-DBOkvIRB.mjs +13283 -0
- package/dist/HtmlTagToRemoteComponent-DzQ2I9Lz.js +29 -0
- package/dist/cli/commands/app/app-dev.d.ts +0 -16
- package/dist/cli/commands/app/app-typecheck.d.ts +6 -0
- package/dist/cli/commands/app/app-uninstall.d.ts +2 -2
- package/dist/cli/commands/app-command.d.ts +1 -1
- package/dist/cli/commands/entity/entity-add.d.ts +3 -0
- package/dist/cli/commands/logic-function/logic-function-execute.d.ts +2 -1
- package/dist/cli/commands/logic-function/logic-function-logs.d.ts +1 -1
- package/dist/cli/utilities/api/api-service.d.ts +37 -9
- package/dist/cli/utilities/build/common/esbuild-result-processor.d.ts +2 -2
- package/dist/cli/utilities/build/common/esbuild-watcher.d.ts +2 -2
- package/dist/cli/utilities/build/common/file-upload-watcher.d.ts +1 -1
- package/dist/cli/utilities/build/common/front-component-build/jsx-runtime-remote-wrapper-plugin.d.ts +6 -0
- package/dist/cli/utilities/build/common/front-component-build/jsx-transform-to-remote-dom-worker-format-plugin.d.ts +0 -1
- package/dist/cli/utilities/build/common/front-component-build/preact-alias-plugin.d.ts +2 -0
- package/dist/cli/utilities/build/common/front-component-build/utils/get-front-component-build-plugins.d.ts +5 -1
- package/dist/cli/utilities/build/common/restartable-watcher-interface.d.ts +2 -2
- package/dist/cli/utilities/build/common/tsc-watcher.d.ts +18 -0
- package/dist/cli/utilities/build/common/typecheck-plugin.d.ts +10 -0
- package/dist/cli/utilities/build/manifest/manifest-build.d.ts +2 -2
- package/dist/cli/utilities/build/manifest/manifest-extract-config-from-file.d.ts +1 -1
- package/dist/cli/utilities/build/manifest/manifest-extract-config.d.ts +10 -2
- package/dist/cli/utilities/build/manifest/manifest-reader.d.ts +2 -0
- package/dist/cli/utilities/build/manifest/manifest-update-checksums.d.ts +2 -2
- package/dist/cli/utilities/build/manifest/manifest-validate.d.ts +1 -1
- package/dist/cli/utilities/build/manifest/manifest-writer.d.ts +1 -1
- package/dist/cli/utilities/build/manifest/utils/generate-default-field-universal-identifier.d.ts +5 -0
- package/dist/cli/utilities/build/manifest/utils/get-default-fields-in-object-fields.d.ts +6 -0
- package/dist/cli/utilities/build/manifest/utils/get-default-object-fields.d.ts +3 -0
- package/dist/cli/utilities/build/manifest/utils/get-default-relation-object-fields.d.ts +6 -0
- package/dist/cli/utilities/client/client-service.d.ts +5 -3
- package/dist/cli/utilities/config/config-service.d.ts +2 -0
- package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator-state.d.ts +75 -0
- package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator.d.ts +29 -0
- package/dist/cli/utilities/dev/orchestrator/steps/build-manifest-orchestrator-step.d.ts +16 -0
- package/dist/cli/utilities/dev/orchestrator/steps/check-server-orchestrator-step.d.ts +17 -0
- package/dist/cli/utilities/dev/orchestrator/steps/ensure-valid-tokens-orchestrator-step.d.ts +22 -0
- package/dist/cli/utilities/dev/orchestrator/steps/generate-api-client-orchestrator-step.d.ts +18 -0
- package/dist/cli/utilities/dev/orchestrator/steps/resolve-application-orchestrator-step.d.ts +20 -0
- package/dist/cli/utilities/dev/orchestrator/steps/start-watchers-orchestrator-step.d.ts +43 -0
- package/dist/cli/utilities/dev/orchestrator/steps/sync-application-orchestrator-step.d.ts +22 -0
- package/dist/cli/utilities/dev/orchestrator/steps/upload-files-orchestrator-step.d.ts +25 -0
- package/dist/cli/utilities/dev/ui/components/dev-ui-application-panel.d.ts +12 -0
- package/dist/cli/utilities/dev/ui/components/dev-ui-entity-section.d.ts +16 -0
- package/dist/cli/utilities/dev/ui/components/dev-ui-event-log.d.ts +5 -0
- package/dist/cli/utilities/dev/{dev-ui.d.ts → ui/components/dev-ui.d.ts} +1 -1
- package/dist/cli/utilities/dev/ui/dev-ui-constants.d.ts +27 -0
- package/dist/cli/utilities/dev/ui/dev-ui-hooks.d.ts +3 -0
- package/dist/cli/utilities/dev/ui/dev-ui-ink-context.d.ts +10 -0
- package/dist/cli/utilities/dev/ui/dev-ui-state-manager.d.ts +10 -0
- package/dist/cli/utilities/entity/entity-field-template.d.ts +2 -2
- package/dist/cli/utilities/entity/entity-front-component-template.d.ts +1 -1
- package/dist/cli/utilities/entity/entity-logic-function-template.d.ts +1 -1
- package/dist/cli/utilities/entity/entity-navigation-menu-item-template.d.ts +5 -0
- package/dist/cli/utilities/entity/entity-object-template.d.ts +2 -1
- package/dist/cli/utilities/entity/entity-page-layout-template.d.ts +3 -0
- package/dist/cli/utilities/entity/entity-role-template.d.ts +1 -1
- package/dist/cli/utilities/entity/entity-skill-template.d.ts +4 -0
- package/dist/cli/utilities/entity/entity-view-template.d.ts +5 -0
- package/dist/cli/utilities/error/serialize-error.d.ts +1 -0
- package/dist/cli/utilities/file/file-jsonc.d.ts +1 -1
- package/dist/cli/utilities/file/file-path.d.ts +1 -1
- package/dist/cli/utilities/file/file-uploader.d.ts +3 -3
- package/dist/cli/utilities/typescript/typescript-diagnostics.d.ts +1 -1
- package/dist/cli/utilities/typescript/typescript-program.d.ts +1 -1
- package/dist/cli.cjs +356 -85
- package/dist/cli.mjs +5260 -4313
- package/dist/front-component-renderer/host/components/FrontComponentRenderer.d.ts +14 -0
- package/dist/front-component-renderer/host/components/RemoteStyleRenderer.d.ts +6 -0
- package/dist/front-component-renderer/host/utils/createHtmlHostWrapper.d.ts +8 -0
- package/dist/front-component-renderer/index.cjs +25 -0
- package/dist/{front-component → front-component-renderer}/index.d.ts +5 -5
- package/dist/front-component-renderer/index.mjs +11744 -0
- package/dist/front-component-renderer/polyfills/MockCSSStyleSheet.d.ts +17 -0
- package/dist/front-component-renderer/polyfills/installStyleBridge.d.ts +2 -0
- package/dist/front-component-renderer/remote/components/FrontComponentHostCommunicationApiEffect.d.ts +8 -0
- package/dist/front-component-renderer/remote/components/FrontComponentUpdateContextEffect.d.ts +11 -0
- package/dist/{front-component → front-component-renderer}/remote/components/FrontComponentWorkerEffect.d.ts +5 -4
- package/dist/front-component-renderer/remote/generated/remote-components.d.ts +44 -0
- package/dist/front-component-renderer/remote/generated/remote-elements.d.ts +193 -0
- package/dist/front-component-renderer/remote/utils/installStylePropertyOnRemoteElements.d.ts +1 -0
- package/dist/front-component-renderer/remote/utils/patchRemoteElementSetAttribute.d.ts +1 -0
- package/dist/front-component-renderer/remote/worker/remote-worker.d.ts +3 -0
- package/dist/front-component-renderer/remote/worker/utils/setWorkerEnv.d.ts +1 -0
- package/dist/{front-component → front-component-renderer}/types/FrontComponentExecutionContext.d.ts +1 -0
- package/dist/front-component-renderer/types/FrontComponentHostCommunicationApi.d.ts +8 -0
- package/dist/{front-component → front-component-renderer}/types/HostToWorkerRenderContext.d.ts +2 -1
- package/dist/front-component-renderer/types/PropertySchema.d.ts +4 -0
- package/dist/{front-component → front-component-renderer}/types/WorkerExports.d.ts +3 -3
- package/dist/get-function-input-schema-BZ7_XyUh-By3UDh4s.mjs +62 -0
- package/dist/get-function-input-schema-BZ7_XyUh-GxSybvDe.js +1 -0
- package/dist/index-CicdakVv.js +2430 -0
- package/dist/index-DeMzdViF.mjs +33940 -0
- package/dist/index.cjs +2 -5
- package/dist/index.mjs +408 -2493
- package/dist/sdk/action/Action.d.ts +4 -0
- package/dist/sdk/action/Action.js +33 -0
- package/dist/sdk/action/Action.js.map +1 -0
- package/dist/sdk/action/ActionLink.d.ts +10 -0
- package/dist/sdk/action/ActionLink.js +39 -0
- package/dist/sdk/action/ActionLink.js.map +1 -0
- package/dist/sdk/action/ActionOpenSidePanelPage.d.ts +9 -0
- package/dist/sdk/action/ActionOpenSidePanelPage.js +54 -0
- package/dist/sdk/action/ActionOpenSidePanelPage.js.map +1 -0
- package/dist/sdk/action/index.d.ts +6 -0
- package/dist/sdk/application/application-config.d.ts +2 -2
- package/dist/sdk/application/define-application.d.ts +2 -2
- package/dist/sdk/application/define-application.js +12 -0
- package/dist/sdk/application/define-application.js.map +1 -0
- package/dist/sdk/common/types/define-entity.type.d.ts +9 -6
- package/dist/sdk/common/utils/create-validation-result.d.ts +1 -1
- package/dist/sdk/common/utils/create-validation-result.js +12 -0
- package/dist/sdk/common/utils/create-validation-result.js.map +1 -0
- package/dist/sdk/define-front-component.d.ts +2 -2
- package/dist/sdk/define-front-component.js +20 -0
- package/dist/sdk/define-front-component.js.map +1 -0
- package/dist/sdk/fields/define-field.d.ts +2 -2
- package/dist/sdk/fields/define-field.js +15 -0
- package/dist/sdk/fields/define-field.js.map +1 -0
- package/dist/sdk/fields/validate-fields.d.ts +1 -1
- package/dist/sdk/fields/validate-fields.js +16 -0
- package/dist/sdk/fields/validate-fields.js.map +1 -0
- package/dist/{HtmlTagToRemoteComponent-DRdIf3GJ.mjs → sdk/front-component-api/constants/AllowedHtmlElements.js} +4 -14
- package/dist/sdk/front-component-api/constants/AllowedHtmlElements.js.map +1 -0
- package/dist/sdk/front-component-api/constants/CommonHtmlEvents.js +26 -0
- package/dist/sdk/front-component-api/constants/CommonHtmlEvents.js.map +1 -0
- package/dist/sdk/front-component-api/constants/EventToReact.js +26 -0
- package/dist/sdk/front-component-api/constants/EventToReact.js.map +1 -0
- package/dist/sdk/front-component-api/constants/HtmlCommonProperties.d.ts +2 -0
- package/dist/sdk/front-component-api/constants/HtmlCommonProperties.js +15 -0
- package/dist/sdk/front-component-api/constants/HtmlCommonProperties.js.map +1 -0
- package/dist/sdk/front-component-api/constants/HtmlTagToRemoteComponent.d.ts +2 -0
- package/dist/sdk/front-component-api/constants/HtmlTagToRemoteComponent.js +24 -0
- package/dist/sdk/front-component-api/constants/HtmlTagToRemoteComponent.js.map +1 -0
- package/dist/sdk/front-component-api/context/frontComponentContext.d.ts +2 -2
- package/dist/sdk/front-component-api/context/frontComponentContext.js +11 -0
- package/dist/sdk/front-component-api/context/frontComponentContext.js.map +1 -0
- package/dist/sdk/front-component-api/functions/closeSidePanel.d.ts +2 -0
- package/dist/sdk/front-component-api/functions/closeSidePanel.js +12 -0
- package/dist/sdk/front-component-api/functions/closeSidePanel.js.map +1 -0
- package/dist/sdk/front-component-api/functions/enqueueSnackbar.d.ts +2 -0
- package/dist/sdk/front-component-api/functions/enqueueSnackbar.js +12 -0
- package/dist/sdk/front-component-api/functions/enqueueSnackbar.js.map +1 -0
- package/dist/sdk/front-component-api/functions/navigate.d.ts +1 -4
- package/dist/sdk/front-component-api/functions/navigate.js +12 -0
- package/dist/sdk/front-component-api/functions/navigate.js.map +1 -0
- package/dist/sdk/front-component-api/functions/openSidePanelPage.d.ts +2 -0
- package/dist/sdk/front-component-api/functions/openSidePanelPage.js +12 -0
- package/dist/sdk/front-component-api/functions/openSidePanelPage.js.map +1 -0
- package/dist/sdk/front-component-api/functions/unmountFrontComponent.d.ts +2 -0
- package/dist/sdk/front-component-api/functions/unmountFrontComponent.js +12 -0
- package/dist/sdk/front-component-api/functions/unmountFrontComponent.js.map +1 -0
- package/dist/sdk/front-component-api/globals/frontComponentHostCommunicationApi.d.ts +23 -0
- package/dist/sdk/front-component-api/globals/frontComponentHostCommunicationApi.js +6 -0
- package/dist/sdk/front-component-api/globals/frontComponentHostCommunicationApi.js.map +1 -0
- package/dist/sdk/front-component-api/hooks/useFrontComponentExecutionContext.d.ts +2 -2
- package/dist/sdk/front-component-api/hooks/useFrontComponentExecutionContext.js +18 -0
- package/dist/sdk/front-component-api/hooks/useFrontComponentExecutionContext.js.map +1 -0
- package/dist/sdk/front-component-api/hooks/useFrontComponentId.d.ts +1 -0
- package/dist/sdk/front-component-api/hooks/useFrontComponentId.js +6 -0
- package/dist/sdk/front-component-api/hooks/useFrontComponentId.js.map +1 -0
- package/dist/sdk/front-component-api/hooks/useUserId.d.ts +1 -1
- package/dist/sdk/front-component-api/hooks/useUserId.js +6 -0
- package/dist/sdk/front-component-api/hooks/useUserId.js.map +1 -0
- package/dist/sdk/front-component-api/index.d.ts +14 -1
- package/dist/sdk/front-component-api/types/FrontComponentExecutionContext.d.ts +1 -0
- package/dist/sdk/front-component-api/utils/getFrontComponentActionErrorDedupeKey.d.ts +1 -0
- package/dist/sdk/front-component-api/utils/getFrontComponentActionErrorDedupeKey.js +5 -0
- package/dist/sdk/front-component-api/utils/getFrontComponentActionErrorDedupeKey.js.map +1 -0
- package/dist/sdk/front-component-config.d.ts +2 -1
- package/dist/sdk/front-component-renderer/polyfills/MockCSSStyleSheet.js +31 -0
- package/dist/sdk/front-component-renderer/polyfills/MockCSSStyleSheet.js.map +1 -0
- package/dist/sdk/front-component-renderer/polyfills/installStyleBridge.js +121 -0
- package/dist/sdk/front-component-renderer/polyfills/installStyleBridge.js.map +1 -0
- package/dist/sdk/front-component-renderer/remote/utils/exposeGlobals.js +8 -0
- package/dist/sdk/front-component-renderer/remote/utils/exposeGlobals.js.map +1 -0
- package/dist/sdk/index.d.ts +26 -13
- package/dist/sdk/index.js +79 -0
- package/dist/sdk/index.js.map +1 -0
- package/dist/sdk/logic-functions/define-logic-function.d.ts +2 -2
- package/dist/sdk/logic-functions/define-logic-function.js +12 -0
- package/dist/sdk/logic-functions/define-logic-function.js.map +1 -0
- package/dist/sdk/logic-functions/logic-function-config.d.ts +4 -2
- package/dist/sdk/navigation-menu-items/define-navigation-menu-item.d.ts +3 -0
- package/dist/sdk/navigation-menu-items/define-navigation-menu-item.js +9 -0
- package/dist/sdk/navigation-menu-items/define-navigation-menu-item.js.map +1 -0
- package/dist/sdk/objects/define-object.d.ts +3 -3
- package/dist/sdk/objects/define-object.js +20 -0
- package/dist/sdk/objects/define-object.js.map +1 -0
- package/dist/sdk/objects/object-config.d.ts +4 -0
- package/dist/sdk/page-layouts/define-page-layout.d.ts +3 -0
- package/dist/sdk/page-layouts/define-page-layout.js +15 -0
- package/dist/sdk/page-layouts/define-page-layout.js.map +1 -0
- package/dist/sdk/page-layouts/page-layout-config.d.ts +2 -0
- package/dist/sdk/roles/define-role.d.ts +2 -2
- package/dist/sdk/roles/define-role.js +15 -0
- package/dist/sdk/roles/define-role.js.map +1 -0
- package/dist/sdk/skills/define-skill.d.ts +3 -0
- package/dist/sdk/skills/define-skill.js +9 -0
- package/dist/sdk/skills/define-skill.js.map +1 -0
- package/dist/sdk/views/define-view.d.ts +3 -0
- package/dist/sdk/views/define-view.js +24 -0
- package/dist/sdk/views/define-view.js.map +1 -0
- package/dist/sdk/views/view-config.d.ts +2 -0
- package/dist/ui/index.cjs +1 -47
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.mjs +692 -2401
- package/package.json +47 -12
- package/dist/HtmlTagToRemoteComponent-B6lQe_K8.js +0 -1
- package/dist/IconWorld-DynX4UYH.mjs +0 -3003
- package/dist/IconWorld-JYjJym3l.js +0 -1876
- package/dist/_commonjsHelpers-DKOUU3wS.js +0 -1
- package/dist/_commonjsHelpers-DaMA6jEr.mjs +0 -8
- package/dist/cli/commands/app/app-generate.d.ts +0 -4
- package/dist/cli/utilities/build/common/front-component-build/react-globals-plugin.d.ts +0 -1
- package/dist/cli/utilities/build/common/front-component-build/twenty-sdk-globals-plugin.d.ts +0 -1
- package/dist/cli/utilities/build/common/front-component-build/twenty-sdk-ui-globals-plugin.d.ts +0 -1
- package/dist/cli/utilities/build/common/front-component-build/twenty-shared-globals-plugin.d.ts +0 -1
- package/dist/cli/utilities/build/common/front-component-build/types/ParsedImportSpecifier.d.ts +0 -4
- package/dist/cli/utilities/build/common/front-component-build/utils/collect-named-imports.d.ts +0 -4
- package/dist/cli/utilities/build/common/front-component-build/utils/create-front-component-build-options.d.ts +0 -13
- package/dist/cli/utilities/build/common/front-component-build/utils/create-globals-plugin.d.ts +0 -15
- package/dist/cli/utilities/build/common/front-component-build/utils/extract-names-from-import-specifier.d.ts +0 -2
- package/dist/cli/utilities/build/common/front-component-build/utils/replace-html-tags-with-remote-components.d.ts +0 -1
- package/dist/cli/utilities/dev/dev-mode-orchestrator.d.ts +0 -42
- package/dist/cli/utilities/dev/dev-ui-state-manager.d.ts +0 -31
- package/dist/cli/utilities/dev/dev-ui-state.d.ts +0 -27
- package/dist/front-component/__stories__/FrontComponentRenderer.stories.d.ts +0 -9
- package/dist/front-component/__stories__/mocks/interactive.front-component.d.ts +0 -7
- package/dist/front-component/__stories__/mocks/lifecycle.front-component.d.ts +0 -7
- package/dist/front-component/__stories__/mocks/static.front-component.d.ts +0 -7
- package/dist/front-component/__stories__/utils/buildMockComponents.d.ts +0 -1
- package/dist/front-component/__stories__/utils/loadBuiltComponent.d.ts +0 -1
- package/dist/front-component/host/components/FrontComponentRenderer.d.ts +0 -13
- package/dist/front-component/host/generated/host-index.d.ts +0 -1
- package/dist/front-component/index.cjs +0 -1
- package/dist/front-component/index.mjs +0 -5736
- package/dist/front-component/remote/components/FrontComponentHostCommunicationApiEffect.d.ts +0 -8
- package/dist/front-component/remote/components/FrontComponentUpdateContextEffect.d.ts +0 -10
- package/dist/front-component/remote/generated/remote-components.d.ts +0 -299
- package/dist/front-component/remote/generated/remote-elements.d.ts +0 -3335
- package/dist/front-component/remote/generated/remote-index.d.ts +0 -2
- package/dist/front-component/remote/mock/mock-front-component.d.ts +0 -3
- package/dist/front-component/remote/worker/remote-worker.d.ts +0 -0
- package/dist/front-component/types/FrontComponentHostCommunicationApi.d.ts +0 -4
- package/dist/front-component/types/PropertySchema.d.ts +0 -4
- package/dist/index.d.ts +0 -1
- package/dist/isValidCountryCode-ujmwsK7z-B8kSH7O8.mjs +0 -10248
- package/dist/isValidCountryCode-ujmwsK7z-DwSvvT1u.js +0 -25
- package/dist/navigation-_M4-TT0O.js +0 -503
- package/dist/navigation-udgao_jA.mjs +0 -30041
- package/dist/sdk/front-component-common/HtmlCommonProperties.d.ts +0 -2
- package/dist/sdk/front-component-common/HtmlTagToRemoteComponent.d.ts +0 -1
- package/dist/sdk/front-component-common/index.d.ts +0 -7
- /package/dist/{front-component → front-component-renderer}/host/generated/host-component-registry.d.ts +0 -0
- /package/dist/{front-component → front-component-renderer}/remote/components/FrontComponentErrorEffect.d.ts +0 -0
- /package/dist/{front-component → front-component-renderer}/remote/utils/exposeGlobals.d.ts +0 -0
- /package/dist/{front-component/remote/worker → front-component-renderer/remote/worker/utils}/createRemoteWorker.d.ts +0 -0
- /package/dist/sdk/{front-component-common → front-component-api/constants}/AllowedHtmlElements.d.ts +0 -0
- /package/dist/sdk/{front-component-common → front-component-api/constants}/CommonHtmlEvents.d.ts +0 -0
- /package/dist/sdk/{front-component-common → front-component-api/constants}/EventToReact.d.ts +0 -0
- /package/dist/sdk/{front-component-common → front-component-api/constants}/SerializedEventData.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var o=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}exports.commonjsGlobal=o;exports.getDefaultExportFromCjs=l;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
2
|
-
function l(e) {
|
|
3
|
-
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
4
|
-
}
|
|
5
|
-
export {
|
|
6
|
-
o as c,
|
|
7
|
-
l as g
|
|
8
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const reactGlobalsPlugin: import('esbuild').Plugin;
|
package/dist/cli/utilities/build/common/front-component-build/twenty-sdk-globals-plugin.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const twentySdkGlobalsPlugin: import('esbuild').Plugin;
|
package/dist/cli/utilities/build/common/front-component-build/twenty-sdk-ui-globals-plugin.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const twentySdkUiGlobalsPlugin: import('esbuild').Plugin;
|
package/dist/cli/utilities/build/common/front-component-build/twenty-shared-globals-plugin.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const twentySharedGlobalsPlugin: import('esbuild').Plugin;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type * as esbuild from 'esbuild';
|
|
2
|
-
export type FrontComponentBuildOptions = {
|
|
3
|
-
entryPoints: esbuild.BuildOptions['entryPoints'];
|
|
4
|
-
outdir: string;
|
|
5
|
-
tsconfigPath?: string;
|
|
6
|
-
externalModules?: string[];
|
|
7
|
-
logLevel?: esbuild.LogLevel;
|
|
8
|
-
platform?: esbuild.Platform;
|
|
9
|
-
minify?: boolean;
|
|
10
|
-
metafile?: boolean;
|
|
11
|
-
sourcemap?: boolean;
|
|
12
|
-
};
|
|
13
|
-
export declare const createFrontComponentBuildOptions: ({ entryPoints, outdir, tsconfigPath, externalModules, logLevel, platform, minify, metafile, sourcemap, }: FrontComponentBuildOptions) => esbuild.BuildOptions;
|
package/dist/cli/utilities/build/common/front-component-build/utils/create-globals-plugin.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type * as esbuild from 'esbuild';
|
|
2
|
-
type GlobalsPluginConfig = {
|
|
3
|
-
pluginName: string;
|
|
4
|
-
moduleName: string;
|
|
5
|
-
moduleFilter: RegExp;
|
|
6
|
-
collectImports: (sourceContent: string) => Map<string, Set<string>>;
|
|
7
|
-
generateExports: (params: {
|
|
8
|
-
namedImports: Set<string>;
|
|
9
|
-
moduleSubPath: string;
|
|
10
|
-
}) => string;
|
|
11
|
-
namespace?: string;
|
|
12
|
-
staticContents?: Record<string, string>;
|
|
13
|
-
};
|
|
14
|
-
export declare const createGlobalsPlugin: (config: GlobalsPluginConfig) => esbuild.Plugin;
|
|
15
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const replaceHtmlTagsWithRemoteComponents: (sourceCode: string) => string;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { ManifestBuildResult } from '../build/manifest/manifest-update-checksums';
|
|
2
|
-
import { FileFolder } from 'twenty-shared/types';
|
|
3
|
-
import { Location } from 'esbuild';
|
|
4
|
-
import { DevUiStateManager } from './dev-ui-state-manager';
|
|
5
|
-
import { EventName } from 'chokidar/handler.js';
|
|
6
|
-
export type DevModeOrchestratorOptions = {
|
|
7
|
-
appPath: string;
|
|
8
|
-
debounceMs?: number;
|
|
9
|
-
handleManifestBuilt: (result: ManifestBuildResult) => void | Promise<void>;
|
|
10
|
-
uiStateManager: DevUiStateManager;
|
|
11
|
-
};
|
|
12
|
-
export declare class DevModeOrchestrator {
|
|
13
|
-
private appPath;
|
|
14
|
-
private debounceMs;
|
|
15
|
-
private builtFileInfos;
|
|
16
|
-
private fileUploader;
|
|
17
|
-
private apiService;
|
|
18
|
-
private activeUploads;
|
|
19
|
-
private syncTimer;
|
|
20
|
-
private isSyncing;
|
|
21
|
-
private uiStateManager;
|
|
22
|
-
private serverReady;
|
|
23
|
-
private serverErrorLogged;
|
|
24
|
-
private handleManifestBuilt;
|
|
25
|
-
constructor(options: DevModeOrchestratorOptions);
|
|
26
|
-
private checkServer;
|
|
27
|
-
handleChangeDetected(sourcePath: string, event: EventName): Promise<void>;
|
|
28
|
-
handleFileBuildError(errors: {
|
|
29
|
-
error: string;
|
|
30
|
-
location: Location | null;
|
|
31
|
-
}[]): void;
|
|
32
|
-
handleFileBuilt({ fileFolder, builtPath, sourcePath, checksum, }: {
|
|
33
|
-
fileFolder: FileFolder;
|
|
34
|
-
builtPath: string;
|
|
35
|
-
sourcePath: string;
|
|
36
|
-
checksum: string;
|
|
37
|
-
}): void;
|
|
38
|
-
private uploadFile;
|
|
39
|
-
private cancelPendingSync;
|
|
40
|
-
private scheduleSync;
|
|
41
|
-
private performSync;
|
|
42
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { SyncableEntity } from 'twenty-shared/application';
|
|
2
|
-
import { FileStatus, Listener, ManifestStatus, UiEvent, DevUiState } from './dev-ui-state';
|
|
3
|
-
import { EntityFilePaths } from '../build/manifest/manifest-extract-config';
|
|
4
|
-
export declare class DevUiStateManager {
|
|
5
|
-
private state;
|
|
6
|
-
private eventIdCounter;
|
|
7
|
-
private listeners;
|
|
8
|
-
constructor({ appPath, frontendUrl, }: {
|
|
9
|
-
appPath: string;
|
|
10
|
-
frontendUrl?: string;
|
|
11
|
-
});
|
|
12
|
-
getSnapshot(): DevUiState;
|
|
13
|
-
subscribe(listener: Listener): () => void;
|
|
14
|
-
private notify;
|
|
15
|
-
addEvent({ message, status, }: {
|
|
16
|
-
message: string;
|
|
17
|
-
status: UiEvent['status'];
|
|
18
|
-
}): void;
|
|
19
|
-
updateManifestState({ manifestStatus, appName, error, }: {
|
|
20
|
-
manifestStatus?: ManifestStatus;
|
|
21
|
-
appName?: string;
|
|
22
|
-
error?: string;
|
|
23
|
-
}): void;
|
|
24
|
-
convertEntityTypeToSyncableEntity(entityType: string): SyncableEntity | undefined;
|
|
25
|
-
updateAllFilesTypes({ manifestFilePaths, }: {
|
|
26
|
-
manifestFilePaths: EntityFilePaths;
|
|
27
|
-
}): void;
|
|
28
|
-
updateAllFilesStatus(status: FileStatus): void;
|
|
29
|
-
removeEntity(filePath: string): void;
|
|
30
|
-
updateFileStatus(filePath: string, status: FileStatus): void;
|
|
31
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { SyncableEntity } from 'twenty-shared/application';
|
|
2
|
-
export type UiEvent = {
|
|
3
|
-
id: number;
|
|
4
|
-
timestamp: Date;
|
|
5
|
-
message: string;
|
|
6
|
-
status: 'info' | 'success' | 'error' | 'warning';
|
|
7
|
-
};
|
|
8
|
-
export type ManifestStatus = 'idle' | 'building' | 'syncing' | 'synced' | 'error';
|
|
9
|
-
export type FileStatus = 'pending' | 'building' | 'uploading' | 'success';
|
|
10
|
-
export type EntityInfo = {
|
|
11
|
-
name: string;
|
|
12
|
-
path: string;
|
|
13
|
-
type?: SyncableEntity;
|
|
14
|
-
status: FileStatus;
|
|
15
|
-
};
|
|
16
|
-
export type DevUiState = {
|
|
17
|
-
appPath: string;
|
|
18
|
-
appName: string | null;
|
|
19
|
-
appDescription: string | null;
|
|
20
|
-
appUniversalIdentifier: string | null;
|
|
21
|
-
frontendUrl?: string | null;
|
|
22
|
-
manifestStatus: ManifestStatus;
|
|
23
|
-
error?: string | null;
|
|
24
|
-
entities: Map<string, EntityInfo>;
|
|
25
|
-
events: UiEvent[];
|
|
26
|
-
};
|
|
27
|
-
export type Listener = (state: DevUiState) => void;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import { FrontComponentRenderer } from '../host/components/FrontComponentRenderer';
|
|
3
|
-
declare const meta: Meta<typeof FrontComponentRenderer>;
|
|
4
|
-
export default meta;
|
|
5
|
-
type Story = StoryObj<typeof FrontComponentRenderer>;
|
|
6
|
-
export declare const Static: Story;
|
|
7
|
-
export declare const Interactive: Story;
|
|
8
|
-
export declare const Lifecycle: Story;
|
|
9
|
-
export declare const ErrorHandling: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const buildMockComponents: () => Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getBuiltComponentPath: (componentName: string) => string;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FrontComponentExecutionContext } from '../../types/FrontComponentExecutionContext';
|
|
2
|
-
import { FrontComponentHostCommunicationApi } from '../../types/FrontComponentHostCommunicationApi';
|
|
3
|
-
import { ThemeType } from 'twenty-ui/theme';
|
|
4
|
-
type FrontComponentContentProps = {
|
|
5
|
-
componentUrl: string;
|
|
6
|
-
authToken: string;
|
|
7
|
-
executionContext: FrontComponentExecutionContext;
|
|
8
|
-
frontComponentHostCommunicationApi: FrontComponentHostCommunicationApi;
|
|
9
|
-
onError: (error?: Error) => void;
|
|
10
|
-
theme: ThemeType;
|
|
11
|
-
};
|
|
12
|
-
export declare const FrontComponentRenderer: ({ componentUrl, authToken, executionContext, frontComponentHostCommunicationApi, onError, theme, }: FrontComponentContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { componentRegistry } from './host-component-registry';
|