twenty-sdk 2.1.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 (41) 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/operations/index.d.ts +3 -0
  8. package/dist/cli/operations/server-upgrade.d.ts +12 -0
  9. package/dist/cli/types.d.ts +2 -0
  10. package/dist/cli/utilities/build/manifest/manifest-extract-config.d.ts +6 -2
  11. package/dist/cli/utilities/entity/entity-command-menu-item-template.d.ts +3 -0
  12. package/dist/cli/utilities/entity/entity-connection-provider-template.d.ts +4 -0
  13. package/dist/cli/utilities/file/append-server-variables.util.d.ts +22 -0
  14. package/dist/cli/utilities/server/docker-container.d.ts +5 -0
  15. package/dist/cli.cjs +147 -105
  16. package/dist/cli.mjs +3213 -3023
  17. package/dist/define/index.cjs +16 -16
  18. package/dist/define/index.cjs.map +1 -1
  19. package/dist/define/index.d.ts +73 -35
  20. package/dist/define/index.mjs +3386 -6646
  21. package/dist/define/index.mjs.map +1 -1
  22. package/dist/front-component/index.cjs +15 -15
  23. package/dist/front-component/index.cjs.map +1 -1
  24. package/dist/front-component/index.d.ts +12 -1
  25. package/dist/front-component/index.mjs +3274 -6566
  26. package/dist/front-component/index.mjs.map +1 -1
  27. package/dist/{get-function-input-schema-BZ7_XyUh-D38OurwZ.js → get-function-input-schema-BZ7_XyUh-BXB2AcBE.js} +1 -1
  28. package/dist/{get-function-input-schema-BZ7_XyUh-CKgoFzji.mjs → get-function-input-schema-BZ7_XyUh-PnCntsct.mjs} +1 -1
  29. package/dist/logic-function/index.cjs +1 -1
  30. package/dist/logic-function/index.cjs.map +1 -1
  31. package/dist/logic-function/index.d.ts +91 -20
  32. package/dist/logic-function/index.mjs +52 -1
  33. package/dist/logic-function/index.mjs.map +1 -1
  34. package/dist/operations.cjs +1 -1
  35. package/dist/operations.mjs +24 -18
  36. package/dist/ui/index.cjs +36 -2234
  37. package/dist/ui/index.mjs +11051 -17373
  38. package/dist/uninstall-BiLmSWhb.js +253 -0
  39. package/dist/{uninstall-Bw-TK4rL.mjs → uninstall-DAf2XiS3.mjs} +5064 -8113
  40. package/package.json +6 -2
  41. package/dist/uninstall-CYiYoBPe.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 };