@saasquatch/vanilla-components 1.2.5 → 1.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/{WidgetHost-fce29ef5.js → WidgetHost-71b013eb.js} +195 -195
  3. package/dist/cjs/sqh-close-button.cjs.entry.js +1 -1
  4. package/dist/cjs/sqh-copy-button_12.cjs.entry.js +147 -147
  5. package/dist/cjs/sqh-referral-code.cjs.entry.js +1 -1
  6. package/dist/collection/components/copy-button/copy-button.js +22 -22
  7. package/dist/collection/components/copy-link-button/copy-link-button.js +15 -15
  8. package/dist/collection/components/global-container/global-container.js +8 -8
  9. package/dist/collection/components/image-component/image-component.js +10 -10
  10. package/dist/collection/components/partner-stat-component/partner-stat-component.js +2 -2
  11. package/dist/collection/components/referral-list/referral-list.js +51 -51
  12. package/dist/collection/components/share-button/share-button.js +19 -19
  13. package/dist/collection/components/stat-component/stat-component.js +2 -2
  14. package/dist/collection/components/stats-container/stats-container.js +4 -4
  15. package/dist/collection/components/text-component/text-component.js +13 -13
  16. package/dist/collection/entrypoint.js +34 -34
  17. package/dist/collection/services/WidgetHost.js +195 -195
  18. package/dist/esm/{WidgetHost-903fb7cc.js → WidgetHost-9c337319.js} +195 -195
  19. package/dist/esm/sqh-close-button.entry.js +1 -1
  20. package/dist/esm/sqh-copy-button_12.entry.js +147 -147
  21. package/dist/esm/sqh-referral-code.entry.js +1 -1
  22. package/dist/esm-es5/sqh-close-button.entry.js +1 -1
  23. package/dist/esm-es5/sqh-copy-button_12.entry.js +2 -2
  24. package/dist/esm-es5/sqh-referral-code.entry.js +1 -1
  25. package/dist/types/saasquatch.d.ts +105 -105
  26. package/dist/widget-components/entrypoint.js +34 -34
  27. package/dist/widget-components/{p-50ae8f2b.entry.js → p-366f1663.entry.js} +1 -1
  28. package/dist/widget-components/{p-131a5c4a.entry.js → p-54ea7a00.entry.js} +1 -1
  29. package/dist/widget-components/p-58be1132.system.js +1 -1
  30. package/dist/widget-components/{p-8baa34a0.entry.js → p-71e912a2.entry.js} +6 -6
  31. package/dist/widget-components/{p-b9fcb846.system.entry.js → p-b17efca4.system.entry.js} +1 -1
  32. package/dist/widget-components/p-c5f70ddc.system.entry.js +8 -0
  33. package/dist/widget-components/{p-da180bcd.system.entry.js → p-c8bc8c77.system.entry.js} +1 -1
  34. package/dist/widget-components/widget-components.esm.js +1 -1
  35. package/package.json +97 -97
  36. package/readme.md +52 -52
  37. package/dist/widget-components/p-1b8f2cfc.system.entry.js +0 -8
  38. /package/dist/esm-es5/{WidgetHost-903fb7cc.js → WidgetHost-9c337319.js} +0 -0
  39. /package/dist/widget-components/{p-e692beaf.system.js → p-8e232564.system.js} +0 -0
  40. /package/dist/widget-components/{p-ffeb02d1.js → p-edd43dbc.js} +0 -0
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2017 Ionic
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2023 ReferralSaaSquatch.com, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -10169,10 +10169,10 @@ const API = {
10169
10169
  };
10170
10170
  return apolloClient()
10171
10171
  .mutate({
10172
- mutation: src `
10173
- mutation ($eventMeta: UserAnalyticsEvent!) {
10174
- createUserAnalyticsEvent(eventMeta: $eventMeta)
10175
- }
10172
+ mutation: src `
10173
+ mutation ($eventMeta: UserAnalyticsEvent!) {
10174
+ createUserAnalyticsEvent(eventMeta: $eventMeta)
10175
+ }
10176
10176
  `,
10177
10177
  variables,
10178
10178
  })
@@ -10189,21 +10189,21 @@ const API = {
10189
10189
  return apolloClient();
10190
10190
  },
10191
10191
  getUserFragment(userFragment, fragmentVariables) {
10192
- const fragment = src `
10193
- fragment UserFragment on User {
10194
- ${userFragment}
10192
+ const fragment = src `
10193
+ fragment UserFragment on User {
10194
+ ${userFragment}
10195
10195
  }`;
10196
10196
  const { userId, accountId } = widgetIdent();
10197
10197
  const variables = Object.assign(Object.assign({}, fragmentVariables), { userId,
10198
10198
  accountId });
10199
10199
  return this.getClient().query({
10200
- query: src `
10201
- query ($userId: String!, $accountId: String!, $offset: Int) {
10202
- user(id: $userId, accountId: $accountId) {
10203
- ...UserFragment
10204
- }
10205
- }
10206
- ${fragment}
10200
+ query: src `
10201
+ query ($userId: String!, $accountId: String!, $offset: Int) {
10202
+ user(id: $userId, accountId: $accountId) {
10203
+ ...UserFragment
10204
+ }
10205
+ }
10206
+ ${fragment}
10207
10207
  `,
10208
10208
  variables,
10209
10209
  });
@@ -10221,22 +10221,22 @@ const API = {
10221
10221
  };
10222
10222
  return this.getClient()
10223
10223
  .query({
10224
- query: src `
10225
- query (
10226
- $userId: String!
10227
- $accountId: String!
10228
- $programId: ID
10229
- $engagementMedium: UserEngagementMedium!
10230
- ) {
10231
- user(id: $userId, accountId: $accountId) {
10232
- shareLink(
10233
- programId: $programId
10234
- engagementMedium: $engagementMedium
10235
- shareMedium: DIRECT
10236
- useCleanLink: true
10237
- )
10238
- }
10239
- }
10224
+ query: src `
10225
+ query (
10226
+ $userId: String!
10227
+ $accountId: String!
10228
+ $programId: ID
10229
+ $engagementMedium: UserEngagementMedium!
10230
+ ) {
10231
+ user(id: $userId, accountId: $accountId) {
10232
+ shareLink(
10233
+ programId: $programId
10234
+ engagementMedium: $engagementMedium
10235
+ shareMedium: DIRECT
10236
+ useCleanLink: true
10237
+ )
10238
+ }
10239
+ }
10240
10240
  `,
10241
10241
  variables,
10242
10242
  })
@@ -10264,62 +10264,62 @@ const API = {
10264
10264
  };
10265
10265
  return this.getClient()
10266
10266
  .query({
10267
- query: src `
10268
- query (
10269
- $userId: String!
10270
- $accountId: String!
10271
- $offset: Int!
10272
- $limit: Int!
10273
- $programId: ID
10274
- $programId_exists: Boolean!
10275
- ) {
10276
- user(id: $userId, accountId: $accountId) {
10277
- locale
10278
- referrals(
10279
- limit: $limit
10280
- offset: $offset
10281
- filter: {
10282
- programId_eq: $programId
10283
- programId_exists: $programId_exists
10284
- }
10285
- ) {
10286
- totalCount
10287
- data {
10288
- dateConverted
10289
- dateReferralStarted
10290
- referredUser {
10291
- firstName
10292
- lastName
10293
- }
10294
- rewards(
10295
- filter: { userId_eq: $userId, accountId_eq: $accountId }
10296
- ) {
10297
- prettyValue
10298
- dateExpires
10299
- statuses
10300
- meta {
10301
- message
10302
- }
10303
- }
10304
- }
10305
- }
10267
+ query: src `
10268
+ query (
10269
+ $userId: String!
10270
+ $accountId: String!
10271
+ $offset: Int!
10272
+ $limit: Int!
10273
+ $programId: ID
10274
+ $programId_exists: Boolean!
10275
+ ) {
10276
+ user(id: $userId, accountId: $accountId) {
10277
+ locale
10278
+ referrals(
10279
+ limit: $limit
10280
+ offset: $offset
10281
+ filter: {
10282
+ programId_eq: $programId
10283
+ programId_exists: $programId_exists
10284
+ }
10285
+ ) {
10286
+ totalCount
10287
+ data {
10288
+ dateConverted
10289
+ dateReferralStarted
10290
+ referredUser {
10291
+ firstName
10292
+ lastName
10293
+ }
10294
+ rewards(
10295
+ filter: { userId_eq: $userId, accountId_eq: $accountId }
10296
+ ) {
10297
+ prettyValue
10298
+ dateExpires
10299
+ statuses
10300
+ meta {
10301
+ message
10302
+ }
10303
+ }
10304
+ }
10305
+ }
10306
10306
  ${showReferrer
10307
- ? `referredByReferral(programId: $programId) {
10308
- referrerUser {
10309
- firstName
10310
- lastName
10311
- }
10312
- dateReferralStarted
10313
- rewards(
10314
- filter: { userId_eq: $userId, accountId_eq: $accountId }
10315
- ) {
10316
- prettyValue
10317
- statuses
10318
- }
10307
+ ? `referredByReferral(programId: $programId) {
10308
+ referrerUser {
10309
+ firstName
10310
+ lastName
10311
+ }
10312
+ dateReferralStarted
10313
+ rewards(
10314
+ filter: { userId_eq: $userId, accountId_eq: $accountId }
10315
+ ) {
10316
+ prettyValue
10317
+ statuses
10318
+ }
10319
10319
  }`
10320
- : ""}
10321
- }
10322
- }
10320
+ : ""}
10321
+ }
10322
+ }
10323
10323
  `,
10324
10324
  variables,
10325
10325
  })
@@ -10350,70 +10350,70 @@ const API = {
10350
10350
  };
10351
10351
  return this.getClient()
10352
10352
  .query({
10353
- query: src `
10354
- query (
10355
- $userId: String!
10356
- $accountId: String!
10357
- $programId: ID
10358
- $programId_exists: Boolean!
10359
- ) {
10360
- user(id: $userId, accountId: $accountId) {
10361
- referralsCount: referrals(
10362
- filter: {
10363
- programId_eq: $programId
10364
- programId_exists: $programId_exists
10365
- }
10366
- ) {
10367
- totalCount
10368
- }
10369
- referralsMonth: referrals(
10370
- filter: {
10371
- programId_eq: $programId
10372
- programId_exists: $programId_exists
10373
- dateReferralStarted_timeframe: "this_month"
10374
- }
10375
- ) {
10376
- totalCount
10377
- }
10378
- referralsWeek: referrals(
10379
- filter: {
10380
- programId_eq: $programId
10381
- programId_exists: $programId_exists
10382
- dateReferralStarted_timeframe: "this_week"
10383
- }
10384
- ) {
10385
- totalCount
10386
- }
10387
- rewardsCount: rewards(
10388
- filter: {
10389
- programId_eq: $programId
10390
- programId_exists: $programId_exists
10391
- }
10392
- ) {
10393
- totalCount
10394
- }
10395
- rewardsMonth: rewards(
10396
- filter: {
10397
- programId_eq: $programId
10398
- programId_exists: $programId_exists
10399
- dateGiven_timeframe: "this_month"
10400
- }
10401
- ) {
10402
- totalCount
10403
- }
10404
- rewardsWeek: rewards(
10405
- filter: {
10406
- programId_eq: $programId
10407
- programId_exists: $programId_exists
10408
- dateGiven_timeframe: "this_week"
10409
- }
10410
- ) {
10411
- totalCount
10412
- }
10413
- rewardBalances(programId: $programId)
10414
- rewardBalancesGlobal: rewardBalances
10415
- }
10416
- }
10353
+ query: src `
10354
+ query (
10355
+ $userId: String!
10356
+ $accountId: String!
10357
+ $programId: ID
10358
+ $programId_exists: Boolean!
10359
+ ) {
10360
+ user(id: $userId, accountId: $accountId) {
10361
+ referralsCount: referrals(
10362
+ filter: {
10363
+ programId_eq: $programId
10364
+ programId_exists: $programId_exists
10365
+ }
10366
+ ) {
10367
+ totalCount
10368
+ }
10369
+ referralsMonth: referrals(
10370
+ filter: {
10371
+ programId_eq: $programId
10372
+ programId_exists: $programId_exists
10373
+ dateReferralStarted_timeframe: "this_month"
10374
+ }
10375
+ ) {
10376
+ totalCount
10377
+ }
10378
+ referralsWeek: referrals(
10379
+ filter: {
10380
+ programId_eq: $programId
10381
+ programId_exists: $programId_exists
10382
+ dateReferralStarted_timeframe: "this_week"
10383
+ }
10384
+ ) {
10385
+ totalCount
10386
+ }
10387
+ rewardsCount: rewards(
10388
+ filter: {
10389
+ programId_eq: $programId
10390
+ programId_exists: $programId_exists
10391
+ }
10392
+ ) {
10393
+ totalCount
10394
+ }
10395
+ rewardsMonth: rewards(
10396
+ filter: {
10397
+ programId_eq: $programId
10398
+ programId_exists: $programId_exists
10399
+ dateGiven_timeframe: "this_month"
10400
+ }
10401
+ ) {
10402
+ totalCount
10403
+ }
10404
+ rewardsWeek: rewards(
10405
+ filter: {
10406
+ programId_eq: $programId
10407
+ programId_exists: $programId_exists
10408
+ dateGiven_timeframe: "this_week"
10409
+ }
10410
+ ) {
10411
+ totalCount
10412
+ }
10413
+ rewardBalances(programId: $programId)
10414
+ rewardBalancesGlobal: rewardBalances
10415
+ }
10416
+ }
10417
10417
  `,
10418
10418
  variables,
10419
10419
  })
@@ -10431,12 +10431,12 @@ const API = {
10431
10431
  };
10432
10432
  return this.getClient()
10433
10433
  .query({
10434
- query: src `
10435
- query ($userId: String!, $accountId: String!, $programId: ID!) {
10436
- user(id: $userId, accountId: $accountId) {
10437
- referralCode(programId: $programId)
10438
- }
10439
- }
10434
+ query: src `
10435
+ query ($userId: String!, $accountId: String!, $programId: ID!) {
10436
+ user(id: $userId, accountId: $accountId) {
10437
+ referralCode(programId: $programId)
10438
+ }
10439
+ }
10440
10440
  `,
10441
10441
  variables,
10442
10442
  })
@@ -10459,33 +10459,33 @@ const API = {
10459
10459
  };
10460
10460
  return this.getClient()
10461
10461
  .query({
10462
- query: src `
10463
- query (
10464
- $userId: String!
10465
- $accountId: String!
10466
- $programId: ID!
10467
- $rewardKey: String!
10468
- ) {
10469
- user(id: $userId, accountId: $accountId) {
10470
- referredByReferral(programId: $programId) {
10471
- referrerUser {
10472
- referralCode(programId: $programId)
10473
- }
10474
- }
10475
- rewards(
10476
- filter: {
10477
- programId_eq: $programId
10478
- programRewardKey_eq: $rewardKey
10479
- }
10480
- ) {
10481
- count
10482
- totalCount
10483
- data {
10484
- fuelTankCode
10485
- }
10486
- }
10487
- }
10488
- }
10462
+ query: src `
10463
+ query (
10464
+ $userId: String!
10465
+ $accountId: String!
10466
+ $programId: ID!
10467
+ $rewardKey: String!
10468
+ ) {
10469
+ user(id: $userId, accountId: $accountId) {
10470
+ referredByReferral(programId: $programId) {
10471
+ referrerUser {
10472
+ referralCode(programId: $programId)
10473
+ }
10474
+ }
10475
+ rewards(
10476
+ filter: {
10477
+ programId_eq: $programId
10478
+ programRewardKey_eq: $rewardKey
10479
+ }
10480
+ ) {
10481
+ count
10482
+ totalCount
10483
+ data {
10484
+ fuelTankCode
10485
+ }
10486
+ }
10487
+ }
10488
+ }
10489
10489
  `,
10490
10490
  variables,
10491
10491
  })
@@ -10504,20 +10504,20 @@ const API = {
10504
10504
  };
10505
10505
  return this.getClient()
10506
10506
  .query({
10507
- query: src `
10508
- query($userId: String!, $accountId: String!, $programId: ID, $engagementMedium: UserEngagementMedium!) {
10509
- user(id: $userId, accountId: $accountId) {
10510
- ${mediums[0]}:messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ${mediums[0]})
10511
- ${mediums[1]}:messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ${mediums[1]})
10512
- ${mediums[2]}:messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ${mediums[2]})
10513
- ${mediums[3]}:messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ${mediums[3]})
10514
- ${mediums[4]}:messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ${mediums[4]})
10515
- ${mediums[5]}:messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ${mediums[5]})
10516
- ${mediums[6]}:messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ${mediums[6]})
10517
- ${mediums[7]}:messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ${mediums[7]})
10518
- ${mediums[8]}:messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ${mediums[8]})
10519
- }
10520
- }
10507
+ query: src `
10508
+ query($userId: String!, $accountId: String!, $programId: ID, $engagementMedium: UserEngagementMedium!) {
10509
+ user(id: $userId, accountId: $accountId) {
10510
+ ${mediums[0]}:messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ${mediums[0]})
10511
+ ${mediums[1]}:messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ${mediums[1]})
10512
+ ${mediums[2]}:messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ${mediums[2]})
10513
+ ${mediums[3]}:messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ${mediums[3]})
10514
+ ${mediums[4]}:messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ${mediums[4]})
10515
+ ${mediums[5]}:messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ${mediums[5]})
10516
+ ${mediums[6]}:messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ${mediums[6]})
10517
+ ${mediums[7]}:messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ${mediums[7]})
10518
+ ${mediums[8]}:messageLink(programId: $programId, engagementMedium: $engagementMedium, shareMedium: ${mediums[8]})
10519
+ }
10520
+ }
10521
10521
  `,
10522
10522
  variables,
10523
10523
  })
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-deb40352.js');
6
6
  require('./_commonjsHelpers-ac2d0785.js');
7
- const WidgetHost = require('./WidgetHost-fce29ef5.js');
7
+ const WidgetHost = require('./WidgetHost-71b013eb.js');
8
8
 
9
9
  const closeButtonCss = "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}";
10
10