@saasquatch/mint-components 1.5.0-3 → 1.5.0-4
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/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/sqm-brand_31.cjs.entry.js +417 -364
- package/dist/cjs/{sqm-program-explainer-step-view-98958ab1.js → sqm-program-explainer-step-view-74863815.js} +8 -2
- package/dist/cjs/sqm-program-explainer-step.cjs.entry.js +1 -1
- package/dist/cjs/{sqm-program-explainer-view-ba7ed24a.js → sqm-program-explainer-view-afed92f5.js} +1 -0
- package/dist/cjs/sqm-program-explainer.cjs.entry.js +1 -1
- package/dist/collection/components/sqm-brand/SqmBrand.stories.js +31 -13
- package/dist/collection/components/sqm-brand/sqm-brand.js +51 -13
- package/dist/collection/components/sqm-program-explainer/ProgramExplainer.stories.js +3 -0
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +1 -0
- package/dist/collection/components/sqm-program-explainer-step/ProgramExplainerStep.stories.js +2 -1
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +8 -2
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +23 -0
- package/dist/collection/fonts/GoogleFonts.js +12 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/sqm-brand_31.entry.js +418 -365
- package/dist/esm/{sqm-program-explainer-step-view-64fc0c37.js → sqm-program-explainer-step-view-f190277a.js} +8 -2
- package/dist/esm/sqm-program-explainer-step.entry.js +1 -1
- package/dist/esm/{sqm-program-explainer-view-68f0d242.js → sqm-program-explainer-view-1c603bb7.js} +1 -0
- package/dist/esm/sqm-program-explainer.entry.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-brand_31.entry.js +2 -2
- package/dist/esm-es5/{sqm-program-explainer-step-view-64fc0c37.js → sqm-program-explainer-step-view-f190277a.js} +1 -1
- package/dist/esm-es5/sqm-program-explainer-step.entry.js +1 -1
- package/dist/esm-es5/{sqm-program-explainer-view-68f0d242.js → sqm-program-explainer-view-1c603bb7.js} +1 -1
- package/dist/esm-es5/sqm-program-explainer.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-16f5a7cb.system.js +1 -1
- package/dist/mint-components/{p-1435350e.system.js → p-2d6421b6.system.js} +1 -1
- package/dist/mint-components/p-3b6228f4.system.js +1 -0
- package/dist/mint-components/p-5f4d838e.system.entry.js +58 -0
- package/dist/mint-components/p-6c9c4477.js +1 -0
- package/dist/mint-components/{p-dd865aa8.entry.js → p-84dc4854.entry.js} +9 -9
- package/dist/mint-components/{p-259d31fc.entry.js → p-96a1967b.entry.js} +1 -1
- package/dist/mint-components/{p-5cda79ed.system.entry.js → p-9e4e397a.system.entry.js} +1 -1
- package/dist/mint-components/p-bc8b6125.js +1 -0
- package/dist/mint-components/{p-f52bc20c.entry.js → p-bf1b79ba.entry.js} +1 -1
- package/dist/mint-components/{p-864f49d2.system.entry.js → p-c3f91add.system.entry.js} +1 -1
- package/dist/types/components/sqm-brand/SqmBrand.stories.d.ts +1 -0
- package/dist/types/components/sqm-brand/sqm-brand.d.ts +6 -0
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +1 -0
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +5 -0
- package/dist/types/components.d.ts +20 -0
- package/dist/types/fonts/GoogleFonts.d.ts +9 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/dist/mint-components/p-6d6be8bd.system.js +0 -1
- package/dist/mint-components/p-8c4931a5.js +0 -1
- package/dist/mint-components/p-adcde089.system.entry.js +0 -58
- package/dist/mint-components/p-bf7fcf0c.js +0 -1
|
@@ -32,8 +32,21 @@ const sqmAssetCardView = require('./sqm-asset-card-view-07f86880.js');
|
|
|
32
32
|
const sqmPortalFooterView = require('./sqm-portal-footer-view-69c73802.js');
|
|
33
33
|
const sqmHeroView = require('./sqm-hero-view-bb3d00a1.js');
|
|
34
34
|
const sqmNameFieldsView = require('./sqm-name-fields-view-24614ac7.js');
|
|
35
|
-
const sqmProgramExplainerView = require('./sqm-program-explainer-view-
|
|
36
|
-
const sqmProgramExplainerStepView = require('./sqm-program-explainer-step-view-
|
|
35
|
+
const sqmProgramExplainerView = require('./sqm-program-explainer-view-afed92f5.js');
|
|
36
|
+
const sqmProgramExplainerStepView = require('./sqm-program-explainer-step-view-74863815.js');
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Build a font CSS URL using the Google Fonts CSS API
|
|
40
|
+
*
|
|
41
|
+
* Docs: https://developers.google.com/fonts/docs/css2
|
|
42
|
+
*
|
|
43
|
+
* @param fonts - the font family or families to load
|
|
44
|
+
* @returns url to a .css file
|
|
45
|
+
*/
|
|
46
|
+
function buildFontsCssUrl(...fonts) {
|
|
47
|
+
const queryString = fonts.map(f => `family=${encodeURIComponent(f)}`).join("&");
|
|
48
|
+
return `https://fonts.googleapis.com/css2?${queryString}`;
|
|
49
|
+
}
|
|
37
50
|
|
|
38
51
|
var chroma = _extends.createCommonjsModule(function (module, exports) {
|
|
39
52
|
/**
|
|
@@ -3300,24 +3313,41 @@ function makeColorScale(color) {
|
|
|
3300
3313
|
const BrandComponent = class {
|
|
3301
3314
|
constructor(hostRef) {
|
|
3302
3315
|
index.registerInstance(this, hostRef);
|
|
3303
|
-
/**
|
|
3304
|
-
* Controls the primary brand color used in the Mint Components library. Note that this
|
|
3305
|
-
* does not affect vanilla components or other component libraries.
|
|
3306
|
-
*
|
|
3307
|
-
* @uiName Brand Color
|
|
3308
|
-
*/
|
|
3309
|
-
this.brandColor = "#0000FF";
|
|
3310
3316
|
_extends.h$1(this);
|
|
3311
3317
|
}
|
|
3312
3318
|
disconnectedCallback() { }
|
|
3313
3319
|
render() {
|
|
3314
|
-
|
|
3320
|
+
var _a, _b;
|
|
3321
|
+
const brandColor = (_a = this.brandColor) !== null && _a !== void 0 ? _a : "inherit";
|
|
3322
|
+
const css = autoColorScaleCss(brandColor);
|
|
3323
|
+
const sanitizedFont = ((_b = this.brandFont) !== null && _b !== void 0 ? _b : "").trim() || undefined;
|
|
3324
|
+
_extends.useEffect(() => {
|
|
3325
|
+
if (!sanitizedFont) {
|
|
3326
|
+
// Nothing required in default case.
|
|
3327
|
+
return;
|
|
3328
|
+
}
|
|
3329
|
+
const sheet = document.createElement("link");
|
|
3330
|
+
sheet.setAttribute("href", buildFontsCssUrl(sanitizedFont));
|
|
3331
|
+
sheet.setAttribute("rel", "stylesheet");
|
|
3332
|
+
document.head.appendChild(sheet);
|
|
3333
|
+
return () => document.head.removeChild(sheet);
|
|
3334
|
+
}, [sanitizedFont]);
|
|
3335
|
+
const font = sanitizedFont !== null && sanitizedFont !== void 0 ? sanitizedFont : "inherit";
|
|
3315
3336
|
return (index.h(index.Host, null, index.h("style", null, `
|
|
3316
3337
|
:host{
|
|
3317
3338
|
display: contents;
|
|
3318
3339
|
}
|
|
3319
|
-
/*
|
|
3340
|
+
/*
|
|
3341
|
+
Selects any element placed inside a slot
|
|
3342
|
+
- resets css variable inheritence for fonts
|
|
3343
|
+
|
|
3344
|
+
*/
|
|
3320
3345
|
::slotted(*) {
|
|
3346
|
+
--sl-font-sans: "${font}", arial;
|
|
3347
|
+
--sl-input-font-family: "${font}", arial;
|
|
3348
|
+
--sl-tooltip-font-family: "${font}", arial;
|
|
3349
|
+
font-family: "${font}", arial;
|
|
3350
|
+
|
|
3321
3351
|
${css}
|
|
3322
3352
|
}`), index.h("slot", null)));
|
|
3323
3353
|
}
|
|
@@ -21076,15 +21106,15 @@ const FullStackIcon = () => {
|
|
|
21076
21106
|
};
|
|
21077
21107
|
|
|
21078
21108
|
const ShareButton$1 = /*#__PURE__*/Object.freeze({
|
|
21079
|
-
|
|
21080
|
-
|
|
21081
|
-
|
|
21082
|
-
|
|
21083
|
-
|
|
21084
|
-
|
|
21085
|
-
|
|
21086
|
-
|
|
21087
|
-
|
|
21109
|
+
__proto__: null,
|
|
21110
|
+
'default': ShareButton_stories,
|
|
21111
|
+
WithIcon: WithIcon,
|
|
21112
|
+
WithIconOverride: WithIconOverride,
|
|
21113
|
+
TextStyle: TextStyle,
|
|
21114
|
+
WithoutIcon: WithoutIcon,
|
|
21115
|
+
WithoutText: WithoutText,
|
|
21116
|
+
TextStyleWithoutIcon: TextStyleWithoutIcon,
|
|
21117
|
+
FullStackIcon: FullStackIcon
|
|
21088
21118
|
});
|
|
21089
21119
|
|
|
21090
21120
|
const ShareLink_stories = {
|
|
@@ -21120,12 +21150,12 @@ const FullStack = () => {
|
|
|
21120
21150
|
};
|
|
21121
21151
|
|
|
21122
21152
|
const ShareLink$1 = /*#__PURE__*/Object.freeze({
|
|
21123
|
-
|
|
21124
|
-
|
|
21125
|
-
|
|
21126
|
-
|
|
21127
|
-
|
|
21128
|
-
|
|
21153
|
+
__proto__: null,
|
|
21154
|
+
'default': ShareLink_stories,
|
|
21155
|
+
Default: Default,
|
|
21156
|
+
Tooltip: Tooltip,
|
|
21157
|
+
Disabled: Disabled,
|
|
21158
|
+
FullStack: FullStack
|
|
21129
21159
|
});
|
|
21130
21160
|
|
|
21131
21161
|
const BigStat_stories = {
|
|
@@ -21193,16 +21223,16 @@ const InvalidStatValue = () => {
|
|
|
21193
21223
|
};
|
|
21194
21224
|
|
|
21195
21225
|
const BigStat = /*#__PURE__*/Object.freeze({
|
|
21196
|
-
|
|
21197
|
-
|
|
21198
|
-
|
|
21199
|
-
|
|
21200
|
-
|
|
21201
|
-
|
|
21202
|
-
|
|
21203
|
-
|
|
21204
|
-
|
|
21205
|
-
|
|
21226
|
+
__proto__: null,
|
|
21227
|
+
'default': BigStat_stories,
|
|
21228
|
+
Default: Default$1,
|
|
21229
|
+
LeftAlign: LeftAlign,
|
|
21230
|
+
RightAlign: RightAlign,
|
|
21231
|
+
FlexReverse: FlexReverse,
|
|
21232
|
+
FlexReverseRight: FlexReverseRight,
|
|
21233
|
+
FlexReverseLeft: FlexReverseLeft,
|
|
21234
|
+
NoStatValue: NoStatValue,
|
|
21235
|
+
InvalidStatValue: InvalidStatValue
|
|
21206
21236
|
});
|
|
21207
21237
|
|
|
21208
21238
|
const Leaderboard_stories = {
|
|
@@ -21305,12 +21335,12 @@ const Five = () => {
|
|
|
21305
21335
|
};
|
|
21306
21336
|
|
|
21307
21337
|
const Leaderboard = /*#__PURE__*/Object.freeze({
|
|
21308
|
-
|
|
21309
|
-
|
|
21310
|
-
|
|
21311
|
-
|
|
21312
|
-
|
|
21313
|
-
|
|
21338
|
+
__proto__: null,
|
|
21339
|
+
'default': Leaderboard_stories,
|
|
21340
|
+
Empty: Empty,
|
|
21341
|
+
Loading: Loading,
|
|
21342
|
+
One: One,
|
|
21343
|
+
Five: Five
|
|
21314
21344
|
});
|
|
21315
21345
|
|
|
21316
21346
|
const HookStoryAddon = ({ story }, children) => {
|
|
@@ -21474,12 +21504,12 @@ const RouterPlayground = createHookStory(() => {
|
|
|
21474
21504
|
});
|
|
21475
21505
|
|
|
21476
21506
|
const Router = /*#__PURE__*/Object.freeze({
|
|
21477
|
-
|
|
21478
|
-
|
|
21479
|
-
|
|
21480
|
-
|
|
21481
|
-
|
|
21482
|
-
|
|
21507
|
+
__proto__: null,
|
|
21508
|
+
'default': Router_stories,
|
|
21509
|
+
TemplateNavigation: TemplateNavigation,
|
|
21510
|
+
RouteNavigation: RouteNavigation,
|
|
21511
|
+
Styling: Styling,
|
|
21512
|
+
RouterPlayground: RouterPlayground
|
|
21483
21513
|
});
|
|
21484
21514
|
|
|
21485
21515
|
const LeaderboardRank_stories = {
|
|
@@ -21494,9 +21524,9 @@ const First = () => {
|
|
|
21494
21524
|
};
|
|
21495
21525
|
|
|
21496
21526
|
const LeaderboardRank = /*#__PURE__*/Object.freeze({
|
|
21497
|
-
|
|
21498
|
-
|
|
21499
|
-
|
|
21527
|
+
__proto__: null,
|
|
21528
|
+
'default': LeaderboardRank_stories,
|
|
21529
|
+
First: First
|
|
21500
21530
|
});
|
|
21501
21531
|
|
|
21502
21532
|
function setupGraphQL() {
|
|
@@ -21616,12 +21646,12 @@ const FullStackFrameLoggedOut = () => {
|
|
|
21616
21646
|
};
|
|
21617
21647
|
|
|
21618
21648
|
const PortalFrame$1 = /*#__PURE__*/Object.freeze({
|
|
21619
|
-
|
|
21620
|
-
|
|
21621
|
-
|
|
21622
|
-
|
|
21623
|
-
|
|
21624
|
-
|
|
21649
|
+
__proto__: null,
|
|
21650
|
+
'default': PortalFrame_stories,
|
|
21651
|
+
FrameWithMenu: FrameWithMenu,
|
|
21652
|
+
FrameWithoutMenu: FrameWithoutMenu,
|
|
21653
|
+
FullStackFrame: FullStackFrame,
|
|
21654
|
+
FullStackFrameLoggedOut: FullStackFrameLoggedOut
|
|
21625
21655
|
});
|
|
21626
21656
|
|
|
21627
21657
|
const EditProfileForm_stories = {
|
|
@@ -21685,11 +21715,11 @@ const FullStackFrameWithMenu = () => {
|
|
|
21685
21715
|
};
|
|
21686
21716
|
|
|
21687
21717
|
const EditProfile$1 = /*#__PURE__*/Object.freeze({
|
|
21688
|
-
|
|
21689
|
-
|
|
21690
|
-
|
|
21691
|
-
|
|
21692
|
-
|
|
21718
|
+
__proto__: null,
|
|
21719
|
+
'default': EditProfileForm_stories,
|
|
21720
|
+
EditProfileFormDisabled: EditProfileFormDisabled,
|
|
21721
|
+
EditProfileFormEnabled: EditProfileFormEnabled,
|
|
21722
|
+
FullStackFrameWithMenu: FullStackFrameWithMenu
|
|
21693
21723
|
});
|
|
21694
21724
|
|
|
21695
21725
|
const UseShareLink_stories = {
|
|
@@ -21747,11 +21777,11 @@ const FastTooltip = createHookStory(() => {
|
|
|
21747
21777
|
});
|
|
21748
21778
|
|
|
21749
21779
|
const UseShareLink = /*#__PURE__*/Object.freeze({
|
|
21750
|
-
|
|
21751
|
-
|
|
21752
|
-
|
|
21753
|
-
|
|
21754
|
-
|
|
21780
|
+
__proto__: null,
|
|
21781
|
+
'default': UseShareLink_stories,
|
|
21782
|
+
BareBonesView: BareBonesView,
|
|
21783
|
+
RegularView: RegularView,
|
|
21784
|
+
FastTooltip: FastTooltip
|
|
21755
21785
|
});
|
|
21756
21786
|
|
|
21757
21787
|
const UseShareButton_stories = {
|
|
@@ -21810,10 +21840,10 @@ const RegularView$1 = createHookStory(() => {
|
|
|
21810
21840
|
});
|
|
21811
21841
|
|
|
21812
21842
|
const UseShareButton = /*#__PURE__*/Object.freeze({
|
|
21813
|
-
|
|
21814
|
-
|
|
21815
|
-
|
|
21816
|
-
|
|
21843
|
+
__proto__: null,
|
|
21844
|
+
'default': UseShareButton_stories,
|
|
21845
|
+
BareBonesView: BareBonesView$1,
|
|
21846
|
+
RegularView: RegularView$1
|
|
21817
21847
|
});
|
|
21818
21848
|
|
|
21819
21849
|
const UseBigStat_stories = {
|
|
@@ -21918,36 +21948,36 @@ const CustomField = createHookStory(() => {
|
|
|
21918
21948
|
});
|
|
21919
21949
|
|
|
21920
21950
|
const UseBigStat = /*#__PURE__*/Object.freeze({
|
|
21921
|
-
|
|
21922
|
-
|
|
21923
|
-
|
|
21924
|
-
|
|
21925
|
-
|
|
21926
|
-
|
|
21927
|
-
|
|
21928
|
-
|
|
21929
|
-
|
|
21930
|
-
|
|
21931
|
-
|
|
21932
|
-
|
|
21933
|
-
|
|
21934
|
-
|
|
21935
|
-
|
|
21936
|
-
|
|
21937
|
-
|
|
21938
|
-
|
|
21939
|
-
|
|
21940
|
-
|
|
21941
|
-
|
|
21942
|
-
|
|
21943
|
-
|
|
21944
|
-
|
|
21945
|
-
|
|
21946
|
-
|
|
21947
|
-
|
|
21948
|
-
|
|
21949
|
-
|
|
21950
|
-
|
|
21951
|
+
__proto__: null,
|
|
21952
|
+
'default': UseBigStat_stories,
|
|
21953
|
+
Demo: Demo,
|
|
21954
|
+
ReferralsCount: ReferralsCount,
|
|
21955
|
+
referralsConvertedCount: referralsConvertedCount,
|
|
21956
|
+
referralsStartedCount: referralsStartedCount,
|
|
21957
|
+
ReferralsMonth: ReferralsMonth,
|
|
21958
|
+
ReferralsWeek: ReferralsWeek,
|
|
21959
|
+
RewardsCount: RewardsCount,
|
|
21960
|
+
GlobalRewardsCount: GlobalRewardsCount,
|
|
21961
|
+
GlobalRewardsCountFiltered: GlobalRewardsCountFiltered,
|
|
21962
|
+
GlobalRewardsCountPctDiscount: GlobalRewardsCountPctDiscount,
|
|
21963
|
+
GlobalRewardsCountPctDiscountPending: GlobalRewardsCountPctDiscountPending,
|
|
21964
|
+
RewardsCountByUnit: RewardsCountByUnit,
|
|
21965
|
+
GlobalRewardsCountByUnit: GlobalRewardsCountByUnit,
|
|
21966
|
+
GlobalPendingRewardsCount: GlobalPendingRewardsCount,
|
|
21967
|
+
RewardsAvailableCount: RewardsAvailableCount,
|
|
21968
|
+
GlobalRewardsCountByIntegration: GlobalRewardsCountByIntegration,
|
|
21969
|
+
GlobalRewardsCountByPendingIntegration: GlobalRewardsCountByPendingIntegration,
|
|
21970
|
+
RewardsMonth: RewardsMonth,
|
|
21971
|
+
RewardsWeek: RewardsWeek,
|
|
21972
|
+
RewardsAssigned: RewardsAssigned,
|
|
21973
|
+
RewardsAssignedCashUSD: RewardsAssignedCashUSD,
|
|
21974
|
+
RewardsRedeemed: RewardsRedeemed,
|
|
21975
|
+
RewardsAvailable: RewardsAvailable,
|
|
21976
|
+
RewardsAvailableWithSlash: RewardsAvailableWithSlash,
|
|
21977
|
+
RewardBalance: RewardBalance,
|
|
21978
|
+
RewardBalanceCashUSD: RewardBalanceCashUSD,
|
|
21979
|
+
ProgramGoals: ProgramGoals,
|
|
21980
|
+
CustomField: CustomField
|
|
21951
21981
|
});
|
|
21952
21982
|
|
|
21953
21983
|
function setupGraphQL$4() {
|
|
@@ -21989,9 +22019,9 @@ const RegularView$2 = createHookStory(() => {
|
|
|
21989
22019
|
});
|
|
21990
22020
|
|
|
21991
22021
|
const UseEditProfile = /*#__PURE__*/Object.freeze({
|
|
21992
|
-
|
|
21993
|
-
|
|
21994
|
-
|
|
22022
|
+
__proto__: null,
|
|
22023
|
+
'default': UseEditProfile_stories,
|
|
22024
|
+
RegularView: RegularView$2
|
|
21995
22025
|
});
|
|
21996
22026
|
|
|
21997
22027
|
const UseLeaderboard_stories = {
|
|
@@ -22069,10 +22099,10 @@ const TopStartedReferrers = createHookStory(() => {
|
|
|
22069
22099
|
});
|
|
22070
22100
|
|
|
22071
22101
|
const UseLeaderboard = /*#__PURE__*/Object.freeze({
|
|
22072
|
-
|
|
22073
|
-
|
|
22074
|
-
|
|
22075
|
-
|
|
22102
|
+
__proto__: null,
|
|
22103
|
+
'default': UseLeaderboard_stories,
|
|
22104
|
+
TopConvertedReferrers: TopConvertedReferrers,
|
|
22105
|
+
TopStartedReferrers: TopStartedReferrers
|
|
22076
22106
|
});
|
|
22077
22107
|
|
|
22078
22108
|
const FormMessage_stories = {
|
|
@@ -22104,12 +22134,12 @@ const FullStackSuccess = () => {
|
|
|
22104
22134
|
};
|
|
22105
22135
|
|
|
22106
22136
|
const FormMessage$1 = /*#__PURE__*/Object.freeze({
|
|
22107
|
-
|
|
22108
|
-
|
|
22109
|
-
|
|
22110
|
-
|
|
22111
|
-
|
|
22112
|
-
|
|
22137
|
+
__proto__: null,
|
|
22138
|
+
'default': FormMessage_stories,
|
|
22139
|
+
SuccessAlert: SuccessAlert,
|
|
22140
|
+
ErrorAlert: ErrorAlert,
|
|
22141
|
+
InfoAlert: InfoAlert,
|
|
22142
|
+
FullStackSuccess: FullStackSuccess
|
|
22113
22143
|
});
|
|
22114
22144
|
|
|
22115
22145
|
const EXCHANGE$1 = index_module.dist.gql `
|
|
@@ -22246,12 +22276,12 @@ const VariableCreditReward = createHookStory(() => {
|
|
|
22246
22276
|
});
|
|
22247
22277
|
|
|
22248
22278
|
const UseRewardExchangeList = /*#__PURE__*/Object.freeze({
|
|
22249
|
-
|
|
22250
|
-
|
|
22251
|
-
|
|
22252
|
-
|
|
22253
|
-
|
|
22254
|
-
|
|
22279
|
+
__proto__: null,
|
|
22280
|
+
'default': UseRewardExchangeList_stories,
|
|
22281
|
+
RewardList: RewardList,
|
|
22282
|
+
FixedGlobalReward: FixedGlobalReward,
|
|
22283
|
+
VariableGlobalReward: VariableGlobalReward,
|
|
22284
|
+
VariableCreditReward: VariableCreditReward
|
|
22255
22285
|
});
|
|
22256
22286
|
|
|
22257
22287
|
const UseRewardsTable_stories = {
|
|
@@ -22292,10 +22322,10 @@ const RewardsTableNoProgram = createHookStory(() => {
|
|
|
22292
22322
|
});
|
|
22293
22323
|
|
|
22294
22324
|
const UseRewardsTable = /*#__PURE__*/Object.freeze({
|
|
22295
|
-
|
|
22296
|
-
|
|
22297
|
-
|
|
22298
|
-
|
|
22325
|
+
__proto__: null,
|
|
22326
|
+
'default': UseRewardsTable_stories,
|
|
22327
|
+
RewardsTableWithProgram: RewardsTableWithProgram,
|
|
22328
|
+
RewardsTableNoProgram: RewardsTableNoProgram
|
|
22299
22329
|
});
|
|
22300
22330
|
|
|
22301
22331
|
const JWT = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoic2FtK2tsaXBAc2Fhc3F1YXQuY2giLCJhY2NvdW50SWQiOiJzYW0ra2xpcEBzYWFzcXVhdC5jaCJ9fQ.FMNZ6oajyr6SiCcRqKKdyPqvNTvWROQ60MKAyfvWGfc";
|
|
@@ -22331,9 +22361,9 @@ const TaskCard = createHookStory(() => {
|
|
|
22331
22361
|
});
|
|
22332
22362
|
|
|
22333
22363
|
const UseTaskCard = /*#__PURE__*/Object.freeze({
|
|
22334
|
-
|
|
22335
|
-
|
|
22336
|
-
|
|
22364
|
+
__proto__: null,
|
|
22365
|
+
'default': UseTaskCard_stories,
|
|
22366
|
+
TaskCard: TaskCard
|
|
22337
22367
|
});
|
|
22338
22368
|
|
|
22339
22369
|
const NewPortal_stories = {
|
|
@@ -22630,12 +22660,12 @@ const Activity = () => {
|
|
|
22630
22660
|
};
|
|
22631
22661
|
|
|
22632
22662
|
const NewPortal = /*#__PURE__*/Object.freeze({
|
|
22633
|
-
|
|
22634
|
-
|
|
22635
|
-
|
|
22636
|
-
|
|
22637
|
-
|
|
22638
|
-
|
|
22663
|
+
__proto__: null,
|
|
22664
|
+
'default': NewPortal_stories,
|
|
22665
|
+
Dashboard: Dashboard,
|
|
22666
|
+
EditProfile: EditProfile$2,
|
|
22667
|
+
Commissions: Commissions,
|
|
22668
|
+
Activity: Activity
|
|
22639
22669
|
});
|
|
22640
22670
|
|
|
22641
22671
|
const SidebarItem_stories = {
|
|
@@ -22669,10 +22699,10 @@ const ActiveItem = () => {
|
|
|
22669
22699
|
};
|
|
22670
22700
|
|
|
22671
22701
|
const SidebarItem = /*#__PURE__*/Object.freeze({
|
|
22672
|
-
|
|
22673
|
-
|
|
22674
|
-
|
|
22675
|
-
|
|
22702
|
+
__proto__: null,
|
|
22703
|
+
'default': SidebarItem_stories,
|
|
22704
|
+
InactiveItem: InactiveItem,
|
|
22705
|
+
ActiveItem: ActiveItem
|
|
22676
22706
|
});
|
|
22677
22707
|
|
|
22678
22708
|
const NavigationSidebar_stories = {
|
|
@@ -22719,9 +22749,9 @@ const DefaultNavigationSidebar = () => {
|
|
|
22719
22749
|
};
|
|
22720
22750
|
|
|
22721
22751
|
const NavigationSidebar = /*#__PURE__*/Object.freeze({
|
|
22722
|
-
|
|
22723
|
-
|
|
22724
|
-
|
|
22752
|
+
__proto__: null,
|
|
22753
|
+
'default': NavigationSidebar_stories,
|
|
22754
|
+
DefaultNavigationSidebar: DefaultNavigationSidebar
|
|
22725
22755
|
});
|
|
22726
22756
|
|
|
22727
22757
|
const PortalLogin_stories = {
|
|
@@ -22762,11 +22792,11 @@ const LoginWithError = () => index.h(PortalLoginView, Object.assign({}, errorPro
|
|
|
22762
22792
|
const LoginLoading = () => index.h(PortalLoginView, Object.assign({}, loadingProps));
|
|
22763
22793
|
|
|
22764
22794
|
const PortalLogin$1 = /*#__PURE__*/Object.freeze({
|
|
22765
|
-
|
|
22766
|
-
|
|
22767
|
-
|
|
22768
|
-
|
|
22769
|
-
|
|
22795
|
+
__proto__: null,
|
|
22796
|
+
'default': PortalLogin_stories,
|
|
22797
|
+
Default: Default$2,
|
|
22798
|
+
LoginWithError: LoginWithError,
|
|
22799
|
+
LoginLoading: LoginLoading
|
|
22770
22800
|
});
|
|
22771
22801
|
|
|
22772
22802
|
const PortalRegister_stories = {
|
|
@@ -22861,13 +22891,13 @@ const FieldsHidden = () => {
|
|
|
22861
22891
|
const SlottedInputs = () => index.h(PortalRegisterView, Object.assign({}, slottedProps));
|
|
22862
22892
|
|
|
22863
22893
|
const PortalRegister$1 = /*#__PURE__*/Object.freeze({
|
|
22864
|
-
|
|
22865
|
-
|
|
22866
|
-
|
|
22867
|
-
|
|
22868
|
-
|
|
22869
|
-
|
|
22870
|
-
|
|
22894
|
+
__proto__: null,
|
|
22895
|
+
'default': PortalRegister_stories,
|
|
22896
|
+
Default: Default$3,
|
|
22897
|
+
RegisterWithError: RegisterWithError,
|
|
22898
|
+
RegisterLoading: RegisterLoading,
|
|
22899
|
+
FieldsHidden: FieldsHidden,
|
|
22900
|
+
SlottedInputs: SlottedInputs
|
|
22871
22901
|
});
|
|
22872
22902
|
|
|
22873
22903
|
const scenario = "@author:\r\n@owner:ian\r\nFeature: Forgot Password\r\n\r\n @motivating\r\n Scenario: Users can request to reset their password\r\n Given a user enters their email address\r\n And that email address is linked to a previously created account\r\n When they click \"Reset Password\"\r\n Then the button enters a loading state\r\n When the password reset email is sent\r\n Then a confirmation banner is shown stating a password reset email was sent\r\n\r\n @motivating\r\n Scenario: Users are notified if sending their password reset email fails\r\n Given a user enters their email address\r\n And that email address is linked to a previously created account\r\n When they click \"Reset Password\"\r\n Then the button enters a loading state\r\n When the password reset email fails to send\r\n Then the user will not receive a password reset email\r\n And an error banner is shown stating that they should try again\r\n\r\n @motivating\r\n @landmine\r\n Scenario: If the input email is not associated to an account a success banner will be shown but an email will not be sent\r\n Given the user entered an email address that is not associated to an accoun\r\n When they click \"Reset Password\"\r\n Then the button enters a loading state\r\n But no email will be sent\r\n And a success banner is shown stating a password reset email was sent if the given email was associated to an account\r\n\r\n @motivating\r\n Scenario: Users can resend password reset email\r\n Given a user had previously requested to reset their password\r\n When they enter their email address\r\n And that email address is linked to a previously created account\r\n And they click \"Reset Password\"\r\n Then the user will receive a second password reset email\r\n And a success banner is shown stating that their email was sent\r\n";
|
|
@@ -22940,12 +22970,12 @@ const ForgotPasswordLoading = () => (index.h(sqmPortalForgotPasswordView.PortalF
|
|
|
22940
22970
|
const ForgotPasswordSuccess = () => (index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, successProps)));
|
|
22941
22971
|
|
|
22942
22972
|
const PortalForgotPassword = /*#__PURE__*/Object.freeze({
|
|
22943
|
-
|
|
22944
|
-
|
|
22945
|
-
|
|
22946
|
-
|
|
22947
|
-
|
|
22948
|
-
|
|
22973
|
+
__proto__: null,
|
|
22974
|
+
'default': PortalForgotPassword_stories,
|
|
22975
|
+
Default: Default$4,
|
|
22976
|
+
ForgotPasswordWithError: ForgotPasswordWithError,
|
|
22977
|
+
ForgotPasswordLoading: ForgotPasswordLoading,
|
|
22978
|
+
ForgotPasswordSuccess: ForgotPasswordSuccess
|
|
22949
22979
|
});
|
|
22950
22980
|
|
|
22951
22981
|
const scenario$1 = "@author:\r\n@owner: ian\r\nFeature: Email Verification\r\n\r\n @minutae\r\n Scenario: User's redirected from registration can re-send their verification email\r\n Given a user has registered\r\n And they have been sent a verification email\r\n When they are redirected to the email verification page\r\n Then a message will be displayed\r\n And it will reflect that a email has already been sent to their email\r\n But they can still re-send the email\r\n When they click to \"Resend-Email\"\r\n Then the user will receive a verification email\r\n\r\n @motivating\r\n Scenario: Users are notified if sending the email verification message fails\r\n Given a user with an email was stored in session data from registration\r\n When they click to \"Resend-Email\"\r\n Then the button enters a loading state\r\n When an error occurs trying to send the verification email\r\n Then the user will not receive a verification email\r\n And an error banner is shown stating that they should try again\r\n\r\n @motivating\r\n Scenario: Users are notified if sending the email verification message succeeds\r\n Given a user with an email was stored in session data from registration\r\n When they click to \"Resend-Email\"\r\n Then the button enters a loading state\r\n When the email verification message sends\r\n Then the user will receive a verification email\r\n And a success banner is shown stating that their email was resent";
|
|
@@ -23026,12 +23056,12 @@ const EmailVerificationLoading = () => (index.h(sqmPortalEmailVerificationView.P
|
|
|
23026
23056
|
const EmailVerificationSuccess = () => (index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, successProps$1)));
|
|
23027
23057
|
|
|
23028
23058
|
const PortalEmailVerification = /*#__PURE__*/Object.freeze({
|
|
23029
|
-
|
|
23030
|
-
|
|
23031
|
-
|
|
23032
|
-
|
|
23033
|
-
|
|
23034
|
-
|
|
23059
|
+
__proto__: null,
|
|
23060
|
+
'default': PortalEmailVerification_stories,
|
|
23061
|
+
Default: Default$5,
|
|
23062
|
+
EmailVerificationWithError: EmailVerificationWithError,
|
|
23063
|
+
EmailVerificationLoading: EmailVerificationLoading,
|
|
23064
|
+
EmailVerificationSuccess: EmailVerificationSuccess
|
|
23035
23065
|
});
|
|
23036
23066
|
|
|
23037
23067
|
const scenario$2 = "@author:\r\n@owner:ian\r\nFeature: Reset Password\r\n\r\n\r\n Background: A user in on the password reset page\r\n Given a user who has been redirected to the password reset page\r\n\r\n @motivating\r\n Scenario: Users can reset their password\r\n Given a user has a valid oob code as a url query parameter\r\n When they enter their password twice\r\n And they click \"Update\"\r\n Then their password is updated\r\n And a banner with a success message will be displayed\r\n And they can log in with their new password\r\n\r\n @motivating\r\n Scenario Outline: Users cannot reset their password with an invalid or missing oob code\r\n Given a user has a <oobCode> as a url query parameter\r\n Then they will see an error message saying that their password reset code is invalid or expired\r\n When they click \"Continue\"\r\n Then they will be redirected to \"/\"\r\n Examples:\r\n | oobCode |\r\n | invalid oob code |\r\n | non existant oob code |\r\n\r\n @motivating\r\n Scenario: Users must enter the same password twice to successfully reset their password\r\n Given a user has been redirected to the password reset page\r\n And they have a valid oob code as a url query parameter\r\n When they enter two different passwords into the password reset form\r\n And they click \"Update\"\r\n Then their password is not be reset\r\n And an error banner stating the input passwords must match appears\r\n And their password will not be reset\r\n When they enter the same password twice\r\n And they click \"Update\"\r\n Then a banner appears with a success message\r\n And they can log in with their new password\r\n\r\n @motivating\r\n Scenario: Users are redirected to \"/\" by default\r\n Given the component does not have prop \"nextPage\"\r\n And the users url does not contain a \"nextPage\" query parameter\r\n And a user has entered their password twice\r\n When they click \"Update\"\r\n Then their password is updated\r\n And they are redirected to \"/\"\r\n\r\n @motivating\r\n Scenario: Custom redirection can be configured\r\n Given the component has prop \"nextPage\" with value \"/activity\"\r\n And the users url does not contain a \"nextPage\" query parameter\r\n And a user has entered their password twice\r\n When they click \"Update\"\r\n Then their password is updated\r\n And they are redirected to \"/activity\"";
|
|
@@ -23188,14 +23218,14 @@ const ResetPasswordSuccess = () => (index.h(sqmPortalResetPasswordView.PortalRes
|
|
|
23188
23218
|
const CodeValidating = () => (index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, validatingCodeProps)));
|
|
23189
23219
|
|
|
23190
23220
|
const PortalResetPassword = /*#__PURE__*/Object.freeze({
|
|
23191
|
-
|
|
23192
|
-
|
|
23193
|
-
|
|
23194
|
-
|
|
23195
|
-
|
|
23196
|
-
|
|
23197
|
-
|
|
23198
|
-
|
|
23221
|
+
__proto__: null,
|
|
23222
|
+
'default': PortalResetPassword_stories,
|
|
23223
|
+
Default: Default$6,
|
|
23224
|
+
DefaultWithoutConfirmField: DefaultWithoutConfirmField,
|
|
23225
|
+
ResetPasswordWithError: ResetPasswordWithError,
|
|
23226
|
+
ResetPasswordLoading: ResetPasswordLoading,
|
|
23227
|
+
ResetPasswordSuccess: ResetPasswordSuccess,
|
|
23228
|
+
CodeValidating: CodeValidating
|
|
23199
23229
|
});
|
|
23200
23230
|
|
|
23201
23231
|
const scenario$3 = "@author:\r\n@owner:ian\r\nFeature: Verify Email\r\n\r\n\r\n Background: A user is on the email verification page\r\n Given a user who has been redirected to the email verification page\r\n\r\n @motivating\r\n Scenario: Verifying your email will take you to the portal login page\r\n Given a user has a valid oob code as a url query parameter\r\n When they click \"Verify Email\"\r\n Then the button will enter a loading state\r\n When their email is validated\r\n Then a button that says \"Continue\" will appear\r\n When they click \"Continue\"\r\n Then they will be redirected to login\r\n\r\n @motivating\r\n Scenario: Users will be automatically redirected if they dont click \"Continue\"\r\n Given a user has a valid oob code as a url query parameter\r\n When they click \"Verify Email\"\r\n Then the button will enter a loading state\r\n When their email is validated\r\n Then a button that says \"Continue\" will appear\r\n When they wait 5 seconds\r\n Then they will be redirected to login\r\n\r\n @motivating\r\n Scenario: Users are notified if verifying their email has failed\r\n Given a user has a valid oob code as a url query parameter\r\n When they click \"Verify Email\"\r\n Then the button will enter a loading state\r\n When their email fails to be validated\r\n Then an banner is shown stating that an error occured\r\n\r\n @motivating\r\n Scenario Outline: Users cannot verify their email with an invalid or missing oob code\r\n Given a user has a <oobCode> as a url query parameter\r\n Then they will see an error message saying that their verification code is invalid or expired\r\n When they click \"Continue\"\r\n Then they will be redirected to \"/\"\r\n Examples:\r\n | oobCode |\r\n | invalid oob code |\r\n | non existant oob code |\r\n\r\n @motivating\r\n Scenario: Users are redirected to \"/\" by default\r\n Given the component does not have prop \"nextPage\"\r\n And the users url does not contain a \"nextPage\" query parameter\r\n And a user has verified their email\r\n When they click \"Continue\"\r\n Then they will be redirected to \"/\"\r\n\r\n @motivating\r\n Scenario: Custom redirection can be configured\r\n Given the component has prop \"nextPage\" with value \"/activity\"\r\n And the users url does not contain a \"nextPage\" query parameter\r\n And a user has verified their email\r\n When they click \"Continue\"\r\n Then they will be redirected to \"/activity\"\r\n\r\n @motivating\r\n Scenario Outline: Users will be redirected to the value of the nextPage url parameter if it exists\r\n Given the component <mayHave> prop \"nextPage\" with <nextPageValue>\r\n And the users url contains a \"nextPage\" query paramater with <nextPageParamValue>\r\n And the user has verified their email\r\n When they click \"Continue\"\r\n Then they are redirected to <nextPageParamValue>\r\n Examples:\r\n | mayHave | nextPageValue | nextPageParamValue |\r\n | has | /dashboard | /activity |\r\n | does not have | N/A | /activity |";
|
|
@@ -23238,10 +23268,10 @@ const EmailVerificationWithError$1 = () => (index.h(sqmPortalVerifyEmailView.Por
|
|
|
23238
23268
|
const EmailVerificationSuccess$1 = () => (index.h(sqmPortalVerifyEmailView.PortalVerifyEmailView, Object.assign({}, verifiedProps)));
|
|
23239
23269
|
|
|
23240
23270
|
const PortalVerifyEmail = /*#__PURE__*/Object.freeze({
|
|
23241
|
-
|
|
23242
|
-
|
|
23243
|
-
|
|
23244
|
-
|
|
23271
|
+
__proto__: null,
|
|
23272
|
+
'default': PortalVerifyEmail_stories,
|
|
23273
|
+
EmailVerificationWithError: EmailVerificationWithError$1,
|
|
23274
|
+
EmailVerificationSuccess: EmailVerificationSuccess$1
|
|
23245
23275
|
});
|
|
23246
23276
|
|
|
23247
23277
|
const AssetCard_stories = {
|
|
@@ -23273,11 +23303,11 @@ const CardWithNoImg = () => {
|
|
|
23273
23303
|
};
|
|
23274
23304
|
|
|
23275
23305
|
const AssetCard = /*#__PURE__*/Object.freeze({
|
|
23276
|
-
|
|
23277
|
-
|
|
23278
|
-
|
|
23279
|
-
|
|
23280
|
-
|
|
23306
|
+
__proto__: null,
|
|
23307
|
+
'default': AssetCard_stories,
|
|
23308
|
+
Default: Default$7,
|
|
23309
|
+
CardWithLongText: CardWithLongText,
|
|
23310
|
+
CardWithNoImg: CardWithNoImg
|
|
23281
23311
|
});
|
|
23282
23312
|
|
|
23283
23313
|
const DividedLayout_stories = {
|
|
@@ -23363,11 +23393,11 @@ const ColumnCustomDivider = () => {
|
|
|
23363
23393
|
};
|
|
23364
23394
|
|
|
23365
23395
|
const DividedLayout$1 = /*#__PURE__*/Object.freeze({
|
|
23366
|
-
|
|
23367
|
-
|
|
23368
|
-
|
|
23369
|
-
|
|
23370
|
-
|
|
23396
|
+
__proto__: null,
|
|
23397
|
+
'default': DividedLayout_stories,
|
|
23398
|
+
Row: Row,
|
|
23399
|
+
Column: Column,
|
|
23400
|
+
ColumnCustomDivider: ColumnCustomDivider
|
|
23371
23401
|
});
|
|
23372
23402
|
|
|
23373
23403
|
const scenario$4 = "Feature: Change Password\r\n\r\n @motivating\r\n Scenario: Users can change their password\r\n Given a user has registered for the portal\r\n And they have a password\r\n When they navigate to the edit profile page\r\n And click \"Change your password...\"\r\n Then a popup will appear\r\n When they enter their new password\r\n And confirm it\r\n And click \"Change Password\"\r\n Then they will see a success banner stating that the change was successful\r\n When they logout\r\n And try to login\r\n Then they will not be able to login with their old password\r\n But they will be able to login with their new password\r\n\r\n @motivating\r\n Scenario: Users must confirm their password change\r\n Given a user has registered for the portal\r\n When they navigate to the edit profile page\r\n And click \"Change your password...\"\r\n Then a popup will appear\r\n When they enter their new password\r\n But they enter a different password to confirm\r\n And click \"Change Password\"\r\n Then they will see an error banner stating that the passwords didnt match\r\n When they logout\r\n And try to login\r\n Then they will be able to login with their existing password\r\n\r\n @motivating\r\n Scenario: Users must enter a new password and confirm it to change their password\r\n Given a user has registered for the portal\r\n When they navigate to the edit profile page\r\n And click \"Change your password...\"\r\n Then a popup will appear\r\n When they click \"Change password\"\r\n Then a validation error will appear for the new password field\r\n And their password will not be changed\r\n When they enter a new password\r\n And they click \"Change password\"\r\n Then a validation error will appear for the confirm new password field\r\n And their password will not be changed\r\n\r\n @motivating\r\n Scenario: An error banner will be displayed if the password change fails\r\n Given a user has registered for the portal\r\n When they navigate to the edit profile page\r\n And click \"Change your password...\"\r\n When they enter their new password\r\n And confirm it\r\n And click \"Change Password\"\r\n But the change fails\r\n Then they will see an error banner stating that the change failed\r\n When they logout\r\n And try to login\r\n Then they will be able to login with their existing password";
|
|
@@ -23518,14 +23548,14 @@ const Loading$1 = () => index.h(PortalChangePasswordView, Object.assign({}, load
|
|
|
23518
23548
|
const Success = () => index.h(PortalChangePasswordView, Object.assign({}, successProps$3));
|
|
23519
23549
|
|
|
23520
23550
|
const ChangePassword = /*#__PURE__*/Object.freeze({
|
|
23521
|
-
|
|
23522
|
-
|
|
23523
|
-
|
|
23524
|
-
|
|
23525
|
-
|
|
23526
|
-
|
|
23527
|
-
|
|
23528
|
-
|
|
23551
|
+
__proto__: null,
|
|
23552
|
+
'default': ChangePassword_stories,
|
|
23553
|
+
Default: Default$8,
|
|
23554
|
+
Open: Open,
|
|
23555
|
+
Error: Error$1,
|
|
23556
|
+
PaswordError: PaswordError,
|
|
23557
|
+
Loading: Loading$1,
|
|
23558
|
+
Success: Success
|
|
23529
23559
|
});
|
|
23530
23560
|
|
|
23531
23561
|
const PortalProfile_stories = {
|
|
@@ -23759,14 +23789,14 @@ const Error$2 = () => index.h(sqmPortalProfileView.PortalProfileView, Object.ass
|
|
|
23759
23789
|
const Success$1 = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, successProps$4));
|
|
23760
23790
|
|
|
23761
23791
|
const PortalProfile = /*#__PURE__*/Object.freeze({
|
|
23762
|
-
|
|
23763
|
-
|
|
23764
|
-
|
|
23765
|
-
|
|
23766
|
-
|
|
23767
|
-
|
|
23768
|
-
|
|
23769
|
-
|
|
23792
|
+
__proto__: null,
|
|
23793
|
+
'default': PortalProfile_stories,
|
|
23794
|
+
Default: Default$9,
|
|
23795
|
+
DefaultNoCountry: DefaultNoCountry,
|
|
23796
|
+
Loading: Loading$2,
|
|
23797
|
+
Disabled: Disabled$1,
|
|
23798
|
+
Error: Error$2,
|
|
23799
|
+
Success: Success$1
|
|
23770
23800
|
});
|
|
23771
23801
|
|
|
23772
23802
|
const ReferralTableRewardsCell_stories = {
|
|
@@ -23982,23 +24012,23 @@ const tenRewardsCell = () => {
|
|
|
23982
24012
|
};
|
|
23983
24013
|
|
|
23984
24014
|
const ReferralTableRewardsCell$1 = /*#__PURE__*/Object.freeze({
|
|
23985
|
-
|
|
23986
|
-
|
|
23987
|
-
|
|
23988
|
-
|
|
23989
|
-
|
|
23990
|
-
|
|
23991
|
-
|
|
23992
|
-
|
|
23993
|
-
|
|
23994
|
-
|
|
23995
|
-
|
|
23996
|
-
|
|
23997
|
-
|
|
23998
|
-
|
|
23999
|
-
|
|
24000
|
-
|
|
24001
|
-
|
|
24015
|
+
__proto__: null,
|
|
24016
|
+
'default': ReferralTableRewardsCell_stories,
|
|
24017
|
+
PendingNoUnpend: PendingNoUnpend,
|
|
24018
|
+
PendingNoUnpendNoDetails: PendingNoUnpendNoDetails,
|
|
24019
|
+
PendingWithUnpend: PendingWithUnpend,
|
|
24020
|
+
AvailableNoExpiry: AvailableNoExpiry,
|
|
24021
|
+
AvailableWithExpiry: AvailableWithExpiry,
|
|
24022
|
+
Redeemed: Redeemed,
|
|
24023
|
+
Cancelled: Cancelled,
|
|
24024
|
+
Expired: Expired,
|
|
24025
|
+
EmptyCell: EmptyCell,
|
|
24026
|
+
oneRewardCell: oneRewardCell,
|
|
24027
|
+
twoRewardsCell: twoRewardsCell,
|
|
24028
|
+
threeRewardsCell: threeRewardsCell,
|
|
24029
|
+
fiveRewardsCell: fiveRewardsCell,
|
|
24030
|
+
eightRewardsCell: eightRewardsCell,
|
|
24031
|
+
tenRewardsCell: tenRewardsCell
|
|
24002
24032
|
});
|
|
24003
24033
|
|
|
24004
24034
|
const ReferralTable_stories = {
|
|
@@ -24475,17 +24505,17 @@ const FullRewardsTable = () => {
|
|
|
24475
24505
|
};
|
|
24476
24506
|
|
|
24477
24507
|
const ReferralTable$1 = /*#__PURE__*/Object.freeze({
|
|
24478
|
-
|
|
24479
|
-
|
|
24480
|
-
|
|
24481
|
-
|
|
24482
|
-
|
|
24483
|
-
|
|
24484
|
-
|
|
24485
|
-
|
|
24486
|
-
|
|
24487
|
-
|
|
24488
|
-
|
|
24508
|
+
__proto__: null,
|
|
24509
|
+
'default': ReferralTable_stories,
|
|
24510
|
+
SimpleUserTable: SimpleUserTable,
|
|
24511
|
+
HiddenLabelsTable: HiddenLabelsTable,
|
|
24512
|
+
CustomButtonTextTable: CustomButtonTextTable,
|
|
24513
|
+
FullUserTable: FullUserTable,
|
|
24514
|
+
LongCellTextTable: LongCellTextTable,
|
|
24515
|
+
LongColumnTextTable: LongColumnTextTable,
|
|
24516
|
+
EmptyTable: EmptyTable,
|
|
24517
|
+
LoadingTable: LoadingTable,
|
|
24518
|
+
FullRewardsTable: FullRewardsTable
|
|
24489
24519
|
});
|
|
24490
24520
|
|
|
24491
24521
|
const ReferralTableCell_stories = {
|
|
@@ -24551,14 +24581,14 @@ const RewardsCell = () => {
|
|
|
24551
24581
|
};
|
|
24552
24582
|
|
|
24553
24583
|
const ReferralTableCell$1 = /*#__PURE__*/Object.freeze({
|
|
24554
|
-
|
|
24555
|
-
|
|
24556
|
-
|
|
24557
|
-
|
|
24558
|
-
|
|
24559
|
-
|
|
24560
|
-
|
|
24561
|
-
|
|
24584
|
+
__proto__: null,
|
|
24585
|
+
'default': ReferralTableCell_stories,
|
|
24586
|
+
TableCell: TableCell,
|
|
24587
|
+
TableUserCell: TableUserCell,
|
|
24588
|
+
EmptyCell: EmptyCell$1,
|
|
24589
|
+
StatusCell: StatusCell,
|
|
24590
|
+
DateCell: DateCell,
|
|
24591
|
+
RewardsCell: RewardsCell
|
|
24562
24592
|
});
|
|
24563
24593
|
|
|
24564
24594
|
const UserName_stories = {
|
|
@@ -24576,10 +24606,10 @@ const Username = () => {
|
|
|
24576
24606
|
};
|
|
24577
24607
|
|
|
24578
24608
|
const UserName = /*#__PURE__*/Object.freeze({
|
|
24579
|
-
|
|
24580
|
-
|
|
24581
|
-
|
|
24582
|
-
|
|
24609
|
+
__proto__: null,
|
|
24610
|
+
'default': UserName_stories,
|
|
24611
|
+
DemoData: DemoData,
|
|
24612
|
+
Username: Username
|
|
24583
24613
|
});
|
|
24584
24614
|
|
|
24585
24615
|
const PasswordField_stories = {
|
|
@@ -24623,11 +24653,11 @@ const ValidationError = () => {
|
|
|
24623
24653
|
};
|
|
24624
24654
|
|
|
24625
24655
|
const PasswordField = /*#__PURE__*/Object.freeze({
|
|
24626
|
-
|
|
24627
|
-
|
|
24628
|
-
|
|
24629
|
-
|
|
24630
|
-
|
|
24656
|
+
__proto__: null,
|
|
24657
|
+
'default': PasswordField_stories,
|
|
24658
|
+
Start: Start,
|
|
24659
|
+
EmptyError: EmptyError,
|
|
24660
|
+
ValidationError: ValidationError
|
|
24631
24661
|
});
|
|
24632
24662
|
|
|
24633
24663
|
/**
|
|
@@ -25767,21 +25797,21 @@ const ProgressBarStepsRepeatableFinite = () => {
|
|
|
25767
25797
|
};
|
|
25768
25798
|
|
|
25769
25799
|
const TaskCard$2 = /*#__PURE__*/Object.freeze({
|
|
25770
|
-
|
|
25771
|
-
|
|
25772
|
-
|
|
25773
|
-
|
|
25774
|
-
|
|
25775
|
-
|
|
25776
|
-
|
|
25777
|
-
|
|
25778
|
-
|
|
25779
|
-
|
|
25780
|
-
|
|
25781
|
-
|
|
25782
|
-
|
|
25783
|
-
|
|
25784
|
-
|
|
25800
|
+
__proto__: null,
|
|
25801
|
+
'default': TaskCard_stories,
|
|
25802
|
+
TaskCard: TaskCard$1,
|
|
25803
|
+
TaskCardNotRepeatable: TaskCardNotRepeatable,
|
|
25804
|
+
TaskCardRepeatable: TaskCardRepeatable,
|
|
25805
|
+
TaskCardRepeatableFinite: TaskCardRepeatableFinite,
|
|
25806
|
+
TaskCardEndDate: TaskCardEndDate,
|
|
25807
|
+
TaskCardLoading: TaskCardLoading,
|
|
25808
|
+
TaskCardNotStarted: TaskCardNotStarted,
|
|
25809
|
+
TaskCardEnded: TaskCardEnded,
|
|
25810
|
+
ProgressBar: ProgressBar$1,
|
|
25811
|
+
ProgressBarSteps: ProgressBarSteps,
|
|
25812
|
+
ProgressBarRepeatable: ProgressBarRepeatable,
|
|
25813
|
+
ProgressBarStepsRepeatable: ProgressBarStepsRepeatable,
|
|
25814
|
+
ProgressBarStepsRepeatableFinite: ProgressBarStepsRepeatableFinite
|
|
25785
25815
|
});
|
|
25786
25816
|
|
|
25787
25817
|
const portalTemplate = "<sqm-portal-frame>\r\n <a slot=\"header\" href=\"/\">\r\n <sqm-text style=\"height: 60px\">\r\n <img\r\n style=\"height: 60px\"\r\n src=\"https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png\"\r\n />\r\n </sqm-text>\r\n </a>\r\n <sqb-program-section program-id=\"referral-program\">\r\n <sqm-router>\r\n <template\r\n path=\"/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)\"\r\n >\r\n <sqm-graphql-client-provider\r\n domain=\"https://managed-identity.saasquatch.com\"\r\n >\r\n <sqm-hero\r\n background=\"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80\"\r\n >\r\n <sqm-router>\r\n <template path=\"/register\">\r\n <sqm-portal-register>\r\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\r\n </sqm-portal-register>\r\n </template>\r\n\r\n <template path=\"/emailVerification\">\r\n <sqm-portal-protected-route\r\n redirect-to=\"/login\"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-email-verification></sqm-portal-email-verification>\r\n </template>\r\n\r\n <template path=\"/login\">\r\n <sqm-portal-login></sqm-portal-login>\r\n </template>\r\n\r\n <template path=\"/verifyEmail\">\r\n <sqm-portal-verify-email></sqm-portal-verify-email>\r\n </template>\r\n\r\n <template path=\"/forgotPassword\">\r\n <sqm-portal-forgot-password\r\n email-label=\"Business Email\"\r\n ></sqm-portal-forgot-password>\r\n </template>\r\n\r\n <template path=\"/resetPassword\">\r\n <sqm-portal-reset-password\r\n confirm-password=\"true\"\r\n ></sqm-portal-reset-password>\r\n </template>\r\n <template path=\"/logout\">\r\n <sqm-portal-logout next-page=\"/login\"></sqm-portal-logout>\r\n </template>\r\n </sqm-router>\r\n </sqm-hero>\r\n </sqm-graphql-client-provider>\r\n </template>\r\n </sqm-router>\r\n <sqm-router>\r\n <template path=\"/:path(\\bactivity\\b|\\beditProfile\\b)?\">\r\n <sqm-divided-layout\r\n direction=\"row\"\r\n style=\"\r\n border-top: 1px solid #eaeaea;\r\n border-bottom: 1px solid #eaeaea;\r\n \"\r\n >\r\n <sqm-navigation-sidebar>\r\n <sqm-navigation-sidebar-item\r\n path=\"/\"\r\n icon=\"house\"\r\n label=\"Dashboard\"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path=\"/activity\"\r\n icon=\"bar-chart\"\r\n label=\"Activity\"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path=\"/editProfile\"\r\n icon=\"person\"\r\n label=\"Edit Profile\"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path=\"/logout\"\r\n icon=\"box-arrow-right\"\r\n label=\"Logout\"\r\n ></sqm-navigation-sidebar-item>\r\n </sqm-navigation-sidebar>\r\n <sqm-divided-layout direction=\"column\">\r\n <sqm-router>\r\n <template path=\"/\">\r\n <sqm-portal-protected-route\r\n require-email-verification=\"true\"\r\n redirect-to=\"/login\"\r\n redirect-to-unverified=\"/emailVerification\"\r\n ></sqm-portal-protected-route>\r\n <sqb-widget\r\n widget-type=\"p/referral-program/w/referrerWidget\"\r\n track-loads=\"true\"\r\n ></sqb-widget>\r\n </template>\r\n <template path=\"/editProfile\">\r\n <sqm-portal-protected-route\r\n require-email-verification=\"true\"\r\n redirect-to=\"/login\"\r\n redirect-to-unverified=\"/emailVerification\"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container direction=\"column\" gap=\"xxx-large\">\r\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\r\n ><sqm-portal-container direction=\"column\" gap=\"xxx-large\">\r\n <sqm-graphql-client-provider\r\n domain=\"https://managed-identity.saasquatch.com\"\r\n >\r\n <sqm-portal-change-password></sqm-portal-change-password>\r\n </sqm-graphql-client-provider>\r\n </sqm-portal-container>\r\n </template>\r\n\r\n <template path=\"/activity\">\r\n <sqm-portal-protected-route\r\n require-email-verification=\"true\"\r\n redirect-to=\"/login\"\r\n redirect-to-unverified=\"/emailVerification\"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container\r\n direction=\"column\"\r\n padding=\"xxx-large\"\r\n gap=\"xxx-large\"\r\n >\r\n <sqm-text> <h1>Activity</h1></sqm-text>\r\n <sqm-stat-container space=\"xxxx-large\"\r\n ><sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/referralsCount\"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container>\r\n <sqm-referral-table>\r\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\r\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\r\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\r\n <sqm-referral-table-date-column\r\n column-title=\"Referred\"\r\n date-shown=\"dateReferralStarted\"\r\n ></sqm-referral-table-date-column> </sqm-referral-table\r\n ></sqm-portal-container>\r\n </template>\r\n </sqm-router>\r\n </sqm-divided-layout>\r\n </sqm-divided-layout>\r\n </template>\r\n </sqm-router>\r\n </sqb-program-section>\r\n <sqm-portal-footer\r\n slot=\"footer\"\r\n support-email=\"support@example.com\"\r\n terms-link=\"https://example.com\"\r\n faq-link=\"https://example.com\"\r\n terms-text=\"Terms And Conditions\"\r\n faq-text=\"FAQ\"\r\n show-powered-by=\"true\"\r\n ></sqm-portal-footer>\r\n</sqm-portal-frame>\r\n";
|
|
@@ -28933,24 +28963,24 @@ const VerifyEmail = createHookStory(() => {
|
|
|
28933
28963
|
});
|
|
28934
28964
|
|
|
28935
28965
|
const PortalTemplates = /*#__PURE__*/Object.freeze({
|
|
28936
|
-
|
|
28937
|
-
|
|
28938
|
-
|
|
28939
|
-
|
|
28940
|
-
|
|
28941
|
-
|
|
28942
|
-
|
|
28943
|
-
|
|
28944
|
-
|
|
28945
|
-
|
|
28946
|
-
|
|
28947
|
-
|
|
28948
|
-
|
|
28949
|
-
|
|
28950
|
-
|
|
28951
|
-
|
|
28952
|
-
|
|
28953
|
-
|
|
28966
|
+
__proto__: null,
|
|
28967
|
+
'default': PortalTemplates_stories,
|
|
28968
|
+
DefaultPortal: DefaultPortal,
|
|
28969
|
+
MultiProgramPortal: MultiProgramPortal,
|
|
28970
|
+
LeadSubmitPortal: LeadSubmitPortal,
|
|
28971
|
+
Login: Login,
|
|
28972
|
+
ForgotPassword: ForgotPassword,
|
|
28973
|
+
Register: Register,
|
|
28974
|
+
Dashboard: Dashboard$1,
|
|
28975
|
+
LeadSubmitIframe: LeadSubmitIframe,
|
|
28976
|
+
Activity: Activity$1,
|
|
28977
|
+
EditProfile: EditProfile$3,
|
|
28978
|
+
ResetPassword: ResetPassword,
|
|
28979
|
+
EmailVerification: EmailVerification,
|
|
28980
|
+
EmailVerified: EmailVerified,
|
|
28981
|
+
Widget: Widget,
|
|
28982
|
+
ResetPasswordEmail: ResetPasswordEmail,
|
|
28983
|
+
VerifyEmail: VerifyEmail
|
|
28954
28984
|
});
|
|
28955
28985
|
|
|
28956
28986
|
const ProgramMenu_stories = {
|
|
@@ -28991,12 +29021,12 @@ const ProgramMenuWithSwitch = createHookStory(() => {
|
|
|
28991
29021
|
});
|
|
28992
29022
|
|
|
28993
29023
|
const ProgramMenu$1 = /*#__PURE__*/Object.freeze({
|
|
28994
|
-
|
|
28995
|
-
|
|
28996
|
-
|
|
28997
|
-
|
|
28998
|
-
|
|
28999
|
-
|
|
29024
|
+
__proto__: null,
|
|
29025
|
+
'default': ProgramMenu_stories,
|
|
29026
|
+
OneProgram: OneProgram,
|
|
29027
|
+
TwoProgram: TwoProgram,
|
|
29028
|
+
FiveProgram: FiveProgram,
|
|
29029
|
+
ProgramMenuWithSwitch: ProgramMenuWithSwitch
|
|
29000
29030
|
});
|
|
29001
29031
|
|
|
29002
29032
|
const PoweredByImg_stories = {
|
|
@@ -29013,11 +29043,11 @@ const CustomWidthAndHeight = () => {
|
|
|
29013
29043
|
};
|
|
29014
29044
|
|
|
29015
29045
|
const PoweredByImg = /*#__PURE__*/Object.freeze({
|
|
29016
|
-
|
|
29017
|
-
|
|
29018
|
-
|
|
29019
|
-
|
|
29020
|
-
|
|
29046
|
+
__proto__: null,
|
|
29047
|
+
'default': PoweredByImg_stories,
|
|
29048
|
+
Default: Default$a,
|
|
29049
|
+
CustomColor: CustomColor,
|
|
29050
|
+
CustomWidthAndHeight: CustomWidthAndHeight
|
|
29021
29051
|
});
|
|
29022
29052
|
|
|
29023
29053
|
const scenario$6 = "Feature: Portal Footer\r\n\r\n Background: A user is viewing the portal\r\n Given a hosted portal\r\n And a user is viewing the portal\r\n And the portal has a footer\r\n\r\n Scenario Outline: FAQ and T&C links/text are configurable and open in a new page when clicked\r\n Given the footer has prop \"terms-link\" with value \"https://example.com/terms\"\r\n And prop \"terms-text\" with value \"Terms and Conditions\"\r\n And prop \"faq-link\" with value \"https://example.com/FAQ\"\r\n And prop \"faq-text\" with value \"Visit FAQ\"\r\n When a user clicks on the \"Visit FAQ\" link\r\n Then they will be redirected to \"https://example.com/FAQ\" in a new page\r\n When they go back to the portal\r\n And click on the \"Terms and Conditions\" link\r\n Then they will be redirected to \"https://example.com/terms\" in a new page\r\n\r\n Scenario Outline: FAQ/T&C Links are not shown if a link is not provided\r\n Given the footer does not have <linkProp>\r\n But it <mayHave> <textProp> with <value>\r\n Then the <link> will not be shown in the footer\r\n Examples:\r\n | linkProp | mayHave | textProp | value | link |\r\n | terms-link | has | termsText | Terms and Conditions | T&C Link |\r\n | faq-link | has | faqText | Visit FAQ | FAQ Link |\r\n | terms-link | doesn't have | | | T&C Link |\r\n | faq-link | doesn't have | | | FAQ Link |\r\n\r\n Scenario Outline: The support email and text is configurable but has a default\r\n Given the footer <mayHave> <emailPropWithValue>\r\n And the footer <mayAlsoHave> <textPropWithValue>\r\n Then the footer's support email text is <renderedEmailText>\r\n And the email address will be a mailto link with <mailtoEmail>\r\n When the user clicks on the email address mailto Link\r\n Then the users preferred email client will open with a draft email to <mailtoEmail>\r\n Examples:\r\n | mayHave | emailPropWithValue | mayAlsoHave | textPropWithValue | mailtoEmail | renderedEmailText |\r\n | has | support@saasquatch.com | has | For support please contact {email} | support@saasquatch.com | For support please contact support@saasquatch.com |\r\n | doesn't have | N/A | doesn't have | N/A | support@example.com | For program support, contact support@example.com |\r\n\r\n Scenario Outline: Powered by SaaSquatch is shown by default\r\n Given the footer <mayHaveProp> \"show-powered-by\" with <value>\r\n Then the powered by SaaSquatch image <mayBeShown>\r\n Examples:\r\n | mayHaveProp | value | mayBeShown |\r\n | has prop | true | is shown |\r\n | has prop | false | isn't shown |\r\n | has prop | test | is shown |\r\n | has prop | | is shown |\r\n | doesn't have prop | | is shown |\r\n\r\n Scenario: Powered By Saasquatch links out to \"https://saasquatch.com\"\r\n Given the footer has the powered by SaaSquatch image\r\n When a user clicks on it\r\n Then they will be redirected to \"https://saasquatch.com\" in a new page";
|
|
@@ -29045,13 +29075,13 @@ const FooterWithTermsAndFAQ = () => (index.h(sqmPortalFooterView.PortalFooterVie
|
|
|
29045
29075
|
const FooterNoPoweredBy = () => (index.h(sqmPortalFooterView.PortalFooterView, Object.assign({}, defaultProps$9, { termsLink: "https://example.com", termsText: "Terms and Conditions", faqLink: "https://example.com", faqText: "FAQ", showPoweredBy: false })));
|
|
29046
29076
|
|
|
29047
29077
|
const PortalFooter = /*#__PURE__*/Object.freeze({
|
|
29048
|
-
|
|
29049
|
-
|
|
29050
|
-
|
|
29051
|
-
|
|
29052
|
-
|
|
29053
|
-
|
|
29054
|
-
|
|
29078
|
+
__proto__: null,
|
|
29079
|
+
'default': PortalFooter_stories,
|
|
29080
|
+
DefaultFooter: DefaultFooter,
|
|
29081
|
+
FooterWithTerms: FooterWithTerms,
|
|
29082
|
+
FooterWithFAQ: FooterWithFAQ,
|
|
29083
|
+
FooterWithTermsAndFAQ: FooterWithTermsAndFAQ,
|
|
29084
|
+
FooterNoPoweredBy: FooterNoPoweredBy
|
|
29055
29085
|
});
|
|
29056
29086
|
|
|
29057
29087
|
const scenario$7 = "Feature: Hero Unit\r\n\r\n Background: A portal with a hero unit exists\r\n Given a hosted portal\r\n And the portal has hero unit on the login page\r\n And a user is viewing the login page\r\n\r\n Scenario: The hero unit defaults to a single column layout\r\n Given a hero unit does not have a \"columns\" prop\r\n But the following html is wrapped by the hero unit\r\n \"\"\"\r\n <sqm-portal-login></sqm-portal-login>\r\n <div slot=\"secondary-column\">\r\n <h1 style=\"text-align:center\">Get Referring!</h1>\r\n <p style=\"text-align:center\">\r\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do\r\n eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim\r\n ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut\r\n aliquip ex ea commodo consequat. Duis aute irure dolor in\r\n reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla\r\n pariatur.\r\n </p>\r\n </div>\r\n \"\"\"\r\n Then only a single column will be displayed\r\n And within it will be the login component\r\n\r\n Scenario Outline: The hero unit supports single or dual column layouts\r\n Given a hero unit with prop \"columns\" having <columnValue>\r\n And it wraps <html>\r\n Then the hero unit displays <columnValue> columns\r\n Examples:\r\n | columnValue | html |\r\n | 1 | <h1>Column 1!</h1> |\r\n | 2 | <h1>Column 1!</h1><div slot=\"secondary-column\"><h1 style=\"text-align:center\">Column 2!</h1></div> |\r\n\r\n Scenario: HTML to be displayed in the second column comes from the \"secondary-column\" slot\r\n Given a hero unit with \"columns\" \"2\"\r\n And the following html\r\n \"\"\"\r\n <h1>Column 1!</h1>\r\n <div>\r\n <h1 style=\"text-align:center\">Column 2!</h1>\r\n </div>\r\n \"\"\"\r\n When the hero unit is rendered\r\n Then only one column is displayed with content\r\n And column 1 will contain the \"Column 1!\" text\r\n And column 1 will contain the \"Column 2!\" text\r\n When the div for column two is updated to have 'slot=\"secondary-column\"'\r\n Then the two columns are displayed with content\r\n And column 1 will contain the \"Column 1!\" text\r\n And column 2 will contain the \"Column 2!\" text\r\n\r\n Scenario Outline: A background for the hero unit can be set as an image or colour\r\n Given a hero unit with <backgroundPropValue>\r\n Then the background will be <background>\r\n Examples:\r\n | background | background |\r\n | https://images.unsplash.com/photo-1599676821464-3555954838d | image of misty mountains |\r\n | LightSlateGrey | light slate grey |\r\n | #00FF00 | green |\r\n | rgb(128,0,128) | purple |\r\n\r\n Scenario Outline: Wrap Direction can be configured for mobile experiences\r\n Given a hero unit with the following HTML\r\n \"\"\"\r\n <h1>Column 1!</h1>\r\n <div slot=\"secondary-column\">\r\n <h1 style=\"text-align:center\">Column 2!</h1>\r\n </div>\r\n \"\"\"\r\n And prop \"wrap-direction\" has <value>\r\n When the window width is less than 600px\r\n Then the two columns will stack\r\n And <column> will be on top\r\n Examples:\r\n | value | column |\r\n | wrap | 1 |\r\n | wrap-reverse | 2 |\r\n | | 1 |";
|
|
@@ -29223,17 +29253,17 @@ const TwoColumnLoginWithImgElement = () => {
|
|
|
29223
29253
|
};
|
|
29224
29254
|
|
|
29225
29255
|
const Hero = /*#__PURE__*/Object.freeze({
|
|
29226
|
-
|
|
29227
|
-
|
|
29228
|
-
|
|
29229
|
-
|
|
29230
|
-
|
|
29231
|
-
|
|
29232
|
-
|
|
29233
|
-
|
|
29234
|
-
|
|
29235
|
-
|
|
29236
|
-
|
|
29256
|
+
__proto__: null,
|
|
29257
|
+
'default': Hero_stories,
|
|
29258
|
+
LoginOneColumn: LoginOneColumn,
|
|
29259
|
+
LoginOneColumnWithColor: LoginOneColumnWithColor,
|
|
29260
|
+
LoginOneColumnWithImage: LoginOneColumnWithImage,
|
|
29261
|
+
TwoColumnLoginLargePadding: TwoColumnLoginLargePadding,
|
|
29262
|
+
TwoColumnLoginMediumPadding: TwoColumnLoginMediumPadding,
|
|
29263
|
+
TwoColumnLoginSmallPadding: TwoColumnLoginSmallPadding,
|
|
29264
|
+
TwoColumnLoginNoPadding: TwoColumnLoginNoPadding,
|
|
29265
|
+
TwoColumnLoginReverseWrap: TwoColumnLoginReverseWrap,
|
|
29266
|
+
TwoColumnLoginWithImgElement: TwoColumnLoginWithImgElement
|
|
29237
29267
|
});
|
|
29238
29268
|
|
|
29239
29269
|
const scenario$8 = "@owner:sam\r\n@author:sam\r\n\r\nFeature: Referral Iframe\r\n\r\n Used to provide an external form for submitting referral leads using the current user's referral code\r\n\r\n Background: A user is logged in\r\n Given there is a logged in user\r\n\r\n @motivating\r\n Scenario: Referral code is passed to the iframe as a query parameter\r\n Given the \"iframe-src\" is \"https://example.com\"\r\n And the user has navigated to \"/refer\"\r\n And the user's referral code is \"BOBBYREFER\"\r\n When the iframe content is loaded\r\n Then the iframe url will be \"https://example.com?rsCode=BOBBYREFER\"\r\n\r\n @ui\r\n Scenario Outline: The height and width of the iFrame can be controlled via props\r\n Given the \"iframe-src\" is \"https://example.com\"\r\n And the iframe content is 1000x1000\r\n And the \"iframe-height\" is set to <heightValue>\r\n And the \"iframe-width\" is set to <widthValue>\r\n Then the content of the iframe will be displayed with scrollbars\r\n And the dimension of the iFrame displayed will be 500x500\r\n When the \"iframe-height\" is set to <heightValue>\r\n And the \"iframe-width\" is set to <widthValue>\r\n Then the full content of the iframe will be displayed on the page\r\n And the dimension of the iFrame displayed will be 1000x1000\r\n Examples:\r\n | heightValue | widthValue |\r\n | 500px | 500px |\r\n | 50% | 50% |\r\n\r\n @minutae\r\n Scenario Outline: The iFrame will fail fast if a iFrame source isn't provided\r\n Given \"iframe-src\" <mayBeAnAttribute>\r\n And it <mayHaveValue>\r\n When a user views the referral iFrame component\r\n Then an alert with an error message is displayed in place of the iFrame\r\n And it has a details section\r\n When \"More details\" is clicked\r\n Then the following information will be displayed\r\n | component being used |\r\n | missing attribute(s) |\r\n\r\n Examples:\r\n | mayBeAnAttribute | mayHaveValue |\r\n | is not an attribute | N/A |\r\n | is an attribute | \"\" |\r\n | is an attribute | |";
|
|
@@ -29266,10 +29296,10 @@ const ReferralIframeError = () => {
|
|
|
29266
29296
|
};
|
|
29267
29297
|
|
|
29268
29298
|
const ReferralIframe$1 = /*#__PURE__*/Object.freeze({
|
|
29269
|
-
|
|
29270
|
-
|
|
29271
|
-
|
|
29272
|
-
|
|
29299
|
+
__proto__: null,
|
|
29300
|
+
'default': ReferralIframe_stories,
|
|
29301
|
+
ReferralIframe: ReferralIframe,
|
|
29302
|
+
ReferralIframeError: ReferralIframeError
|
|
29273
29303
|
});
|
|
29274
29304
|
|
|
29275
29305
|
const scenario$9 = "@owner:sam\r\n@author:sam\r\n\r\nFeature: Name Fields\r\n\r\n Fields to be used to fill the first and last name of a user during registration\r\n\r\n Background:\r\n Given the current page is \"/register\"\r\n\r\n @motivating\r\n Scenario: Both first name and last name are required\r\n Given the email field has valid input\r\n And the password field has valid input\r\n And first name field is empty\r\n And last name field is empty\r\n When register is clicked\r\n Then the name fields will be highlighted in red\r\n And the error messages will say \"Cannot be empty\"\r\n\r\n @motivating\r\n Scenario: First and last name are upserted with the SaaSquatch user\r\n Given all fields have been filled with data\r\n | firstName | lastName | email | password |\r\n | Bob | Testerson | bob@example.com | SecurePassword1 |\r\n When register is clicked\r\n Then the email verification page will be loaded\r\n And the user will be upserted\r\n And the SaaSquatch user will contain data\r\n | firstName | lastName | email |\r\n | Bob | Testerson | bob@example.com |\r\n\r\n";
|
|
@@ -29309,10 +29339,10 @@ const NameFieldsWithErrors = () => {
|
|
|
29309
29339
|
};
|
|
29310
29340
|
|
|
29311
29341
|
const NameFields$1 = /*#__PURE__*/Object.freeze({
|
|
29312
|
-
|
|
29313
|
-
|
|
29314
|
-
|
|
29315
|
-
|
|
29342
|
+
__proto__: null,
|
|
29343
|
+
'default': NameFields_stories,
|
|
29344
|
+
NameFields: NameFields,
|
|
29345
|
+
NameFieldsWithErrors: NameFieldsWithErrors
|
|
29316
29346
|
});
|
|
29317
29347
|
|
|
29318
29348
|
const baseResponse = (data, stage = "chooseReward", selectedItem = null, selectedStep = null, error = false, loading = false, fueltank = null) => ({
|
|
@@ -29565,19 +29595,19 @@ const SuccessPromo = StoryBase(success3);
|
|
|
29565
29595
|
const Loading$3 = StoryBase(loading);
|
|
29566
29596
|
|
|
29567
29597
|
const RewardExchangeList = /*#__PURE__*/Object.freeze({
|
|
29568
|
-
|
|
29569
|
-
|
|
29570
|
-
|
|
29571
|
-
|
|
29572
|
-
|
|
29573
|
-
|
|
29574
|
-
|
|
29575
|
-
|
|
29576
|
-
|
|
29577
|
-
|
|
29578
|
-
|
|
29579
|
-
|
|
29580
|
-
|
|
29598
|
+
__proto__: null,
|
|
29599
|
+
'default': RewardExchangeList_stories,
|
|
29600
|
+
ChooseReward: ChooseReward,
|
|
29601
|
+
ChooseRewardSelected: ChooseRewardSelected,
|
|
29602
|
+
ChooseAmount: ChooseAmount,
|
|
29603
|
+
ChooseAmountVariable: ChooseAmountVariable,
|
|
29604
|
+
Confirm: Confirm,
|
|
29605
|
+
ConfirmVariable: ConfirmVariable,
|
|
29606
|
+
Error: Error$3,
|
|
29607
|
+
Success: Success$2,
|
|
29608
|
+
SuccessVariable: SuccessVariable,
|
|
29609
|
+
SuccessPromo: SuccessPromo,
|
|
29610
|
+
Loading: Loading$3
|
|
29581
29611
|
});
|
|
29582
29612
|
|
|
29583
29613
|
const ProgramExplainer_stories = {
|
|
@@ -29595,18 +29625,21 @@ const steps1 = {
|
|
|
29595
29625
|
description: "Earn up to $1200 in rewards for each referral",
|
|
29596
29626
|
color: "white",
|
|
29597
29627
|
background: "#5B3EDA",
|
|
29628
|
+
icon: "person-plus-fill",
|
|
29598
29629
|
};
|
|
29599
29630
|
const steps2 = {
|
|
29600
29631
|
title: "If your friend signs up for a Klip Business plan",
|
|
29601
29632
|
description: "Get a $50 VISA giftcard when they pay for their first month",
|
|
29602
29633
|
color: "black",
|
|
29603
29634
|
background: "#F3CC66",
|
|
29635
|
+
icon: "server",
|
|
29604
29636
|
};
|
|
29605
29637
|
const steps3 = {
|
|
29606
29638
|
title: "If your friend signs up for a Klip Enterprise plan",
|
|
29607
29639
|
description: "Get up to $1200 in rewards - a $200 VISA giftcard when our sales team qualifies them as a good fit for Klip, and a $1000 VISA giftcard when they become a paying customer",
|
|
29608
29640
|
color: "black",
|
|
29609
29641
|
background: "#D3CCF5",
|
|
29642
|
+
icon: "people-fill",
|
|
29610
29643
|
};
|
|
29611
29644
|
const OneStep = () => {
|
|
29612
29645
|
return (index.h(sqmProgramExplainerView.ProgramExplainerView, Object.assign({}, props$2),
|
|
@@ -29625,11 +29658,11 @@ const ThreeSteps = () => {
|
|
|
29625
29658
|
};
|
|
29626
29659
|
|
|
29627
29660
|
const ProgramExplainer = /*#__PURE__*/Object.freeze({
|
|
29628
|
-
|
|
29629
|
-
|
|
29630
|
-
|
|
29631
|
-
|
|
29632
|
-
|
|
29661
|
+
__proto__: null,
|
|
29662
|
+
'default': ProgramExplainer_stories,
|
|
29663
|
+
OneStep: OneStep,
|
|
29664
|
+
TwoSteps: TwoSteps,
|
|
29665
|
+
ThreeSteps: ThreeSteps
|
|
29633
29666
|
});
|
|
29634
29667
|
|
|
29635
29668
|
const ProgramExplainerStep_stories = {
|
|
@@ -29640,7 +29673,8 @@ const Example1 = () => {
|
|
|
29640
29673
|
title: "Invite your friends to Klip",
|
|
29641
29674
|
description: "Earn up to $1200 in rewards for each referral",
|
|
29642
29675
|
color: "white",
|
|
29643
|
-
background: "#5B3EDA"
|
|
29676
|
+
background: "#5B3EDA",
|
|
29677
|
+
icon: "person-plus-fill",
|
|
29644
29678
|
};
|
|
29645
29679
|
return index.h(sqmProgramExplainerStepView.ProgramExplainerStepView, Object.assign({}, props));
|
|
29646
29680
|
};
|
|
@@ -29653,27 +29687,28 @@ const Example1 = () => {
|
|
|
29653
29687
|
// };
|
|
29654
29688
|
|
|
29655
29689
|
const ProgramExplainerStep = /*#__PURE__*/Object.freeze({
|
|
29656
|
-
|
|
29657
|
-
|
|
29658
|
-
|
|
29690
|
+
__proto__: null,
|
|
29691
|
+
'default': ProgramExplainerStep_stories,
|
|
29692
|
+
Example1: Example1
|
|
29659
29693
|
});
|
|
29660
29694
|
|
|
29661
29695
|
const SqmBrand_stories = {
|
|
29662
29696
|
title: "Components/Brand",
|
|
29663
29697
|
};
|
|
29664
29698
|
const SampleComponents = () => (index.h("div", { style: { padding: "10px", border: "5px solid #EEE" } },
|
|
29665
|
-
index.h("
|
|
29666
|
-
|
|
29667
|
-
|
|
29668
|
-
|
|
29669
|
-
|
|
29670
|
-
|
|
29671
|
-
|
|
29672
|
-
index.h("
|
|
29673
|
-
|
|
29674
|
-
|
|
29675
|
-
|
|
29676
|
-
|
|
29699
|
+
index.h("div", { style: { display: "flex", gap: "5px", padding: "5px" } },
|
|
29700
|
+
index.h("sl-button", { type: "default" }, "Default"),
|
|
29701
|
+
index.h("sl-button", { type: "primary" }, "Primary"),
|
|
29702
|
+
index.h("sl-button", { type: "success" }, "Success"),
|
|
29703
|
+
index.h("sl-button", { type: "neutral" }, "Neutral"),
|
|
29704
|
+
index.h("sl-button", { type: "warning" }, "Warning"),
|
|
29705
|
+
index.h("sl-button", { type: "danger" }, "Danger")),
|
|
29706
|
+
index.h("div", { style: { display: "flex", gap: "5px", padding: "5px" } },
|
|
29707
|
+
index.h("sl-badge", { type: "primary" }, "Primary"),
|
|
29708
|
+
index.h("sl-badge", { type: "success" }, "Success"),
|
|
29709
|
+
index.h("sl-badge", { type: "neutral" }, "Neutral"),
|
|
29710
|
+
index.h("sl-badge", { type: "warning" }, "Warning"),
|
|
29711
|
+
index.h("sl-badge", { type: "danger" }, "Danger")),
|
|
29677
29712
|
index.h("div", { class: "color-palette" },
|
|
29678
29713
|
index.h("div", { class: "color-palette__name" },
|
|
29679
29714
|
"Primary",
|
|
@@ -29725,19 +29760,37 @@ const Nested = () => {
|
|
|
29725
29760
|
function ColorSwatch({ depth }) {
|
|
29726
29761
|
return (index.h("div", { style: {
|
|
29727
29762
|
backgroundColor: `var(--sl-color-primary-${depth})`,
|
|
29763
|
+
color: `var(--sl-color-neutral-${1000 - depth})`,
|
|
29728
29764
|
width: "50px",
|
|
29729
29765
|
height: "50px",
|
|
29730
29766
|
display: "flex",
|
|
29731
29767
|
justifyContent: "center",
|
|
29732
|
-
alignItems: "center"
|
|
29768
|
+
alignItems: "center",
|
|
29733
29769
|
} }, depth));
|
|
29734
|
-
}
|
|
29770
|
+
}
|
|
29771
|
+
const Fonts = () => {
|
|
29772
|
+
return (index.h("div", null,
|
|
29773
|
+
index.h(SampleComponents, null),
|
|
29774
|
+
index.h("sqm-brand", { "brand-font": "Roboto" },
|
|
29775
|
+
"Roboto",
|
|
29776
|
+
index.h(SampleComponents, null)),
|
|
29777
|
+
index.h("sqm-brand", { "brand-font": "Open Sans" },
|
|
29778
|
+
"Open Sans",
|
|
29779
|
+
index.h(SampleComponents, null)),
|
|
29780
|
+
index.h("sqm-brand", { "brand-font": "Lato" },
|
|
29781
|
+
"Lato",
|
|
29782
|
+
index.h(SampleComponents, null)),
|
|
29783
|
+
index.h("sqm-brand", { "brand-font": "Oswald" },
|
|
29784
|
+
"Oswald",
|
|
29785
|
+
index.h(SampleComponents, null))));
|
|
29786
|
+
};
|
|
29735
29787
|
|
|
29736
29788
|
const BrandStories = /*#__PURE__*/Object.freeze({
|
|
29737
|
-
|
|
29738
|
-
|
|
29739
|
-
|
|
29740
|
-
|
|
29789
|
+
__proto__: null,
|
|
29790
|
+
'default': SqmBrand_stories,
|
|
29791
|
+
Examples: Examples,
|
|
29792
|
+
Nested: Nested,
|
|
29793
|
+
Fonts: Fonts
|
|
29741
29794
|
});
|
|
29742
29795
|
|
|
29743
29796
|
/**
|
|
@@ -29793,13 +29846,13 @@ const Klip = `
|
|
|
29793
29846
|
`;
|
|
29794
29847
|
|
|
29795
29848
|
const Themes = /*#__PURE__*/Object.freeze({
|
|
29796
|
-
|
|
29797
|
-
|
|
29798
|
-
|
|
29799
|
-
|
|
29800
|
-
|
|
29801
|
-
|
|
29802
|
-
|
|
29849
|
+
__proto__: null,
|
|
29850
|
+
Default: Default$b,
|
|
29851
|
+
Orangey: Orangey,
|
|
29852
|
+
Netflix: Netflix,
|
|
29853
|
+
SaaSquatchCorporate: SaaSquatchCorporate,
|
|
29854
|
+
NYTimes: NYTimes,
|
|
29855
|
+
Klip: Klip
|
|
29803
29856
|
});
|
|
29804
29857
|
|
|
29805
29858
|
function deepFreeze(obj) {
|