twenty-sdk 2.2.0 → 2.3.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 (39) hide show
  1. package/README.md +3 -3
  2. package/dist/billing/index.cjs.map +1 -1
  3. package/dist/billing/index.mjs +9 -9
  4. package/dist/billing/index.mjs.map +1 -1
  5. package/dist/cli/commands/add.d.ts +1 -0
  6. package/dist/cli/operations/deploy.d.ts +2 -0
  7. package/dist/cli/types.d.ts +1 -0
  8. package/dist/cli/utilities/build/manifest/manifest-extract-config.d.ts +6 -2
  9. package/dist/cli/utilities/entity/entity-command-menu-item-template.d.ts +3 -0
  10. package/dist/cli/utilities/entity/entity-connection-provider-template.d.ts +4 -0
  11. package/dist/cli/utilities/file/append-server-variables.util.d.ts +22 -0
  12. package/dist/cli/utilities/server/docker-container.d.ts +1 -0
  13. package/dist/cli.cjs +125 -83
  14. package/dist/cli.mjs +3150 -2979
  15. package/dist/define/index.cjs +12 -12
  16. package/dist/define/index.cjs.map +1 -1
  17. package/dist/define/index.d.ts +72 -20
  18. package/dist/define/index.mjs +889 -888
  19. package/dist/define/index.mjs.map +1 -1
  20. package/dist/front-component/index.cjs +13 -13
  21. package/dist/front-component/index.cjs.map +1 -1
  22. package/dist/front-component/index.d.ts +12 -1
  23. package/dist/front-component/index.mjs +866 -896
  24. package/dist/front-component/index.mjs.map +1 -1
  25. package/dist/{get-function-input-schema-BZ7_XyUh-DI4AlRRA.js → get-function-input-schema-BZ7_XyUh-BXB2AcBE.js} +1 -1
  26. package/dist/{get-function-input-schema-BZ7_XyUh-YHOkHl_i.mjs → get-function-input-schema-BZ7_XyUh-PnCntsct.mjs} +1 -1
  27. package/dist/logic-function/index.cjs +1 -1
  28. package/dist/logic-function/index.cjs.map +1 -1
  29. package/dist/logic-function/index.d.ts +90 -6
  30. package/dist/logic-function/index.mjs +52 -1
  31. package/dist/logic-function/index.mjs.map +1 -1
  32. package/dist/operations.cjs +1 -1
  33. package/dist/operations.mjs +2 -2
  34. package/dist/ui/index.cjs +15 -2233
  35. package/dist/ui/index.mjs +246 -3350
  36. package/dist/uninstall-BiLmSWhb.js +253 -0
  37. package/dist/{uninstall-DXr3k3Da.mjs → uninstall-DAf2XiS3.mjs} +1825 -1715
  38. package/package.json +2 -2
  39. package/dist/uninstall-D3my_KZK.js +0 -250
@@ -259,15 +259,26 @@ declare const updateProgress: UpdateProgressFunction;
259
259
  type FrontComponentExecutionContext = {
260
260
  frontComponentId: string;
261
261
  userId: string | null;
262
+ /**
263
+ * @deprecated Use `selectedRecordIds` instead. Derive single record as `selectedRecordIds.length === 1 ? selectedRecordIds[0] : null`.
264
+ */
262
265
  recordId: string | null;
266
+ /** All selected record IDs */
267
+ selectedRecordIds: string[];
263
268
  };
264
269
 
265
270
  declare const useFrontComponentExecutionContext: <T>(selector: (context: FrontComponentExecutionContext) => T) => T;
266
271
 
267
272
  declare const useFrontComponentId: () => string;
268
273
 
274
+ /**
275
+ * @deprecated Use `useSelectedRecordIds()` instead. For single-record operations,
276
+ * use `selectedRecordIds.length === 1 ? selectedRecordIds[0] : null`.
277
+ */
269
278
  declare const useRecordId: () => string | null;
270
279
 
280
+ declare const useSelectedRecordIds: () => string[];
281
+
271
282
  declare const useUserId: () => string | null;
272
283
 
273
284
  declare const getFrontComponentCommandErrorDedupeKey: (frontComponentId: string) => string;
@@ -303,5 +314,5 @@ type CommandModalProps = {
303
314
  };
304
315
  declare const CommandModal: ({ title, subtitle, execute, confirmButtonText, confirmButtonAccent, }: CommandModalProps) => null;
305
316
 
306
- export { AppPath, Command, CommandLink, CommandModal, CommandOpenSidePanelPage, SidePanelPages, closeSidePanel, enqueueSnackbar, every, everyDefined, everyEquals, favoriteRecordIds, featureFlags, getFrontComponentCommandErrorDedupeKey, hasAnySoftDeleteFilterOnView, includes, includesEvery, isDashboardPageLayoutInEditMode, isDefined, isInSidePanel, isLayoutCustomizationModeEnabled, isNonEmptyString, isSelectAll, navigate, none, noneDefined, noneEquals, numberOfSelectedRecords, objectMetadataItem, objectPermissions, openCommandConfirmationModal, openSidePanelPage, pageType, selectedRecords, some, someDefined, someEquals, someNonEmptyString, targetObjectReadPermissions, targetObjectWritePermissions, unmountFrontComponent, updateProgress, useFrontComponentExecutionContext, useFrontComponentId, useRecordId, useUserId };
317
+ export { AppPath, Command, CommandLink, CommandModal, CommandOpenSidePanelPage, SidePanelPages, closeSidePanel, enqueueSnackbar, every, everyDefined, everyEquals, favoriteRecordIds, featureFlags, getFrontComponentCommandErrorDedupeKey, hasAnySoftDeleteFilterOnView, includes, includesEvery, isDashboardPageLayoutInEditMode, isDefined, isInSidePanel, isLayoutCustomizationModeEnabled, isNonEmptyString, isSelectAll, navigate, none, noneDefined, noneEquals, numberOfSelectedRecords, objectMetadataItem, objectPermissions, openCommandConfirmationModal, openSidePanelPage, pageType, selectedRecords, some, someDefined, someEquals, someNonEmptyString, targetObjectReadPermissions, targetObjectWritePermissions, unmountFrontComponent, updateProgress, useFrontComponentExecutionContext, useFrontComponentId, useRecordId, useSelectedRecordIds, useUserId };
307
318
  export type { CloseSidePanelFunction, CommandConfirmationModalAccent, CommandConfirmationModalResult, CommandLinkProps, CommandModalProps, CommandOpenSidePanelPageProps, CommandProps, EnqueueSnackbarFunction, EnqueueSnackbarParams, FrontComponentExecutionContext, NavigateFunction, OpenCommandConfirmationModalFunction, OpenCommandConfirmationModalHostFunction, OpenSidePanelPageFunction, RequestAccessTokenRefreshFunction, SnackBarVariant, UnmountFrontComponentFunction, UpdateProgressFunction };