@opengovsg/confetti 0.1.8 → 0.2.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.
- package/build/RecordingReplayer-9_E5sMQo.js +73 -0
- package/build/confetti.css +4 -585
- package/build/html2canvas-pro.esm-BSw77ylm.js +10 -0
- package/build/index.d.ts +20 -20
- package/build/index.js +4 -4
- package/build/internals-ZuuqmWaa.js +1 -0
- package/build/internals.d.ts +11 -2
- package/build/internals.js +1 -1
- package/build/record-CQ3hStii.js +53 -0
- package/build/{types-DvzzMSv8.d.ts → types-Co_jcoW0.d.ts} +62 -1
- package/package.json +13 -4
- package/build/routing-ZHrE7mgA.js +0 -1
package/build/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as MultiSelectQuestionProperties, c as StatementQuestionProperties, i as PublicGetSurveyOutput, l as TextQuestionProperties, n as ConfettiState, o as RatingQuestionProperties, r as Question, s as SingleSelectQuestionProperties, t as Answer } from "./types-
|
|
1
|
+
import { a as MultiSelectQuestionProperties, c as StatementQuestionProperties, i as PublicGetSurveyOutput, l as TextQuestionProperties, n as ConfettiState, o as RatingQuestionProperties, r as Question, s as SingleSelectQuestionProperties, t as Answer } from "./types-Co_jcoW0.js";
|
|
2
2
|
import * as react0 from "react";
|
|
3
3
|
import { HTMLAttributes, PropsWithChildren } from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime4 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/core/ConfettiController.d.ts
|
|
7
7
|
interface ConfettiControllerProps {
|
|
@@ -19,7 +19,7 @@ declare const ConfettiController: ({
|
|
|
19
19
|
shouldAutoSubmit,
|
|
20
20
|
onFinished,
|
|
21
21
|
children
|
|
22
|
-
}: ConfettiControllerProps) =>
|
|
22
|
+
}: ConfettiControllerProps) => react_jsx_runtime4.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
//#region src/core/ConfettiProvider.d.ts
|
|
25
25
|
interface ConfettiContextValue {
|
|
@@ -54,7 +54,7 @@ declare const ConfettiProvider: ({
|
|
|
54
54
|
metadata,
|
|
55
55
|
isSurveyVisible: isSurveyVisibleInput,
|
|
56
56
|
apiBaseUrl
|
|
57
|
-
}: ConfettiProviderProps) =>
|
|
57
|
+
}: ConfettiProviderProps) => react_jsx_runtime4.JSX.Element | null;
|
|
58
58
|
declare const useConfetti: () => ConfettiContextValue;
|
|
59
59
|
//#endregion
|
|
60
60
|
//#region src/components/Confetti.d.ts
|
|
@@ -64,7 +64,7 @@ declare const Confetti: ({
|
|
|
64
64
|
onFinished,
|
|
65
65
|
shouldAutoSubmit,
|
|
66
66
|
...props
|
|
67
|
-
}: ConfettiProps & Pick<ConfettiControllerProps, "children" | "shouldAutoSubmit">) =>
|
|
67
|
+
}: ConfettiProps & Pick<ConfettiControllerProps, "children" | "shouldAutoSubmit">) => react_jsx_runtime4.JSX.Element;
|
|
68
68
|
//#endregion
|
|
69
69
|
//#region src/components/ThankYouMessage.d.ts
|
|
70
70
|
interface ThankYouMessageProps {
|
|
@@ -81,7 +81,7 @@ declare const ThankYouMessage: ({
|
|
|
81
81
|
title,
|
|
82
82
|
description,
|
|
83
83
|
classNames
|
|
84
|
-
}: ThankYouMessageProps) =>
|
|
84
|
+
}: ThankYouMessageProps) => react_jsx_runtime4.JSX.Element | null;
|
|
85
85
|
//#endregion
|
|
86
86
|
//#region src/components/container/ModalContainer.d.ts
|
|
87
87
|
interface ModalContainerProps {
|
|
@@ -105,7 +105,7 @@ declare const ModalContainer: ({
|
|
|
105
105
|
onDismiss,
|
|
106
106
|
isDismissable,
|
|
107
107
|
closeOnFinishMs
|
|
108
|
-
}: ModalContainerProps) =>
|
|
108
|
+
}: ModalContainerProps) => react_jsx_runtime4.JSX.Element;
|
|
109
109
|
//#endregion
|
|
110
110
|
//#region src/components/container/PopoverContainer.d.ts
|
|
111
111
|
interface PopoverContainerProps {
|
|
@@ -127,7 +127,7 @@ declare const PopoverContainer: ({
|
|
|
127
127
|
containerProps,
|
|
128
128
|
onDismiss,
|
|
129
129
|
closeOnFinishMs
|
|
130
|
-
}: PopoverContainerProps) =>
|
|
130
|
+
}: PopoverContainerProps) => react_jsx_runtime4.JSX.Element;
|
|
131
131
|
//#endregion
|
|
132
132
|
//#region src/components/questions/types.d.ts
|
|
133
133
|
type Question$1 = PublicGetSurveyOutput['questions'][number];
|
|
@@ -150,7 +150,7 @@ declare const SurveyQuestionFactory: ({
|
|
|
150
150
|
question,
|
|
151
151
|
onChange,
|
|
152
152
|
error
|
|
153
|
-
}: SurveyQuestionFactoryProps) =>
|
|
153
|
+
}: SurveyQuestionFactoryProps) => react_jsx_runtime4.JSX.Element;
|
|
154
154
|
//#endregion
|
|
155
155
|
//#region src/components/questions/Rating.d.ts
|
|
156
156
|
interface RatingProps extends BaseFieldProps {
|
|
@@ -184,7 +184,7 @@ declare const Rating: ({
|
|
|
184
184
|
id,
|
|
185
185
|
error,
|
|
186
186
|
required
|
|
187
|
-
}: RatingProps) =>
|
|
187
|
+
}: RatingProps) => react_jsx_runtime4.JSX.Element;
|
|
188
188
|
//#endregion
|
|
189
189
|
//#region src/components/questions/FreeText.d.ts
|
|
190
190
|
interface FreeTextProps extends BaseFieldProps {
|
|
@@ -208,7 +208,7 @@ declare const FreeText: ({
|
|
|
208
208
|
classNames,
|
|
209
209
|
required,
|
|
210
210
|
error
|
|
211
|
-
}: FreeTextProps) =>
|
|
211
|
+
}: FreeTextProps) => react_jsx_runtime4.JSX.Element;
|
|
212
212
|
//#endregion
|
|
213
213
|
//#region src/components/questions/SingleChoice.d.ts
|
|
214
214
|
interface SingleChoiceProps extends BaseFieldProps {
|
|
@@ -238,7 +238,7 @@ declare const SingleChoice: ({
|
|
|
238
238
|
id,
|
|
239
239
|
required,
|
|
240
240
|
error
|
|
241
|
-
}: SingleChoiceProps) =>
|
|
241
|
+
}: SingleChoiceProps) => react_jsx_runtime4.JSX.Element;
|
|
242
242
|
//#endregion
|
|
243
243
|
//#region src/components/questions/MultiChoice.d.ts
|
|
244
244
|
interface MultiChoiceProps extends BaseFieldProps {
|
|
@@ -271,7 +271,7 @@ declare const MultiChoice: ({
|
|
|
271
271
|
id,
|
|
272
272
|
required,
|
|
273
273
|
error
|
|
274
|
-
}: MultiChoiceProps) =>
|
|
274
|
+
}: MultiChoiceProps) => react_jsx_runtime4.JSX.Element;
|
|
275
275
|
//#endregion
|
|
276
276
|
//#region src/components/questions/Statement.d.ts
|
|
277
277
|
interface StatementProps extends BaseFieldProps {
|
|
@@ -289,7 +289,7 @@ declare const Statement: ({
|
|
|
289
289
|
title,
|
|
290
290
|
description,
|
|
291
291
|
classNames
|
|
292
|
-
}: StatementProps) =>
|
|
292
|
+
}: StatementProps) => react_jsx_runtime4.JSX.Element;
|
|
293
293
|
//#endregion
|
|
294
294
|
//#region src/components/presentation/Flow.d.ts
|
|
295
295
|
type ChildField = (_: {
|
|
@@ -308,7 +308,7 @@ declare const Flow: ({
|
|
|
308
308
|
children,
|
|
309
309
|
question,
|
|
310
310
|
isLastQuestion
|
|
311
|
-
}: FlowProps) =>
|
|
311
|
+
}: FlowProps) => react_jsx_runtime4.JSX.Element;
|
|
312
312
|
//#endregion
|
|
313
313
|
//#region src/components/presentation/Embed.d.ts
|
|
314
314
|
declare const Embed: ({
|
|
@@ -318,10 +318,10 @@ declare const Embed: ({
|
|
|
318
318
|
}: PropsWithChildren<{
|
|
319
319
|
isCompleted: boolean;
|
|
320
320
|
onSubmit: () => void;
|
|
321
|
-
}>) =>
|
|
321
|
+
}>) => react_jsx_runtime4.JSX.Element;
|
|
322
322
|
//#endregion
|
|
323
323
|
//#region src/templates/EmbeddedConfetti.d.ts
|
|
324
|
-
declare const EmbeddedConfetti: (props: ConfettiProps) =>
|
|
324
|
+
declare const EmbeddedConfetti: (props: ConfettiProps) => react_jsx_runtime4.JSX.Element;
|
|
325
325
|
//#endregion
|
|
326
326
|
//#region src/templates/ModalConfetti.d.ts
|
|
327
327
|
interface ModalConfettiProps extends ConfettiProps {
|
|
@@ -334,7 +334,7 @@ declare const ModalConfetti: ({
|
|
|
334
334
|
closeOnFinishMs,
|
|
335
335
|
isDismissable,
|
|
336
336
|
...props
|
|
337
|
-
}: ModalConfettiProps) =>
|
|
337
|
+
}: ModalConfettiProps) => react_jsx_runtime4.JSX.Element;
|
|
338
338
|
//#endregion
|
|
339
339
|
//#region src/templates/PopoverConfetti.d.ts
|
|
340
340
|
interface PopoverConfettiProps extends ConfettiProps {
|
|
@@ -354,10 +354,10 @@ declare const PopoverConfetti: ({
|
|
|
354
354
|
onDismiss,
|
|
355
355
|
closeOnFinishMs,
|
|
356
356
|
...props
|
|
357
|
-
}: PopoverConfettiProps) =>
|
|
357
|
+
}: PopoverConfettiProps) => react_jsx_runtime4.JSX.Element;
|
|
358
358
|
//#endregion
|
|
359
359
|
//#region src/templates/StepperConfetti.d.ts
|
|
360
|
-
declare const StepperConfetti: (props: ConfettiProps) =>
|
|
360
|
+
declare const StepperConfetti: (props: ConfettiProps) => react_jsx_runtime4.JSX.Element;
|
|
361
361
|
//#endregion
|
|
362
362
|
//#region src/hooks/useVisibleAfterDelay.d.ts
|
|
363
363
|
interface UseVisibleAfterDelayOptions {
|