@fanfare-io/fanfare-sdk-react 0.1.0 → 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/dist/components/compositions/outcome-panel.d.ts +12 -1
- package/dist/index.js +639 -611
- package/dist/styles/base.css +1 -2253
- package/package.json +6 -6
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
import { OutcomeReason } from '../module';
|
|
2
|
+
/**
|
|
3
|
+
* The distribution mechanism a module owns. Drives mechanism-specific copy
|
|
4
|
+
* (e.g. the expired re-enter button label) so each module shows terminology
|
|
5
|
+
* appropriate to its mechanism rather than queue-specific copy.
|
|
6
|
+
*/
|
|
7
|
+
export type ParticipationType = "queue" | "draw" | "auction" | "timed_release" | "appointment";
|
|
2
8
|
export interface OutcomePanelProps {
|
|
3
9
|
outcomeReason: OutcomeReason;
|
|
10
|
+
/**
|
|
11
|
+
* The mechanism this panel belongs to. Selects the mechanism-specific
|
|
12
|
+
* re-enter label; when omitted, the mechanism-free fallback is used.
|
|
13
|
+
*/
|
|
14
|
+
participationType?: ParticipationType;
|
|
4
15
|
onReenter?: () => Promise<void>;
|
|
5
16
|
isReentering?: boolean;
|
|
6
17
|
className?: string;
|
|
7
18
|
}
|
|
8
|
-
export declare function OutcomePanel({ outcomeReason, onReenter, isReentering, className }: OutcomePanelProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function OutcomePanel({ outcomeReason, participationType, onReenter, isReentering, className, }: OutcomePanelProps): import("react/jsx-runtime").JSX.Element;
|
|
9
20
|
export declare namespace OutcomePanel {
|
|
10
21
|
var displayName: string;
|
|
11
22
|
}
|