@eluvio/elv-client-js 4.0.61 → 4.0.63
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/dist/ElvClient-min.js +10 -10
- package/dist/ElvClient-node-min.js +10 -10
- package/dist/ElvFrameClient-min.js +9 -9
- package/dist/ElvPermissionsClient-min.js +10 -10
- package/dist/ElvWalletClient-min.js +10 -11
- package/dist/ElvWalletClient-node-min.js +9 -9
- package/dist/src/AuthorizationClient.js +2 -2
- package/dist/src/Crypto.js +2 -2
- package/dist/src/ElvClient.js +24 -28
- package/dist/src/EthClient.js +2 -2
- package/dist/src/FrameClient.js +2 -2
- package/dist/src/PermissionsClient.js +2 -2
- package/dist/src/Utils.js +42 -25
- package/dist/src/Validation.js +55 -1
- package/dist/src/client/ABRPublishing.js +2 -2
- package/dist/src/client/AccessGroups.js +262 -43
- package/dist/src/client/ContentAccess.js +2 -2
- package/dist/src/client/ContentManagement.js +3 -3
- package/dist/src/client/Contracts.js +2 -2
- package/dist/src/client/Files.js +2 -2
- package/dist/src/client/LiveConf.js +1 -8
- package/dist/src/client/NFT.js +2 -2
- package/dist/src/walletClient/ClientMethods.js +2 -2
- package/dist/src/walletClient/Profile.js +2 -2
- package/dist/src/walletClient/Utils.js +2 -2
- package/dist/src/walletClient/index.js +40 -18
- package/package.json +1 -1
- package/src/Utils.js +33 -17
- package/src/Validation.js +20 -0
- package/src/client/AccessGroups.js +201 -43
- package/src/client/LiveConf.js +3 -10
- package/src/walletClient/index.js +33 -14
|
@@ -861,8 +861,8 @@ class ElvWalletClient {
|
|
|
861
861
|
async LatestMarketplaceHash({marketplaceParams}) {
|
|
862
862
|
const marketplaceInfo = await this.MarketplaceInfo({marketplaceParams});
|
|
863
863
|
|
|
864
|
-
if(this.previewMarketplaceId && this.previewMarketplaceId
|
|
865
|
-
return this.
|
|
864
|
+
if(this.previewMarketplaceId && Utils.EqualHash(this.previewMarketplaceId, marketplaceInfo.marketplaceId)) {
|
|
865
|
+
return this.previewMarketplaceHash;
|
|
866
866
|
}
|
|
867
867
|
|
|
868
868
|
const marketplaceLink = await this.client.ContentObjectMetadata({
|
|
@@ -887,18 +887,37 @@ class ElvWalletClient {
|
|
|
887
887
|
}
|
|
888
888
|
|
|
889
889
|
if(!this.cachedMarketplaces[marketplaceId]) {
|
|
890
|
-
let marketplace
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
890
|
+
let marketplace;
|
|
891
|
+
if(this.previewMarketplaceId && Utils.EqualHash(marketplaceId, this.previewMarketplaceId)) {
|
|
892
|
+
// Load preview marketplace
|
|
893
|
+
marketplace = await this.client.ContentObjectMetadata({
|
|
894
|
+
versionHash: this.previewMarketplaceHash,
|
|
895
|
+
metadataSubtree: "/public/asset_metadata/info",
|
|
896
|
+
localizationSubtree: this.localization ? UrlJoin("public", "asset_metadata", "localizations", this.localization, "info") : undefined,
|
|
897
|
+
linkDepthLimit: 1,
|
|
898
|
+
resolveLinks: true,
|
|
899
|
+
resolveIgnoreErrors: true,
|
|
900
|
+
resolveIncludeSource: true,
|
|
901
|
+
produceLinkUrls: true,
|
|
902
|
+
authorizationToken: this.publicStaticToken
|
|
903
|
+
});
|
|
904
|
+
} else {
|
|
905
|
+
// Load marketplace from main site tree
|
|
906
|
+
marketplace = await this.client.ContentObjectMetadata({
|
|
907
|
+
libraryId: this.mainSiteLibraryId,
|
|
908
|
+
objectId: this.mainSiteId,
|
|
909
|
+
metadataSubtree: UrlJoin("/public", "asset_metadata", "tenants", marketplaceInfo.tenantSlug, "marketplaces", marketplaceInfo.marketplaceSlug, "info"),
|
|
910
|
+
localizationSubtree: this.localization ?
|
|
911
|
+
UrlJoin("/public", "asset_metadata", "tenants", marketplaceInfo.tenantSlug, "marketplaces", marketplaceInfo.marketplaceSlug, "localizations", this.localization, "info") :
|
|
912
|
+
undefined,
|
|
913
|
+
linkDepthLimit: 1,
|
|
914
|
+
resolveLinks: true,
|
|
915
|
+
resolveIgnoreErrors: true,
|
|
916
|
+
resolveIncludeSource: true,
|
|
917
|
+
produceLinkUrls: true,
|
|
918
|
+
authorizationToken: this.publicStaticToken
|
|
919
|
+
});
|
|
920
|
+
}
|
|
902
921
|
|
|
903
922
|
if(marketplace.branding.use_tenant_styling) {
|
|
904
923
|
marketplace.tenantBranding = (await this.client.ContentObjectMetadata({
|