@wf-financing/ui 1.1.1 → 1.1.2
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/index.es.js +2 -2
- package/package.json +1 -1
- package/src/api/getHeadlessSdkInstance.ts +0 -1
- package/src/components/banner/{CtaBanner.stories.tsx → CtaBanner.snapshot.stories.tsx} +1 -1
- package/src/components/modal/{ConsentModal.stories.tsx → ConsentModal.snapshot.stories.tsx} +1 -1
- package/src/locales/en.json +1 -1
- package/src/components/banner/BulletList.stories.tsx +0 -15
- /package/src/components/banner/{BannerContent.stories.tsx → BannerContent.snapshot.stories.tsx} +0 -0
package/dist/index.es.js
CHANGED
|
@@ -94624,7 +94624,7 @@ const bhe = async (e, t) => {
|
|
|
94624
94624
|
if (n)
|
|
94625
94625
|
return QJ(n, e, t);
|
|
94626
94626
|
const r = document.createElement("script");
|
|
94627
|
-
r.src = Rrt, r.type = "module", r.id = JJ, r.async = !0,
|
|
94627
|
+
r.src = Rrt, r.type = "module", r.id = JJ, r.async = !0, document.head.appendChild(r);
|
|
94628
94628
|
const i = await QJ(r, e, t);
|
|
94629
94629
|
return UT = i, i;
|
|
94630
94630
|
} catch (n) {
|
|
@@ -94912,7 +94912,7 @@ const Hrt = [
|
|
|
94912
94912
|
"common.dismiss": "Dismiss",
|
|
94913
94913
|
"ctaModal.call": "Get funded",
|
|
94914
94914
|
"ctaModal.title": "Fuel your growth with capital from Wayflyer",
|
|
94915
|
-
"ctaModal.action": "Continue
|
|
94915
|
+
"ctaModal.action": "Continue to Wayflyer",
|
|
94916
94916
|
"ctaModal.consent": "By proceeding, you consent to us sharing your information with Wayflyer so they can assess your eligibility for financing, in accordance with the Wayflyer ",
|
|
94917
94917
|
"ctaModal.consent.privacy_policy": "Privacy Policy.",
|
|
94918
94918
|
"ctaModal.step1.title": "Built for businesses like yours",
|
package/package.json
CHANGED
|
@@ -31,7 +31,6 @@ export const getHeadlessSdkInstance = async (companyToken: string, mockedMode?:
|
|
|
31
31
|
script.id = WAYFLYER_HEADLESS_SDK_ID;
|
|
32
32
|
script.async = true;
|
|
33
33
|
|
|
34
|
-
console.log(script, 'script');
|
|
35
34
|
document.head.appendChild(script);
|
|
36
35
|
|
|
37
36
|
const headlessSdk: IHeadlessWayflyerCtaSdk = await loadScriptAndInitializeSdk(script, companyToken, mockedMode);
|
|
@@ -34,7 +34,7 @@ const meta: Meta<typeof CtaBanner> = {
|
|
|
34
34
|
sdkScenario: SdkScenarios.GENERIC_NEW_APPLICATION,
|
|
35
35
|
},
|
|
36
36
|
},
|
|
37
|
-
decorators: [(
|
|
37
|
+
decorators: [(_, context) => <Template {...(context.args as CtaBannerStoryArgs)} />],
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
export default meta;
|
|
@@ -34,7 +34,7 @@ export const WithContent: Story = {
|
|
|
34
34
|
<div style={{ padding: '20px', background: 'white' }}>
|
|
35
35
|
<h2>Consent Agreement</h2>
|
|
36
36
|
<p>Please agree to the terms to proceed.</p>
|
|
37
|
-
<button>Continue
|
|
37
|
+
<button>Continue to Wayflyer</button>
|
|
38
38
|
<button>Cancel</button>
|
|
39
39
|
</div>
|
|
40
40
|
</ConsentModal>
|
package/src/locales/en.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"common.dismiss": "Dismiss",
|
|
4
4
|
"ctaModal.call": "Get funded",
|
|
5
5
|
"ctaModal.title": "Fuel your growth with capital from Wayflyer",
|
|
6
|
-
"ctaModal.action": "Continue
|
|
6
|
+
"ctaModal.action": "Continue to Wayflyer",
|
|
7
7
|
"ctaModal.consent": "By proceeding, you consent to us sharing your information with Wayflyer so they can assess your eligibility for financing, in accordance with the Wayflyer ",
|
|
8
8
|
"ctaModal.consent.privacy_policy": "Privacy Policy.",
|
|
9
9
|
"ctaModal.step1.title": "Built for businesses like yours",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { BulletList } from './BulletList';
|
|
3
|
-
|
|
4
|
-
const meta: Meta<typeof BulletList> = {
|
|
5
|
-
title: 'BulletList',
|
|
6
|
-
component: BulletList,
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export default meta;
|
|
10
|
-
|
|
11
|
-
type Story = StoryObj<typeof BulletList>;
|
|
12
|
-
|
|
13
|
-
export const Default: Story = {
|
|
14
|
-
render: () => <BulletList items={['Item 1', 'Item 2', 'Item 3']} />,
|
|
15
|
-
};
|
/package/src/components/banner/{BannerContent.stories.tsx → BannerContent.snapshot.stories.tsx}
RENAMED
|
File without changes
|