@zeniai/web-components 4.3.58 → 4.3.59

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 (54) hide show
  1. package/dist/{SessionTimeoutPopup-BBq4i4HC.js → SessionTimeoutPopup-BmGGI1m1.js} +95101 -96038
  2. package/dist/{SessionTimeoutPopup-B2hNcg5c.cjs → SessionTimeoutPopup-DOvBM1F6.cjs} +15782 -15717
  3. package/dist/appLocale.d.ts +14 -11
  4. package/dist/cockpit.cjs.js +84 -84
  5. package/dist/cockpit.esm.js +205 -205
  6. package/dist/components/appDrawerContent/MenuList.d.ts +1 -1
  7. package/dist/components/detail/dashboardReportPage/DashboardReportPage.d.ts +2 -1
  8. package/dist/components/detail/dashboardReportPage/DetailPageReportFilters.d.ts +2 -1
  9. package/dist/components/expenseAutomation/sections/jeSchedules/accrualDetail/JEAccrualJournalEntryCard.d.ts +22 -0
  10. package/dist/components/expenseAutomation/sections/jeSchedules/accrualDetail/JEOneTimeAccrualDetailPage.d.ts +2 -8
  11. package/dist/components/invoicing/catalog/InvoicingCatalogPage.d.ts +1 -2
  12. package/dist/components/invoicing/catalog/catalogActionMenuItems.d.ts +0 -4
  13. package/dist/components/invoicing/catalogDetail/InvoicingCatalogItemDetailPage.d.ts +11 -32
  14. package/dist/components/invoicing/catalogForm/CatalogPricePointFields.d.ts +20 -1
  15. package/dist/components/invoicing/catalogForm/CatalogSubFamilyTierTable.d.ts +3 -3
  16. package/dist/components/invoicing/catalogForm/InvoicingCatalogItemFormPage.d.ts +1 -1
  17. package/dist/components/invoicing/catalogForm/catalogItemForm.shared.d.ts +4 -4
  18. package/dist/components/invoicing/common/composeInvoicingEmailPreview.d.ts +20 -0
  19. package/dist/components/invoicing/customerDetail/InvoicingCustomerDetailPage.d.ts +14 -16
  20. package/dist/components/invoicing/customerDetail/InvoicingPaymentLinkEmailComposerDialog.d.ts +26 -0
  21. package/dist/components/invoicing/customerList/InvoicingCustomerListPage.d.ts +1 -1
  22. package/dist/components/invoicing/discountDetail/InvoicingDiscountDetailPage.d.ts +6 -7
  23. package/dist/components/invoicing/discountList/InvoicingDiscountListPage.d.ts +1 -2
  24. package/dist/components/invoicing/discountList/discountActionMenuItems.d.ts +0 -4
  25. package/dist/components/invoicing/dunningDetail/InvoicingDunningEmailComposerDialog.d.ts +4 -0
  26. package/dist/components/invoicing/invoiceDetail/InvoicingInvoiceDetailPage.d.ts +6 -3
  27. package/dist/components/invoicing/paymentList/paymentActionMenuItems.d.ts +2 -6
  28. package/dist/components/invoicing/paymentList/paymentListRowMenu.d.ts +1 -1
  29. package/dist/components/invoicing/settings/InvoicingIntegrationsSection.d.ts +2 -1
  30. package/dist/components/invoicing/settings/InvoicingSettingsHubPage.d.ts +2 -4
  31. package/dist/components/invoicing/settings/invoicingIntegrationCards.d.ts +2 -1
  32. package/dist/components/invoicing/subscriptionDetail/InvoicingSubscriptionDetailPage.d.ts +6 -7
  33. package/dist/components/invoicing/subscriptionList/InvoicingSubscriptionListPage.d.ts +1 -4
  34. package/dist/components/invoicing/subscriptionList/subscriptionActionMenuItems.d.ts +0 -4
  35. package/dist/components/invoicing/subscriptionList/subscriptionListRowMenu.d.ts +1 -1
  36. package/dist/components/spendManagement/zeniAccounts/expressPay/sections/RecipientDetailsSection.d.ts +1 -1
  37. package/dist/components/transactionDetail/items/transactionLineTable/listRow/TransactionLineTableListRow.d.ts +1 -1
  38. package/dist/components/transactionDetail/items/transactionLineTable/transactionLineTableTypes.d.ts +9 -0
  39. package/dist/context/featureProvider/DynamicConfigNameConstants.d.ts +2 -0
  40. package/dist/context/featureProvider/useMeetingLinks.d.ts +16 -0
  41. package/dist/index.cjs.js +1 -1
  42. package/dist/index.d.ts +4 -1
  43. package/dist/index.esm.js +254 -254
  44. package/dist/strings/strings.d.ts +14 -11
  45. package/package.json +3 -3
  46. package/dist/components/expenseAutomation/sections/jeSchedules/accrualDetail/JEAccrualSequenceSection.d.ts +0 -22
  47. package/dist/components/invoicing/catalogDetail/CreateInvoicingCatalogSubFamilyDialog.d.ts +0 -40
  48. package/dist/components/invoicing/catalogDetail/catalogDetailEditForm.shared.d.ts +0 -47
  49. package/dist/components/invoicing/catalogDetail/catalogProductActionMenuItems.test.d.ts +0 -1
  50. package/dist/components/invoicing/customerDetail/InvoicingPaymentLinkEmailPreview.d.ts +0 -15
  51. package/dist/components/invoicing/discountList/discountActionMenuItems.test.d.ts +0 -1
  52. package/dist/components/invoicing/invoiceDetail/invoicingVoidInvoiceHelpers.d.ts +0 -4
  53. package/dist/components/invoicing/invoiceDetail/invoicingVoidInvoiceHelpers.test.d.ts +0 -1
  54. /package/dist/{components/invoicing/catalog/catalogActionMenuItems.test.d.ts → context/featureProvider/useMeetingLinks.test.d.ts} +0 -0
@@ -8583,6 +8583,9 @@ export declare const zeniStrings: {
8583
8583
  };
8584
8584
  journalEntryPreview: {
8585
8585
  title: string;
8586
+ postedTitle: string;
8587
+ reversedTitle: string;
8588
+ autoReversalEnabled: string;
8586
8589
  };
8587
8590
  billingPattern: {
8588
8591
  title: string;
@@ -9839,16 +9842,16 @@ export declare const zeniStrings: {
9839
9842
  default: string;
9840
9843
  noPaymentMethodOnFile: string;
9841
9844
  previewEmailHeading: string;
9842
- previewThisIsWhat: string;
9843
- theCustomer: string;
9844
- previewWillReceive: string;
9845
- hi: string;
9846
- there: string;
9847
- previewEmailBody: string;
9848
- previewFallbackLinkHint: string;
9849
- previewPlaceholderMagicUrl: string;
9850
- previewEmailFooter: string;
9851
- previewEmailContactPrefix: string;
9845
+ previewEmailSubtitle: string;
9846
+ previewEmailFrameTitle: string;
9847
+ previewEmailLoading: string;
9848
+ previewEmailUnavailable: string;
9849
+ previewEmailFailed: string;
9850
+ previewEmailRetry: string;
9851
+ previewEmailSend: string;
9852
+ previewEmailMessageLabel: string;
9853
+ previewEmailSubjectRequired: string;
9854
+ previewEmailBodyRequired: string;
9852
9855
  sending: string;
9853
9856
  noSubscriptions: string;
9854
9857
  recentInvoices: string;
@@ -9856,7 +9859,7 @@ export declare const zeniStrings: {
9856
9859
  addNoteAboutCustomer: string;
9857
9860
  };
9858
9861
  invoicingCustomerForm: {
9859
- validationEnterCompanyNameOrEmail: string;
9862
+ validationEnterEmail: string;
9860
9863
  customerDetailsDescription: string;
9861
9864
  customerTypeLabel: string;
9862
9865
  billingAddressSectionDescription: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/web-components",
3
- "version": "4.3.58",
3
+ "version": "4.3.59",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -48,7 +48,7 @@
48
48
  "@stripe/react-stripe-js": "^2.7.3",
49
49
  "@stripe/stripe-js": "^4.4.0",
50
50
  "@zeniai/client-analytics": "2.0.87",
51
- "@zeniai/client-epic-state": "5.2.31",
51
+ "@zeniai/client-epic-state": "5.2.32",
52
52
  "autosuggest-highlight": "^3.2.1",
53
53
  "browser-image-compression": "^2.0.2",
54
54
  "countries-list": "^2.6.1",
@@ -167,7 +167,7 @@
167
167
  "@types/react-select": "^4.0.18",
168
168
  "@types/react-window": "^1.8.8",
169
169
  "@zeniai/client-analytics": "2.0.87",
170
- "@zeniai/client-epic-state": "5.2.31",
170
+ "@zeniai/client-epic-state": "5.2.32",
171
171
  "color": "^3.1.3",
172
172
  "react": "18.3.1",
173
173
  "react-dom": "18.3.1",
@@ -1,22 +0,0 @@
1
- import { ClientAnalytics } from '@zeniai/client-analytics';
2
- import { JEOneTimeAccrual, ScheduledJournalEntry, TransactionID } from '@zeniai/client-epic-state';
3
- export declare const ACCRUAL_SEQUENCE_SECTION_ID = "jeAccrualSequenceSection";
4
- export interface JEAccrualSequenceSectionProps {
5
- accrual: JEOneTimeAccrual;
6
- analytics: ClientAnalytics;
7
- controllerEmails: string[];
8
- controllerUserIds: string[];
9
- onViewTransaction: (transactionID: TransactionID) => void;
10
- }
11
- /**
12
- * The accrual's entries — the accrual itself and, when it has one, its reversal — in the same
13
- * sequence table the accrued schedule detail page uses.
14
- *
15
- * The rows are synthesized from the accrual because an accrual has no `scheduledJournalEntry`
16
- * collection of its own. They deliberately carry no `jeScheduleId`: the table reads that to decide
17
- * whether to offer the per-row menu (cancel accrual, view recorded/posted JE), and none of those
18
- * apply to a one-time accrual. Combined with `isDisabled`, that makes this a read-only view.
19
- */
20
- declare const JEAccrualSequenceSection: ({ accrual, analytics, controllerEmails, controllerUserIds, onViewTransaction, }: Readonly<JEAccrualSequenceSectionProps>) => import("react/jsx-runtime").JSX.Element;
21
- export default JEAccrualSequenceSection;
22
- export declare function buildScheduledJournalEntries(accrual: JEOneTimeAccrual): ScheduledJournalEntry[];
@@ -1,40 +0,0 @@
1
- import { CreateSubFamilyFormValues, InvoicingNamedOption, InvoicingNamedOptionsByKey, InvoicingProduct } from '@zeniai/client-epic-state';
2
- import { GroupedOption } from '../../formElements/labeledGroupSingleSelectFieldWithRecommendationCheckbox/GroupedSingleSelectField';
3
- /**
4
- * Display-only: the payload builder reads `Amount.amount`, so the code and
5
- * symbol never reach the API. Thread the account currency through if the field
6
- * ever needs to render a non-USD symbol.
7
- */
8
- /**
9
- * `LabeledSingleSelectPickerField` sizes its row content-box, so without this it
10
- * renders wider than the text rows stacked with it.
11
- */
12
- export interface CreateInvoicingCatalogSubFamilyDialogProps {
13
- /** The income accounts the account picker renders, already narrowed. */
14
- groupedAccountOptions: GroupedOption[];
15
- /** The class tree the class picker renders, already narrowed. */
16
- groupedClassOptions: GroupedOption[];
17
- itemType: string;
18
- open: boolean;
19
- /** `/1.0/config` option lists the dialog's selects are built from. */
20
- periodUnitOptions: InvoicingNamedOption[];
21
- trialEndActionOptions: InvoicingNamedOption[];
22
- trialUnitOptions: InvoicingNamedOption[];
23
- typeOptions: InvoicingNamedOption[];
24
- duplicateFrom?: InvoicingProduct;
25
- errorMessage?: string;
26
- isSubmitting?: boolean;
27
- /**
28
- * `catalog_tier_type_options_by_pricing_model` from the invoicing config; the
29
- * tier `Type` column is driven by it. `undefined` until the config loads.
30
- */
31
- tierTypeOptionsByPricingModel?: InvoicingNamedOptionsByKey;
32
- onClose: () => void;
33
- /**
34
- * The price point as the form holds it. The request body is built in CES,
35
- * which can resolve a picked account id to the record the payload carries.
36
- */
37
- onSubmit: (values: CreateSubFamilyFormValues) => void;
38
- }
39
- export declare function CreateInvoicingCatalogSubFamilyDialog({ duplicateFrom, errorMessage, groupedClassOptions, groupedAccountOptions, isSubmitting, itemType, onClose, onSubmit, open, tierTypeOptionsByPricingModel, periodUnitOptions, trialEndActionOptions, trialUnitOptions, typeOptions, }: Readonly<CreateInvoicingCatalogSubFamilyDialogProps>): import("react/jsx-runtime").JSX.Element;
40
- export default CreateInvoicingCatalogSubFamilyDialog;
@@ -1,47 +0,0 @@
1
- import { CatalogDetailEditValues, InvoicingCatalogItemFormSubFamily } from '@zeniai/client-epic-state';
2
- import { GroupedOption, GroupedSingleSelectFieldValue } from '../../formElements/labeledGroupSingleSelectFieldWithRecommendationCheckbox/GroupedSingleSelectField';
3
- /**
4
- * The inline-edit form on `InvoicingCatalogItemDetailPage` renders the shared
5
- * form elements, which hold richer shapes than the CES edit values: a picker
6
- * writes `{allOptions, selectedOption}` once touched (a plain string until
7
- * then) and `LabeledFormattedTextField` writes a plain number where CES keeps
8
- * an `Amount`. The form therefore works on these types and converts back with
9
- * {@link toCatalogDetailEditValues} on save, so the request body is unchanged.
10
- */
11
- type CatalogEditPickerValue = string | {
12
- allOptions?: {
13
- label: string;
14
- value: string;
15
- }[];
16
- selectedOption?: string;
17
- };
18
- interface CatalogDetailTierFormValues extends Omit<InvoicingCatalogItemFormSubFamily["tiers"][number], "price" | "pricingType"> {
19
- pricingType: CatalogEditPickerValue;
20
- /** Unset until entered, so a blank field stays distinct from a real 0. */
21
- price?: number | null;
22
- }
23
- interface CatalogDetailSubFamilyFormValues extends Omit<InvoicingCatalogItemFormSubFamily, "accountingCategory" | "accountingCode" | "period" | "periodUnit" | "priceDollars" | "pricingModel" | "prorationType" | "tiers" | "trialEndAction" | "trialPeriodUnit"> {
24
- accountingCategory: GroupedSingleSelectFieldValue;
25
- accountingCode: GroupedSingleSelectFieldValue;
26
- period: CatalogEditPickerValue;
27
- periodUnit: CatalogEditPickerValue;
28
- pricingModel: CatalogEditPickerValue;
29
- prorationType: CatalogEditPickerValue;
30
- tiers: CatalogDetailTierFormValues[];
31
- trialEndAction: CatalogEditPickerValue;
32
- trialPeriodUnit: CatalogEditPickerValue;
33
- /** Unset until entered, so a blank field stays distinct from a real 0. */
34
- priceDollars?: number | null;
35
- }
36
- export interface CatalogDetailEditFormValues extends Omit<CatalogDetailEditValues, "itemApplicability" | "subFamilies"> {
37
- /** A picker here too, so the row matches the create form's control. */
38
- itemApplicability: CatalogEditPickerValue;
39
- subFamilies: CatalogDetailSubFamilyFormValues[];
40
- }
41
- /** Read a picker field whether it still holds the seeded string or a selection. */
42
- export declare const selectedOptionOf: (value: {
43
- selectedOption?: string;
44
- } | string | undefined) => string;
45
- export declare const toCatalogDetailEditFormValues: (values: CatalogDetailEditValues, accountOptions?: GroupedOption[], classOptions?: GroupedOption[]) => CatalogDetailEditFormValues;
46
- export declare const toCatalogDetailEditValues: (values: CatalogDetailEditFormValues, currencyCode: string, currencySymbol: string) => CatalogDetailEditValues;
47
- export {};
@@ -1,15 +0,0 @@
1
- export interface InvoicingPaymentLinkEmailPreviewProps {
2
- recipientName: string;
3
- accentColor?: string;
4
- companyName?: string;
5
- contactEmail?: string;
6
- logoUrl?: string;
7
- magicUrl?: string;
8
- }
9
- /**
10
- * Visual approximation of the backend payment-link collection email. Uses
11
- * branding settings (accent, logo, company name, contact email) and the
12
- * customer contact name — not shared HTML with the mailer.
13
- */
14
- export declare function InvoicingPaymentLinkEmailPreview({ accentColor, companyName, contactEmail, logoUrl, magicUrl, recipientName, }: Readonly<InvoicingPaymentLinkEmailPreviewProps>): import("react/jsx-runtime").JSX.Element;
15
- export default InvoicingPaymentLinkEmailPreview;
@@ -1,4 +0,0 @@
1
- import { VoidInvoiceBody } from '@zeniai/client-epic-state';
2
- export declare function isBackdatedInvoiceDate(invoiceDate: string, referenceDate?: Date): boolean;
3
- export declare function shouldDefaultAdjustmentCreditNote(invoiceDate: string, referenceDate?: Date): boolean;
4
- export declare function buildVoidInvoiceSubmitBody(createAdjustmentCreditNote: boolean, referenceDate?: Date): VoidInvoiceBody;