@opengovsg/confetti 0.0.9 → 0.0.10
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.
- package/build/index.d.ts +5 -0
- package/build/index.js +2 -1
- package/package.json +4 -4
package/build/index.d.ts
CHANGED
|
@@ -308,8 +308,13 @@ interface PopoverConfettiProps extends ConfettiProps {
|
|
|
308
308
|
* @default 3000
|
|
309
309
|
*/
|
|
310
310
|
closeOnFinishMs?: number | null;
|
|
311
|
+
/**
|
|
312
|
+
* Callback is invoked when the popover is explicitly dismissed.
|
|
313
|
+
*/
|
|
314
|
+
onDismiss?: () => void;
|
|
311
315
|
}
|
|
312
316
|
declare const PopoverConfetti: ({
|
|
317
|
+
onDismiss,
|
|
313
318
|
closeOnFinishMs,
|
|
314
319
|
...props
|
|
315
320
|
}: PopoverConfettiProps) => react_jsx_runtime3.JSX.Element;
|
package/build/index.js
CHANGED
|
@@ -1356,10 +1356,11 @@ const EmbeddedConfetti = (props) => {
|
|
|
1356
1356
|
|
|
1357
1357
|
//#endregion
|
|
1358
1358
|
//#region src/templates/PopoverConfetti.tsx
|
|
1359
|
-
const PopoverConfetti = ({ closeOnFinishMs, ...props }) => {
|
|
1359
|
+
const PopoverConfetti = ({ onDismiss, closeOnFinishMs, ...props }) => {
|
|
1360
1360
|
return /* @__PURE__ */ jsx(ConfettiProvider, {
|
|
1361
1361
|
...props,
|
|
1362
1362
|
children: /* @__PURE__ */ jsx(PopoverContainer, {
|
|
1363
|
+
onDismiss,
|
|
1363
1364
|
closeOnFinishMs,
|
|
1364
1365
|
children: ({ setIsFinished }) => /* @__PURE__ */ jsx(ConfettiController, {
|
|
1365
1366
|
shouldAutoSubmit: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengovsg/confetti",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "Widgets for Confetti",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"prettier": "^3.7.4",
|
|
44
44
|
"tsdown": "0.19.0",
|
|
45
45
|
"typescript": "^5.9.3",
|
|
46
|
-
"@confetti/
|
|
46
|
+
"@confetti/eslint-config": "0.0.0",
|
|
47
47
|
"@confetti/prettier-config": "0.0.0",
|
|
48
|
-
"@confetti/
|
|
49
|
-
"@confetti/
|
|
48
|
+
"@confetti/tsconfig": "0.0.0",
|
|
49
|
+
"@confetti/validators": "0.0.0"
|
|
50
50
|
},
|
|
51
51
|
"prettier": "@confetti/prettier-config",
|
|
52
52
|
"scripts": {
|