Skip to content

Commit

Permalink
Merge branch 'main' into dev-13777-backup-pre-rebase-2
Browse files Browse the repository at this point in the history
  • Loading branch information
marcperezmonite committed Feb 19, 2025
2 parents 4e4dd14 + 9c72a87 commit 239398f
Show file tree
Hide file tree
Showing 11 changed files with 120 additions and 82 deletions.
6 changes: 6 additions & 0 deletions .changeset/friendly-shrimps-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@monite/sdk-react': patch
'@monite/sdk-drop-in': patch
---

onCreate receivable event added
19 changes: 8 additions & 11 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,31 +12,28 @@
},
"changesets": [
"afraid-hornets-knock",
"beige-birds-type",
"beige-apples-wait",
"beige-ladybugs-remain",
"chilled-schools-admire",
"early-jokes-wash",
"eighty-pandas-buy",
"eighty-phones-worry",
"flat-walls-reflect",
"forty-onions-join",
"healthy-roses-travel",
"friendly-shrimps-approve",
"heavy-stingrays-provide",
"hungry-snakes-provide",
"kind-impalas-give",
"large-mirrors-protect",
"lucky-pumas-punch",
"new-bottles-tap",
"plenty-donuts-kneel",
"popular-planes-travel",
"rare-bees-itch",
"real-moose-rest",
"red-horses-camp",
"rotten-teachers-cross",
"shy-otters-perform",
"serious-games-attack",
"shy-windows-kick",
"spicy-toes-play",
"stale-masks-enjoy",
"sweet-horses-hug",
"swift-zebras-obey",
"tricky-coins-try"
"tricky-coins-try",
"weak-knives-pull",
"young-bananas-sin"
]
}
2 changes: 1 addition & 1 deletion .github/workflows/release-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ concurrency:
cancel-in-progress: false

env:
RELEASE_BRANCH: "v4"
RELEASE_BRANCH: "main"

jobs:
npm-publish:
Expand Down
13 changes: 13 additions & 0 deletions packages/sdk-drop-in/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @monite/sdk-drop-in

## 2.0.0-alpha.9

### Patch Changes

- cb63d74: onCreate receivable event added

## 2.0.0-alpha.8

### Patch Changes

- a8b6f84: Re-create translation files
- 18df891: Improve error messages in Products&Services component

## 2.0.0-alpha.7

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-drop-in/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@monite/sdk-drop-in",
"version": "2.0.0-alpha.7",
"version": "2.0.0-alpha.9",
"publishConfig": {
"access": "public"
},
Expand Down
20 changes: 20 additions & 0 deletions packages/sdk-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# @monite/sdk-react

## 4.0.0-alpha.9

### Patch Changes

- cb63d74: onCreate receivable event added

## 4.0.0-alpha.8

### Minor Changes

- d9aa339: Updated copies on Products & Services page.
- 94f9497: Adds option to delete canceled payables
- fdb71ad: Added DocumentDesign component

### Patch Changes

- a8b6f84: Re-create translation files
- 18df891: Improve error messages in Products&Services component
- 4140560: Removed Go to docs from user-roles modal

## 4.0.0-alpha.7

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@monite/sdk-react",
"version": "4.0.0-alpha.7",
"version": "4.0.0-alpha.9",
"apiVersion": "2024-05-25",
"publishConfig": {
"access": "public"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ const ReceivablesBase = () => {
setIsCreateInvoiceDialogOpen(false);
setActiveTab(ReceivablesTableTabEnum.Invoices);
openInvoiceModal(receivableId);
componentSettings?.receivables?.onCreate?.(receivableId);
}}
/>
</Dialog>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ export interface MoniteReceivablesTableProps {
* By default, the component will display tabs for Invoices, Quotes, and Credit Notes.
*/
tabs?: Array<MoniteReceivablesTab>;

/**
* The event handler for the creation of a new invoice
*
@param {string} receivableId - The ID of the receivable that was created.
*/
onCreate?: (receivableId: string) => void;
}

export enum ReceivablesTableTabEnum {
Expand Down
1 change: 1 addition & 0 deletions packages/sdk-react/src/core/componentSettings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export const getDefaultComponentSettings = (
label: FINANCING_LABEL,
},
],
onCreate: componentSettings?.receivables?.onCreate,
},
tags: {
pageSizeOptions:
Expand Down
Loading

0 comments on commit 239398f

Please sign in to comment.