@abtnode/blocklet-services 1.16.17-beta-6f0c7674 → 1.16.17-beta-952ef53d
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/api/libs/open-graph/emoji.js +80 -0
- package/api/libs/open-graph/index.js +14 -1
- package/api/services/auth/index.js +17 -8
- package/api/services/image/index.js +5 -0
- package/api/util/index.js +8 -1
- package/build/asset-manifest.json +5 -5
- package/build/index.html +1 -1
- package/build/service-worker.js +1 -1
- package/build/static/js/4716.1ecc2bb6.chunk.js +2 -0
- package/build/static/js/main.3cf7fedb.js +3 -0
- package/package.json +18 -18
- package/build/static/js/4716.4a231f60.chunk.js +0 -2
- package/build/static/js/main.9c5b4fb1.js +0 -3
- /package/build/static/js/{main.9c5b4fb1.js.LICENSE.txt → main.3cf7fedb.js.LICENSE.txt} +0 -0
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.17-beta-
|
|
6
|
+
"version": "1.16.17-beta-952ef53d",
|
|
7
7
|
"description": "Provide unified services for every blocklet",
|
|
8
8
|
"main": "api/index.js",
|
|
9
9
|
"files": [
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
"author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
|
|
34
34
|
"license": "Apache-2.0",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@abtnode/analytics": "1.16.17-beta-
|
|
37
|
-
"@abtnode/auth": "1.16.17-beta-
|
|
38
|
-
"@abtnode/client": "1.16.17-beta-
|
|
39
|
-
"@abtnode/connect-storage": "1.16.17-beta-
|
|
40
|
-
"@abtnode/constant": "1.16.17-beta-
|
|
41
|
-
"@abtnode/core": "1.16.17-beta-
|
|
42
|
-
"@abtnode/cron": "1.16.17-beta-
|
|
43
|
-
"@abtnode/logger": "1.16.17-beta-
|
|
44
|
-
"@abtnode/models": "1.16.17-beta-
|
|
45
|
-
"@abtnode/router-templates": "1.16.17-beta-
|
|
46
|
-
"@abtnode/util": "1.16.17-beta-
|
|
36
|
+
"@abtnode/analytics": "1.16.17-beta-952ef53d",
|
|
37
|
+
"@abtnode/auth": "1.16.17-beta-952ef53d",
|
|
38
|
+
"@abtnode/client": "1.16.17-beta-952ef53d",
|
|
39
|
+
"@abtnode/connect-storage": "1.16.17-beta-952ef53d",
|
|
40
|
+
"@abtnode/constant": "1.16.17-beta-952ef53d",
|
|
41
|
+
"@abtnode/core": "1.16.17-beta-952ef53d",
|
|
42
|
+
"@abtnode/cron": "1.16.17-beta-952ef53d",
|
|
43
|
+
"@abtnode/logger": "1.16.17-beta-952ef53d",
|
|
44
|
+
"@abtnode/models": "1.16.17-beta-952ef53d",
|
|
45
|
+
"@abtnode/router-templates": "1.16.17-beta-952ef53d",
|
|
46
|
+
"@abtnode/util": "1.16.17-beta-952ef53d",
|
|
47
47
|
"@arcblock/did": "^1.18.92",
|
|
48
48
|
"@arcblock/did-auth": "1.18.92",
|
|
49
49
|
"@arcblock/did-ext": "^1.18.92",
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"@arcblock/jwt": "1.18.92",
|
|
53
53
|
"@arcblock/validator": "^1.18.92",
|
|
54
54
|
"@arcblock/ws": "1.18.92",
|
|
55
|
-
"@blocklet/constant": "1.16.17-beta-
|
|
55
|
+
"@blocklet/constant": "1.16.17-beta-952ef53d",
|
|
56
56
|
"@blocklet/form-builder": "^0.1.11",
|
|
57
57
|
"@blocklet/form-collector": "^0.1.6",
|
|
58
|
-
"@blocklet/meta": "1.16.17-beta-
|
|
59
|
-
"@blocklet/sdk": "1.16.17-beta-
|
|
58
|
+
"@blocklet/meta": "1.16.17-beta-952ef53d",
|
|
59
|
+
"@blocklet/sdk": "1.16.17-beta-952ef53d",
|
|
60
60
|
"@did-connect/authenticator": "^2.2.0",
|
|
61
61
|
"@did-connect/relay-adapter-express": "^2.2.0",
|
|
62
62
|
"@did-connect/storage-nedb": "^2.2.0",
|
|
@@ -97,12 +97,12 @@
|
|
|
97
97
|
"@nedb/core": "^2.1.2"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
|
-
"@abtnode/ux": "1.16.17-beta-
|
|
100
|
+
"@abtnode/ux": "1.16.17-beta-952ef53d",
|
|
101
101
|
"@arcblock/did-connect": "^2.8.2",
|
|
102
102
|
"@arcblock/icons": "^2.8.2",
|
|
103
103
|
"@arcblock/ux": "^2.8.2",
|
|
104
104
|
"@blocklet/launcher-layout": "2.2.22",
|
|
105
|
-
"@blocklet/tracker": "1.16.17-beta-
|
|
105
|
+
"@blocklet/tracker": "1.16.17-beta-952ef53d",
|
|
106
106
|
"@blocklet/ui-react": "^2.8.2",
|
|
107
107
|
"@emotion/react": "^11.10.4",
|
|
108
108
|
"@emotion/styled": "^11.10.4",
|
|
@@ -173,5 +173,5 @@
|
|
|
173
173
|
"url": "https://github.com/ArcBlock/blocklet-server/issues",
|
|
174
174
|
"email": "shijun@arcblock.io"
|
|
175
175
|
},
|
|
176
|
-
"gitHead": "
|
|
176
|
+
"gitHead": "a575050c7ffd08961a5f4072f4048f6e37976810"
|
|
177
177
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[4716],{44716:function(e,n,o){o.r(n),o.d(n,{default:function(){return x}});var t=o(32723),r=o(34795),i=o(96234),a=o(35147),s=o(49476),c=o(30969),u=o(30734),f=o(94308),l=o(38361),d=o(238),p=o(1986),v=o(26022),g=o(48164),w=o(19611),h=o.n(w),m=o(86776),y=o(66550),I=o(85300),k=o(4485),b=o(38507),Z=o(37574),S=function(e){setTimeout((function(){var n=new URL(window.location.href).searchParams.get("redirect");if(n){var o=decodeURIComponent(n);o.startsWith(I.Bu)?e(o,{replace:!0}):window.location=o}else window.location=window.env.pathPrefix||"/"}),50)};function x(){var e=(0,c.useRef)(null),n=(0,k.Tt)().session,o=(0,v.PE)(),w=o.t,x=o.locale,N=(0,m.Z)().getPassportId,P=(0,u.useNavigate)(),T=(0,y.Z)(),C=(0,i.Z)(T,2),E=C[0],L=C[1],_=new URL(window.location.href).searchParams,B={passportId:N()},O=_.get("componentId");O&&(B.componentId=O),E&&(B.visitorId=E);var R=function(){var e=(0,r.Z)((0,t.Z)().mark((function e(o,r){return(0,t.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(0,b.ZB)(r(o.sessionToken)),(0,b.zI)(r(o.refreshToken)),o.visitorId&&L(r(o.visitorId)),e.next=5,n.refresh();case 5:S(P);case 6:case"end":return e.stop()}}),e)})));return function(n,o){return e.apply(this,arguments)}}(),U=(0,a.Z)((function(){var e,n=null===(e=window)||void 0===e?void 0:e.blocklet,o={className:"connect",popup:!1,action:"login",onSuccess:R,onError:z,locale:x,messages:{title:w("login.dialog.title"),scan:w("login.dialog.scan"),confirm:w("login.dialog.confirm"),success:w("login.dialog.success")},extraParams:B,baseUrl:window.location.origin,prefix:window.location.origin+h()(I.Bu,I.nC)};if(_.get("sessionToken"))R({sessionToken:_.get("sessionToken"),refreshToken:_.get("refreshToken"),visitorId:_.get("visitorId")},(function(e){return e}));else{var t=(0,g.CF)(),r=(0,g.pS)()?t.appUrl:window.location.origin,i="".concat(r).concat(h()(I.Bu,"connect"));window.location.href="".concat(i,"?params=").concat(btoa(encodeURIComponent(JSON.stringify(o))),"&appPid=").concat(null===n||void 0===n?void 0:n.appPid,"&appName=").concat(null===n||void 0===n?void 0:n.appName,"&locale=").concat(x,"&redirect=").concat(encodeURIComponent(window.location.href))}}));(0,s.Z)((function(){n.user?S(P):U()}));var z=function(e){p.Z.error(e.message)};return n.loading||n.user?(0,Z.jsx)(d.Z,{children:(0,Z.jsx)(f.Z,{})}):(0,Z.jsx)(l.Z,{sx:{"box-sizing":"border-box",width:"100%",height:"100vh",position:"relative",display:"flex","flex-direction":"column",".connect":{background:"#fafafa"}},ref:e})}},86776:function(e,n,o){o.d(n,{Z:function(){return i}});var t=o(96234),r=o(17708);function i(){var e=(0,r.Z)("passportId",""),n=(0,t.Z)(e,3),o=n[0],i=n[1],a=n[2];return{getPassportId:function(){return setTimeout((function(){a()}),0),o||""},setPassportId:i}}},46378:function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.isNavigator=n.isBrowser=n.off=n.on=n.noop=void 0;n.noop=function(){},n.on=function(e){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];e&&e.addEventListener&&e.addEventListener.apply(e,n)},n.off=function(e){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];e&&e.removeEventListener&&e.removeEventListener.apply(e,n)},n.isBrowser="undefined"!==typeof window,n.isNavigator="undefined"!==typeof navigator},17708:function(e,n,o){var t=o(30969),r=o(46378);n.Z=function(e,n,o){if(!r.isBrowser)return[n,r.noop,r.noop];if(!e)throw new Error("useLocalStorage key may not be falsy");var i=o?o.raw?function(e){return e}:o.deserializer:JSON.parse,a=t.useRef((function(e){try{var t=o?o.raw?String:o.serializer:JSON.stringify,r=localStorage.getItem(e);return null!==r?i(r):(n&&localStorage.setItem(e,t(n)),n)}catch(s){return n}})),s=t.useState((function(){return a.current(e)})),c=s[0],u=s[1];t.useLayoutEffect((function(){return u(a.current(e))}),[e]);var f=t.useCallback((function(n){try{var t="function"===typeof n?n(c):n;if("undefined"===typeof t)return;var r=void 0;r=o?o.raw?"string"===typeof t?t:JSON.stringify(t):o.serializer?o.serializer(t):JSON.stringify(t):JSON.stringify(t),localStorage.setItem(e,r),u(i(r))}catch(s){}}),[e,u]),l=t.useCallback((function(){try{localStorage.removeItem(e),u(void 0)}catch(s){}}),[e,u]);return[c,f,l]}}}]);
|
|
2
|
-
//# sourceMappingURL=4716.4a231f60.chunk.js.map
|