twenty-sdk 2.37.0 → 2.38.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.
Files changed (48) hide show
  1. package/dist/billing/index.cjs +3 -3
  2. package/dist/billing/index.cjs.map +1 -1
  3. package/dist/billing/index.d.ts +25 -4
  4. package/dist/billing/index.mjs +495 -464
  5. package/dist/billing/index.mjs.map +1 -1
  6. package/dist/catalog-sync-DB_oIbry.js +1 -0
  7. package/dist/{catalog-sync-mAO3vmdp.mjs → catalog-sync-TFrxc_Y6.mjs} +4 -4
  8. package/dist/cli/commands/dev/dev-once.d.ts +1 -0
  9. package/dist/cli/commands/dev/dev.d.ts +1 -0
  10. package/dist/cli/operations/dev-once.d.ts +1 -0
  11. package/dist/cli/utilities/api/api-service.d.ts +1 -0
  12. package/dist/cli/utilities/api/application-api.d.ts +1 -0
  13. package/dist/cli/utilities/dev/orchestrator/dev-mode-orchestrator.d.ts +1 -0
  14. package/dist/cli/utilities/dev/orchestrator/steps/format-sync-actions-plan.d.ts +8 -1
  15. package/dist/cli/utilities/dev/orchestrator/steps/sync-application-orchestrator-step.d.ts +3 -1
  16. package/dist/cli/utilities/entity/entity-view-template.d.ts +1 -1
  17. package/dist/cli/utilities/error/parse-server-error.d.ts +1 -0
  18. package/dist/cli.cjs +30 -30
  19. package/dist/cli.mjs +5447 -5427
  20. package/dist/define/index.cjs +14 -14
  21. package/dist/define/index.cjs.map +1 -1
  22. package/dist/define/index.d.ts +82 -14
  23. package/dist/define/index.mjs +5717 -5690
  24. package/dist/define/index.mjs.map +1 -1
  25. package/dist/front-component/index.cjs +1 -1
  26. package/dist/front-component/index.cjs.map +1 -1
  27. package/dist/front-component/index.d.ts +23 -6
  28. package/dist/front-component/index.mjs +2 -2
  29. package/dist/front-component/index.mjs.map +1 -1
  30. package/dist/front-component-renderer/build.cjs +1 -1
  31. package/dist/front-component-renderer/build.mjs +1 -1
  32. package/dist/{get-front-component-build-plugins-WU9ATS3e.mjs → get-front-component-build-plugins-Bed7hCGi.mjs} +46 -38
  33. package/dist/{get-front-component-build-plugins-DZIleilT.js → get-front-component-build-plugins-o8cM1FFZ.js} +8 -8
  34. package/dist/{get-function-input-schema-GNk3NRLJ-DKoJBhuO.js → get-function-input-schema-GNk3NRLJ-A3CmF1qq.js} +1 -1
  35. package/dist/{get-function-input-schema-GNk3NRLJ-H7iWzfXn.mjs → get-function-input-schema-GNk3NRLJ-BPeB4a-_.mjs} +1 -1
  36. package/dist/logic-function/index.cjs +4 -4
  37. package/dist/logic-function/index.cjs.map +1 -1
  38. package/dist/logic-function/index.d.ts +23 -3
  39. package/dist/logic-function/index.mjs +26 -12
  40. package/dist/logic-function/index.mjs.map +1 -1
  41. package/dist/{login-4PI5lTOa.js → login-2yrPIORt.js} +59 -66
  42. package/dist/{login-CNByz3vi.mjs → login-QYv7vAbh.mjs} +5348 -5303
  43. package/dist/operations.cjs +1 -1
  44. package/dist/operations.mjs +4 -4
  45. package/dist/utils/index.cjs.map +1 -1
  46. package/dist/utils/index.mjs.map +1 -1
  47. package/package.json +2 -2
  48. package/dist/catalog-sync-Szx_4267.js +0 -1
@@ -1 +1 @@
1
- Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../get-front-component-build-plugins-DZIleilT.js");exports.getFrontComponentBuildPlugins=e.t;
1
+ Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});const e=require("../get-front-component-build-plugins-o8cM1FFZ.js");exports.getFrontComponentBuildPlugins=e.t;
@@ -2,5 +2,5 @@ import { createRequire as e } from "node:module";
2
2
  import { fileURLToPath as t } from "node:url";
3
3
  import { dirname as n } from "node:path";
4
4
  e(import.meta.url), n(t(import.meta.url));
5
- import { t as r } from "../get-front-component-build-plugins-WU9ATS3e.mjs";
5
+ import { t as r } from "../get-front-component-build-plugins-Bed7hCGi.mjs";
6
6
  export { r as getFrontComponentBuildPlugins };
@@ -9579,7 +9579,7 @@ qu({
9579
9579
  [Q.RICH_TEXT, zf]
9580
9580
  ]);
9581
9581
  //#endregion
9582
- //#region ../twenty-shared/dist/types-BBcIjWv6.mjs
9582
+ //#region ../twenty-shared/dist/types-BPwZbSNY.mjs
9583
9583
  var Bf = {
9584
9584
  UUID: "uuid",
9585
9585
  NOW: "now"
@@ -9615,9 +9615,9 @@ var Vf = /* @__PURE__ */ function(e) {
9615
9615
  ], $f = /* @__PURE__ */ function(e) {
9616
9616
  return e.GRID = "GRID", e.VERTICAL_LIST = "VERTICAL_LIST", e.CANVAS = "CANVAS", e;
9617
9617
  }({}), ep = /* @__PURE__ */ function(e) {
9618
- return e.RECORD_INDEX = "RECORD_INDEX", e.RECORD_PAGE = "RECORD_PAGE", e.DASHBOARD = "DASHBOARD", e.STANDALONE_PAGE = "STANDALONE_PAGE", e;
9618
+ return e.RECORD_INDEX = "RECORD_INDEX", e.RECORD_PAGE = "RECORD_PAGE", e.DASHBOARD = "DASHBOARD", e.STANDALONE_PAGE = "STANDALONE_PAGE", e.RECORD_FORM = "RECORD_FORM", e;
9619
9619
  }({}), tp = /* @__PURE__ */ function(e) {
9620
- return e.VIEW = "VIEW", e.IFRAME = "IFRAME", e.FIELD = "FIELD", e.FIELDS = "FIELDS", e.GRAPH = "GRAPH", e.STANDALONE_RICH_TEXT = "STANDALONE_RICH_TEXT", e.TIMELINE = "TIMELINE", e.TASKS = "TASKS", e.NOTES = "NOTES", e.FILES = "FILES", e.EMAILS = "EMAILS", e.CALENDAR = "CALENDAR", e.FIELD_RICH_TEXT = "FIELD_RICH_TEXT", e.WORKFLOW = "WORKFLOW", e.WORKFLOW_VERSION = "WORKFLOW_VERSION", e.WORKFLOW_RUN = "WORKFLOW_RUN", e.FRONT_COMPONENT = "FRONT_COMPONENT", e.RECORD_TABLE = "RECORD_TABLE", e.EMAIL_THREAD = "EMAIL_THREAD", e.CALL_RECORDING_SUMMARY = "CALL_RECORDING_SUMMARY", e.CALL_RECORDING_TRANSCRIPT = "CALL_RECORDING_TRANSCRIPT", e.MESSAGE_CAMPAIGN_BODY = "MESSAGE_CAMPAIGN_BODY", e.MESSAGE_CAMPAIGN_DETAILS = "MESSAGE_CAMPAIGN_DETAILS", e;
9620
+ return e.VIEW = "VIEW", e.IFRAME = "IFRAME", e.FIELD = "FIELD", e.FIELDS = "FIELDS", e.GRAPH = "GRAPH", e.STANDALONE_RICH_TEXT = "STANDALONE_RICH_TEXT", e.TIMELINE = "TIMELINE", e.TASKS = "TASKS", e.NOTES = "NOTES", e.FILES = "FILES", e.EMAILS = "EMAILS", e.CALENDAR = "CALENDAR", e.FIELD_RICH_TEXT = "FIELD_RICH_TEXT", e.WORKFLOW = "WORKFLOW", e.WORKFLOW_VERSION = "WORKFLOW_VERSION", e.WORKFLOW_RUN = "WORKFLOW_RUN", e.FRONT_COMPONENT = "FRONT_COMPONENT", e.RECORD_TABLE = "RECORD_TABLE", e.EMAIL_THREAD = "EMAIL_THREAD", e.CALL_RECORDING_SUMMARY = "CALL_RECORDING_SUMMARY", e.CALL_RECORDING_TRANSCRIPT = "CALL_RECORDING_TRANSCRIPT", e.MESSAGE_CAMPAIGN_BODY = "MESSAGE_CAMPAIGN_BODY", e.MESSAGE_CAMPAIGN_DETAILS = "MESSAGE_CAMPAIGN_DETAILS", e.FORM_FIELD = "FORM_FIELD", e;
9621
9621
  }({}), np = /* @__PURE__ */ function(e) {
9622
9622
  return e.AND = "AND", e.OR = "OR", e;
9623
9623
  }({}), rp = /* @__PURE__ */ function(e) {
@@ -9685,7 +9685,7 @@ var Vf = /* @__PURE__ */ function(e) {
9685
9685
  entityNamespace: "view",
9686
9686
  value: `${t}:${n}`,
9687
9687
  applicationUniversalIdentifier: e
9688
- }), Dp = [
9688
+ }), Dp = ["MONTH"], Op = (e) => Dp.includes(e), kp = ["WORKSPACE_MEMBER"], Ap = (e) => kp.includes(e), jp = 1e8, Mp = [
9689
9689
  "Communication",
9690
9690
  "Productivity",
9691
9691
  "Product management",
@@ -9695,32 +9695,40 @@ var Vf = /* @__PURE__ */ function(e) {
9695
9695
  "Data",
9696
9696
  "Search",
9697
9697
  "Other"
9698
- ], Op = (e) => Dp.includes(e);
9698
+ ], Np = (e) => Mp.includes(e);
9699
9699
  Q.TEXT, Q.ARRAY, Q.BOOLEAN, Q.DATE, Q.DATE_TIME, Q.NUMBER, Q.NUMERIC, Q.RAW_JSON, Q.RICH_TEXT, Q.SELECT, Q.MULTI_SELECT;
9700
9700
  //#endregion
9701
9701
  //#region ../twenty-shared/dist/application.mjs
9702
- var kp = "public", Ap = "front-component-shared-dependencies.mjs", jp = "twenty:front-component-shared-dependencies", Mp = { js: "import { createRequire as __createRequire } from 'module';\nconst require = __createRequire(import.meta.url);" }, Np = ".twenty/output", Pp = /* @__PURE__ */ function(e) {
9702
+ var Pp = "public", Fp = "front-component-shared-dependencies.mjs", Ip = "twenty:front-component-shared-dependencies", Lp = { js: "import { createRequire as __createRequire } from 'module';\nconst require = __createRequire(import.meta.url);" }, Rp = ".twenty/output", zp = /* @__PURE__ */ function(e) {
9703
9703
  return e.Object = "object", e.Field = "field", e.LogicFunction = "logicFunction", e.FrontComponent = "frontComponent", e.Role = "role", e.Skill = "skill", e.Agent = "agent", e.ConnectionProvider = "connectionProvider", e.View = "view", e.ViewField = "viewField", e.NavigationMenuItem = "navigationMenuItem", e.PageLayout = "pageLayout", e.PageLayoutTab = "pageLayoutTab", e.CommandMenuItem = "commandMenuItem", e.TimelineActivityType = "timelineActivityType", e;
9704
- }({}), Fp = (e) => `__shared_dependencies_${e.replace(/[^A-Za-z0-9]/g, "_")}__`, Ip = ({ specifier: e, exportNames: t }) => {
9705
- let n = Fp(e), r = [`import { ${n} } from ${JSON.stringify(jp)};`];
9704
+ }({}), Bp = [
9705
+ "AI_CHAT_TOKEN",
9706
+ "AI_WORKFLOW_TOKEN",
9707
+ "WORKFLOW_EXECUTION",
9708
+ "CODE_EXECUTION",
9709
+ "WEB_SEARCH",
9710
+ "CALL_RECORDING",
9711
+ "EMAIL_SEND"
9712
+ ], Vp = (e) => Bp.includes(e), Hp = (e) => `__shared_dependencies_${e.replace(/[^A-Za-z0-9]/g, "_")}__`, Up = ({ specifier: e, exportNames: t }) => {
9713
+ let n = Hp(e), r = [`import { ${n} } from ${JSON.stringify(Ip)};`];
9706
9714
  for (let [e, i] of t.namedExports.entries()) r.push(`const __sharedDependenciesExport${e} = ${n}[${JSON.stringify(i)}];`, `export { __sharedDependenciesExport${e} as ${JSON.stringify(i)} };`);
9707
9715
  return t.hasDefaultExport && r.push(`export default ${n}.default;`), r.join("\n");
9708
- }, Lp = "twenty-shared-dependencies-shim", Rp = (e) => ({
9716
+ }, Wp = "twenty-shared-dependencies-shim", Gp = (e) => ({
9709
9717
  name: "twenty-shared-dependencies-shim",
9710
9718
  setup: (t) => {
9711
9719
  t.onResolve({ filter: /.*/ }, ({ path: t }) => {
9712
9720
  let n = e();
9713
9721
  if (se(n) && n.exportNamesBySpecifier.has(t)) return {
9714
9722
  path: t,
9715
- namespace: Lp
9723
+ namespace: Wp
9716
9724
  };
9717
9725
  }), t.onLoad({
9718
9726
  filter: /.*/,
9719
- namespace: Lp
9727
+ namespace: Wp
9720
9728
  }, ({ path: t }) => {
9721
9729
  let n = e()?.exportNamesBySpecifier.get(t);
9722
9730
  if (se(n)) return {
9723
- contents: Ip({
9731
+ contents: Up({
9724
9732
  specifier: t,
9725
9733
  exportNames: n
9726
9734
  }),
@@ -9728,19 +9736,19 @@ var kp = "public", Ap = "front-component-shared-dependencies.mjs", jp = "twenty:
9728
9736
  };
9729
9737
  });
9730
9738
  }
9731
- }), zp = (e) => `if (typeof document !== 'undefined') {
9739
+ }), Kp = (e) => `if (typeof document !== 'undefined') {
9732
9740
  const styleElement = document.createElement('style');
9733
9741
  document.head.appendChild(styleElement);
9734
9742
  styleElement.textContent = ${JSON.stringify(e)};
9735
- }`, Bp = {
9743
+ }`, qp = {
9736
9744
  name: "css-injection",
9737
9745
  setup: (e) => {
9738
9746
  e.onLoad({ filter: /\.css$/ }, async ({ path: e }) => ({
9739
- contents: zp(await a(e, "utf8")),
9747
+ contents: Kp(await a(e, "utf8")),
9740
9748
  loader: "js"
9741
9749
  }));
9742
9750
  }
9743
- }, Vp = "export var customElementMap = globalThis.__HTML_TAG_TO_CUSTOM_ELEMENT_TAG__ || {};\n\nvar _injectedStyleKeys = {};\n\nexport function injectStyleViaHead(cssText) {\n if (!cssText) return;\n var hash = 0;\n for (var i = 0; i < cssText.length; i++) {\n hash = ((hash << 5) - hash + cssText.charCodeAt(i)) | 0;\n }\n var key = 'jsx-style-' + hash;\n if (_injectedStyleKeys[key]) return;\n _injectedStyleKeys[key] = true;\n var el = document.createElement('style');\n el.setAttribute('data-jsx-style', key);\n el.textContent = cssText;\n document.head.appendChild(el);\n}\n\nexport function extractCssText(children) {\n if (typeof children === 'string') return children;\n if (Array.isArray(children))\n return children\n .filter(function (c) { return typeof c === 'string'; })\n .join('');\n return '';\n}\n\nvar _reactToDomEvent = {\n ondoubleclick: 'ondblclick',\n};\n\nfunction _isEventProp(name) {\n return (\n name.length > 2 &&\n name.charCodeAt(0) === 111 &&\n name.charCodeAt(1) === 110 &&\n name.charCodeAt(2) >= 65 &&\n name.charCodeAt(2) <= 90\n );\n}\n\nexport function splitEventProps(props) {\n if (!props) return { cleanProps: props, events: null };\n var events = null;\n var cleanProps = null;\n for (var k in props) {\n if (_isEventProp(k) && typeof props[k] === 'function') {\n if (!events) {\n events = {};\n cleanProps = {};\n for (var j in props) {\n if (j === k) break;\n cleanProps[j] = props[j];\n }\n }\n events[k] = props[k];\n } else if (events) {\n cleanProps[k] = props[k];\n }\n }\n return { cleanProps: cleanProps || props, events: events };\n}\n\nexport function makeEventRef(events, userRef) {\n return function(el) {\n if (el) {\n for (var name in events) {\n var domName = _reactToDomEvent[name.toLowerCase()] || name.toLowerCase();\n el[domName] = events[name];\n }\n }\n if (typeof userRef === 'function') userRef(el);\n else if (userRef != null && typeof userRef === 'object') userRef.current = el;\n };\n}", Hp = "import {\n jsx as _originalJsx,\n jsxs as _originalJsxs,\n Fragment,\n} from '__real_react_jsx_runtime__';\n\nimport {\n customElementMap,\n injectStyleViaHead,\n extractCssText,\n splitEventProps,\n makeEventRef,\n} from '__jsx_shared_helpers__';\n\nfunction _wrapJsxFactory(originalFactory) {\n return function wrappedJsx(type, props, key) {\n if (typeof type === 'string') {\n if (type === 'style') {\n var css =\n props && props.dangerouslySetInnerHTML\n ? props.dangerouslySetInnerHTML.__html || ''\n : extractCssText(props && props.children);\n injectStyleViaHead(css);\n return null;\n }\n\n var customTag = customElementMap[type];\n if (customTag) {\n var split = splitEventProps(props);\n if (split.events) {\n var cp = split.cleanProps;\n cp.ref = makeEventRef(split.events, cp.ref);\n return originalFactory(customTag, cp, key);\n }\n return originalFactory(customTag, props, key);\n }\n }\n return originalFactory(type, props, key);\n };\n}\n\nexport var jsx = _wrapJsxFactory(_originalJsx);\nexport var jsxs = _wrapJsxFactory(_originalJsxs);\nexport { Fragment };", Up = "export * from '__real_react__';\nimport _React from '__real_react__';\n\nimport {\n customElementMap,\n injectStyleViaHead,\n extractCssText,\n splitEventProps,\n makeEventRef,\n} from '__jsx_shared_helpers__';\n\nvar _originalCreateElement = _React.createElement;\n\nfunction createElement(type) {\n var args = arguments;\n if (typeof type === 'string') {\n if (type === 'style') {\n var props = args.length > 1 ? args[1] : null;\n if (props) {\n var css = props.dangerouslySetInnerHTML\n ? props.dangerouslySetInnerHTML.__html || ''\n : extractCssText(props.children);\n injectStyleViaHead(css);\n }\n return null;\n }\n\n var customTag = customElementMap[type];\n if (customTag) {\n var ceProps = args.length > 1 ? args[1] : null;\n var split = splitEventProps(ceProps);\n if (split.events) {\n var cp = split.cleanProps || {};\n cp.ref = makeEventRef(split.events, cp.ref);\n var newArgs = [customTag, cp];\n for (var i = 2; i < args.length; i++) newArgs.push(args[i]);\n return _originalCreateElement.apply(null, newArgs);\n }\n var newArgs2 = [customTag];\n for (var i2 = 1; i2 < args.length; i2++) newArgs2.push(args[i2]);\n return _originalCreateElement.apply(null, newArgs2);\n }\n }\n return _originalCreateElement.apply(null, args);\n}\n\nexport { createElement };\nexport default Object.assign({}, _React, { createElement: createElement });", Wp = (e) => {
9751
+ }, Jp = "export var customElementMap = globalThis.__HTML_TAG_TO_CUSTOM_ELEMENT_TAG__ || {};\n\nvar _injectedStyleKeys = {};\n\nexport function injectStyleViaHead(cssText) {\n if (!cssText) return;\n var hash = 0;\n for (var i = 0; i < cssText.length; i++) {\n hash = ((hash << 5) - hash + cssText.charCodeAt(i)) | 0;\n }\n var key = 'jsx-style-' + hash;\n if (_injectedStyleKeys[key]) return;\n _injectedStyleKeys[key] = true;\n var el = document.createElement('style');\n el.setAttribute('data-jsx-style', key);\n el.textContent = cssText;\n document.head.appendChild(el);\n}\n\nexport function extractCssText(children) {\n if (typeof children === 'string') return children;\n if (Array.isArray(children))\n return children\n .filter(function (c) { return typeof c === 'string'; })\n .join('');\n return '';\n}\n\nvar _reactToDomEvent = {\n ondoubleclick: 'ondblclick',\n};\n\nfunction _isEventProp(name) {\n return (\n name.length > 2 &&\n name.charCodeAt(0) === 111 &&\n name.charCodeAt(1) === 110 &&\n name.charCodeAt(2) >= 65 &&\n name.charCodeAt(2) <= 90\n );\n}\n\nexport function splitEventProps(props) {\n if (!props) return { cleanProps: props, events: null };\n var events = null;\n var cleanProps = null;\n for (var k in props) {\n if (_isEventProp(k) && typeof props[k] === 'function') {\n if (!events) {\n events = {};\n cleanProps = {};\n for (var j in props) {\n if (j === k) break;\n cleanProps[j] = props[j];\n }\n }\n events[k] = props[k];\n } else if (events) {\n cleanProps[k] = props[k];\n }\n }\n return { cleanProps: cleanProps || props, events: events };\n}\n\nexport function makeEventRef(events, userRef) {\n return function(el) {\n if (el) {\n for (var name in events) {\n var domName = _reactToDomEvent[name.toLowerCase()] || name.toLowerCase();\n el[domName] = events[name];\n }\n }\n if (typeof userRef === 'function') userRef(el);\n else if (userRef != null && typeof userRef === 'object') userRef.current = el;\n };\n}", Yp = "import {\n jsx as _originalJsx,\n jsxs as _originalJsxs,\n Fragment,\n} from '__real_react_jsx_runtime__';\n\nimport {\n customElementMap,\n injectStyleViaHead,\n extractCssText,\n splitEventProps,\n makeEventRef,\n} from '__jsx_shared_helpers__';\n\nfunction _wrapJsxFactory(originalFactory) {\n return function wrappedJsx(type, props, key) {\n if (typeof type === 'string') {\n if (type === 'style') {\n var css =\n props && props.dangerouslySetInnerHTML\n ? props.dangerouslySetInnerHTML.__html || ''\n : extractCssText(props && props.children);\n injectStyleViaHead(css);\n return null;\n }\n\n var customTag = customElementMap[type];\n if (customTag) {\n var split = splitEventProps(props);\n if (split.events) {\n var cp = split.cleanProps;\n cp.ref = makeEventRef(split.events, cp.ref);\n return originalFactory(customTag, cp, key);\n }\n return originalFactory(customTag, props, key);\n }\n }\n return originalFactory(type, props, key);\n };\n}\n\nexport var jsx = _wrapJsxFactory(_originalJsx);\nexport var jsxs = _wrapJsxFactory(_originalJsxs);\nexport { Fragment };", Xp = "export * from '__real_react__';\nimport _React from '__real_react__';\n\nimport {\n customElementMap,\n injectStyleViaHead,\n extractCssText,\n splitEventProps,\n makeEventRef,\n} from '__jsx_shared_helpers__';\n\nvar _originalCreateElement = _React.createElement;\n\nfunction createElement(type) {\n var args = arguments;\n if (typeof type === 'string') {\n if (type === 'style') {\n var props = args.length > 1 ? args[1] : null;\n if (props) {\n var css = props.dangerouslySetInnerHTML\n ? props.dangerouslySetInnerHTML.__html || ''\n : extractCssText(props.children);\n injectStyleViaHead(css);\n }\n return null;\n }\n\n var customTag = customElementMap[type];\n if (customTag) {\n var ceProps = args.length > 1 ? args[1] : null;\n var split = splitEventProps(ceProps);\n if (split.events) {\n var cp = split.cleanProps || {};\n cp.ref = makeEventRef(split.events, cp.ref);\n var newArgs = [customTag, cp];\n for (var i = 2; i < args.length; i++) newArgs.push(args[i]);\n return _originalCreateElement.apply(null, newArgs);\n }\n var newArgs2 = [customTag];\n for (var i2 = 1; i2 < args.length; i2++) newArgs2.push(args[i2]);\n return _originalCreateElement.apply(null, newArgs2);\n }\n }\n return _originalCreateElement.apply(null, args);\n}\n\nexport { createElement };\nexport default Object.assign({}, _React, { createElement: createElement });", Zp = (e) => {
9744
9752
  let t = e?.usePreact ?? !1, n = t ? "preact/jsx-runtime" : "react/jsx-runtime", r = t ? "preact/compat" : "react";
9745
9753
  return {
9746
9754
  name: "jsx-runtime-remote-wrapper",
@@ -9753,7 +9761,7 @@ var kp = "public", Ap = "front-component-shared-dependencies.mjs", jp = "twenty:
9753
9761
  filter: /.*/,
9754
9762
  namespace: "jsx-shared-helpers"
9755
9763
  }, () => ({
9756
- contents: Vp,
9764
+ contents: Jp,
9757
9765
  loader: "js"
9758
9766
  })), e.onResolve({ filter: /^react\/jsx-runtime$/ }, async (r) => {
9759
9767
  if (!r.pluginData?.skipJsxWrapper) return t ||= (await e.resolve(n, {
@@ -9771,7 +9779,7 @@ var kp = "public", Ap = "front-component-shared-dependencies.mjs", jp = "twenty:
9771
9779
  filter: /.*/,
9772
9780
  namespace: "jsx-runtime-wrapper"
9773
9781
  }, () => ({
9774
- contents: Hp,
9782
+ contents: Yp,
9775
9783
  loader: "js"
9776
9784
  })), e.onResolve({ filter: /^react$/ }, async (t) => {
9777
9785
  if (!t.pluginData?.skipJsxWrapper) return i ||= (await e.resolve(r, {
@@ -9789,28 +9797,28 @@ var kp = "public", Ap = "front-component-shared-dependencies.mjs", jp = "twenty:
9789
9797
  filter: /.*/,
9790
9798
  namespace: "react-wrapper"
9791
9799
  }, () => ({
9792
- contents: Up,
9800
+ contents: Xp,
9793
9801
  loader: "js"
9794
9802
  }));
9795
9803
  }
9796
9804
  };
9797
- }, Gp = /import\s*\{\s*define(?:Settings)?FrontComponent\s*\}\s*from\s*['"][^'"]+['"];?\n?/g, Kp = /export\s+default\s+define(?:Settings)?FrontComponent\s*\(/, qp = /component\s*:\s*([A-Za-z_$][\w$]*)\s*[,}]/, Jp = "__frontComponentDefinition", Yp = (e) => {
9798
- let t = e.replace(Gp, "");
9799
- if (!Kp.test(t)) return t;
9800
- t = t.replace(Kp, `const ${Jp} = (`);
9801
- let n = t.match(qp);
9805
+ }, Qp = /import\s*\{\s*define(?:Settings)?FrontComponent\s*\}\s*from\s*['"][^'"]+['"];?\n?/g, $p = /export\s+default\s+define(?:Settings)?FrontComponent\s*\(/, em = /component\s*:\s*([A-Za-z_$][\w$]*)\s*[,}]/, tm = "__frontComponentDefinition", nm = (e) => {
9806
+ let t = e.replace(Qp, "");
9807
+ if (!$p.test(t)) return t;
9808
+ t = t.replace($p, `const ${tm} = (`);
9809
+ let n = t.match(em);
9802
9810
  if (n) {
9803
9811
  let e = n[1];
9804
9812
  t = t.replace(RegExp(`export\\s+(const|function)\\s+${e}\\b`), `$1 ${e}`);
9805
9813
  }
9806
- return "import { createRoot as __createRoot } from 'react-dom/client';\nimport { jsx as __frontComponentJsx } from 'react/jsx-runtime';\n" + t + `\nexport default function __renderFrontComponent(__container) { __createRoot(__container).render(__frontComponentJsx(${Jp}.component, {})); }\n`;
9807
- }, Xp = {
9814
+ return "import { createRoot as __createRoot } from 'react-dom/client';\nimport { jsx as __frontComponentJsx } from 'react/jsx-runtime';\n" + t + `\nexport default function __renderFrontComponent(__container) { __createRoot(__container).render(__frontComponentJsx(${tm}.component, {})); }\n`;
9815
+ }, rm = {
9808
9816
  name: "jsx-transform-to-remote-dom-worker-format-plugin",
9809
9817
  setup: (e) => {
9810
9818
  e.onLoad({ filter: /\.tsx$/ }, async ({ path: e }) => {
9811
9819
  try {
9812
9820
  return {
9813
- contents: Yp(await a(e, "utf8")),
9821
+ contents: nm(await a(e, "utf8")),
9814
9822
  loader: "tsx"
9815
9823
  };
9816
9824
  } catch (t) {
@@ -9821,7 +9829,7 @@ var kp = "public", Ap = "front-component-shared-dependencies.mjs", jp = "twenty:
9821
9829
  }
9822
9830
  });
9823
9831
  }
9824
- }, Zp = () => ({
9832
+ }, im = () => ({
9825
9833
  name: "preact-alias",
9826
9834
  setup: (e) => {
9827
9835
  let t;
@@ -9833,25 +9841,25 @@ var kp = "public", Ap = "front-component-shared-dependencies.mjs", jp = "twenty:
9833
9841
  resolveDir: t.resolveDir
9834
9842
  })).path }));
9835
9843
  }
9836
- }), Qp = /^\/\/.*$\n/gm, $p = {
9844
+ }), am = /^\/\/.*$\n/gm, om = {
9837
9845
  name: "strip-comments",
9838
9846
  setup: (e) => {
9839
9847
  e.onEnd(async (e) => {
9840
9848
  if (e.errors.length > 0) return;
9841
9849
  let t = Object.keys(e.metafile?.outputs ?? {}).filter((e) => e.endsWith(".mjs"));
9842
9850
  for (let e of t) {
9843
- let t = i.resolve(e), n = await a(t, "utf-8"), r = n.replace(Qp, "");
9851
+ let t = i.resolve(e), n = await a(t, "utf-8"), r = n.replace(am, "");
9844
9852
  r !== n && await o(t, r, "utf-8");
9845
9853
  }
9846
9854
  });
9847
9855
  }
9848
- }, em = (e) => [
9849
- ...se(e?.getSharedDependenciesBuildContext) ? [Rp(e.getSharedDependenciesBuildContext)] : [],
9850
- Wp(e?.usePreact ? { usePreact: !0 } : void 0),
9851
- ...e?.usePreact ? [Zp()] : [],
9852
- Xp,
9853
- Bp,
9854
- $p
9856
+ }, sm = (e) => [
9857
+ ...se(e?.getSharedDependenciesBuildContext) ? [Gp(e.getSharedDependenciesBuildContext)] : [],
9858
+ Zp(e?.usePreact ? { usePreact: !0 } : void 0),
9859
+ ...e?.usePreact ? [im()] : [],
9860
+ rm,
9861
+ qp,
9862
+ om
9855
9863
  ];
9856
9864
  //#endregion
9857
- export { op as $, Vf as A, Zf as B, fp as C, re as Ct, Uf as D, pp as E, ae as Et, Gf as F, Xf as G, tp as H, np as I, jf as J, $f as K, ap as L, dp as M, hp as N, mp as O, qf as P, rp as Q, Yf as R, sp as S, se as St, Hf as T, oe as Tt, ep as U, Of as V, cp as W, Q as X, Qf as Y, Jf as Z, yp as _, q as _t, Mp as a, Wu as at, Cp as b, $t as bt, Op as c, Cl as ct, xp as d, hd as dt, ip as et, wp as f, Yu as ft, gp as g, ad as gt, Sp as h, of as ht, Np as i, fd as it, up as j, lp as k, Dp as l, gu as lt, _p as m, qu as mt, Fp as n, vf as nt, kp as o, Su as ot, Tp as p, hu as pt, kf as q, Ap as r, pf as rt, Pp as s, $u as st, em as t, Wf as tt, jp as u, Kd as ut, Ep as v, Zu as vt, Kf as w, m as wt, Bf as x, ce as xt, bp as y, El as yt, Af as z };
9865
+ export { jf as $, up as A, re as At, pp as B, gp as C, ad as Ct, Cp as D, $t as Dt, bp as E, El as Et, sp as F, ep as G, Gf as H, cp as I, Af as J, rp as K, Vf as L, dp as M, oe as Mt, Hf as N, ae as Nt, hp as O, ce as Ot, fp as P, Jf as Q, lp as R, Sp as S, of as St, Ep as T, Zu as Tt, Wf as U, ap as V, Kf as W, Qf as X, $f as Y, Bf as Z, Mp as _, Kd as _t, Pp as a, tp as at, Tp as b, hu as bt, Np as c, mp as ct, zp as d, fd as dt, kf as et, jp as f, Wu as ft, Vp as g, gu as gt, kp as h, Cl as ht, Ip as i, Yf as it, qf as j, m as jt, op as k, se as kt, Dp as l, vf as lt, Ap as m, $u as mt, Hp as n, Q as nt, Lp as o, ip as ot, Fp as p, Su as pt, Xf as q, Bp as r, Of as rt, Rp as s, np as st, sm as t, Zf as tt, Op as u, pf as ut, xp as v, hd as vt, yp as w, q as wt, _p as x, qu as xt, wp as y, Yu as yt, Uf as z };