@abtnode/blocklet-services 1.16.8-next-bcc85536 → 1.16.8-next-3bd50116

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.
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.useGlobalContext = exports.GlobalProvider = void 0;
27
+ const React = __importStar(require("react"));
28
+ const GlobalContext = React.createContext({
29
+ locale: 'en',
30
+ appInfo: {
31
+ version: '1.0.0',
32
+ title: 'ArcBlock',
33
+ description: 'ArcBlock DApp Platform',
34
+ url: 'https://www.arcblock.io',
35
+ logo: 'https://new.arcblock.io/blog/uploads/1671422131542-0dDNjXhEl_1yBIm8h7vC-Gnm.png',
36
+ },
37
+ });
38
+ const GlobalProvider = GlobalContext.Provider;
39
+ exports.GlobalProvider = GlobalProvider;
40
+ function useGlobalContext() {
41
+ return React.useContext(GlobalContext);
42
+ }
43
+ exports.useGlobalContext = useGlobalContext;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.8-next-bcc85536",
6
+ "version": "1.16.8-next-3bd50116",
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": "MIT",
35
35
  "dependencies": {
36
- "@abtnode/auth": "1.16.8-next-bcc85536",
37
- "@abtnode/client": "1.16.8-next-bcc85536",
38
- "@abtnode/connect-storage": "1.16.8-next-bcc85536",
39
- "@abtnode/constant": "1.16.8-next-bcc85536",
40
- "@abtnode/core": "1.16.8-next-bcc85536",
41
- "@abtnode/cron": "1.16.8-next-bcc85536",
42
- "@abtnode/logger": "1.16.8-next-bcc85536",
43
- "@abtnode/models": "1.16.8-next-bcc85536",
44
- "@abtnode/router-adapter": "1.16.8-next-bcc85536",
45
- "@abtnode/router-templates": "1.16.8-next-bcc85536",
46
- "@abtnode/util": "1.16.8-next-bcc85536",
36
+ "@abtnode/auth": "1.16.8-next-3bd50116",
37
+ "@abtnode/client": "1.16.8-next-3bd50116",
38
+ "@abtnode/connect-storage": "1.16.8-next-3bd50116",
39
+ "@abtnode/constant": "1.16.8-next-3bd50116",
40
+ "@abtnode/core": "1.16.8-next-3bd50116",
41
+ "@abtnode/cron": "1.16.8-next-3bd50116",
42
+ "@abtnode/logger": "1.16.8-next-3bd50116",
43
+ "@abtnode/models": "1.16.8-next-3bd50116",
44
+ "@abtnode/router-adapter": "1.16.8-next-3bd50116",
45
+ "@abtnode/router-templates": "1.16.8-next-3bd50116",
46
+ "@abtnode/util": "1.16.8-next-3bd50116",
47
47
  "@arcblock/did": "^1.18.80",
48
48
  "@arcblock/did-auth": "1.18.80",
49
49
  "@arcblock/did-ext": "^1.18.80",
@@ -51,11 +51,11 @@
51
51
  "@arcblock/jwt": "1.18.80",
52
52
  "@arcblock/validator": "^1.18.80",
53
53
  "@arcblock/ws": "1.18.80",
54
- "@blocklet/constant": "1.16.8-next-bcc85536",
54
+ "@blocklet/constant": "1.16.8-next-3bd50116",
55
55
  "@blocklet/form-builder": "^0.1.11",
56
56
  "@blocklet/form-collector": "^0.1.6",
57
- "@blocklet/meta": "1.16.8-next-bcc85536",
58
- "@blocklet/sdk": "1.16.8-next-bcc85536",
57
+ "@blocklet/meta": "1.16.8-next-3bd50116",
58
+ "@blocklet/sdk": "1.16.8-next-3bd50116",
59
59
  "@did-connect/authenticator": "^2.1.58",
60
60
  "@did-connect/relay-adapter-express": "^2.1.58",
61
61
  "@did-connect/storage-nedb": "^2.1.58",
@@ -88,14 +88,13 @@
88
88
  "serve-static": "^1.15.0",
89
89
  "transliteration": "^2.3.5",
90
90
  "tweetnacl-sealedbox-js": "^1.2.0",
91
- "typescript": "^5.0.4",
92
91
  "url-join": "^4.0.1"
93
92
  },
94
93
  "resolutions": {
95
94
  "@nedb/core": "^2.1.2"
96
95
  },
97
96
  "devDependencies": {
98
- "@abtnode/ux": "1.16.8-next-bcc85536",
97
+ "@abtnode/ux": "1.16.8-next-3bd50116",
99
98
  "@arcblock/did-connect": "^2.5.40",
100
99
  "@arcblock/icons": "^2.5.40",
101
100
  "@arcblock/ux": "^2.5.40",
@@ -139,6 +138,7 @@
139
138
  "react-use": "^17.4.0",
140
139
  "source-map-explorer": "^2.5.3",
141
140
  "supertest": "^6.3.0",
141
+ "typescript": "^5.0.4",
142
142
  "uuid": "^8.3.2",
143
143
  "webpack-bundle-analyzer": "^4.6.1"
144
144
  },
@@ -162,5 +162,5 @@
162
162
  "url": "https://github.com/ArcBlock/blocklet-server/issues",
163
163
  "email": "shijun@arcblock.io"
164
164
  },
165
- "gitHead": "27f3858f8138d08c68420a78f3cd4c9437e10170"
165
+ "gitHead": "351433697904d26d045658a2f2a864e3b74c8571"
166
166
  }