@saasquatch/vanilla-components 1.2.4-12 → 1.2.4-13
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/LICENSE +21 -21
- package/dist/cjs/{WidgetHost-f349e877.js → WidgetHost-cee741d8.js} +772 -772
- package/dist/cjs/sqh-close-button.cjs.entry.js +25 -25
- package/dist/cjs/sqh-copy-button_14.cjs.entry.js +1415 -1314
- package/dist/cjs/sqh-referral-code.cjs.entry.js +22 -22
- package/dist/cjs/sqh-rewards-actions.cjs.entry.js +26 -26
- package/dist/collection/components/close-button/close-button.js +70 -70
- package/dist/collection/components/copy-button/copy-button.js +380 -380
- package/dist/collection/components/copy-link-button/copy-link-button.js +230 -230
- package/dist/collection/components/cta-component/cta-component.js +393 -393
- package/dist/collection/components/global-container/global-container.js +158 -158
- package/dist/collection/components/image-component/image-component.js +175 -175
- package/dist/collection/components/partner-stat-component/partner-stat-component.js +196 -196
- package/dist/collection/components/progress-indicator/progress-indicator.js +557 -557
- package/dist/collection/components/referral-code/referral-code.js +36 -36
- package/dist/collection/components/referral-component/referral-component.js +255 -255
- package/dist/collection/components/referral-list/referral-list.js +911 -911
- package/dist/collection/components/rewards-actions/rewards-actions.js +105 -105
- package/dist/collection/components/share-button/share-button.js +301 -301
- package/dist/collection/components/share-button-container/share-button-container.js +2384 -2384
- package/dist/collection/components/stat-component/stat-component.js +197 -197
- package/dist/collection/components/stats-container/stats-container.js +210 -210
- package/dist/collection/components/text-component/text-component.js +301 -301
- package/dist/collection/entrypoint.js +32 -32
- package/dist/collection/global/global.js +4 -4
- package/dist/collection/services/FormatJs.js +15 -15
- package/dist/collection/services/WidgetHost.js +778 -778
- package/dist/collection/utilities.js +81 -81
- package/dist/esm/{WidgetHost-c033b6ac.js → WidgetHost-6cd6c29a.js} +772 -772
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/sqh-close-button.entry.js +25 -25
- package/dist/esm/sqh-copy-button_14.entry.js +1415 -1314
- package/dist/esm/sqh-referral-code.entry.js +22 -22
- package/dist/esm/sqh-rewards-actions.entry.js +26 -26
- package/dist/esm-es5/{WidgetHost-c033b6ac.js → WidgetHost-6cd6c29a.js} +9524 -9524
- package/dist/esm-es5/_commonjsHelpers-1d681858.js +17 -17
- package/dist/esm-es5/css-shim-a659079f.js +122 -122
- package/dist/esm-es5/dom-4061ceba.js +468 -468
- package/dist/esm-es5/en-a652ab83.js +1471 -1471
- package/dist/esm-es5/index-342d7c26.js +1808 -1808
- package/dist/esm-es5/loader.mjs +11 -11
- package/dist/esm-es5/sqh-close-button.entry.js +35 -35
- package/dist/esm-es5/sqh-copy-button_14.entry.js +10677 -10588
- package/dist/esm-es5/sqh-referral-code.entry.js +29 -29
- package/dist/esm-es5/sqh-rewards-actions.entry.js +31 -31
- package/dist/esm-es5/widget-components.mjs +6 -6
- package/dist/types/components/close-button/close-button.d.ts +18 -18
- package/dist/types/components/copy-button/copy-button.d.ts +90 -90
- package/dist/types/components/copy-link-button/copy-link-button.d.ts +53 -53
- package/dist/types/components/cta-component/cta-component.d.ts +88 -88
- package/dist/types/components/global-container/global-container.d.ts +39 -39
- package/dist/types/components/image-component/image-component.d.ts +45 -45
- package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +51 -51
- package/dist/types/components/progress-indicator/progress-indicator.d.ts +96 -96
- package/dist/types/components/referral-code/referral-code.d.ts +12 -12
- package/dist/types/components/referral-component/referral-component.d.ts +46 -46
- package/dist/types/components/referral-list/referral-list.d.ts +234 -234
- package/dist/types/components/rewards-actions/rewards-actions.d.ts +25 -25
- package/dist/types/components/share-button/share-button.d.ts +77 -77
- package/dist/types/components/share-button-container/share-button-container.d.ts +593 -593
- package/dist/types/components/stat-component/stat-component.d.ts +49 -49
- package/dist/types/components/stats-container/stats-container.d.ts +47 -47
- package/dist/types/components/text-component/text-component.d.ts +73 -73
- package/dist/types/global/global.d.ts +4 -4
- package/dist/types/saasquatch.d.ts +105 -105
- package/dist/types/services/FormatJs.d.ts +7 -7
- package/dist/types/services/WidgetHost.d.ts +51 -51
- package/dist/types/utilities.d.ts +7 -7
- package/dist/widget-components/entrypoint.js +32 -32
- package/dist/widget-components/{p-3ba562d0.entry.js → p-1dfd20e2.entry.js} +1 -1
- package/dist/widget-components/p-24fc4ba9.js +1 -1
- package/dist/widget-components/p-46109683.js +3 -3
- package/dist/widget-components/{p-6e753d23.js → p-4b1ab75c.js} +0 -0
- package/dist/widget-components/p-4b1ce501.entry.js +233 -0
- package/dist/widget-components/{p-abf8a511.system.entry.js → p-599e6d35.system.entry.js} +1 -1
- package/dist/widget-components/{p-4293e873.entry.js → p-9ffe6e46.entry.js} +1 -1
- package/dist/widget-components/{p-54e83dfb.system.js → p-b67d3319.system.js} +0 -0
- package/dist/widget-components/{p-0e55cfb5.system.entry.js → p-c084b313.system.entry.js} +3 -3
- package/dist/widget-components/p-e82def83.system.js +1 -1
- package/dist/widget-components/{p-d9e9c55c.system.entry.js → p-eeb2bfd4.system.entry.js} +1 -1
- package/dist/widget-components/widget-components.esm.js +1 -1
- package/dist/widget-components/widget-components.js +1 -1
- package/package.json +97 -97
- package/readme.md +52 -52
- package/dist/widget-components/p-0ec230df.entry.js +0 -233
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-ad5121cf.system.js","./p-aaf44379.system.js","./p-22e300c7.system.js"],(function(){"use strict";var e,t;return{setters:[function(t){e=t.b},function(e){t=e.p},function(){}],execute:function(){t().then((function(t){return e([["p-
|
|
1
|
+
System.register(["./p-ad5121cf.system.js","./p-aaf44379.system.js","./p-22e300c7.system.js"],(function(){"use strict";var e,t;return{setters:[function(t){e=t.b},function(e){t=e.p},function(){}],execute:function(){t().then((function(t){return e([["p-eeb2bfd4.system",[[0,"sqh-close-button",{text:[1]},[[0,"click","handleClick"]]]]],["p-599e6d35.system",[[0,"sqh-referral-code",{referralcode:[32]}]]],["p-665b8d42.system",[[0,"sqh-rewards-actions",{previoustext:[1],hidetext:[1],nexttext:[1]}]]],["p-c084b313.system",[[0,"sqh-referral-list",{ishidden:[4],paginatemore:[1],paginateless:[1],noreferralsyet:[1],referralnamecolor:[1],referraltextcolor:[1],unknownuser:[1],showexpiry:[4],shownotes:[4],redeemedvalue:[1],showreferrer:[4],referrercontent:[1],referrervalue:[1],rewardcolor:[1],customernotecolor:[1],usefirstreward:[4],convertedcontent:[1],valuecontent:[1],pendingcolor:[1],pendingcontent:[1],pendingvalue:[1],expiredcolor:[1],expiredcontent:[1],expiredvalue:[1],expiresvalue:[1],cancelledcolor:[1],cancelledcontent:[1],cancelledvalue:[1],internationalization:[4],referrals:[32],referralsCount:[32],referredBy:[32],rewards:[32],loading:[32],offset:[32],locale:[32]}],[0,"sqh-share-button-container",{ishidden:[4],emaildisplayrule:[1],emailtext:[1],emailbackgroundcolor:[1],emailtextcolor:[1],emailicon:[1],emailclassName:[1,"emailclass-name"],emailiconhorizontal:[2],emailiconvertical:[2],emailiconsize:[2],facebookdisplayrule:[1],facebooktext:[1],facebookbackgroundcolor:[1],facebooktextcolor:[1],facebookicon:[1],facebookclassName:[1,"facebookclass-name"],facebookiconhorizontal:[2],facebookiconvertical:[2],facebookiconsize:[2],twitterdisplayrule:[1],twittertext:[1],twitterbackgroundcolor:[1],twittertextcolor:[1],twittericon:[1],twitterclassName:[1,"twitterclass-name"],twittericonhorizontal:[2],twittericonvertical:[2],twittericonsize:[2],smsdisplayrule:[1],smstext:[1],smsbackgroundcolor:[1],smstextcolor:[1],smsicon:[1],smsclassName:[1,"smsclass-name"],smsiconhorizontal:[2],smsiconvertical:[2],smsiconsize:[2],whatsappdisplayrule:[1],whatsapptext:[1],whatsappbackgroundcolor:[1],whatsapptextcolor:[1],whatsappicon:[1],whatsappclassName:[1,"whatsappclass-name"],whatsappiconhorizontal:[2],whatsappiconvertical:[2],whatsappiconsize:[2],linkedindisplayrule:[1],linkedintext:[1],linkedinbackgroundcolor:[1],linkedintextcolor:[1],linkedinicon:[1],linkedinclassName:[1,"linkedinclass-name"],linkediniconhorizontal:[2],linkediniconvertical:[2],linkediniconsize:[2],pinterestdisplayrule:[1],pinteresttext:[1],pinterestbackgroundcolor:[1],pinteresttextcolor:[1],pinteresticon:[1],pinterestclassName:[1,"pinterestclass-name"],pinteresticonhorizontal:[2],pinteresticonvertical:[2],pinteresticonsize:[2],messengerdisplayrule:[1],messengertext:[1],messengerbackgroundcolor:[1],messengertextcolor:[1],messengericon:[1],messengerclassName:[1,"messengerclass-name"],messengericonhorizontal:[2],messengericonvertical:[2],messengericonsize:[2],linedisplayrule:[1],linetext:[1],linebackgroundcolor:[1],linetextcolor:[1],lineicon:[1],lineclassName:[1,"lineclass-name"],lineiconhorizontal:[2],lineiconvertical:[2],lineiconsize:[2],emailurl:[32],facebookurl:[32],twitterurl:[32],smsurl:[32],whatsappurl:[32],linkedinurl:[32],pinteresturl:[32],messengerurl:[32],lineurl:[32]}],[0,"sqh-copy-button",{ishidden:[4],text:[1],width:[2],backgroundcolor:[1],borderradius:[2],textcolor:[1],fontsize:[2],copysuccess:[1],copyfailure:[1],rewardkey:[1],codefontsize:[2],codefontcolor:[1],fueltankcode:[32]}],[0,"sqh-copy-link-button",{ishidden:[4],text:[1],copysuccess:[1],copyfailure:[1],buttoncolor:[1],textcolor:[1],sharelink:[32]}],[0,"sqh-cta-component",{ishidden:[4],ismarkdown:[4],text:[1],fontfamily:[1],color:[1],fontsize:[1],paddingtop:[1],fontweight:[1],paddingbottom:[1],textalign:[1],background:[1],buttonbackground:[1],height:[1],width:[1],borderradius:[1],url:[1]}],[4,"sqh-global-container",{background:[1],loadingcolor:[1],fontfamily:[1],maxwidth:[1],poweredby:[4]}],[0,"sqh-image-component",{ishidden:[4],url:[1],width:[2],borderradius:[2],alignment:[1],css:[1]}],[0,"sqh-partner-stat-component",{ishidden:[4],stattype:[1],statvalue:[1],statdescription:[1],statcolor:[1]}],[0,"sqh-progress-indicator",{ishidden:[4],textcolor:[1],align:[1],progresstype:[1],earned:[1],progress:[1],progresswidth:[1],percentagecolor:[1],percentagesize:[1],progresscolor:[1],stats:[32],rewardStats:[32],progressMessage:[32],rewardComplete:[32],locale:[32],loading:[32]}],[0,"sqh-stat-component",{ishidden:[4],stattype:[1],statvalue:[1],statdescription:[1],statcolor:[1]}],[4,"sqh-stats-container",{ishidden:[4],paddingtop:[1],paddingbottom:[1],loading:[32],stats:[32]},[[0,"statTypeUpdated","statTypeUpdatedHandler"],[0,"statAdded","statAddedHandler"]]],[0,"sqh-text-component",{ishidden:[4],ismarkdown:[4],text:[1],fontfamily:[1],color:[1],fontsize:[1],paddingtop:[1],fontweight:[1],paddingbottom:[1],textalign:[1],background:[1],height:[1]}],[0,"sqh-referral-component",{referral:[16],referraltype:[1],referralvariables:[16],unknownuser:[16],locale:[1]}],[0,"sqh-share-button",{displayrule:[1],text:[1],backgroundcolor:[1],textcolor:[1],icon:[1],buttonClassName:[1,"button-class-name"],iconhorizontal:[2],iconvertical:[2],iconsize:[2],type:[1],url:[1]}]]]],t)}))}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-ad5121cf.system.js","./p-22e300c7.system.js","./p-
|
|
1
|
+
System.register(["./p-ad5121cf.system.js","./p-22e300c7.system.js","./p-b67d3319.system.js"],(function(t){"use strict";var e,o,n,s,r;return{setters:[function(t){e=t.r;o=t.h;n=t.g},function(){},function(t){s=t.A;r=t.w}],execute:function(){var c="sqh-close-button .squatch-header-close{position:absolute;top:4px;right:6px;background:transparent;border:0;color:#4486e1;font-size:12px}sqh-close-button .squatch-header-close:hover{text-decoration:underline}";var u=t("sqh_close_button",function(){function t(t){e(this,t);this.text="Close"}t.prototype.handleClick=function(){s.ui.close()};t.prototype.componentDidLoad=function(){var t=r();if(t&&t.engagementMedium!="POPUP"){this.closeButton.setAttribute("style","display:none")}};t.prototype.render=function(){return o("span",{class:"close squatch-header-close","data-close-panel":"#squatch-panel"},this.text)};Object.defineProperty(t.prototype,"closeButton",{get:function(){return n(this)},enumerable:false,configurable:true});return t}());u.style=c}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e}from"./p-fbf0c7fe.js";import{p as t}from"./p-17d80384.js";import"./p-b18ab5ec.js";t().then(t=>e([["p-
|
|
1
|
+
import{b as e}from"./p-fbf0c7fe.js";import{p as t}from"./p-17d80384.js";import"./p-b18ab5ec.js";t().then(t=>e([["p-1dfd20e2",[[0,"sqh-close-button",{text:[1]},[[0,"click","handleClick"]]]]],["p-9ffe6e46",[[0,"sqh-referral-code",{referralcode:[32]}]]],["p-fb528be6",[[0,"sqh-rewards-actions",{previoustext:[1],hidetext:[1],nexttext:[1]}]]],["p-4b1ce501",[[0,"sqh-referral-list",{ishidden:[4],paginatemore:[1],paginateless:[1],noreferralsyet:[1],referralnamecolor:[1],referraltextcolor:[1],unknownuser:[1],showexpiry:[4],shownotes:[4],redeemedvalue:[1],showreferrer:[4],referrercontent:[1],referrervalue:[1],rewardcolor:[1],customernotecolor:[1],usefirstreward:[4],convertedcontent:[1],valuecontent:[1],pendingcolor:[1],pendingcontent:[1],pendingvalue:[1],expiredcolor:[1],expiredcontent:[1],expiredvalue:[1],expiresvalue:[1],cancelledcolor:[1],cancelledcontent:[1],cancelledvalue:[1],internationalization:[4],referrals:[32],referralsCount:[32],referredBy:[32],rewards:[32],loading:[32],offset:[32],locale:[32]}],[0,"sqh-share-button-container",{ishidden:[4],emaildisplayrule:[1],emailtext:[1],emailbackgroundcolor:[1],emailtextcolor:[1],emailicon:[1],emailclassName:[1,"emailclass-name"],emailiconhorizontal:[2],emailiconvertical:[2],emailiconsize:[2],facebookdisplayrule:[1],facebooktext:[1],facebookbackgroundcolor:[1],facebooktextcolor:[1],facebookicon:[1],facebookclassName:[1,"facebookclass-name"],facebookiconhorizontal:[2],facebookiconvertical:[2],facebookiconsize:[2],twitterdisplayrule:[1],twittertext:[1],twitterbackgroundcolor:[1],twittertextcolor:[1],twittericon:[1],twitterclassName:[1,"twitterclass-name"],twittericonhorizontal:[2],twittericonvertical:[2],twittericonsize:[2],smsdisplayrule:[1],smstext:[1],smsbackgroundcolor:[1],smstextcolor:[1],smsicon:[1],smsclassName:[1,"smsclass-name"],smsiconhorizontal:[2],smsiconvertical:[2],smsiconsize:[2],whatsappdisplayrule:[1],whatsapptext:[1],whatsappbackgroundcolor:[1],whatsapptextcolor:[1],whatsappicon:[1],whatsappclassName:[1,"whatsappclass-name"],whatsappiconhorizontal:[2],whatsappiconvertical:[2],whatsappiconsize:[2],linkedindisplayrule:[1],linkedintext:[1],linkedinbackgroundcolor:[1],linkedintextcolor:[1],linkedinicon:[1],linkedinclassName:[1,"linkedinclass-name"],linkediniconhorizontal:[2],linkediniconvertical:[2],linkediniconsize:[2],pinterestdisplayrule:[1],pinteresttext:[1],pinterestbackgroundcolor:[1],pinteresttextcolor:[1],pinteresticon:[1],pinterestclassName:[1,"pinterestclass-name"],pinteresticonhorizontal:[2],pinteresticonvertical:[2],pinteresticonsize:[2],messengerdisplayrule:[1],messengertext:[1],messengerbackgroundcolor:[1],messengertextcolor:[1],messengericon:[1],messengerclassName:[1,"messengerclass-name"],messengericonhorizontal:[2],messengericonvertical:[2],messengericonsize:[2],linedisplayrule:[1],linetext:[1],linebackgroundcolor:[1],linetextcolor:[1],lineicon:[1],lineclassName:[1,"lineclass-name"],lineiconhorizontal:[2],lineiconvertical:[2],lineiconsize:[2],emailurl:[32],facebookurl:[32],twitterurl:[32],smsurl:[32],whatsappurl:[32],linkedinurl:[32],pinteresturl:[32],messengerurl:[32],lineurl:[32]}],[0,"sqh-copy-button",{ishidden:[4],text:[1],width:[2],backgroundcolor:[1],borderradius:[2],textcolor:[1],fontsize:[2],copysuccess:[1],copyfailure:[1],rewardkey:[1],codefontsize:[2],codefontcolor:[1],fueltankcode:[32]}],[0,"sqh-copy-link-button",{ishidden:[4],text:[1],copysuccess:[1],copyfailure:[1],buttoncolor:[1],textcolor:[1],sharelink:[32]}],[0,"sqh-cta-component",{ishidden:[4],ismarkdown:[4],text:[1],fontfamily:[1],color:[1],fontsize:[1],paddingtop:[1],fontweight:[1],paddingbottom:[1],textalign:[1],background:[1],buttonbackground:[1],height:[1],width:[1],borderradius:[1],url:[1]}],[4,"sqh-global-container",{background:[1],loadingcolor:[1],fontfamily:[1],maxwidth:[1],poweredby:[4]}],[0,"sqh-image-component",{ishidden:[4],url:[1],width:[2],borderradius:[2],alignment:[1],css:[1]}],[0,"sqh-partner-stat-component",{ishidden:[4],stattype:[1],statvalue:[1],statdescription:[1],statcolor:[1]}],[0,"sqh-progress-indicator",{ishidden:[4],textcolor:[1],align:[1],progresstype:[1],earned:[1],progress:[1],progresswidth:[1],percentagecolor:[1],percentagesize:[1],progresscolor:[1],stats:[32],rewardStats:[32],progressMessage:[32],rewardComplete:[32],locale:[32],loading:[32]}],[0,"sqh-stat-component",{ishidden:[4],stattype:[1],statvalue:[1],statdescription:[1],statcolor:[1]}],[4,"sqh-stats-container",{ishidden:[4],paddingtop:[1],paddingbottom:[1],loading:[32],stats:[32]},[[0,"statTypeUpdated","statTypeUpdatedHandler"],[0,"statAdded","statAddedHandler"]]],[0,"sqh-text-component",{ishidden:[4],ismarkdown:[4],text:[1],fontfamily:[1],color:[1],fontsize:[1],paddingtop:[1],fontweight:[1],paddingbottom:[1],textalign:[1],background:[1],height:[1]}],[0,"sqh-referral-component",{referral:[16],referraltype:[1],referralvariables:[16],unknownuser:[16],locale:[1]}],[0,"sqh-share-button",{displayrule:[1],text:[1],backgroundcolor:[1],textcolor:[1],icon:[1],buttonClassName:[1,"button-class-name"],iconhorizontal:[2],iconvertical:[2],iconsize:[2],type:[1],url:[1]}]]]],t));
|
|
@@ -116,7 +116,7 @@ var StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=
|
|
|
116
116
|
|
|
117
117
|
var resourcesUrl = scriptElm ? scriptElm.getAttribute('data-resources-url') || scriptElm.src : '';
|
|
118
118
|
var start = function() {
|
|
119
|
-
var url = new URL('./p-e82def83.system.js', new URL(resourcesUrl));
|
|
119
|
+
var url = new URL('./p-e82def83.system.js', new URL(resourcesUrl, window.location.origin));
|
|
120
120
|
System.import(url.href);
|
|
121
121
|
};
|
|
122
122
|
|
package/package.json
CHANGED
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@saasquatch/vanilla-components",
|
|
3
|
-
"title": "Vanilla Components",
|
|
4
|
-
"version": "1.2.4-
|
|
5
|
-
"description": "A minimal design library with components for referral and loyalty experiences.",
|
|
6
|
-
"icon": "https://res.cloudinary.com/saasquatch/image/upload/v1652219900/squatch-assets/For_Vanilla.svg",
|
|
7
|
-
"raisins": "docs/raisins.json",
|
|
8
|
-
"main": "dist/index.js",
|
|
9
|
-
"module": "dist/
|
|
10
|
-
"es2015": "dist/esm/index.mjs",
|
|
11
|
-
"es2017": "dist/esm/index.mjs",
|
|
12
|
-
"types": "dist/types/components.d.ts",
|
|
13
|
-
"collection": "dist/collection/collection-manifest.json",
|
|
14
|
-
"collection:main": "dist/collection/index.js",
|
|
15
|
-
"files": [
|
|
16
|
-
"dist/",
|
|
17
|
-
"docs/"
|
|
18
|
-
],
|
|
19
|
-
"scripts": {
|
|
20
|
-
"build": "stencil build --docs",
|
|
21
|
-
"start": "cross-env NODE_ENV=dev stencil build --dev --watch --serve",
|
|
22
|
-
"test": "stencil test --spec --e2e",
|
|
23
|
-
"test.watch": "stencil test --spec --e2e --watchAll",
|
|
24
|
-
"generate": "stencil generate",
|
|
25
|
-
"storybook": "start-storybook -p 6006 -s ./dist",
|
|
26
|
-
"build-storybook": "build-storybook -o docs -c .storybook-prod",
|
|
27
|
-
"contentful": "ts-node templates/build-contentful.ts",
|
|
28
|
-
"serve:package": "serve . --cors",
|
|
29
|
-
"start:raisins": "run-p start serve:package"
|
|
30
|
-
},
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
"@formatjs/intl-relativetimeformat": "^4.5.15",
|
|
33
|
-
"@formatjs/intl-utils": "^2.2.5",
|
|
34
|
-
"@stencil/core": "^1.17.0",
|
|
35
|
-
"@stencil/sass": "^1.3.2",
|
|
36
|
-
"@stencil/utils": "latest",
|
|
37
|
-
"@types/clipboard": "^2.0.1",
|
|
38
|
-
"@types/faker": "^4.1.11",
|
|
39
|
-
"@types/jest": "^25.2.1",
|
|
40
|
-
"@types/node": "^13.13.15",
|
|
41
|
-
"@types/puppeteer": "2.0.1",
|
|
42
|
-
"apollo-cache-inmemory": "^1.6.5",
|
|
43
|
-
"apollo-client": "^2.6.8",
|
|
44
|
-
"apollo-link-http": "^1.5.17",
|
|
45
|
-
"babel-core": "^6.26.3",
|
|
46
|
-
"babel-runtime": "^6.26.0",
|
|
47
|
-
"clipboard": "^2.0.6",
|
|
48
|
-
"cross-env": "^7.0.2",
|
|
49
|
-
"emotion": "^10.0.27",
|
|
50
|
-
"faker": "^4.1.0",
|
|
51
|
-
"graphql": "^14.7.0",
|
|
52
|
-
"graphql-tag": "^2.11.0",
|
|
53
|
-
"html-minifier": "^4.0.0",
|
|
54
|
-
"intl-messageformat": "^8.3.10",
|
|
55
|
-
"intl-relativeformat": "^6.4.3",
|
|
56
|
-
"jest": "^26.2.2",
|
|
57
|
-
"jest-cli": "^26.2.2",
|
|
58
|
-
"marked": "^1.1.1",
|
|
59
|
-
"path-to-regexp": "^6.1.0",
|
|
60
|
-
"progressbar.js": "^1.0.1",
|
|
61
|
-
"puppeteer": "3.0.3",
|
|
62
|
-
"ts-node": "^8.10.1",
|
|
63
|
-
"uuid": "^8.3.0",
|
|
64
|
-
"workbox-build": "4.3.1"
|
|
65
|
-
},
|
|
66
|
-
"resolutions": {
|
|
67
|
-
"apollo-link": "^1.2.14"
|
|
68
|
-
},
|
|
69
|
-
"repository": {
|
|
70
|
-
"type": "git",
|
|
71
|
-
"url": "git+https://github.com/saasquatch/program-tools.git"
|
|
72
|
-
},
|
|
73
|
-
"author": "SaaSquatch Team",
|
|
74
|
-
"license": "MIT",
|
|
75
|
-
"bugs": {
|
|
76
|
-
"url": "https://github.com/saasquatch/program-tools"
|
|
77
|
-
},
|
|
78
|
-
"homepage": "https://github.com/saasquatch/program-tools",
|
|
79
|
-
"gitHead": "8bb7593d8b46310071835017f0cd63c8c36013b4",
|
|
80
|
-
"dependencies": {
|
|
81
|
-
"@formatjs/intl-pluralrules": "^1.5.8",
|
|
82
|
-
"@raisins/stencil-docs-target": "^0.2.10"
|
|
83
|
-
},
|
|
84
|
-
"jest": {
|
|
85
|
-
"transform": {
|
|
86
|
-
"^.+\\.(ts|tsx)$": "<rootDir>/node_modules/@stencil/core/testing/jest.preprocessor.js"
|
|
87
|
-
},
|
|
88
|
-
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$",
|
|
89
|
-
"moduleFileExtensions": [
|
|
90
|
-
"ts",
|
|
91
|
-
"tsx",
|
|
92
|
-
"js",
|
|
93
|
-
"json",
|
|
94
|
-
"jsx"
|
|
95
|
-
]
|
|
96
|
-
}
|
|
97
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@saasquatch/vanilla-components",
|
|
3
|
+
"title": "Vanilla Components",
|
|
4
|
+
"version": "1.2.4-13",
|
|
5
|
+
"description": "A minimal design library with components for referral and loyalty experiences.",
|
|
6
|
+
"icon": "https://res.cloudinary.com/saasquatch/image/upload/v1652219900/squatch-assets/For_Vanilla.svg",
|
|
7
|
+
"raisins": "docs/raisins.json",
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"module": "dist/widget-components/entrypoint.js",
|
|
10
|
+
"es2015": "dist/esm/index.mjs",
|
|
11
|
+
"es2017": "dist/esm/index.mjs",
|
|
12
|
+
"types": "dist/types/components.d.ts",
|
|
13
|
+
"collection": "dist/collection/collection-manifest.json",
|
|
14
|
+
"collection:main": "dist/collection/index.js",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist/",
|
|
17
|
+
"docs/"
|
|
18
|
+
],
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "stencil build --docs",
|
|
21
|
+
"start": "cross-env NODE_ENV=dev stencil build --dev --watch --serve",
|
|
22
|
+
"test": "stencil test --spec --e2e",
|
|
23
|
+
"test.watch": "stencil test --spec --e2e --watchAll",
|
|
24
|
+
"generate": "stencil generate",
|
|
25
|
+
"storybook": "start-storybook -p 6006 -s ./dist",
|
|
26
|
+
"build-storybook": "build-storybook -o docs -c .storybook-prod",
|
|
27
|
+
"contentful": "ts-node templates/build-contentful.ts",
|
|
28
|
+
"serve:package": "serve . --cors",
|
|
29
|
+
"start:raisins": "run-p start serve:package"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@formatjs/intl-relativetimeformat": "^4.5.15",
|
|
33
|
+
"@formatjs/intl-utils": "^2.2.5",
|
|
34
|
+
"@stencil/core": "^1.17.0",
|
|
35
|
+
"@stencil/sass": "^1.3.2",
|
|
36
|
+
"@stencil/utils": "latest",
|
|
37
|
+
"@types/clipboard": "^2.0.1",
|
|
38
|
+
"@types/faker": "^4.1.11",
|
|
39
|
+
"@types/jest": "^25.2.1",
|
|
40
|
+
"@types/node": "^13.13.15",
|
|
41
|
+
"@types/puppeteer": "2.0.1",
|
|
42
|
+
"apollo-cache-inmemory": "^1.6.5",
|
|
43
|
+
"apollo-client": "^2.6.8",
|
|
44
|
+
"apollo-link-http": "^1.5.17",
|
|
45
|
+
"babel-core": "^6.26.3",
|
|
46
|
+
"babel-runtime": "^6.26.0",
|
|
47
|
+
"clipboard": "^2.0.6",
|
|
48
|
+
"cross-env": "^7.0.2",
|
|
49
|
+
"emotion": "^10.0.27",
|
|
50
|
+
"faker": "^4.1.0",
|
|
51
|
+
"graphql": "^14.7.0",
|
|
52
|
+
"graphql-tag": "^2.11.0",
|
|
53
|
+
"html-minifier": "^4.0.0",
|
|
54
|
+
"intl-messageformat": "^8.3.10",
|
|
55
|
+
"intl-relativeformat": "^6.4.3",
|
|
56
|
+
"jest": "^26.2.2",
|
|
57
|
+
"jest-cli": "^26.2.2",
|
|
58
|
+
"marked": "^1.1.1",
|
|
59
|
+
"path-to-regexp": "^6.1.0",
|
|
60
|
+
"progressbar.js": "^1.0.1",
|
|
61
|
+
"puppeteer": "3.0.3",
|
|
62
|
+
"ts-node": "^8.10.1",
|
|
63
|
+
"uuid": "^8.3.0",
|
|
64
|
+
"workbox-build": "4.3.1"
|
|
65
|
+
},
|
|
66
|
+
"resolutions": {
|
|
67
|
+
"apollo-link": "^1.2.14"
|
|
68
|
+
},
|
|
69
|
+
"repository": {
|
|
70
|
+
"type": "git",
|
|
71
|
+
"url": "git+https://github.com/saasquatch/program-tools.git"
|
|
72
|
+
},
|
|
73
|
+
"author": "SaaSquatch Team",
|
|
74
|
+
"license": "MIT",
|
|
75
|
+
"bugs": {
|
|
76
|
+
"url": "https://github.com/saasquatch/program-tools"
|
|
77
|
+
},
|
|
78
|
+
"homepage": "https://github.com/saasquatch/program-tools",
|
|
79
|
+
"gitHead": "8bb7593d8b46310071835017f0cd63c8c36013b4",
|
|
80
|
+
"dependencies": {
|
|
81
|
+
"@formatjs/intl-pluralrules": "^1.5.8",
|
|
82
|
+
"@raisins/stencil-docs-target": "^0.2.10"
|
|
83
|
+
},
|
|
84
|
+
"jest": {
|
|
85
|
+
"transform": {
|
|
86
|
+
"^.+\\.(ts|tsx)$": "<rootDir>/node_modules/@stencil/core/testing/jest.preprocessor.js"
|
|
87
|
+
},
|
|
88
|
+
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$",
|
|
89
|
+
"moduleFileExtensions": [
|
|
90
|
+
"ts",
|
|
91
|
+
"tsx",
|
|
92
|
+
"js",
|
|
93
|
+
"json",
|
|
94
|
+
"jsx"
|
|
95
|
+
]
|
|
96
|
+
}
|
|
97
|
+
}
|
package/readme.md
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
# Stencil App Starter
|
|
2
|
-
|
|
3
|
-
Stencil is a compiler for building fast web apps using Web Components.
|
|
4
|
-
|
|
5
|
-
Stencil combines the best concepts of the most popular frontend frameworks into a compile-time rather than run-time tool. Stencil takes TypeScript, JSX, a tiny virtual DOM layer, efficient one-way data binding, an asynchronous rendering pipeline (similar to React Fiber), and lazy-loading out of the box, and generates 100% standards-based Web Components that run in any browser supporting the Custom Elements v1 spec.
|
|
6
|
-
|
|
7
|
-
Stencil components are just Web Components, so they work in any major framework or with no framework at all. In many cases, Stencil can be used as a drop in replacement for traditional frontend frameworks given the capabilities now available in the browser, though using it as such is certainly not required.
|
|
8
|
-
|
|
9
|
-
Stencil also enables a number of key capabilities on top of Web Components, in particular Server Side Rendering (SSR) without the need to run a headless browser, pre-rendering, and objects-as-properties (instead of just strings).
|
|
10
|
-
|
|
11
|
-
## Getting Started
|
|
12
|
-
|
|
13
|
-
To start a new project using Stencil, clone this repo to a new directory:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
git clone https://github.com/ionic-team/stencil-starter.git my-app
|
|
17
|
-
cd my-app
|
|
18
|
-
git remote rm origin
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
and run:
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
npm install
|
|
25
|
-
npm start
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
To view the build, start an HTTP server inside of the `/www` directory.
|
|
29
|
-
|
|
30
|
-
To watch for file changes during development, run:
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
npm run dev
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
To build the app for production, run:
|
|
37
|
-
|
|
38
|
-
```bash
|
|
39
|
-
npm run build
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
To run the unit tests once, run:
|
|
43
|
-
|
|
44
|
-
```
|
|
45
|
-
npm test
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
To run the unit tests and watch for file changes during development, run:
|
|
49
|
-
|
|
50
|
-
```
|
|
51
|
-
npm run test.watch
|
|
52
|
-
```
|
|
1
|
+
# Stencil App Starter
|
|
2
|
+
|
|
3
|
+
Stencil is a compiler for building fast web apps using Web Components.
|
|
4
|
+
|
|
5
|
+
Stencil combines the best concepts of the most popular frontend frameworks into a compile-time rather than run-time tool. Stencil takes TypeScript, JSX, a tiny virtual DOM layer, efficient one-way data binding, an asynchronous rendering pipeline (similar to React Fiber), and lazy-loading out of the box, and generates 100% standards-based Web Components that run in any browser supporting the Custom Elements v1 spec.
|
|
6
|
+
|
|
7
|
+
Stencil components are just Web Components, so they work in any major framework or with no framework at all. In many cases, Stencil can be used as a drop in replacement for traditional frontend frameworks given the capabilities now available in the browser, though using it as such is certainly not required.
|
|
8
|
+
|
|
9
|
+
Stencil also enables a number of key capabilities on top of Web Components, in particular Server Side Rendering (SSR) without the need to run a headless browser, pre-rendering, and objects-as-properties (instead of just strings).
|
|
10
|
+
|
|
11
|
+
## Getting Started
|
|
12
|
+
|
|
13
|
+
To start a new project using Stencil, clone this repo to a new directory:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
git clone https://github.com/ionic-team/stencil-starter.git my-app
|
|
17
|
+
cd my-app
|
|
18
|
+
git remote rm origin
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
and run:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm install
|
|
25
|
+
npm start
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
To view the build, start an HTTP server inside of the `/www` directory.
|
|
29
|
+
|
|
30
|
+
To watch for file changes during development, run:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
npm run dev
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
To build the app for production, run:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
npm run build
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
To run the unit tests once, run:
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
npm test
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
To run the unit tests and watch for file changes during development, run:
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
npm run test.watch
|
|
52
|
+
```
|