abmp-npm 2.0.11 → 2.0.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.
|
@@ -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(
|
|
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
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "abmp-npm",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.13",
|
|
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.
|
|
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",
|
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').
|
|
66
|
-
_$w('#addressTitle').
|
|
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
|
|
85
|
-
$container[
|
|
86
|
-
$button.label =
|
|
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').
|
|
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').
|
|
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').
|
|
268
|
+
_$w('#testimonialsSection').expand();
|
|
269
269
|
} else {
|
|
270
270
|
_$w('#testimonialsSection').delete();
|
|
271
271
|
}
|