abmp-npm 1.10.5 → 1.10.6

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.
@@ -84,7 +84,7 @@ const validateCoreMemberData = inputMemberData => {
84
84
  return true;
85
85
  };
86
86
 
87
- const containsNonEnglish = str => /[^a-zA-Z0-9]/.test(str); // if it contains any non-english characters, test1 is allowed, but any others are not
87
+ const containsNonEnglish = str => /[^a-zA-Z0-9-]/.test(str); // if it contains any non-english characters or invalid URL chars, test1 is allowed, hyphens are allowed
88
88
 
89
89
  /**
90
90
  * Creates a full name from first and last name components
@@ -132,7 +132,9 @@ async function getMemberBySlug({
132
132
  }
133
133
  query = query.limit(1000);
134
134
  const searchResult = await searchAllItems(query);
135
- const membersList = searchResult.filter(item => item.url && item.url.includes(slug)); //replacement for contains
135
+ const membersList = searchResult.filter(
136
+ item => item.url && item.url.toLowerCase().includes(slug.toLowerCase())
137
+ ); //replacement for contains - case insensitive
136
138
  let matchingMembers = membersList.filter(
137
139
  item => item.url && item.url.toLowerCase() === slug.toLowerCase()
138
140
  );
@@ -89,7 +89,7 @@ const TASKS = {
89
89
  getIdentifier: () => 'SHOULD_NEVER_SKIP',
90
90
  process: updateSiteMapS3,
91
91
  shouldSkipCheck: () => false,
92
- estimatedDurationSec: 70,
92
+ estimatedDurationSec: 90,
93
93
  },
94
94
  [TASKS_NAMES.scheduleContactFormEmailMigration]: {
95
95
  name: TASKS_NAMES.scheduleContactFormEmailMigration,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abmp-npm",
3
- "version": "1.10.5",
3
+ "version": "1.10.6",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "check-cycles": "madge --circular .",
@@ -31,7 +31,7 @@
31
31
  "dependencies": {
32
32
  "@wix/automations": "^1.0.261",
33
33
  "@wix/crm": "^1.0.1061",
34
- "@wix/data": "^1.0.303",
34
+ "@wix/data": "^1.0.349",
35
35
  "@wix/essentials": "^0.1.28",
36
36
  "@wix/identity": "^1.0.178",
37
37
  "@wix/media": "^1.0.213",
@@ -45,9 +45,9 @@
45
45
  "aws4": "^1.13.2",
46
46
  "axios": "^1.13.1",
47
47
  "crypto": "^1.0.1",
48
+ "csv-parser": "^3.0.0",
48
49
  "jwt-js-decode": "^1.9.0",
49
50
  "lodash": "^4.17.21",
50
- "csv-parser": "^3.0.0",
51
51
  "ngeohash": "^0.6.3",
52
52
  "phone": "^3.1.67",
53
53
  "psdev-task-manager": "1.1.7",
package/pages/Profile.js CHANGED
@@ -62,8 +62,8 @@ async function profileOnReady({ $w: _$w }) {
62
62
  _$w('#moreAdressesRepeater').data = profileData.processedAddresses;
63
63
 
64
64
  if (profileData.processedAddresses.length > 0) {
65
- _$w('#moreLocationButton').restore();
66
- _$w('#addressTitle').delete();
65
+ _$w('#moreLocationButton').expand();
66
+ _$w('#addressTitle').collapse();
67
67
  }
68
68
 
69
69
  _$w('#moreAdressesRepeater').onItemReady(($item, itemData) => {
@@ -81,9 +81,9 @@ async function profileOnReady({ $w: _$w }) {
81
81
  const $container = _$w(containerId);
82
82
 
83
83
  $button.onClick(() => {
84
- const isDeleted = $container.deleted;
85
- $container[isDeleted ? 'restore' : 'delete']();
86
- $button.label = isDeleted ? 'Less Locations -' : 'More Locations +';
84
+ const isCollapsed = $container.collapsed;
85
+ $container[isCollapsed ? 'expand' : 'collapse']();
86
+ $button.label = isCollapsed ? 'Less Locations -' : 'More Locations +';
87
87
  });
88
88
  }
89
89
 
@@ -104,7 +104,7 @@ async function profileOnReady({ $w: _$w }) {
104
104
 
105
105
  function bindStudentBadge() {
106
106
  if (profileData.shouldHaveStudentBadge) {
107
- _$w('#studentContainer, #studentContainerMobile').restore();
107
+ _$w('#studentContainer, #studentContainerMobile').expand();
108
108
  } else {
109
109
  _$w('#studentContainer, #studentContainerMobile').delete();
110
110
  }
@@ -201,7 +201,7 @@ async function profileOnReady({ $w: _$w }) {
201
201
  function bindBusinessName() {
202
202
  if (profileData.businessName) {
203
203
  _$w('#businessName').text = profileData.businessName;
204
- _$w('#businessName').restore();
204
+ _$w('#businessName').expand();
205
205
  } else {
206
206
  _$w('#businessName').delete();
207
207
  }
@@ -265,7 +265,7 @@ async function profileOnReady({ $w: _$w }) {
265
265
  function setupTestimonialsIfAvailable() {
266
266
  if (profileData.testimonials.length > 0) {
267
267
  setupTestimonialsPagination(profileData.testimonials);
268
- _$w('#testimonialsSection').restore();
268
+ _$w('#testimonialsSection').expand();
269
269
  } else {
270
270
  _$w('#testimonialsSection').delete();
271
271
  }
@@ -332,15 +332,15 @@ async function profileOnReady({ $w: _$w }) {
332
332
  }
333
333
 
334
334
  function updateTestimonialNavigation(end, totalLength) {
335
- _$w('#prevTestimonialBtn').delete();
336
- _$w('#nextTestimonialBtn').delete();
335
+ _$w('#prevTestimonialBtn').hide();
336
+ _$w('#nextTestimonialBtn').hide();
337
337
 
338
338
  if (currentTestimonialPage > 0) {
339
- _$w('#prevTestimonialBtn').restore();
339
+ _$w('#prevTestimonialBtn').show();
340
340
  }
341
341
 
342
342
  if (end < totalLength) {
343
- _$w('#nextTestimonialBtn').restore();
343
+ _$w('#nextTestimonialBtn').show();
344
344
  }
345
345
  }
346
346
  }