twenty-sdk 2.13.0 → 2.14.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 (29) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/{AllIcons-BwIoyggb-DpmEuQAR.mjs → AllIcons-BwIoyggb-BCMFgulw.mjs} +1 -1
  3. package/dist/{AllIcons-BwIoyggb-Ck9DmOFs.js → AllIcons-BwIoyggb-Pq3paugc.js} +1 -1
  4. package/dist/{catalog-sync-BfaTQFam.mjs → catalog-sync-CXDxoJ8O.mjs} +1 -1
  5. package/dist/{catalog-sync-MvJJHh7v.js → catalog-sync-sANH0f3Y.js} +1 -1
  6. package/dist/cli.cjs +3 -3
  7. package/dist/cli.mjs +4 -4
  8. package/dist/define/index.cjs +2 -2
  9. package/dist/define/index.cjs.map +1 -1
  10. package/dist/define/index.d.ts +9 -3
  11. package/dist/define/index.mjs +133 -140
  12. package/dist/define/index.mjs.map +1 -1
  13. package/dist/{display-Co0K-nTB-CPdyKmin.js → display-Co0K-nTB-CGtaWbMi.js} +15 -15
  14. package/dist/{display-Co0K-nTB-DIalVNdw.mjs → display-Co0K-nTB-DAirZFT6.mjs} +3776 -3796
  15. package/dist/front-component/index.cjs +1 -1
  16. package/dist/front-component/index.cjs.map +1 -1
  17. package/dist/front-component/index.d.ts +5 -1
  18. package/dist/front-component/index.mjs +5 -5
  19. package/dist/front-component/index.mjs.map +1 -1
  20. package/dist/front-component-renderer.cjs +1 -1
  21. package/dist/{get-function-input-schema-NI9y_bIk-LH_O2OgF.mjs → get-function-input-schema-NI9y_bIk-Cdh2RIb9.mjs} +1 -1
  22. package/dist/{get-function-input-schema-NI9y_bIk-BZ2G7LIj.js → get-function-input-schema-NI9y_bIk-CqUY25sG.js} +1 -1
  23. package/dist/{login-oauth-DN2eTP67.js → login-oauth-0T8eWvyh.js} +10 -10
  24. package/dist/{login-oauth-BMTHndmD.mjs → login-oauth-BRpqOH2x.mjs} +393 -395
  25. package/dist/operations.cjs +1 -1
  26. package/dist/operations.mjs +1 -1
  27. package/dist/ui/index.cjs +1 -1
  28. package/dist/ui/index.mjs +1 -1
  29. package/package.json +2 -2
@@ -133,6 +133,8 @@ declare const unmountFrontComponent: UnmountFrontComponentFunction;
133
133
 
134
134
  declare const updateProgress: UpdateProgressFunction;
135
135
 
136
+ declare const useColorScheme: () => "light" | "dark";
137
+
136
138
  type FrontComponentExecutionContext = {
137
139
  frontComponentId: string;
138
140
  userId: string | null;
@@ -142,6 +144,8 @@ type FrontComponentExecutionContext = {
142
144
  recordId: string | null;
143
145
  /** All selected record IDs */
144
146
  selectedRecordIds: string[];
147
+ /** Resolved color scheme of the host UI ('System' is already resolved) */
148
+ colorScheme: 'light' | 'dark';
145
149
  };
146
150
 
147
151
  declare const useFrontComponentExecutionContext: <T>(selector: (context: FrontComponentExecutionContext) => T) => T;
@@ -191,5 +195,5 @@ type CommandModalProps = {
191
195
  };
192
196
  declare const CommandModal: ({ title, subtitle, execute, confirmButtonText, confirmButtonAccent, }: CommandModalProps) => null;
193
197
 
194
- export { AppPath, Command, CommandLink, CommandModal, CommandOpenSidePanelPage, SidePanelPages, closeSidePanel, copyToClipboard, enqueueSnackbar, getApplicationVariable, getFrontComponentCommandErrorDedupeKey, navigate, openCommandConfirmationModal, openSidePanelPage, unmountFrontComponent, updateProgress, useFrontComponentExecutionContext, useFrontComponentId, useRecordId, useSelectedRecordIds, useUserId };
198
+ export { AppPath, Command, CommandLink, CommandModal, CommandOpenSidePanelPage, SidePanelPages, closeSidePanel, copyToClipboard, enqueueSnackbar, getApplicationVariable, getFrontComponentCommandErrorDedupeKey, navigate, openCommandConfirmationModal, openSidePanelPage, unmountFrontComponent, updateProgress, useColorScheme, useFrontComponentExecutionContext, useFrontComponentId, useRecordId, useSelectedRecordIds, useUserId };
195
199
  export type { CloseSidePanelFunction, CommandConfirmationModalAccent, CommandConfirmationModalResult, CommandLinkProps, CommandModalProps, CommandOpenSidePanelPageProps, CommandProps, CopyToClipboardFunction, EnqueueSnackbarFunction, EnqueueSnackbarParams, FrontComponentExecutionContext, NavigateFunction, OpenCommandConfirmationModalFunction, OpenCommandConfirmationModalHostFunction, OpenSidePanelPageFunction, RequestAccessTokenRefreshFunction, SnackBarVariant, UnmountFrontComponentFunction, UpdateProgressFunction };
@@ -2428,7 +2428,7 @@ var X = globalThis.frontComponentHostCommunicationApi, ea = () => {
2428
2428
  };
2429
2429
  return fa(t), t(), () => pa(t);
2430
2430
  }, [e]), t;
2431
- }, ma = (e) => e.frontComponentId, $ = () => Q(ma), ha = (e) => e.selectedRecordIds.length === 1 ? e.selectedRecordIds[0] : null, ga = () => Q(ha), _a = (e) => e.selectedRecordIds, va = () => Q(_a), ya = (e) => e.userId, ba = () => Q(ya), xa = (e) => `${e}-command-error`, Sa = ({ execute: e }) => {
2431
+ }, ma = (e) => e.colorScheme, ha = () => Q(ma), ga = (e) => e.frontComponentId, $ = () => Q(ga), _a = (e) => e.selectedRecordIds.length === 1 ? e.selectedRecordIds[0] : null, va = () => Q(_a), ya = (e) => e.selectedRecordIds, ba = () => Q(ya), xa = (e) => e.userId, Sa = () => Q(xa), Ca = (e) => `${e}-command-error`, wa = ({ execute: e }) => {
2432
2432
  let [t, n] = a(!1);
2433
2433
  return r(() => {
2434
2434
  t || (n(!0), (async () => {
@@ -2439,7 +2439,7 @@ var X = globalThis.frontComponentHostCommunicationApi, ea = () => {
2439
2439
  t,
2440
2440
  $()
2441
2441
  ]), null;
2442
- }, Ca = ({ to: e, params: t, queryParams: n, options: i }) => {
2442
+ }, Ta = ({ to: e, params: t, queryParams: n, options: i }) => {
2443
2443
  let [o, s] = a(!1);
2444
2444
  return r(() => {
2445
2445
  o || (s(!0), (async () => {
@@ -2453,7 +2453,7 @@ var X = globalThis.frontComponentHostCommunicationApi, ea = () => {
2453
2453
  o,
2454
2454
  $()
2455
2455
  ]), null;
2456
- }, wa = ({ page: e, pageTitle: t, pageIcon: n, onClick: i, shouldResetSearchState: o = !1 }) => {
2456
+ }, Ea = ({ page: e, pageTitle: t, pageIcon: n, onClick: i, shouldResetSearchState: o = !1 }) => {
2457
2457
  let [s, c] = a(!1);
2458
2458
  return r(() => {
2459
2459
  s || (c(!0), (async () => {
@@ -2473,7 +2473,7 @@ var X = globalThis.frontComponentHostCommunicationApi, ea = () => {
2473
2473
  s,
2474
2474
  $()
2475
2475
  ]), null;
2476
- }, Ta = ({ title: e, subtitle: t, execute: n, confirmButtonText: i, confirmButtonAccent: o }) => {
2476
+ }, Da = ({ title: e, subtitle: t, execute: n, confirmButtonText: i, confirmButtonAccent: o }) => {
2477
2477
  let [s, c] = a(!1);
2478
2478
  return r(() => {
2479
2479
  s || (c(!0), (async () => {
@@ -2495,6 +2495,6 @@ var X = globalThis.frontComponentHostCommunicationApi, ea = () => {
2495
2495
  ]), null;
2496
2496
  };
2497
2497
  //#endregion
2498
- export { Hi as AppPath, Sa as Command, Ca as CommandLink, Ta as CommandModal, wa as CommandOpenSidePanelPage, Qi as SidePanelPages, ea as closeSidePanel, ta as copyToClipboard, ra as enqueueSnackbar, na as getApplicationVariable, xa as getFrontComponentCommandErrorDedupeKey, ia as navigate, aa as openCommandConfirmationModal, oa as openSidePanelPage, Z as unmountFrontComponent, sa as updateProgress, Q as useFrontComponentExecutionContext, $ as useFrontComponentId, ga as useRecordId, va as useSelectedRecordIds, ba as useUserId };
2498
+ export { Hi as AppPath, wa as Command, Ta as CommandLink, Da as CommandModal, Ea as CommandOpenSidePanelPage, Qi as SidePanelPages, ea as closeSidePanel, ta as copyToClipboard, ra as enqueueSnackbar, na as getApplicationVariable, Ca as getFrontComponentCommandErrorDedupeKey, ia as navigate, aa as openCommandConfirmationModal, oa as openSidePanelPage, Z as unmountFrontComponent, sa as updateProgress, ha as useColorScheme, Q as useFrontComponentExecutionContext, $ as useFrontComponentId, va as useRecordId, ba as useSelectedRecordIds, Sa as useUserId };
2499
2499
 
2500
2500
  //# sourceMappingURL=index.mjs.map