mnfst 0.5.101 → 0.5.102
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.
|
@@ -4611,9 +4611,20 @@ function initializeTeamsConvenience() {
|
|
|
4611
4611
|
const waitForStore = () => {
|
|
4612
4612
|
const store = Alpine.store('auth');
|
|
4613
4613
|
if (store) {
|
|
4614
|
-
//
|
|
4615
|
-
//
|
|
4616
|
-
|
|
4614
|
+
// Decide whether to (re)attach convenience methods. Use a sentinel
|
|
4615
|
+
// that ONLY this module defines — `createTeamFromName`. The earlier
|
|
4616
|
+
// sentinel (`isCreatingTeam`) was unreliable: the store itself
|
|
4617
|
+
// defines an `isCreatingTeam()` stub at init (see manifest.appwrite
|
|
4618
|
+
// .auth.store.js — the "Stub team convenience methods" block), so
|
|
4619
|
+
// `typeof store.isCreatingTeam === 'function'` is true BEFORE this
|
|
4620
|
+
// module runs. The check then fired false-positive and skipped the
|
|
4621
|
+
// whole `if (needsReinitialization)` block below, leaving the real
|
|
4622
|
+
// convenience methods (startEditingMember, createTeamFromName,
|
|
4623
|
+
// cancelEditingMember, saveEditingMember, deleteMember, leaveTeam,
|
|
4624
|
+
// toggleInviteRole, etc.) unattached — surfacing as
|
|
4625
|
+
// "$auth.startEditingMember is not a function" the moment a user
|
|
4626
|
+
// clicked an edit-member button.
|
|
4627
|
+
const needsReinitialization = typeof store.createTeamFromName !== 'function';
|
|
4617
4628
|
|
|
4618
4629
|
// Ensure cache properties are initialized (methods are already in store)
|
|
4619
4630
|
if (!store._permissionCache) store._permissionCache = {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"manifest.appwrite.auth.js": "sha384-
|
|
2
|
+
"manifest.appwrite.auth.js": "sha384-Kvv9SjOFBFY2LELQunQpKLr3uDT+supgouo93eahEL4dAHntq0F9u8Hoyx85eQKr",
|
|
3
3
|
"manifest.appwrite.data.js": "sha384-00ulLT+GAIuPHA/rRT9p98vYlsyDzkyKXtg86BDQ6FGQa5vVVN+W6kuforniBAsz",
|
|
4
4
|
"manifest.appwrite.presence.js": "sha384-uxRpx9/Jj0kGtklH5QmUlAzD3zdSvFRfK6bcJQqxl+Bsf5tOo4zgwqJTQgtZoHQP",
|
|
5
5
|
"manifest.code.js": "sha384-jYW7i5F+K+mL5d/HKpw/Xoo0vOz/pmlvotGd7MUPOu+CB+O28OohqgPAEI4y6bSS",
|