@saasquatch/mint-components 1.3.2-4 → 1.3.2-8

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 (78) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/mint-components.cjs.js +1 -1
  3. package/dist/cjs/sqm-big-stat.cjs.entry.js +1 -1
  4. package/dist/cjs/{sqm-divided-layout_27.cjs.entry.js → sqm-divided-layout_28.cjs.entry.js} +956 -381
  5. package/dist/cjs/{useDemoBigStat-17e61803.js → useDemoBigStat-051a69f7.js} +116 -20
  6. package/dist/collection/components/sqm-big-stat/BigStat.stories.js +8 -1
  7. package/dist/collection/components/sqm-big-stat/UseBigStat.stories.js +3 -0
  8. package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +1 -1
  9. package/dist/collection/components/sqm-big-stat/useBigStat.js +115 -20
  10. package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +1 -0
  11. package/dist/collection/components/sqm-reward-exchange-list/SVGs.js +5 -14
  12. package/dist/collection/components/sqm-reward-exchange-list/progressBar.js +5 -4
  13. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +55 -43
  14. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +2 -1
  15. package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +2 -1
  16. package/dist/collection/components/sqm-stencilbook/CucumberAddon.js +3 -1
  17. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +4 -0
  18. package/dist/collection/components/sqm-task-card/SVGs.js +0 -6
  19. package/dist/collection/components/sqm-task-card/TaskCard.stories.js +86 -255
  20. package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +41 -0
  21. package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +7 -0
  22. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +311 -0
  23. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar.stories.js +53 -0
  24. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +15 -308
  25. package/dist/collection/components/sqm-task-card/sqm-task-card.js +113 -29
  26. package/dist/collection/stories/NewPortal.stories.js +15 -15
  27. package/dist/esm/loader.js +1 -1
  28. package/dist/esm/mint-components.js +1 -1
  29. package/dist/esm/sqm-big-stat.entry.js +1 -1
  30. package/dist/esm/{sqm-divided-layout_27.entry.js → sqm-divided-layout_28.entry.js} +920 -346
  31. package/dist/esm/{useDemoBigStat-b71fe122.js → useDemoBigStat-95889548.js} +116 -20
  32. package/dist/esm-es5/loader.js +1 -1
  33. package/dist/esm-es5/mint-components.js +1 -1
  34. package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
  35. package/dist/esm-es5/sqm-divided-layout_28.entry.js +1 -0
  36. package/dist/esm-es5/useDemoBigStat-95889548.js +1 -0
  37. package/dist/mint-components/mint-components.esm.js +1 -1
  38. package/dist/mint-components/p-0faf1857.system.js +1 -0
  39. package/dist/mint-components/{p-e22eed7b.entry.js → p-1d445125.entry.js} +1 -1
  40. package/dist/mint-components/p-91d39961.system.js +1 -1
  41. package/dist/mint-components/p-a7f26a72.entry.js +288 -0
  42. package/dist/mint-components/{p-c9c4f31b.system.entry.js → p-b2633117.system.entry.js} +1 -1
  43. package/dist/mint-components/p-b6e6be5e.js +235 -0
  44. package/dist/mint-components/p-e0290737.system.entry.js +1 -0
  45. package/dist/types/components/sqm-big-stat/UseBigStat.stories.d.ts +6 -0
  46. package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +1 -0
  47. package/dist/types/components/sqm-big-stat/useBigStat.d.ts +4 -1
  48. package/dist/types/components/sqm-reward-exchange-list/SVGs.d.ts +1 -0
  49. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +1 -0
  50. package/dist/types/components/sqm-task-card/SVGs.d.ts +0 -1
  51. package/dist/types/components/sqm-task-card/TaskCard.stories.d.ts +3 -1
  52. package/dist/types/components/sqm-task-card/UseTaskCard.stories.d.ts +10 -0
  53. package/dist/types/components/sqm-task-card/progress-bar/SVGs.d.ts +1 -0
  54. package/dist/types/components/sqm-task-card/progress-bar/progress-bar-view.d.ts +9 -0
  55. package/dist/types/components/sqm-task-card/progress-bar/progress-bar.stories.d.ts +12 -0
  56. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +13 -22
  57. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +28 -12
  58. package/dist/types/components.d.ts +54 -32
  59. package/grapesjs/grapesjs.js +1 -1
  60. package/package.json +1 -1
  61. package/dist/cjs/sqm-task-card-view-791797ac.js +0 -475
  62. package/dist/cjs/sqm-task-card.cjs.entry.js +0 -53
  63. package/dist/collection/components/sqm-task-card/useTaskCard.js +0 -0
  64. package/dist/esm/sqm-task-card-view-5cce0847.js +0 -473
  65. package/dist/esm/sqm-task-card.entry.js +0 -49
  66. package/dist/esm-es5/sqm-divided-layout_27.entry.js +0 -1
  67. package/dist/esm-es5/sqm-task-card-view-5cce0847.js +0 -1
  68. package/dist/esm-es5/sqm-task-card.entry.js +0 -1
  69. package/dist/esm-es5/useDemoBigStat-b71fe122.js +0 -1
  70. package/dist/mint-components/p-2b3a99df.js +0 -1
  71. package/dist/mint-components/p-32918497.entry.js +0 -288
  72. package/dist/mint-components/p-405a9253.js +0 -227
  73. package/dist/mint-components/p-4e5a2105.system.entry.js +0 -1
  74. package/dist/mint-components/p-6198d500.system.entry.js +0 -1
  75. package/dist/mint-components/p-6932204f.system.js +0 -1
  76. package/dist/mint-components/p-bbdafe3b.entry.js +0 -1
  77. package/dist/mint-components/p-f87d8f53.system.js +0 -1
  78. package/dist/types/components/sqm-task-card/useTaskCard.d.ts +0 -0
@@ -164,3 +164,9 @@ export declare const ProgramGoals: {
164
164
  hookStory: Function;
165
165
  };
166
166
  };
167
+ export declare const CustomField: {
168
+ (): any;
169
+ parameters: {
170
+ hookStory: Function;
171
+ };
172
+ };
@@ -1,5 +1,6 @@
1
1
  import { VNode } from "../../stencil-public-runtime";
2
2
  export interface BigStatViewProps {
3
+ value: number;
3
4
  statvalue: string;
4
5
  flexReverse?: boolean;
5
6
  alignment?: "left" | "right" | "center";
@@ -3,7 +3,10 @@ import { BigStatViewProps } from "./sqm-big-stat-view";
3
3
  export declare const queries: {
4
4
  [key: string]: {
5
5
  label: string;
6
- query: (programId: string, ...args: string[]) => string;
6
+ query: (programId: string, ...args: string[]) => {
7
+ value: number;
8
+ statvalue: string;
9
+ };
7
10
  };
8
11
  };
9
12
  export declare const StatPaths: {
@@ -1,2 +1,3 @@
1
1
  export declare const LeftArrow: () => any;
2
2
  export declare const ExchangeArrows: () => any;
3
+ export declare const CheckMark: () => any;
@@ -6,6 +6,7 @@ export declare type RewardExchangeViewProps = {
6
6
  redeemStage: string;
7
7
  amount: number;
8
8
  exchangeError?: boolean;
9
+ loading: boolean;
9
10
  content: {
10
11
  text: any;
11
12
  };
@@ -1,3 +1,2 @@
1
1
  export declare const checkmark_circle: () => any;
2
2
  export declare const arrow_left_right: () => any;
3
- export declare const gift: () => any;
@@ -1,8 +1,10 @@
1
1
  declare const _default: {
2
2
  title: string;
3
+ parameters: {
4
+ scenario: string;
5
+ };
3
6
  };
4
7
  export default _default;
5
- export declare const Default: () => any;
6
8
  export declare const NotRepeatable: () => any;
7
9
  export declare const NotRepeatableWithExpiry: () => any;
8
10
  export declare const Repeatable: () => any;
@@ -0,0 +1,10 @@
1
+ declare const _default: {
2
+ title: string;
3
+ };
4
+ export default _default;
5
+ export declare const TaskCard: {
6
+ (): any;
7
+ parameters: {
8
+ hookStory: Function;
9
+ };
10
+ };
@@ -0,0 +1 @@
1
+ export declare const gift: () => any;
@@ -0,0 +1,9 @@
1
+ import { VNode } from "../../../stencil-public-runtime";
2
+ export declare type ProgressBarProps = {
3
+ progress?: number;
4
+ goal?: number;
5
+ progressBarUnit?: string;
6
+ steps?: boolean;
7
+ repeatable?: boolean;
8
+ };
9
+ export declare function ProgressBarView(props: ProgressBarProps): VNode;
@@ -0,0 +1,12 @@
1
+ declare const _default: {
2
+ title: string;
3
+ parameters: {
4
+ scenario: string;
5
+ };
6
+ };
7
+ export default _default;
8
+ export declare const Default: () => any;
9
+ export declare const ProgressBar: () => any;
10
+ export declare const ProgressBarSteps: () => any;
11
+ export declare const ProgressBarRepeatable: () => any;
12
+ export declare const ProgressBarStepsRepeatable: () => any;
@@ -1,25 +1,16 @@
1
1
  import { VNode } from "../../stencil-public-runtime";
2
+ import { ProgressBarProps } from "./progress-bar/progress-bar-view";
2
3
  export declare type TaskCardViewProps = {
3
- points?: number;
4
- cardTitle?: string;
5
- description?: string;
6
- showProgressBar?: boolean;
7
- repeatable?: boolean;
8
- expire?: boolean;
9
- dateExpire?: string;
10
- buttonText?: string;
11
- buttonLink?: string;
12
- } & ProgressBarProps;
13
- export declare function TaskCardView(props: TaskCardViewProps, children: VNode): VNode;
14
- export declare type DetailsProps = {
4
+ rewardAmount: number;
5
+ cardTitle: string;
15
6
  description: string;
16
- };
17
- export declare type ProgressBarProps = {
18
- showProgressBar?: boolean;
19
- goal?: number;
20
- progress?: number;
21
- steps?: number;
22
- unit?: string;
23
- repeatable?: boolean;
24
- };
25
- export declare function ProgressBar(props: ProgressBarProps): VNode;
7
+ showProgressBar: boolean;
8
+ repeatable: boolean;
9
+ showExpiry: boolean;
10
+ dateExpires?: string;
11
+ rewardUnit: string;
12
+ buttonText: string;
13
+ buttonLink: string;
14
+ loading: boolean;
15
+ } & ProgressBarProps;
16
+ export declare function TaskCardView(props: TaskCardViewProps): VNode;
@@ -4,9 +4,13 @@
4
4
  export declare class TaskCard {
5
5
  ignored: boolean;
6
6
  /**
7
- * @uiName Reward Points
7
+ * @uiName Reward Amount
8
8
  */
9
- points: number;
9
+ rewardAmount: number;
10
+ /**
11
+ * @uiName Reward Unit
12
+ */
13
+ rewardUnit: string;
10
14
  /**
11
15
  * @uiName Title Text
12
16
  */
@@ -16,7 +20,7 @@ export declare class TaskCard {
16
20
  */
17
21
  description: string;
18
22
  /**
19
- * @uiName Set Repeatable
23
+ * @uiName Goal Repeatable
20
24
  */
21
25
  repeatable: boolean;
22
26
  /**
@@ -24,33 +28,45 @@ export declare class TaskCard {
24
28
  */
25
29
  showProgressBar: boolean;
26
30
  /**
27
- * @uiName Progress Bar Goal
31
+ * @uiName Goal Progress Source
32
+ */
33
+ progressSource: string;
34
+ /**
35
+ * @uiName Goal Completion Number
28
36
  */
29
37
  goal: number;
30
38
  /**
31
39
  * @uiName Progress Bar Steps
32
40
  */
33
- steps: number;
41
+ steps: boolean;
34
42
  /**
35
43
  * @uiName Progress Bar Unit
36
44
  */
37
- unit?: string;
45
+ progressBarUnit?: string;
38
46
  /**
39
- * @uiName Show Expiry
47
+ * @uiName Show Goal Expiry
40
48
  */
41
- expire: boolean;
49
+ showExpiry: boolean;
42
50
  /**
43
- * @uiName Expire Date
51
+ * @uiName Date Goal Expires
44
52
  */
45
- dateExpire?: string;
53
+ dateExpires?: string;
46
54
  /**
47
- * @uiName Button Text
55
+ * @uiName CTA Button Text
48
56
  */
49
57
  buttonText: string;
50
58
  /**
51
- * @uiName Button Link
59
+ * @uiName CTA Button Link
52
60
  */
53
61
  buttonLink: string;
62
+ /**
63
+ * Select what type of stat to display for the goal. Manual paths are also supported.
64
+ *
65
+ * @uiWidget StatTypeSelectWidget
66
+ * @uiName Stat Type
67
+ * @uiOptions {"version": 1.1}
68
+ */
69
+ statType: string;
54
70
  constructor();
55
71
  disconnectedCallback(): void;
56
72
  render(): any;
@@ -1015,11 +1015,11 @@ export namespace Components {
1015
1015
  }
1016
1016
  interface SqmTaskCard {
1017
1017
  /**
1018
- * @uiName Button Link
1018
+ * @uiName CTA Button Link
1019
1019
  */
1020
1020
  "buttonLink": string;
1021
1021
  /**
1022
- * @uiName Button Text
1022
+ * @uiName CTA Button Text
1023
1023
  */
1024
1024
  "buttonText": string;
1025
1025
  /**
@@ -1027,41 +1027,52 @@ export namespace Components {
1027
1027
  */
1028
1028
  "cardTitle": string;
1029
1029
  /**
1030
- * @uiName Expire Date
1030
+ * @uiName Date Goal Expires
1031
1031
  */
1032
- "dateExpire"?: string;
1032
+ "dateExpires"?: string;
1033
1033
  /**
1034
1034
  * @uiName Description Text
1035
1035
  */
1036
1036
  "description": string;
1037
1037
  /**
1038
- * @uiName Show Expiry
1039
- */
1040
- "expire": boolean;
1041
- /**
1042
- * @uiName Progress Bar Goal
1038
+ * @uiName Goal Completion Number
1043
1039
  */
1044
1040
  "goal": number;
1045
1041
  /**
1046
- * @uiName Reward Points
1042
+ * @uiName Progress Bar Unit
1047
1043
  */
1048
- "points": number;
1044
+ "progressBarUnit"?: string;
1049
1045
  /**
1050
- * @uiName Set Repeatable
1046
+ * @uiName Goal Repeatable
1051
1047
  */
1052
1048
  "repeatable": boolean;
1049
+ /**
1050
+ * @uiName Reward Amount
1051
+ */
1052
+ "rewardAmount": number;
1053
+ /**
1054
+ * @uiName Reward Unit
1055
+ */
1056
+ "rewardUnit": string;
1057
+ /**
1058
+ * @uiName Show Goal Expiry
1059
+ */
1060
+ "showExpiry": boolean;
1053
1061
  /**
1054
1062
  * @uiName Show Progress Bar
1055
1063
  */
1056
1064
  "showProgressBar": boolean;
1057
1065
  /**
1058
- * @uiName Progress Bar Steps
1066
+ * Select what type of stat to display for the goal. Manual paths are also supported.
1067
+ * @uiWidget StatTypeSelectWidget
1068
+ * @uiName Stat Type
1069
+ * @uiOptions {"version": 1.1}
1059
1070
  */
1060
- "steps": number;
1071
+ "statType": string;
1061
1072
  /**
1062
- * @uiName Progress Bar Unit
1073
+ * @uiName Progress Bar Steps
1063
1074
  */
1064
- "unit"?: string;
1075
+ "steps": boolean;
1065
1076
  }
1066
1077
  interface SqmText {
1067
1078
  }
@@ -2489,11 +2500,11 @@ declare namespace LocalJSX {
2489
2500
  }
2490
2501
  interface SqmTaskCard {
2491
2502
  /**
2492
- * @uiName Button Link
2503
+ * @uiName CTA Button Link
2493
2504
  */
2494
2505
  "buttonLink"?: string;
2495
2506
  /**
2496
- * @uiName Button Text
2507
+ * @uiName CTA Button Text
2497
2508
  */
2498
2509
  "buttonText"?: string;
2499
2510
  /**
@@ -2501,41 +2512,52 @@ declare namespace LocalJSX {
2501
2512
  */
2502
2513
  "cardTitle"?: string;
2503
2514
  /**
2504
- * @uiName Expire Date
2515
+ * @uiName Date Goal Expires
2505
2516
  */
2506
- "dateExpire"?: string;
2517
+ "dateExpires"?: string;
2507
2518
  /**
2508
2519
  * @uiName Description Text
2509
2520
  */
2510
2521
  "description"?: string;
2511
2522
  /**
2512
- * @uiName Show Expiry
2513
- */
2514
- "expire"?: boolean;
2515
- /**
2516
- * @uiName Progress Bar Goal
2523
+ * @uiName Goal Completion Number
2517
2524
  */
2518
2525
  "goal"?: number;
2519
2526
  /**
2520
- * @uiName Reward Points
2527
+ * @uiName Progress Bar Unit
2521
2528
  */
2522
- "points"?: number;
2529
+ "progressBarUnit"?: string;
2523
2530
  /**
2524
- * @uiName Set Repeatable
2531
+ * @uiName Goal Repeatable
2525
2532
  */
2526
2533
  "repeatable"?: boolean;
2534
+ /**
2535
+ * @uiName Reward Amount
2536
+ */
2537
+ "rewardAmount"?: number;
2538
+ /**
2539
+ * @uiName Reward Unit
2540
+ */
2541
+ "rewardUnit"?: string;
2542
+ /**
2543
+ * @uiName Show Goal Expiry
2544
+ */
2545
+ "showExpiry"?: boolean;
2527
2546
  /**
2528
2547
  * @uiName Show Progress Bar
2529
2548
  */
2530
2549
  "showProgressBar"?: boolean;
2531
2550
  /**
2532
- * @uiName Progress Bar Steps
2551
+ * Select what type of stat to display for the goal. Manual paths are also supported.
2552
+ * @uiWidget StatTypeSelectWidget
2553
+ * @uiName Stat Type
2554
+ * @uiOptions {"version": 1.1}
2533
2555
  */
2534
- "steps"?: number;
2556
+ "statType"?: string;
2535
2557
  /**
2536
- * @uiName Progress Bar Unit
2558
+ * @uiName Progress Bar Steps
2537
2559
  */
2538
- "unit"?: string;
2560
+ "steps"?: boolean;
2539
2561
  }
2540
2562
  interface SqmText {
2541
2563
  }