twenty-sdk 0.5.1 → 0.6.0-alpha

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.
Files changed (122) hide show
  1. package/README.md +2 -0
  2. package/dist/AllIcons-CGPKtPQS-BLFCKgx3.js +18961 -0
  3. package/dist/AllIcons-CGPKtPQS-Djzg3SXS.mjs +30732 -0
  4. package/dist/HtmlTagToRemoteComponent-CSfU1Ai0.js +25 -0
  5. package/dist/HtmlTagToRemoteComponent-_7-Er-Nj.mjs +10395 -0
  6. package/dist/cli/commands/app/app-uninstall.d.ts +2 -2
  7. package/dist/cli/commands/app-command.d.ts +1 -1
  8. package/dist/cli/commands/logic-function/logic-function-execute.d.ts +1 -1
  9. package/dist/cli/commands/logic-function/logic-function-logs.d.ts +1 -1
  10. package/dist/cli/utilities/api/api-service.d.ts +6 -6
  11. package/dist/cli/utilities/build/common/esbuild-result-processor.d.ts +2 -2
  12. package/dist/cli/utilities/build/common/esbuild-watcher.d.ts +2 -2
  13. package/dist/cli/utilities/build/common/file-upload-watcher.d.ts +1 -1
  14. package/dist/cli/utilities/build/common/front-component-build/react-globals-plugin.d.ts +1 -1
  15. package/dist/cli/utilities/build/common/front-component-build/twenty-sdk-globals-plugin.d.ts +1 -1
  16. package/dist/cli/utilities/build/common/front-component-build/twenty-sdk-ui-globals-plugin.d.ts +1 -1
  17. package/dist/cli/utilities/build/common/front-component-build/twenty-shared-globals-plugin.d.ts +1 -1
  18. package/dist/cli/utilities/build/common/front-component-build/utils/extract-names-from-import-specifier.d.ts +1 -1
  19. package/dist/cli/utilities/build/common/restartable-watcher-interface.d.ts +2 -2
  20. package/dist/cli/utilities/build/manifest/manifest-build.d.ts +2 -2
  21. package/dist/cli/utilities/build/manifest/manifest-extract-config-from-file.d.ts +1 -1
  22. package/dist/cli/utilities/build/manifest/manifest-update-checksums.d.ts +2 -2
  23. package/dist/cli/utilities/build/manifest/manifest-validate.d.ts +1 -1
  24. package/dist/cli/utilities/build/manifest/manifest-writer.d.ts +1 -1
  25. package/dist/cli/utilities/dev/dev-mode-orchestrator.d.ts +6 -6
  26. package/dist/cli/utilities/dev/dev-ui-state-manager.d.ts +6 -6
  27. package/dist/cli/utilities/dev/dev-ui-state.d.ts +1 -1
  28. package/dist/cli/utilities/dev/dev-ui.d.ts +1 -1
  29. package/dist/cli/utilities/entity/entity-field-template.d.ts +2 -2
  30. package/dist/cli/utilities/entity/entity-front-component-template.d.ts +1 -1
  31. package/dist/cli/utilities/entity/entity-logic-function-template.d.ts +1 -1
  32. package/dist/cli/utilities/entity/entity-role-template.d.ts +1 -1
  33. package/dist/cli/utilities/file/file-jsonc.d.ts +1 -1
  34. package/dist/cli/utilities/file/file-path.d.ts +1 -1
  35. package/dist/cli/utilities/file/file-uploader.d.ts +3 -3
  36. package/dist/cli/utilities/typescript/typescript-diagnostics.d.ts +1 -1
  37. package/dist/cli/utilities/typescript/typescript-program.d.ts +1 -1
  38. package/dist/cli.cjs +30 -29
  39. package/dist/cli.mjs +894 -890
  40. package/dist/front-component-renderer/__stories__/FrontComponentRenderer.stories.d.ts +16 -0
  41. package/dist/front-component-renderer/__stories__/example-sources/chakra-example.front-component.d.ts +8 -0
  42. package/dist/front-component-renderer/__stories__/example-sources/emotion-example.front-component.d.ts +7 -0
  43. package/dist/{front-component/__stories__/mocks → front-component-renderer/__stories__/example-sources}/interactive.front-component.d.ts +1 -1
  44. package/dist/{front-component/__stories__/mocks → front-component-renderer/__stories__/example-sources}/lifecycle.front-component.d.ts +1 -1
  45. package/dist/front-component-renderer/__stories__/example-sources/mui-example.front-component.d.ts +7 -0
  46. package/dist/front-component-renderer/__stories__/example-sources/shadcn-example.front-component.d.ts +7 -0
  47. package/dist/{front-component/__stories__/mocks → front-component-renderer/__stories__/example-sources}/static.front-component.d.ts +1 -1
  48. package/dist/front-component-renderer/__stories__/example-sources/styled-components-example.front-component.d.ts +7 -0
  49. package/dist/front-component-renderer/__stories__/example-sources/tailwind-example.front-component.d.ts +7 -0
  50. package/dist/front-component-renderer/__stories__/example-sources/twenty-ui-example.front-component.d.ts +7 -0
  51. package/dist/front-component-renderer/__stories__/utils/getBuiltStoryComponentPathForRender.d.ts +1 -0
  52. package/dist/front-component-renderer/host/components/FrontComponentRenderer.d.ts +14 -0
  53. package/dist/front-component-renderer/index.cjs +25 -0
  54. package/dist/{front-component → front-component-renderer}/index.d.ts +4 -4
  55. package/dist/front-component-renderer/index.mjs +12026 -0
  56. package/dist/front-component-renderer/remote/components/FrontComponentHostCommunicationApiEffect.d.ts +8 -0
  57. package/dist/front-component-renderer/remote/components/FrontComponentUpdateContextEffect.d.ts +10 -0
  58. package/dist/{front-component → front-component-renderer}/remote/components/FrontComponentWorkerEffect.d.ts +5 -4
  59. package/dist/front-component-renderer/remote/generated/remote-components.d.ts +43 -0
  60. package/dist/front-component-renderer/remote/generated/remote-elements.d.ts +187 -0
  61. package/dist/{front-component → front-component-renderer}/remote/mock/mock-front-component.d.ts +1 -1
  62. package/dist/front-component-renderer/remote/worker/remote-worker.d.ts +3 -0
  63. package/dist/front-component-renderer/remote/worker/utils/setWorkerEnv.d.ts +1 -0
  64. package/dist/{front-component → front-component-renderer}/types/FrontComponentHostCommunicationApi.d.ts +1 -1
  65. package/dist/{front-component → front-component-renderer}/types/HostToWorkerRenderContext.d.ts +2 -1
  66. package/dist/front-component-renderer/types/PropertySchema.d.ts +4 -0
  67. package/dist/{front-component → front-component-renderer}/types/WorkerExports.d.ts +3 -3
  68. package/dist/index-DX23sVyw.js +2415 -0
  69. package/dist/index-JB9QoBK0.mjs +33884 -0
  70. package/dist/index.cjs +5 -1
  71. package/dist/index.mjs +2497 -102
  72. package/dist/sdk/application/application-config.d.ts +1 -1
  73. package/dist/sdk/application/define-application.d.ts +2 -2
  74. package/dist/sdk/common/types/define-entity.type.d.ts +4 -4
  75. package/dist/sdk/common/utils/create-validation-result.d.ts +1 -1
  76. package/dist/sdk/define-front-component.d.ts +2 -2
  77. package/dist/sdk/fields/define-field.d.ts +2 -2
  78. package/dist/sdk/fields/validate-fields.d.ts +1 -1
  79. package/dist/sdk/front-component-api/constants/HtmlCommonProperties.d.ts +2 -0
  80. package/dist/sdk/front-component-api/context/frontComponentContext.d.ts +1 -1
  81. package/dist/sdk/front-component-api/functions/navigate.d.ts +1 -1
  82. package/dist/sdk/front-component-api/hooks/useFrontComponentExecutionContext.d.ts +1 -1
  83. package/dist/sdk/front-component-api/index.d.ts +7 -0
  84. package/dist/sdk/front-component-config.d.ts +1 -1
  85. package/dist/sdk/index.d.ts +6 -6
  86. package/dist/sdk/logic-functions/define-logic-function.d.ts +2 -2
  87. package/dist/sdk/logic-functions/logic-function-config.d.ts +1 -1
  88. package/dist/sdk/objects/define-object.d.ts +2 -2
  89. package/dist/sdk/roles/define-role.d.ts +2 -2
  90. package/dist/ui/index.cjs +1 -1
  91. package/dist/ui/index.mjs +684 -11
  92. package/package.json +34 -12
  93. package/dist/HtmlTagToRemoteComponent-Bd5sgek2.js +0 -1
  94. package/dist/HtmlTagToRemoteComponent-DlsAI7JU.mjs +0 -146
  95. package/dist/cli/utilities/build/common/front-component-build/utils/create-front-component-build-options.d.ts +0 -13
  96. package/dist/front-component/__stories__/FrontComponentRenderer.stories.d.ts +0 -9
  97. package/dist/front-component/__stories__/utils/buildMockComponents.d.ts +0 -1
  98. package/dist/front-component/__stories__/utils/loadBuiltComponent.d.ts +0 -1
  99. package/dist/front-component/host/components/FrontComponentRenderer.d.ts +0 -13
  100. package/dist/front-component/index.cjs +0 -1
  101. package/dist/front-component/index.mjs +0 -6399
  102. package/dist/front-component/remote/components/FrontComponentHostCommunicationApiEffect.d.ts +0 -8
  103. package/dist/front-component/remote/components/FrontComponentUpdateContextEffect.d.ts +0 -10
  104. package/dist/front-component/remote/generated/remote-components.d.ts +0 -299
  105. package/dist/front-component/remote/generated/remote-elements.d.ts +0 -3335
  106. package/dist/front-component/remote/worker/remote-worker.d.ts +0 -0
  107. package/dist/front-component/types/PropertySchema.d.ts +0 -4
  108. package/dist/index.d.ts +0 -1
  109. package/dist/sdk/front-component-common/HtmlCommonProperties.d.ts +0 -2
  110. package/dist/sdk/front-component-common/index.d.ts +0 -7
  111. /package/dist/{front-component → front-component-renderer}/host/generated/host-component-registry.d.ts +0 -0
  112. /package/dist/{front-component → front-component-renderer}/host/generated/host-index.d.ts +0 -0
  113. /package/dist/{front-component → front-component-renderer}/remote/components/FrontComponentErrorEffect.d.ts +0 -0
  114. /package/dist/{front-component → front-component-renderer}/remote/generated/remote-index.d.ts +0 -0
  115. /package/dist/{front-component → front-component-renderer}/remote/utils/exposeGlobals.d.ts +0 -0
  116. /package/dist/{front-component/remote/worker → front-component-renderer/remote/worker/utils}/createRemoteWorker.d.ts +0 -0
  117. /package/dist/{front-component → front-component-renderer}/types/FrontComponentExecutionContext.d.ts +0 -0
  118. /package/dist/sdk/{front-component-common → front-component-api/constants}/AllowedHtmlElements.d.ts +0 -0
  119. /package/dist/sdk/{front-component-common → front-component-api/constants}/CommonHtmlEvents.d.ts +0 -0
  120. /package/dist/sdk/{front-component-common → front-component-api/constants}/EventToReact.d.ts +0 -0
  121. /package/dist/sdk/{front-component-common → front-component-api/constants}/HtmlTagToRemoteComponent.d.ts +0 -0
  122. /package/dist/sdk/{front-component-common → front-component-api/constants}/SerializedEventData.d.ts +0 -0
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "twenty-sdk",
3
- "version": "0.5.1",
3
+ "version": "0.6.0-alpha",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
- "types": "dist/index.d.ts",
6
+ "types": "dist/sdk/index.d.ts",
7
7
  "bin": {
8
8
  "twenty": "dist/cli.cjs"
9
9
  },
@@ -13,9 +13,7 @@
13
13
  "package.json"
14
14
  ],
15
15
  "scripts": {
16
- "build": "npx rimraf dist && npx vite build",
17
- "prepublishOnly": "tsx ../twenty-utils/pack-scripts/pre-publish-only.ts",
18
- "postpublish": "tsx ../twenty-utils/pack-scripts/post-publish.ts"
16
+ "build": "npx rimraf dist && npx vite build"
19
17
  },
20
18
  "keywords": [
21
19
  "twenty",
@@ -27,7 +25,7 @@
27
25
  ],
28
26
  "exports": {
29
27
  ".": {
30
- "types": "./dist/index.d.ts",
28
+ "types": "./dist/sdk/index.d.ts",
31
29
  "import": "./dist/index.mjs",
32
30
  "require": "./dist/index.cjs"
33
31
  },
@@ -36,14 +34,16 @@
36
34
  "import": "./dist/ui/index.mjs",
37
35
  "require": "./dist/ui/index.cjs"
38
36
  },
39
- "./front-component": {
40
- "types": "./dist/front-component/index.d.ts",
41
- "import": "./dist/front-component/index.mjs",
42
- "require": "./dist/front-component/index.cjs"
37
+ "./front-component-renderer": {
38
+ "types": "./dist/front-component-renderer/index.d.ts",
39
+ "import": "./dist/front-component-renderer/index.mjs",
40
+ "require": "./dist/front-component-renderer/index.cjs"
43
41
  }
44
42
  },
45
43
  "license": "AGPL-3.0",
46
44
  "dependencies": {
45
+ "@chakra-ui/react": "^3.33.0",
46
+ "@emotion/react": "^11.14.0",
47
47
  "@genql/cli": "^3.0.3",
48
48
  "@quilted/threads": "^4.0.1",
49
49
  "@remote-dom/core": "^1.10.1",
@@ -72,6 +72,28 @@
72
72
  "vite-tsconfig-paths": "^4.2.1",
73
73
  "zod": "^4.1.11"
74
74
  },
75
+ "devDependencies": {
76
+ "@mui/material": "^7.3.8",
77
+ "@prettier/sync": "^0.5.2",
78
+ "@storybook/addon-vitest": "^10.1.11",
79
+ "@storybook/react-vite": "^10.1.11",
80
+ "@types/archiver": "^6.0.0",
81
+ "@types/fs-extra": "^11.0.0",
82
+ "@types/inquirer": "^9.0.0",
83
+ "@types/lodash.camelcase": "^4.3.7",
84
+ "@types/node": "^24.0.0",
85
+ "@types/react": "18.2.66",
86
+ "@types/react-dom": "18.2.22",
87
+ "@vitest/browser-playwright": "^4.0.18",
88
+ "playwright": "^1.56.1",
89
+ "storybook": "^10.1.11",
90
+ "ts-morph": "^25.0.0",
91
+ "tsx": "^4.7.0",
92
+ "twenty-shared": "workspace:*",
93
+ "twenty-ui": "workspace:*",
94
+ "vite-plugin-dts": "^4.5.4",
95
+ "wait-on": "^7.2.0"
96
+ },
75
97
  "engines": {
76
98
  "node": "^24.5.0",
77
99
  "yarn": "^4.0.2"
@@ -81,8 +103,8 @@
81
103
  "ui": [
82
104
  "dist/ui/index.d.ts"
83
105
  ],
84
- "front-component": [
85
- "dist/front-component/index.d.ts"
106
+ "front-component-renderer": [
107
+ "dist/front-component-renderer/index.d.ts"
86
108
  ]
87
109
  }
88
110
  }
@@ -1 +0,0 @@
1
- "use strict";const e=[{tag:"html-div",name:"HtmlDiv",properties:{}},{tag:"html-span",name:"HtmlSpan",properties:{}},{tag:"html-section",name:"HtmlSection",properties:{}},{tag:"html-article",name:"HtmlArticle",properties:{}},{tag:"html-header",name:"HtmlHeader",properties:{}},{tag:"html-footer",name:"HtmlFooter",properties:{}},{tag:"html-main",name:"HtmlMain",properties:{}},{tag:"html-nav",name:"HtmlNav",properties:{}},{tag:"html-aside",name:"HtmlAside",properties:{}},{tag:"html-p",name:"HtmlP",properties:{}},{tag:"html-h1",name:"HtmlH1",properties:{}},{tag:"html-h2",name:"HtmlH2",properties:{}},{tag:"html-h3",name:"HtmlH3",properties:{}},{tag:"html-h4",name:"HtmlH4",properties:{}},{tag:"html-h5",name:"HtmlH5",properties:{}},{tag:"html-h6",name:"HtmlH6",properties:{}},{tag:"html-strong",name:"HtmlStrong",properties:{}},{tag:"html-em",name:"HtmlEm",properties:{}},{tag:"html-small",name:"HtmlSmall",properties:{}},{tag:"html-code",name:"HtmlCode",properties:{}},{tag:"html-pre",name:"HtmlPre",properties:{}},{tag:"html-blockquote",name:"HtmlBlockquote",properties:{}},{tag:"html-a",name:"HtmlA",properties:{href:{type:"string",optional:!0},target:{type:"string",optional:!0},rel:{type:"string",optional:!0}}},{tag:"html-img",name:"HtmlImg",properties:{src:{type:"string",optional:!0},alt:{type:"string",optional:!0},width:{type:"number",optional:!0},height:{type:"number",optional:!0}}},{tag:"html-ul",name:"HtmlUl",properties:{}},{tag:"html-ol",name:"HtmlOl",properties:{}},{tag:"html-li",name:"HtmlLi",properties:{}},{tag:"html-form",name:"HtmlForm",properties:{action:{type:"string",optional:!0},method:{type:"string",optional:!0}}},{tag:"html-label",name:"HtmlLabel",properties:{htmlFor:{type:"string",optional:!0}}},{tag:"html-input",name:"HtmlInput",properties:{type:{type:"string",optional:!0},name:{type:"string",optional:!0},value:{type:"string",optional:!0},placeholder:{type:"string",optional:!0},disabled:{type:"boolean",optional:!0},checked:{type:"boolean",optional:!0},readOnly:{type:"boolean",optional:!0}}},{tag:"html-textarea",name:"HtmlTextarea",properties:{name:{type:"string",optional:!0},value:{type:"string",optional:!0},placeholder:{type:"string",optional:!0},disabled:{type:"boolean",optional:!0},readOnly:{type:"boolean",optional:!0},rows:{type:"number",optional:!0},cols:{type:"number",optional:!0}}},{tag:"html-select",name:"HtmlSelect",properties:{name:{type:"string",optional:!0},value:{type:"string",optional:!0},disabled:{type:"boolean",optional:!0},multiple:{type:"boolean",optional:!0}}},{tag:"html-option",name:"HtmlOption",properties:{value:{type:"string",optional:!0},disabled:{type:"boolean",optional:!0},selected:{type:"boolean",optional:!0}}},{tag:"html-button",name:"HtmlButton",properties:{type:{type:"string",optional:!0},disabled:{type:"boolean",optional:!0}}},{tag:"html-table",name:"HtmlTable",properties:{}},{tag:"html-thead",name:"HtmlThead",properties:{}},{tag:"html-tbody",name:"HtmlTbody",properties:{}},{tag:"html-tfoot",name:"HtmlTfoot",properties:{}},{tag:"html-tr",name:"HtmlTr",properties:{}},{tag:"html-th",name:"HtmlTh",properties:{colSpan:{type:"number",optional:!0},rowSpan:{type:"number",optional:!0}}},{tag:"html-td",name:"HtmlTd",properties:{colSpan:{type:"number",optional:!0},rowSpan:{type:"number",optional:!0}}},{tag:"html-br",name:"HtmlBr",properties:{}},{tag:"html-hr",name:"HtmlHr",properties:{}}],r=Object.fromEntries(e.map(t=>[t.tag.startsWith("html-")?t.tag.slice(5):t.tag,t.name]));exports.ALLOWED_HTML_ELEMENTS=e;exports.HTML_TAG_TO_REMOTE_COMPONENT=r;
@@ -1,146 +0,0 @@
1
- const e = [
2
- { tag: "html-div", name: "HtmlDiv", properties: {} },
3
- { tag: "html-span", name: "HtmlSpan", properties: {} },
4
- { tag: "html-section", name: "HtmlSection", properties: {} },
5
- { tag: "html-article", name: "HtmlArticle", properties: {} },
6
- { tag: "html-header", name: "HtmlHeader", properties: {} },
7
- { tag: "html-footer", name: "HtmlFooter", properties: {} },
8
- { tag: "html-main", name: "HtmlMain", properties: {} },
9
- { tag: "html-nav", name: "HtmlNav", properties: {} },
10
- { tag: "html-aside", name: "HtmlAside", properties: {} },
11
- { tag: "html-p", name: "HtmlP", properties: {} },
12
- { tag: "html-h1", name: "HtmlH1", properties: {} },
13
- { tag: "html-h2", name: "HtmlH2", properties: {} },
14
- { tag: "html-h3", name: "HtmlH3", properties: {} },
15
- { tag: "html-h4", name: "HtmlH4", properties: {} },
16
- { tag: "html-h5", name: "HtmlH5", properties: {} },
17
- { tag: "html-h6", name: "HtmlH6", properties: {} },
18
- { tag: "html-strong", name: "HtmlStrong", properties: {} },
19
- { tag: "html-em", name: "HtmlEm", properties: {} },
20
- { tag: "html-small", name: "HtmlSmall", properties: {} },
21
- { tag: "html-code", name: "HtmlCode", properties: {} },
22
- { tag: "html-pre", name: "HtmlPre", properties: {} },
23
- { tag: "html-blockquote", name: "HtmlBlockquote", properties: {} },
24
- {
25
- tag: "html-a",
26
- name: "HtmlA",
27
- properties: {
28
- href: { type: "string", optional: !0 },
29
- target: { type: "string", optional: !0 },
30
- rel: { type: "string", optional: !0 }
31
- }
32
- },
33
- {
34
- tag: "html-img",
35
- name: "HtmlImg",
36
- properties: {
37
- src: { type: "string", optional: !0 },
38
- alt: { type: "string", optional: !0 },
39
- width: { type: "number", optional: !0 },
40
- height: { type: "number", optional: !0 }
41
- }
42
- },
43
- { tag: "html-ul", name: "HtmlUl", properties: {} },
44
- { tag: "html-ol", name: "HtmlOl", properties: {} },
45
- { tag: "html-li", name: "HtmlLi", properties: {} },
46
- {
47
- tag: "html-form",
48
- name: "HtmlForm",
49
- properties: {
50
- action: { type: "string", optional: !0 },
51
- method: { type: "string", optional: !0 }
52
- }
53
- },
54
- {
55
- tag: "html-label",
56
- name: "HtmlLabel",
57
- properties: {
58
- htmlFor: { type: "string", optional: !0 }
59
- }
60
- },
61
- {
62
- tag: "html-input",
63
- name: "HtmlInput",
64
- properties: {
65
- type: { type: "string", optional: !0 },
66
- name: { type: "string", optional: !0 },
67
- value: { type: "string", optional: !0 },
68
- placeholder: { type: "string", optional: !0 },
69
- disabled: { type: "boolean", optional: !0 },
70
- checked: { type: "boolean", optional: !0 },
71
- readOnly: { type: "boolean", optional: !0 }
72
- }
73
- },
74
- {
75
- tag: "html-textarea",
76
- name: "HtmlTextarea",
77
- properties: {
78
- name: { type: "string", optional: !0 },
79
- value: { type: "string", optional: !0 },
80
- placeholder: { type: "string", optional: !0 },
81
- disabled: { type: "boolean", optional: !0 },
82
- readOnly: { type: "boolean", optional: !0 },
83
- rows: { type: "number", optional: !0 },
84
- cols: { type: "number", optional: !0 }
85
- }
86
- },
87
- {
88
- tag: "html-select",
89
- name: "HtmlSelect",
90
- properties: {
91
- name: { type: "string", optional: !0 },
92
- value: { type: "string", optional: !0 },
93
- disabled: { type: "boolean", optional: !0 },
94
- multiple: { type: "boolean", optional: !0 }
95
- }
96
- },
97
- {
98
- tag: "html-option",
99
- name: "HtmlOption",
100
- properties: {
101
- value: { type: "string", optional: !0 },
102
- disabled: { type: "boolean", optional: !0 },
103
- selected: { type: "boolean", optional: !0 }
104
- }
105
- },
106
- {
107
- tag: "html-button",
108
- name: "HtmlButton",
109
- properties: {
110
- type: { type: "string", optional: !0 },
111
- disabled: { type: "boolean", optional: !0 }
112
- }
113
- },
114
- { tag: "html-table", name: "HtmlTable", properties: {} },
115
- { tag: "html-thead", name: "HtmlThead", properties: {} },
116
- { tag: "html-tbody", name: "HtmlTbody", properties: {} },
117
- { tag: "html-tfoot", name: "HtmlTfoot", properties: {} },
118
- { tag: "html-tr", name: "HtmlTr", properties: {} },
119
- {
120
- tag: "html-th",
121
- name: "HtmlTh",
122
- properties: {
123
- colSpan: { type: "number", optional: !0 },
124
- rowSpan: { type: "number", optional: !0 }
125
- }
126
- },
127
- {
128
- tag: "html-td",
129
- name: "HtmlTd",
130
- properties: {
131
- colSpan: { type: "number", optional: !0 },
132
- rowSpan: { type: "number", optional: !0 }
133
- }
134
- },
135
- { tag: "html-br", name: "HtmlBr", properties: {} },
136
- { tag: "html-hr", name: "HtmlHr", properties: {} }
137
- ], a = Object.fromEntries(
138
- e.map((t) => [
139
- t.tag.startsWith("html-") ? t.tag.slice(5) : t.tag,
140
- t.name
141
- ])
142
- );
143
- export {
144
- e as A,
145
- a as H
146
- };
@@ -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;
@@ -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 {};