@dcl/builder-site 7.13.0 → 7.14.0
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/assets/{Back-Clwfvmh7.js → Back-DdrQYZHm.js} +1 -1
- package/assets/{CollectionProvider.container-Bf6LcC2X.js → CollectionProvider.container-B3EqRy6H.js} +1 -1
- package/assets/{CollectionStatus.container-CNQQwgqS.js → CollectionStatus.container-CkFaF83s.js} +1 -1
- package/assets/{ConfirmDelete-CjSVGcDx.js → ConfirmDelete-CIPVWRhm.js} +1 -1
- package/assets/{FileSaver.min-BjjJaeu_.js → FileSaver.min-BUXQLdA8.js} +1 -1
- package/assets/{ItemProvider.container-4M0zNCWu.js → ItemProvider.container-DUp3V4pS.js} +1 -1
- package/assets/{JumpIn.container-DVqU--d-.js → JumpIn.container-CQcApBEz.js} +1 -1
- package/assets/{LandAction-CzIlqfWr.js → LandAction-BOHyksXY.js} +1 -1
- package/assets/{LandProviderPage-CdCVpXYt.js → LandProviderPage-DrDHCi9R.js} +1 -1
- package/assets/{LoggedInDetailPage.container-DoOkoSSe.js → LoggedInDetailPage.container-LEYRvHbQ.js} +1 -1
- package/assets/{Navigation-DAvBy0St.css → Navigation-BJjThZP2.css} +1 -1
- package/assets/{Navigation.container-D3_X7o5I.js → Navigation.container-CIMAkapp.js} +1 -1
- package/assets/{NotFound-CPC4JnbQ.js → NotFound-DrpmeGv3.js} +1 -1
- package/assets/{OptionsDropdown-olFEpzvy.js → OptionsDropdown-C4O0yHi5.js} +1 -1
- package/assets/{RentalPeriod-iIhEM7il.js → RentalPeriod-Bz1zIDPl.js} +1 -1
- package/assets/{SDKTag-D-TgCCPW.js → SDKTag-5uWYnT_n.js} +1 -1
- package/assets/{SceneStats.container-BW-FfiwT.js → SceneStats.container-NYmtW2Rj.js} +1 -1
- package/assets/{SignInRequired-Bhdv6Ks4.js → SignInRequired-DQqcQoDx.js} +1 -1
- package/assets/{ThirdPartyKindBadge-SCHdbV9p.js → ThirdPartyKindBadge-Dyc5j-Tc.js} +1 -1
- package/assets/{dataReader-CfNy9BTu.js → dataReader-Cg2dXqmR.js} +1 -1
- package/assets/{date-khjfJqJv.js → date-Aqvlz9Fv.js} +1 -1
- package/assets/{fortmatic-wfCg4cgC.js → fortmatic-BcJM8F3v.js} +1 -1
- package/assets/{hooks-ipfgq6FP.js → hooks-Bu702gkG.js} +1 -1
- package/assets/{index-DHHEg9iE.js → index-0fvjVqzt.js} +1 -1
- package/assets/{index-DXP8j-pV.css → index-1p5f88Bz.css} +1 -1
- package/assets/{index-Cdvs58Um.css → index-7YdhTpCB.css} +7 -7
- package/assets/{index-B0dKWZe9.js → index-B0M-djtI.js} +238 -205
- package/assets/{index-CdAOOjsA.js → index-B4JcgCQz.js} +1 -1
- package/assets/{index-BNtZ2GOM.js → index-BCO0yRvv.js} +1 -1
- package/assets/{index-DbD0BPqn.js → index-BEQiD9aM.js} +1 -1
- package/assets/{index-Bg9lMYkw.js → index-BGmdA2YB.js} +1 -1
- package/assets/{index-BELZ8OXq.js → index-BHm38DIU.js} +1 -1
- package/assets/{index-B6FzzGkD.js → index-BM1b2sar.js} +1 -1
- package/assets/{index-DvoXOFM7.css → index-BNFu-i2F.css} +1 -1
- package/assets/{index-Cnwud-bt.js → index-BYC9OOfH.js} +1 -1
- package/assets/{index-C6jboGrI.js → index-BYCJbFwm.js} +1 -1
- package/assets/{index-DX-Dx_Kc.js → index-Bc1VIWb2.js} +1 -1
- package/assets/index-BiKnF0Cg.js +1 -0
- package/assets/index-BjT_yxd3.js +1 -0
- package/assets/{index-DDymPIRc.js → index-BqpUqlRm.js} +1 -1
- package/assets/index-BrMG0_BD.js +1 -0
- package/assets/{index-CyHKCDnl.js → index-BtS_uooz.js} +1 -1
- package/assets/{index-Cssx0-X9.js → index-BvI8z-v6.js} +2 -2
- package/assets/{index-CvtZWNuR.js → index-BvYxzapl.js} +1 -1
- package/assets/index-C0MWGw3i.js +1 -0
- package/assets/{index-DHETCCO2.js → index-C2nuT1Xc.js} +1 -1
- package/assets/{index-Diz7LgQ6.js → index-C9n59z3d.js} +1 -1
- package/assets/index-CHJhfxEx.js +1 -0
- package/assets/{index-HQtFmny9.js → index-CQcjrCIK.js} +1 -1
- package/assets/{index-DGzFl9Hn.js → index-CWIKnSU0.js} +1 -1
- package/assets/{index-C9KW3v-Q.js → index-CeuDfIgt.js} +1 -1
- package/assets/{index-BBXjA08F.js → index-CgCShAAn.js} +1 -1
- package/assets/{index-B6NPsYnp.js → index-CkSryNnZ.js} +1 -1
- package/assets/{index-Doph0NB0.js → index-Cm1r59BA.js} +1 -1
- package/assets/{index-D4LQ4-6W.js → index-Cng0BNEt.js} +1 -1
- package/assets/{index-1XyK_ayK.js → index-CsfTlEQd.js} +1 -1
- package/assets/{index-T_FnF_dS.js → index-Cx5fFlON.js} +1 -1
- package/assets/{index-CCaqQQev.js → index-D1fsogft.js} +1 -1
- package/assets/{index-CZVjptMw.css → index-DA49NSx7.css} +1 -1
- package/assets/{index-h_CGgrVc.js → index-DAUouqh3.js} +1 -1
- package/assets/{index-CM3qumse.js → index-DC5SJfKU.js} +1 -1
- package/assets/{index-CpfXRLFC.js → index-DQDxW6Dn.js} +1 -1
- package/assets/{index-brMgoj2N.js → index-DVK3wxXt.js} +1 -1
- package/assets/{index-BXkCM-8t.js → index-DhvbfEOn.js} +1 -1
- package/assets/{index-VRaZ7gYv.js → index-DjpECOwh.js} +1 -1
- package/assets/{index-dMqLUs6H.css → index-DrIMnKGo.css} +1 -1
- package/assets/{index-BFnwoVyZ.css → index-DuaVR46A.css} +1 -1
- package/assets/{index-DOBWc9Jm.css → index-DyG3aqtf.css} +1 -1
- package/assets/{index-DBLONEQE.js → index-VAY3iC6l.js} +1 -1
- package/assets/{index-DuOUDPDb.js → index-fCe6hggC.js} +1 -1
- package/assets/{index-H-yeSyOk.js → index-vMUrLvJs.js} +1 -1
- package/assets/{index-LDy0ZOCE.js → index-xPVHmRXJ.js} +1 -1
- package/assets/{index.es-C7-Nn_st.js → index.es-DqYAlq3I.js} +4 -4
- package/assets/{selectors-3iJV8M5v.js → selectors-CJiu0Ou1.js} +1 -1
- package/index.html +3 -3
- package/package.json +3 -3
- package/assets/index-CEB_4KL5.js +0 -1
- package/assets/index-CHVLDiZh.js +0 -1
- package/assets/index-CzoDulhn.js +0 -1
- package/assets/index-DK8H1UrZ.js +0 -1
- package/assets/index-DqwN8VD4.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bD as d,bE as u,
|
|
1
|
+
import{bD as d,bE as u,b4 as o,bF as L}from"./index-B0M-djtI.js";const f=n=>typeof n=="object"&&n!==null&&"en-US"in n,i=n=>n.campaign,s=n=>i(n).data,b=n=>i(n).loading,y=n=>i(n).error,E=n=>d(b(n),u),T=n=>{var e;return(e=s(n))==null?void 0:e.mainTag},U=n=>{var e;return((e=s(n))==null?void 0:e.name)||null},m=n=>{var e;return((e=s(n))==null?void 0:e.assets)||null},S=(n,e)=>{var t;return((t=s(n))==null?void 0:t.banners[e])??null},z=(n,e)=>{const t=m(n),r=S(n,e);return r?Object.entries(r).reduce((c,[p,g])=>{if(f(g)){const a=g["en-US"];if(o.isSysLink(a)){const l=t==null?void 0:t[a.sys.id];l&&(c[a.sys.id]=l)}}return c},{}):{}},A=n=>{const e=L(n);return["en","zh","es"].includes(e)?e==="en"?o.ContentfulLocale.enUS:e:o.ContentfulLocale.enUS};export{z as a,y as b,A as c,T as d,U as e,S as g,E as i};
|
package/index.html
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
<meta itemprop="image" content="https://decentraland.org/images/logo.png" />
|
|
33
33
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
|
34
34
|
<meta name="theme-color" content="#000000" />
|
|
35
|
-
<link rel="manifest" href="https://cdn.decentraland.org/@dcl/builder-site/7.
|
|
35
|
+
<link rel="manifest" href="https://cdn.decentraland.org/@dcl/builder-site/7.14.0/manifest.json" />
|
|
36
36
|
|
|
37
37
|
<style>
|
|
38
38
|
.loading-overlay {
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
</style>
|
|
72
72
|
|
|
73
73
|
<title>Builder | Decentraland</title>
|
|
74
|
-
<script type="module" crossorigin src="https://cdn.decentraland.org/@dcl/builder-site/7.
|
|
75
|
-
<link rel="stylesheet" crossorigin href="https://cdn.decentraland.org/@dcl/builder-site/7.
|
|
74
|
+
<script type="module" crossorigin src="https://cdn.decentraland.org/@dcl/builder-site/7.14.0/assets/index-B0M-djtI.js"></script>
|
|
75
|
+
<link rel="stylesheet" crossorigin href="https://cdn.decentraland.org/@dcl/builder-site/7.14.0/assets/index-7YdhTpCB.css">
|
|
76
76
|
</head>
|
|
77
77
|
<body class="dcl-loading">
|
|
78
78
|
<div id="load-messages-wrapper"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/builder-site",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.14.0",
|
|
4
4
|
"description": "Builder website",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
"type": "git",
|
|
14
14
|
"url": "https://github.com/decentraland/builder.git"
|
|
15
15
|
},
|
|
16
|
-
"homepage": "https://cdn.decentraland.org/@dcl/builder-site/7.
|
|
17
|
-
"commit": "
|
|
16
|
+
"homepage": "https://cdn.decentraland.org/@dcl/builder-site/7.14.0",
|
|
17
|
+
"commit": "37531cbb67228277ae41e2d945a3c8442a839b7b"
|
|
18
18
|
}
|
package/assets/index-CEB_4KL5.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var X=Object.defineProperty;var Y=(r,a,n)=>a in r?X(r,a,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[a]=n;var P=(r,a,n)=>Y(r,typeof a!="symbol"?a+"":a,n);import{D as c,H as e,J as Z,Z as J,K as D,ev as A,eV as F,eW as w,eX as f,eS as q,eY as $,eZ as ee,e_ as S,e$ as se,f0 as ae,f1 as te,M as i,G as t,dH as ie,f2 as le,f3 as T,f4 as ne,f5 as ce,f6 as re,L as oe,eu as de,cH as ue,f7 as me,f8 as z,b4 as he,f9 as xe,cG as pe,fa as je,fb as ge,fc as ve,fd as Ne,a4 as be,a5 as g,ed as Ie,fe,ff as _e,fg as Ce,eH as ye,fh as Ee,bD as M,fi as ke,fj as Se,es as Te,X as Pe,eQ as De,fk as we,fl as Me}from"./index-B0dKWZe9.js";import{d as Le}from"./hooks-ipfgq6FP.js";import{I as Re}from"./ItemProvider.container-4M0zNCWu.js";import{C as Be}from"./ConfirmDelete-CjSVGcDx.js";import{L as Ue}from"./LoggedInDetailPage.container-DoOkoSSe.js";import{N as Oe}from"./NotFound-CPC4JnbQ.js";import{B as He}from"./Back-Clwfvmh7.js";import"./Navigation.container-D3_X7o5I.js";import"./selectors-3iJV8M5v.js";import"./SignInRequired-Bhdv6Ks4.js";class Ve extends c.PureComponent{constructor(n){super(n);P(this,"state",{isNoticeClosed:!1});P(this,"handleCloseNotice",()=>{const{storageKey:n}=this.props;this.setState({isNoticeClosed:!0}),localStorage.setItem(n,"1")});const{storageKey:o}=n;this.state={isNoticeClosed:localStorage.getItem(o)!==null}}render(){const{children:n}=this.props,{isNoticeClosed:o}=this.state;return o?null:e.jsxs("div",{className:"Notice",children:[e.jsx("div",{className:"text",children:n}),e.jsx(Z,{name:"close",onClick:this.handleCloseNotice})]})}}const Ae="dcl-item-notice";function Fe(r){const{item:a,itemId:n,isLoading:o,status:v,collection:_,hasAccess:N,isWearableUtilityEnabled:C,onDelete:y,onSaveItem:x,onOpenModal:u}=r,j=c.useRef(null),b=J(),I=c.useCallback(()=>{a&&b.push(D.itemEditor({itemId:a.id,collectionId:a.collectionId}),{fromParam:A(a.urn)?F.TP_COLLECTIONS:F.COLLECTIONS})},[b,a]),d=c.useCallback(async s=>{const l=await w({[f]:s}),h={...a,contents:{...a==null?void 0:a.contents,[f]:l[f]}};v&&[q.UNPUBLISHED,q.UNDER_REVIEW].includes(v)&&(h.video=l[f]),x(h,{[f]:s})},[x,a,v]),p=c.useCallback(()=>{u("EditVideoModal",{item:a,onSaveVideo:d})},[a,u,d]),L=c.useCallback(()=>{y(a)},[a,y]),E=c.useCallback(()=>{a&&$(a)?u("CreateSingleItemModal",{item:a,addRepresentation:!0}):u("CreateSingleItemModal",{item:a,changeItemFile:!0})},[u,a]),R=c.useCallback(()=>{u("EditItemURNModal",{item:a})},[a,u]),B=c.useCallback(async s=>{const l=ee(s);x({...a,contents:{...a==null?void 0:a.contents,...await w({[S]:l})}},{[S]:l})},[x,a]),U=c.useCallback(()=>{(a==null?void 0:a.type)===se.EMOTE?u("EditThumbnailModal",{onSaveThumbnail:B,item:a,collection:_}):j.current&&j.current.click()},[j.current,_,a,u,B]),O=c.useCallback(async s=>{const{files:l}=s.target;if(l&&l.length>0){const h=l[0],k=await ae(h,1024,1024);k&&a&&(a.contents={...a.contents,...await w({[S]:k})},x(a,{[S]:k}))}},[x,a]),H=c.useCallback(()=>{u("MoveItemToCollectionModal",{item:a})},[a,u]),W=c.useCallback((s,l)=>{var V;const h=s.data,K=!(l&&te(l));return e.jsxs(e.Fragment,{children:[e.jsx(i.Section,{children:e.jsx(i.Row,{children:e.jsx(He,{onClick:()=>b.push(D.collectionDetail(s.collectionId))})})}),e.jsxs(i.Narrow,{children:[!l&&!s.collectionId?e.jsx(Ve,{storageKey:Ae,children:t("item_detail_page.notice")}):null,e.jsxs("div",{className:"item-data",children:[e.jsxs("div",{className:"item-data-left-panel",children:[e.jsx(ie,{item:s,hasBadge:!0,hasRarityBadge:!0,hasUtilityBadge:!0}),e.jsx("div",{children:e.jsxs(i.Button,{primary:!0,onClick:U,children:[e.jsx("input",{type:"file",ref:j,onChange:O,accept:"image/png"}),e.jsx(i.Icon,{name:"camera"}),t("item_detail_page.edit_thumbnail")]})}),e.jsxs("div",{className:"metrics",children:[e.jsx("span",{className:"subtitle",children:t("item_detail_page.properties")}),e.jsx(le,{item:s})]}),T(s)?e.jsx(ne,{item:s,onClick:p,children:(m,G,Q,$e)=>e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"overlay",children:e.jsx(i.Icon,{name:"play",className:"play-video-button",onClick:p})}),e.jsxs(i.Button,{primary:!0,onClick:p,children:[e.jsx(i.Icon,{name:"video"}),t("item_detail_page.edit_video")]}),e.jsxs("div",{className:"metrics",children:[e.jsx("div",{className:"subtitle",children:t("item_detail_page.properties")}),e.jsx(ce,{duration:G,size:Q,showIcons:!1})]})]})}):null,e.jsxs("div",{className:"details",children:[e.jsx("div",{className:"subtitle",children:t("item_detail_page.details")}),s.isPublished&&e.jsxs("div",{children:[e.jsx("div",{className:"subtitle",children:t("item_detail_page.details_info.id")}),e.jsxs("div",{className:"value",children:["#",s.tokenId]})]}),h.category?e.jsxs("div",{children:[e.jsx("div",{className:"subtitle",children:t("item.category")}),e.jsx("div",{className:"value",children:t(`${s.type}.category.${h.category}`)})]}):null,s.isPublished&&s.rarity?e.jsxs("div",{children:[e.jsx("div",{className:"subtitle",children:t("item.supply")}),e.jsxs("div",{className:"value",children:[s.totalSupply,"/",re(s)]})]}):null,l?e.jsxs("div",{children:[e.jsx("div",{className:"subtitle",children:t("item.collection")}),e.jsx(oe,{className:"collection-link",to:D.collectionDetail(l.id,de(l)),children:l.name})]}):null,s.urn?e.jsxs("div",{children:[e.jsx("div",{className:"subtitle",children:t("global.urn")}),e.jsxs("div",{className:"value urn",children:[e.jsxs("span",{children:[s.urn,e.jsx(ue,{role:"button",text:s.urn,children:e.jsx(i.Icon,{"aria-label":"Copy urn","aria-hidden":"false",className:"link copy",name:"copy outline"})})]}),e.jsx("div",{className:"urn-actions",children:A(s.urn)?e.jsx(i.Popup,{content:t("collection_item.cannot_edit_urn"),disabled:!s.isPublished,position:"top center",trigger:e.jsx("div",{children:e.jsx("button",{disabled:s.isPublished,className:"link",onClick:R,children:t("item.edit_urn")})}),hideOnScroll:!0,on:"hover",inverted:!0,flowing:!0}):null})]})]}):null]})]}),e.jsxs("div",{className:"cards-container",children:[e.jsxs("div",{className:"card",children:[e.jsxs("div",{className:"title-card-container",children:[e.jsx("div",{className:"title",children:s.name}),e.jsxs("div",{className:"actions",children:[T(s)&&e.jsx(i.Button,{className:"edit",inverted:!0,size:"small",onClick:E,children:t("global.edit")}),e.jsx(i.Button,{inverted:!0,size:"small",onClick:I,children:t("collection_detail_page.preview")}),K?e.jsx(i.Dropdown,{trigger:e.jsx(i.Button,{basic:!0,className:"more-actions-button",children:e.jsx(i.Icon,{name:"ellipsis horizontal"})}),inline:!0,direction:"left",children:e.jsxs(i.Dropdown.Menu,{children:[e.jsx(Be,{name:s.name,onDelete:L,trigger:s.isPublished?e.jsx(i.Popup,{content:t("item_detail_page.delete_published_item"),position:"right center",trigger:e.jsx(i.Dropdown.Item,{disabled:!0,text:t("global.delete")}),hideOnScroll:!0,on:"hover",inverted:!0,flowing:!0}):e.jsx(i.Dropdown.Item,{text:t("global.delete")})}),!s.collectionId&&e.jsx(i.Dropdown.Item,{text:t("collection_item.move_to_another_collection"),onClick:H})]})}):null]})]}),e.jsxs("div",{className:"attribute-row",children:[s.description&&e.jsxs("div",{className:"attribute-column",children:[e.jsx("div",{className:"subtitle",children:t("global.description")}),e.jsx("div",{className:"data",children:s.description})]}),s.utility&&C&&e.jsxs("div",{className:"attribute-column",children:[e.jsx("div",{className:"subtitle",children:t("global.utility")}),e.jsx("div",{className:"data",children:s.utility})]})]}),s.data.tags.length?e.jsx("div",{className:"attribute-row",children:e.jsxs("div",{className:"attribute-column",children:[e.jsx("div",{className:"subtitle",children:t("item_detail_page.tags.title")}),e.jsx("div",{className:"data tags-container",children:s.data.tags.map(m=>e.jsx("span",{className:"tag",children:m},m))})]})}):null]}),e.jsxs("div",{className:"card",children:[e.jsx("div",{className:"title",children:t("item_detail_page.selling.title")}),e.jsxs("div",{className:"data",children:[me(s)?e.jsxs(i.Section,{className:"price-container",children:[e.jsx("div",{className:"subtitle",children:t("item.price")}),e.jsx("div",{className:"value",children:t("global.free")})]}):s.price?e.jsxs(i.Section,{className:"price-container",children:[e.jsx("div",{className:"subtitle",children:t("item.price")}),s.price&&s.price!==z.toString()?e.jsx(i.Mana,{showTooltip:!0,network:he.Network.MATIC,className:"mana-price-container",children:(()=>{const m=xe(s.price);return m.length>10?e.jsx(i.Popup,{content:m,position:"top center",trigger:e.jsx("span",{children:`${m.slice(0,3)}...${m.slice(-4)}`}),hideOnScroll:!0,on:"hover",inverted:!0,flowing:!0}):e.jsx("div",{className:"value",children:m})})()}):s.price===z.toString()?e.jsx("div",{className:"value",children:t("item.not_for_sale")}):"-"]}):null,e.jsxs(i.Section,{className:"beneficiary-container",children:[e.jsx("div",{className:"subtitle",children:t("item.beneficiary")}),s.beneficiary?e.jsx("div",{className:"value",children:pe(s.beneficiary)}):"-"]})]})]}),je(s)&&!T(s)?e.jsxs("div",{className:"card",children:[e.jsxs("div",{className:"title-card-container",children:[e.jsx("div",{className:"title",children:t("item_detail_page.representations.title")}),e.jsx(i.Button,{className:"edit-button",inverted:!0,size:"small",onClick:E,children:$(s)?t("global.add"):t("global.edit")})]}),e.jsx("div",{className:"data",children:e.jsx("div",{className:"representations-container",children:s.data.representations.map(m=>e.jsxs("div",{className:"representation",children:[e.jsx("img",{className:"item-image",src:ge(s),alt:s.name}),m.mainFile,e.jsx(ve,{item:s,bodyShape:m.bodyShapes[0]})]},m.mainFile))})})]}):null,T(s)&&((V=s.data.requiredPermissions)!=null&&V.length)?e.jsxs("div",{className:"card",children:[e.jsxs("div",{className:"title-card-container",children:[e.jsx("div",{className:"title",children:t("item_detail_page.required_permissions")}),e.jsx(i.Button,{inverted:!0,className:"learn-more-permissions",size:"small",href:"https://docs.decentraland.org/creator/development-guide/sdk7/scene-metadata/#required-permissions",rel:"noopener noreferrer",target:"_blank",content:t("global.learn_more")})]}),e.jsx("div",{className:"data",children:e.jsx(Ne,{requiredPermissions:s.data.requiredPermissions,basic:!0})})]}):null]})]})]})]})},[C,b,j,U,O,p,R,E,E,H,I,L,I]);return e.jsx(Re,{id:n,children:(s,l,h)=>e.jsx(Ue,{className:"ItemDetailPage",hasNavigation:!N&&!o,isLoading:o||h,children:N&&s?W(s,l):e.jsx(Oe,{})})})}const qe=()=>{const r=be(),a=Le(),n=g(Ie),o=g(d=>a?fe(d,a):null),v=g(d=>o&&o.collectionId?_e(d,o.collectionId):null),_=g(Ce),N=g(ye),C=g(Ee),y=o?_[o.id]:null,x=M(N,De)||M(N,we)||M(N,Me),u=g(d=>o!==null&&ke(d,n.address,v,o)),j=c.useCallback((d,p)=>r(Se(d,p)),[r]),b=c.useCallback(d=>r(Te(d)),[r]),I=c.useCallback((d,p)=>r(Pe(d,p)),[r]);return e.jsx(Fe,{itemId:a,wallet:n,item:o,collection:v,status:y,isLoading:x,isWearableUtilityEnabled:C,hasAccess:u,onSaveItem:j,onDelete:b,onOpenModal:I})},as=qe;export{as as default};
|
package/assets/index-CHVLDiZh.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aM as ye,ae as te,Z as ne,H as e,cV as z,G as n,N as Re,cW as me,a1 as ae,cX as Y,M as s,cY as G,cZ as De,c_ as M,cH as Pe,D as l,K as k,aA as le,bK as Ae,a4 as ge,a5 as _,c$ as We,d0 as pe,d1 as Oe,bD as L,d2 as Ue,cN as xe,d3 as se,d4 as Ce,d5 as je,d6 as de,d7 as ue,d8 as K,d9 as Q,J as be,$ as he,cJ as Be,da as Me,db as Ie,cK as He,dc as $e,c6 as Fe,dd as ze,a6 as Ke,ad as Qe,de as Ye,df as Ge,cO as Ve,X as Z,dg as qe,cP as Xe,cQ as Ze,c7 as Je,dh as es}from"./index-B0dKWZe9.js";import{a as we,N as ss}from"./Navigation.container-D3_X7o5I.js";import{L as ts}from"./LoggedInDetailPage.container-DoOkoSSe.js";import"./selectors-3iJV8M5v.js";import"./SignInRequired-Bhdv6Ks4.js";var B=(t=>(t.DESC="DESC",t.ASC="ASC",t))(B||{});const Ne="tab";var b=(t=>(t.DCL="dcl",t.ENS="ens",t.CONTRIBUTOR="contributor",t))(b||{});const Ee=()=>{const t=ye(),a=new URLSearchParams(t.search),c=a.get(Ne),m={urlSearchParams:a,pathname:t.pathname};switch(c){case"dcl":m.tab="dcl";break;case"ens":m.tab="ens";break;case"contributor":m.tab="contributor";break}return m},ns=({isWorldContributorEnabled:t})=>{const{tab:a,pathname:c,urlSearchParams:m}=Ee(),d=ne(),g=o=>{const i=new URLSearchParams(m);i.set(Ne,o),d.push(`${c}?${i.toString()}`)};return!a||a===b.CONTRIBUTOR&&!t?(g(b.DCL),null):e.jsxs(z,{children:[e.jsx(z.Tab,{active:a===b.DCL,onClick:()=>g(b.DCL),children:n("worlds_list_page.name_tabs.dcl_names")}),e.jsx(z.Tab,{active:a===b.ENS,onClick:()=>g(b.ENS),children:n("worlds_list_page.name_tabs.ens_names")}),t&&e.jsx(z.Tab,{active:a===b.CONTRIBUTOR,onClick:()=>g(b.CONTRIBUTOR),children:n("worlds_list_page.name_tabs.contributor_names")})]})},as=te.memo(ns),ls=t=>({isWorldContributorEnabled:me(t)}),rs=Re(ls)(as),os="_container_12bci_1",is="_used_12bci_7",cs="_description_12bci_13",ds="_link_12bci_20",us="_space_12bci_27",bs="_current_12bci_33",hs="_bar_12bci_38",T={container:os,used:is,description:cs,link:ds,space:us,current:bs,bar:hs},_s="worlds-storage-current-mbs",ms="worlds-storage-bar-front",gs="worlds-storage",ps=({maxBytes:t,currentBytes:a,className:c,onViewDetails:m})=>{const d=G(t),g=G(a),o=g*100/d;return e.jsxs("div",{"data-testid":gs,className:ae(T.container,c),children:[e.jsx("span",{className:T.used,children:n("worlds_list_page.worlds_storage.used")}),e.jsxs("div",{className:T.description,children:[e.jsx("span",{children:n("worlds_list_page.worlds_storage.description")})," ",e.jsx("span",{className:T.link,onClick:m,children:n("worlds_list_page.worlds_storage.link")})]}),e.jsxs("div",{className:T.space,children:[e.jsxs("div",{"data-testid":_s,children:[e.jsx("span",{className:T.current,children:Y(g)})," / ",Y(d)," Mb"]}),e.jsx(s.Progress,{"data-testid":ms,percent:Math.trunc(o),className:T.bar,size:"small"})]})]})},xs=te.memo(ps),Cs="_worldUrl_1sb6i_1",js="_rightContainer_1sb6i_7",ws="_copyUrn_1sb6i_13",J={worldUrl:Cs,rightContainer:js,copyUrn:ws};function Se({ens:t,deploymentsByWorlds:a}){const c=De(t.subdomain);return M(a,t)?e.jsxs("div",{className:J.worldUrl,children:[e.jsx("span",{children:c}),e.jsxs("div",{className:J.rightContainer,children:[e.jsx(Pe,{role:"button",text:c,showPopup:!0,children:e.jsx(s.Icon,{"aria-label":"Copy urn","aria-hidden":"false",className:ae("copy",J.copyUrn),name:"copy outline"})}),e.jsx("a",{href:c,target:"_blank",rel:"noopener noreferrer",children:e.jsx(s.Icon,{name:"external alternate"})})]})]}):e.jsx("span",{className:"empty-url",children:n("worlds_list_page.table.empty_url")})}function Te({deploymentsByWorlds:t,ens:a,projects:c,onEditScene:m,onUnpublishScene:d,onPublishScene:g}){const o=t[a.subdomain];return M(t,a)?e.jsxs("div",{className:"publish-scene",children:[e.jsx(s.Popup,{content:o==null?void 0:o.name,on:"hover",trigger:e.jsx("span",{children:o==null?void 0:o.name})}),c.find(i=>i.id===(o==null?void 0:o.projectId))?m&&e.jsx(s.Button,{inverted:!0,size:"small",onClick:()=>m(a),children:n("worlds_list_page.table.edit_scene")}):d&&e.jsx(s.Popup,{content:n("worlds_list_page.table.scene_published_outside_builder"),on:"hover",position:"top center",trigger:e.jsx(s.Button,{inverted:!0,size:"small",onClick:()=>d(a),children:n("worlds_list_page.table.unpublish_scene")})})]}):e.jsxs("div",{className:"publish-scene",children:[e.jsx("span",{children:"-"}),g&&e.jsx(s.Button,{primary:!0,size:"small",onClick:g,children:n("worlds_list_page.table.publish_scene")})]})}function Ns({items:t,deploymentsByWorlds:a,projects:c,loading:m,error:d,onUnpublishWorld:g}){const o=ne(),i=l.useCallback(()=>{o.push(k.scenes())},[o]),N=l.useCallback(p=>{const{projectId:x}=a[p.subdomain];o.push(k.sceneDetail(x))},[a,k,o]),E=l.useCallback(p=>{var C;const x=(C=a[p.subdomain])==null?void 0:C.id;x&&g(x)},[a,g]);return d?e.jsx(s.Message,{error:!0,size:"tiny",visible:!0,content:d.message,header:n("worlds_list_page.error_title")}):m?e.jsx(s.Loader,{active:!0,size:"big"}):t.length?e.jsxs(s.Table,{basic:"very",children:[e.jsx(s.Table.Header,{children:e.jsxs(s.Table.Row,{children:[e.jsx(s.Table.HeaderCell,{width:"1",children:n("worlds_list_page.table.name")}),e.jsx(s.Table.HeaderCell,{width:"1",children:n("worlds_list_page.table.owner")}),e.jsx(s.Table.HeaderCell,{width:"2",children:n("worlds_list_page.table.url")}),e.jsx(s.Table.HeaderCell,{width:"1",children:n("worlds_list_page.table.published_scene")}),e.jsx(s.Table.HeaderCell,{width:"1",children:n("worlds_list_page.table.size")}),e.jsx(s.Table.HeaderCell,{width:"1",children:n("worlds_list_page.table.permissions")})]})}),e.jsx(s.Table.Body,{children:t.map((p,x)=>{var v,y;const C=(v=p.userPermissions)==null?void 0:v.includes("deployment"),f=(y=p.userPermissions)==null?void 0:y.map(R=>n(`worlds_list_page.table.user_permissions.${R}`)).join("/");return e.jsxs(s.Table.Row,{className:"TableRow",children:[e.jsx(s.Table.Cell,{width:1,children:p.name}),e.jsx(s.Table.Cell,{width:1,children:e.jsx(Ae,{address:p.nftOwnerAddress||""})}),e.jsx(s.Table.Cell,{width:2,children:e.jsx(Se,{deploymentsByWorlds:a,ens:p})}),e.jsx(s.Table.Cell,{width:1,children:e.jsx(Te,{deploymentsByWorlds:a,ens:p,projects:c,onEditScene:C?N:void 0,onPublishScene:C?i:void 0,onUnpublishScene:C?E:void 0})}),e.jsx(s.Table.Cell,{width:1,children:Y(G(Number(p.size)||0))}),e.jsx(s.Table.Cell,{width:1,children:f})]},x)})})]}):e.jsxs(s.Empty,{className:"empty-names-container",height:500,children:[e.jsx("div",{className:"empty-icon dcl-icon"}),e.jsx("div",{className:"empty-title",children:n("worlds_list_page.empty_contributor_list.title")}),e.jsx("div",{className:"empty-description",children:n("worlds_list_page.empty_contributor_list.description",{b:p=>e.jsx("b",{children:p})})}),e.jsx(s.Button,{as:"a",href:`${le.get("MARKETPLACE_WEB_URL")}/names/claim`,target:"_blank",className:"empty-action",primary:!0,children:n("worlds_list_page.empty_list.cta")})]})}const Es=()=>{const t=ge(),a=we(),c=_(We),m=_(pe),d=_(Oe),g=_(i=>L(xe(i),Ue)||L(Ce(i),se)),o=l.useCallback(i=>t(je(i)),[t]);return e.jsx(Ns,{items:c,deploymentsByWorlds:m,projects:a,loading:g,error:d,onUnpublishWorld:o})},_e="Worlds List Page Action",Ss=le.get("ENS_DOMAINS_URL",""),Ts=le.get("MARKETPLACE_WEB_URL"),ee=12,Ls=t=>{const{ensList:a,externalNames:c,error:m,deploymentsByWorlds:d,isLoading:g,projects:o,worldsWalletStats:i,isConnected:N,isWorldContributorEnabled:E,ensTotal:p,onOpenYourStorageModal:x,onOpenWorldsForENSOwnersAnnouncementModal:C,onUnpublishWorld:f,onOpenPermissionsModal:v,onFetchContributableNames:y,onFetchENSList:R}=t,[I,D]=l.useState(B.DESC),[O,U]=l.useState(1),{tab:h}=Ee(),P=ne();l.useEffect(()=>{N&&E&&y()},[N,E]),l.useEffect(()=>{h===b.DCL&&R(ee,(O-1)*ee)},[R,O]);const A=l.useCallback(()=>{h===b.DCL?(de(_e,{action:"Click Claim NAME"}),window.open(`${Ts}/names/claim`,"_blank","noopener,noreferrer")):(de(_e,{action:"Click Claim ENS Domain"}),window.open(Ss,"_blank","noopener,noreferrer"))},[h]),V=l.useCallback(()=>{P.push(k.scenes())},[k,P]),q=l.useCallback(u=>{const{projectId:r}=d[u.subdomain];P.push(k.sceneDetail(r))},[d,k,P]),w=l.useCallback(u=>{var j;const r=(j=d[u.subdomain])==null?void 0:j.id;r&&f(r)},[d,f]),W=l.useCallback((u,r)=>{U(+r.activePage)},[]),re=l.useCallback(()=>e.jsx(s.Dropdown,{direction:"left",value:I,options:[{value:B.ASC,text:n("global.order.name_asc")},{value:B.DESC,text:n("global.order.name_desc")}],onChange:(u,{value:r})=>D(r)}),[I,D]),oe=l.useCallback(u=>{let r=M(d,u)?"active":"inactive";if(r==="active"&&i&&!ue(u.subdomain))switch(K(i).status){case Q.BLOCKED:{r="blocked";break}case Q.TO_BE_BLOCKED:r="warning"}return e.jsx("span",{className:`world-status ${r}`,children:n(`worlds_list_page.table.status_${r}`)})},[K,ue,M]),ie=l.useCallback((u,r)=>{var F;const j=h===b.DCL?r==null?void 0:r.dclNames:r==null?void 0:r.ensNames;if(!M(d,u)||!j)return"-";const S=(F=j.find(ve=>ve.name===u.subdomain))==null?void 0:F.size,X=h===b.ENS?" / 25":"";return Y(G(Number(S)))+X},[h]),Le=l.useCallback((u,r)=>{v(r)},[]),H=l.useCallback(()=>{const u=h===b.DCL?p:c.length,r=Math.ceil(u/ee),j=h===b.DCL?a:c;return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"filters",children:e.jsx(s.Container,{children:e.jsxs(s.Row,{children:[e.jsx(s.Column,{children:e.jsx(s.Row,{children:e.jsx(s.Header,{sub:!0,className:"items-count",children:n("ens_list_page.items",{count:t.ensTotal.toLocaleString()})})})}),e.jsx(s.Column,{align:"right",children:e.jsx(s.Row,{children:re()})}),e.jsx(s.Column,{align:"right",grow:!1,shrink:!0,children:e.jsx(s.Row,{children:e.jsx("div",{className:"actions",children:e.jsx(s.Button,{basic:!0,onClick:A,children:e.jsx(be,{name:"add-active"})})})})})]})})}),e.jsx(s.Container,{children:e.jsxs(s.Section,{className:"table-section",children:[e.jsxs(s.Table,{basic:"very",children:[e.jsx(s.Table.Header,{children:e.jsxs(s.Table.Row,{children:[e.jsx(s.Table.HeaderCell,{width:"2",children:n("worlds_list_page.table.name")}),e.jsx(s.Table.HeaderCell,{width:"2",children:n("worlds_list_page.table.url")}),e.jsx(s.Table.HeaderCell,{width:"1",children:n("worlds_list_page.table.published_scene")}),e.jsx(s.Table.HeaderCell,{width:"1",textAlign:"center",children:n("worlds_list_page.table.size")}),e.jsx(s.Table.HeaderCell,{width:"1",textAlign:"center",children:n("worlds_list_page.table.status")}),e.jsx(s.Table.HeaderCell,{width:"1",textAlign:"center"})]})}),e.jsx(s.Table.Body,{children:j.map((S,X)=>e.jsxs(s.Table.Row,{className:"TableRow",children:[e.jsx(s.Table.Cell,{width:2,children:S.name}),e.jsx(s.Table.Cell,{width:2,children:e.jsx(Se,{deploymentsByWorlds:d,ens:S})}),e.jsx(s.Table.Cell,{width:1,children:e.jsx(Te,{deploymentsByWorlds:d,ens:S,projects:o,onEditScene:q,onPublishScene:V,onUnpublishScene:w})}),e.jsx(s.Table.Cell,{width:1,textAlign:"center",children:ie(S,i)}),e.jsx(s.Table.Cell,{width:1,textAlign:"center",children:oe(S)}),e.jsx(s.Table.Cell,{width:1,textAlign:"center",children:e.jsx(s.Button,{basic:!0,onClick:F=>Le(F,S.subdomain),children:"Permissions"})})]},X))})]}),r>1&&e.jsx(s.Pagination,{firstItem:null,lastItem:null,totalPages:r,activePage:O,onPageChange:W})]})})]})},[h,a,c,A,re,ie,oe,W,p]),$=l.useCallback(()=>e.jsxs(s.Empty,{className:"empty-names-container",height:500,children:[e.jsx("div",{className:ae("empty-icon",h===b.DCL?"dcl-icon":"ens-icon")}),e.jsx("div",{className:"empty-title",children:h===b.DCL?n("worlds_list_page.empty_list.title"):n("worlds_list_page.empty_list.title_ens")}),e.jsx("div",{className:"empty-description",children:h===b.DCL?n("worlds_list_page.empty_list.description",{b:u=>e.jsx("b",{children:u})}):n("worlds_list_page.empty_list.description_ens",{b:u=>e.jsx("b",{children:u})})}),e.jsx(s.Button,{className:"empty-action",primary:!0,onClick:A,children:h===b.DCL?n("worlds_list_page.empty_list.cta"):n("worlds_list_page.empty_list.cta_ens")})]}),[h,A]),ce=l.useCallback(()=>{if(!i)return null;const u=K(i);if(u.status===Q.OK)return null;let r;return u.status===Q.TO_BE_BLOCKED?r=n("worlds_list_page.worlds_warning_message.to_be_blocked",{toBeBlockedAt:u.toBeBlockedAt.toLocaleDateString(),b:j=>e.jsx("b",{children:j})}):r=n("worlds_list_page.worlds_warning_message.blocked",{blockedAt:u.blockedAt.toLocaleDateString(),b:j=>e.jsx("b",{children:j})}),e.jsxs("div",{className:"insufficient-storage-message",children:[e.jsx("div",{children:e.jsx(be,{name:"alert-warning"})}),e.jsx("div",{children:r})]})},[i,K]),ke=l.useCallback(()=>a.length?e.jsxs("div",{children:[i?e.jsx(xs,{maxBytes:Number(i.maxAllowedSpace),currentBytes:Number(i.usedSpace),className:"worlds-storage",onViewDetails:()=>{x({stats:i})}}):null,ce(),H()]}):e.jsx("div",{children:$()}),[a,i,H,$,ce,x]),fe=l.useCallback(()=>e.jsx("div",{children:c.length>0?H():$()}),[c,$,H]);return l.useEffect(()=>{D(B.ASC),U(1)},[h,U,D]),l.useEffect(()=>{he()&&C()},[he,C]),e.jsx(ts,{className:"WorldListPage view",error:m,activeTab:ss.WORLDS,isLoading:g,isPageFullscreen:!0,children:e.jsxs(s.Container,{children:[e.jsx("h1",{children:n("worlds_list_page.title")}),e.jsx(rs,{}),h===b.DCL&&ke(),h===b.ENS&&fe(),h===b.CONTRIBUTOR&&E&&e.jsx(Es,{})]})})},ks=te.memo(Ls),fs=()=>{const t=ge(),a=we(),c=_(Be),m=_(Me),d=_(pe),g=_(Ie),o=_(He),i=_($e),N=_(xe),E=_(Ce),p=_(Fe),x=_(ze),C=_(Ke),f=_(Qe),v=_(Ye),y=_(Ge),R=_(me),I=_(Ve),D=(o==null?void 0:o.message)??i??void 0,O=l.useMemo(()=>L(N,Ze)||L(E,se)||L(p,Je)||L(x,se)||L(N,es)||C,[N,E,p,x,C]),U=l.useCallback(w=>t(Z("WorldsYourStorageModal",w)),[t]),h=l.useCallback((w,W)=>t(Z("WorldPermissionsModal",{worldName:w,isCollaboratorsTabShown:W})),[t]),P=l.useCallback(()=>t(Z("WorldsForENSOwnersAnnouncementModal")),[t]),A=l.useCallback(w=>t(je(w)),[t]),V=l.useCallback(()=>t(qe()),[t]),q=l.useCallback((w,W)=>t(Xe(w,W)),[t]);return e.jsx(ks,{ensList:c,externalNames:m,deploymentsByWorlds:d,projects:a,worldsPermissions:g,error:D,isLoading:O,isLoggedIn:f,worldsWalletStats:v,isConnected:y,isWorldContributorEnabled:R,ensTotal:I,onOpenYourStorageModal:U,onOpenPermissionsModal:h,onOpenWorldsForENSOwnersAnnouncementModal:P,onUnpublishWorld:A,onFetchContributableNames:V,onFetchENSList:q})},As=fs;export{As as default};
|
package/assets/index-CzoDulhn.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ak as o}from"./index-B0dKWZe9.js";export{o as default};
|
package/assets/index-DK8H1UrZ.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var h=Object.defineProperty;var m=(a,s,e)=>s in a?h(a,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[s]=e;var r=(a,s,e)=>m(a,typeof s!="symbol"?s+"":s,e);import{D as p,H as t,G as d,bk as g,M as o,L as u,K as x,ck as b,bQ as E,b4 as N,N as j,cm as L}from"./index-B0dKWZe9.js";import{L as D}from"./LandAction-CzIlqfWr.js";import{L as f}from"./LandProviderPage-CdCVpXYt.js";import"./Back-Clwfvmh7.js";import"./NotFound-CPC4JnbQ.js";import"./hooks-ipfgq6FP.js";let v=class extends p.PureComponent{constructor(){super(...arguments);r(this,"state",{});r(this,"handleNameChange",(e,n)=>{this.setState({name:n.value})});r(this,"handleDescriptionChange",(e,n)=>{this.setState({description:n.value})})}getName(e){return typeof this.state.name>"u"?e.name:this.state.name}getDescription(e){return typeof this.state.description>"u"?e.description||"":this.state.description}render(){const{onEdit:e}=this.props,{name:n,description:c}=this.state,l=!n&&!c;return t.jsx(f,{className:"LandEditPage",children:i=>t.jsx(D,{land:i,title:d("edit_page.title"),subtitle:t.jsx(g,{id:"edit_page.subtitle",values:{name:t.jsx("strong",{children:i.name})}}),children:t.jsxs(o.Form,{onSubmit:()=>e(i,this.getName(i),this.getDescription(i)),children:[t.jsx(o.Field,{label:"Name",value:this.getName(i),onChange:this.handleNameChange}),t.jsx(o.Field,{label:"Description",value:this.getDescription(i),onChange:this.handleDescriptionChange}),t.jsxs(o.Row,{children:[t.jsx(u,{className:"cancel",to:x.landDetail(i.id),children:t.jsx(o.Button,{children:d("global.cancel")})}),t.jsx(b,{type:"submit",primary:!0,disabled:l||!this.getName(i)||i.role!==E.OWNER,network:N.Network.ETHEREUM,children:d("global.submit")})]})]})})})}};const P=a=>({onEdit:(s,e,n)=>a(L(s,e,n))}),T=j(null,P)(v);export{T as default};
|
package/assets/index-DqwN8VD4.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{N as g,ad as n,a6 as a,a7 as i}from"./index-B0dKWZe9.js";import{H as s}from"./Navigation.container-D3_X7o5I.js";import"./selectors-3iJV8M5v.js";const e=o=>({isLoggedIn:n(o),isLoggingIn:a(o)||i(o)}),c=g(e)(s);export{c as default};
|