@blocklet/constant 1.16.20 → 1.16.21-beta-edf184e1

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.
Files changed (4) hide show
  1. package/index.js +1094 -296
  2. package/index.ts +326 -0
  3. package/package.json +6 -4
  4. package/index.d.ts +0 -252
package/index.ts ADDED
@@ -0,0 +1,326 @@
1
+ import SUPPORTED_LANGUAGES from './languages';
2
+
3
+ export { SUPPORTED_LANGUAGES };
4
+
5
+ /* eslint-disable @typescript-eslint/indent */
6
+ type StringNumberObject = { [key: string]: number };
7
+
8
+ const fromEntry =
9
+ (entries: StringNumberObject) =>
10
+ (v: number | string): string => {
11
+ const match = Object.entries(entries).find((x) => x[1] === Number(v));
12
+ return match ? match[0] : 'unknown';
13
+ };
14
+
15
+ // deprecated: toEntry is same as fromEntry
16
+ const toEntry =
17
+ (entries: StringNumberObject) =>
18
+ (v: number | string): string =>
19
+ Object.keys(entries).find((x) => entries[x] === Number(v));
20
+
21
+ // Blocklet Status
22
+
23
+ export const BlockletStatus = Object.freeze({
24
+ added: 0,
25
+ downloading: 1,
26
+ downloaded: 2, // Deprecated
27
+ installing: 3,
28
+ installed: 4,
29
+ starting: 5,
30
+ running: 6,
31
+ stopping: 7,
32
+ stopped: 8,
33
+ error: 9,
34
+ upgrading: 10,
35
+ restarting: 11, // Deprecated
36
+ corrupted: 12,
37
+ waiting: 13,
38
+ deleted: 14,
39
+ });
40
+
41
+ export const BLOCKLET_CONTROLLER_STATUS = {
42
+ normal: 0,
43
+ suspended: 10,
44
+ };
45
+
46
+ export const SUSPENDED_REASON = {
47
+ expired: 'expired',
48
+ };
49
+
50
+ export const fromBlockletStatus = fromEntry(BlockletStatus);
51
+ export const toBlockletStatus = toEntry(BlockletStatus); // deprecated
52
+
53
+ // Blocklet Source
54
+
55
+ export const BlockletSource: StringNumberObject = Object.freeze({
56
+ // Installed from Blocklet Store
57
+ registry: 0,
58
+
59
+ // Installed from local development source folder
60
+ local: 1,
61
+
62
+ // Installed from uploading bundle directly
63
+ upload: 2,
64
+
65
+ // Installed from a url (similar to Blocklet Store)
66
+ url: 3,
67
+
68
+ // Installed by custom creation
69
+ custom: 4,
70
+ });
71
+
72
+ export const fromBlockletSource = fromEntry(BlockletSource);
73
+ export const toBlockletSource = toEntry(BlockletSource); // deprecated
74
+
75
+ // Blocklet Group(Type)
76
+
77
+ export const BlockletGroup = Object.freeze({
78
+ // Only static website
79
+ // The website is served by by Blocklet Server at runtime
80
+ static: 'static',
81
+
82
+ // The runtime instance is provided by its own backend server
83
+ dapp: 'dapp',
84
+
85
+ starter: false, // deprecated
86
+
87
+ // This type is used to combine other component blocklets
88
+ // No instance will be spawned at runtime
89
+ gateway: 'gateway',
90
+ });
91
+
92
+ export const BLOCKLET_GROUPS = ['dapp', 'static', 'gateway'];
93
+
94
+ // Blocklet Events
95
+
96
+ export const BlockletEvents = Object.freeze({
97
+ // status updated
98
+ added: 'blocklet.added',
99
+ downloadFailed: 'blocklet.downloadFailed',
100
+ installed: 'blocklet.installed',
101
+ installFailed: 'blocklet.installFailed',
102
+ upgraded: 'blocklet.upgraded', // only for internal use (refresh router)
103
+ removed: 'blocklet.removed',
104
+ started: 'blocklet.started',
105
+ startFailed: 'blocklet.startFailed',
106
+ stopped: 'blocklet.stopped',
107
+ reloaded: 'blocklet.reloaded', // Deprecated
108
+ statusChange: 'blocklet.statusChange',
109
+ dataCleaned: 'blocklet.dataCleaned',
110
+ componentInstalled: 'blocklet.componentInstalled',
111
+ componentInstallFailed: 'blocklet.componentInstallFailed',
112
+ componentUpgraded: 'blocklet.componentUpgraded',
113
+ componentUpgradeFailed: 'blocklet.componentUpgradeFailed',
114
+ componentRemoved: 'blocklet.componentRemoved',
115
+
116
+ // 备份还原进度
117
+ backupProgress: 'blocklet.backupProgress',
118
+ restoreProgress: 'blocklet.restoreProgress',
119
+
120
+ downloadBundleProgress: 'blocklet.downloadBundleProgress',
121
+
122
+ // state updated
123
+ updated: 'blocklet.updated',
124
+ domainStatus: 'blocklet.domainStatus',
125
+ storeChange: 'blocklet.storeChange',
126
+ appDidChanged: 'blocklet.appDidChanged',
127
+
128
+ // purchase
129
+ purchaseChange: 'blocklet.purchaseChange',
130
+
131
+ // cert
132
+ certError: 'blocklet.certError',
133
+ certIssued: 'blocklet.certIssued',
134
+
135
+ // did-space
136
+ spaceConnected: 'blocklet.spaceConnected',
137
+
138
+ // install by nft
139
+ nftConsumed: 'blocklet.nftConsumed',
140
+ });
141
+
142
+ export const BlockletInternalEvents = Object.freeze({
143
+ appConfigChanged: 'blocklet.appConfigChanged',
144
+ appSettingChanged: 'blocklet.appSettingChanged',
145
+
146
+ componentInstalled: 'blocklet._componentInstalled',
147
+ componentUpgraded: 'blocklet._componentUpgraded',
148
+ componentUpdated: 'blocklet._componentUpdated',
149
+ componentStarted: 'blocklet._componentStarted',
150
+ componentStopped: 'blocklet._componentStopped',
151
+ componentRemoved: 'blocklet._componentRemoved',
152
+ componentConfigChanged: 'blocklet._componentConfigChanged',
153
+
154
+ componentsUpdated: 'blocklet.componentsUpdated', // deprecated, for backward compatibility
155
+ });
156
+
157
+ export const BLOCKLET_PLATFORMS = ['aix', 'darwin', 'freebsd', 'linux', 'openbsd', 'sunos', 'win32'];
158
+ export const BLOCKLET_ARCHITECTURES = [
159
+ 'arm',
160
+ 'arm64',
161
+ 'ia32',
162
+ 'mips',
163
+ 'mipsel',
164
+ 'ppc',
165
+ 'ppc64',
166
+ 's390',
167
+ 's390x',
168
+ 'x32',
169
+ 'x64',
170
+ ];
171
+
172
+ export const BLOCKLET_MODES = Object.freeze({
173
+ PRODUCTION: 'production',
174
+ DEVELOPMENT: 'development',
175
+ });
176
+
177
+ export const BLOCKLET_FACTORY_SHARES = { developer: 0.7, store: 0.3 };
178
+
179
+ // Blocklet Interface
180
+
181
+ export const BLOCKLET_INTERFACE_TYPE_WEB = 'web';
182
+ export const BLOCKLET_INTERFACE_TYPE_SERVICE = 'service';
183
+
184
+ // Wellknown interface declares an sub-interface under web interface
185
+ // The path of the wellknown interface must starts with /.well-known, e.g. /.well-known/acme-challenge)
186
+ // The wellknown interface can be mounted to every endpoint of the abtnode and all blocklets on the abtnode
187
+ export const BLOCKLET_INTERFACE_TYPE_WELLKNOWN = 'wellknown';
188
+ export const BLOCKLET_INTERFACE_TYPES = [
189
+ BLOCKLET_INTERFACE_TYPE_WEB,
190
+ BLOCKLET_INTERFACE_TYPE_SERVICE,
191
+ BLOCKLET_INTERFACE_TYPE_WELLKNOWN,
192
+ ];
193
+
194
+ export const BLOCKLET_INTERFACE_PUBLIC = 'publicUrl';
195
+ export const BLOCKLET_INTERFACE_WELLKNOWN = 'wellknownUrl'; // Deprecated
196
+ export const BLOCKLET_UI_INTERFACES = [BLOCKLET_INTERFACE_PUBLIC];
197
+ export const BLOCKLET_STANDARD_INTERFACES = [BLOCKLET_INTERFACE_PUBLIC, BLOCKLET_INTERFACE_WELLKNOWN];
198
+
199
+ export const BLOCKLET_INTERFACE_PROTOCOL_HTTP = 'http';
200
+ export const BLOCKLET_INTERFACE_PROTOCOL_TCP = 'tcp';
201
+ export const BLOCKLET_INTERFACE_PROTOCOL_UDP = 'udp';
202
+ export const BLOCKLET_INTERFACE_PROTOCOLS = [
203
+ BLOCKLET_INTERFACE_PROTOCOL_TCP,
204
+ BLOCKLET_INTERFACE_PROTOCOL_UDP,
205
+ BLOCKLET_INTERFACE_PROTOCOL_HTTP,
206
+ ];
207
+
208
+ export const BLOCKLET_DYNAMIC_PATH_PREFIX = '*';
209
+ export const BLOCKLET_DEFAULT_PORT_NAME = 'BLOCKLET_PORT';
210
+ export const BLOCKLET_DEFAULT_PATH_REWRITE = '/';
211
+
212
+ // bundle
213
+ export const BLOCKLET_RELEASE_FOLDER = '.blocklet/release';
214
+ export const BLOCKLET_RELEASE_FILE = 'blocklet.json';
215
+ export const BLOCKLET_BUNDLE_FOLDER = '.blocklet/bundle';
216
+ export const BLOCKLET_RELEASE_FOLDER_NAME = 'release';
217
+ export const BLOCKLET_BUNDLE_FOLDER_NAME = 'bundle';
218
+ export const BLOCKLET_BUNDLE_FILE = 'blocklet.zip';
219
+ export const BLOCKLET_ENTRY_FILE = 'blocklet.js';
220
+ export const BLOCKLET_META_FILE = 'blocklet.yml';
221
+ export const BLOCKLET_META_FILE_ALT = 'blocklet.yaml';
222
+ export const BLOCKLET_PREFERENCE_FILE = 'blocklet.prefs.json';
223
+ export const BLOCKLET_PREFERENCE_PREFIX = 'prefs.';
224
+
225
+ // project
226
+ export const PROJECT = {
227
+ DIR: '.projects',
228
+ RELEASE_DIR: 'releases',
229
+ RESOURCE_DIR: 'resource',
230
+ ASSET_DIR: 'assets',
231
+ TYPES: {
232
+ resource: 'resource',
233
+ pack: 'pack',
234
+ },
235
+ RELEASE_STATUS: {
236
+ draft: 'draft',
237
+ published: 'published',
238
+ },
239
+ MAX_NOTE_LENGTH: 1000,
240
+ MAX_INTRO_LENGTH: 3000,
241
+ };
242
+
243
+ export const BLOCKLET_DEFAULT_VERSION = '1.0.0';
244
+
245
+ export const BLOCKLET_UPLOADS_DIR = '__uploads';
246
+
247
+ export const BLOCKLET_LATEST_SPEC_VERSION = '1.2.8';
248
+ export const BLOCKLET_LATEST_REQUIREMENT_SERVER = '>=1.7.0';
249
+ export const BLOCKLET_LATEST_REQUIREMENT_ABTNODE = '>=1.5.15'; // Deprecated
250
+
251
+ export const BLOCKLET_CONFIGURABLE_KEY = {
252
+ // APP Config Key that start with BLOCKLET_ cannot set to child component
253
+ BLOCKLET_CLUSTER_SIZE: 'BLOCKLET_CLUSTER_SIZE',
254
+ BLOCKLET_APP_NAME: 'BLOCKLET_APP_NAME',
255
+ BLOCKLET_APP_DESCRIPTION: 'BLOCKLET_APP_DESCRIPTION',
256
+ BLOCKLET_APP_SK: 'BLOCKLET_APP_SK',
257
+ BLOCKLET_APP_LOGO: 'BLOCKLET_APP_LOGO', // deprecated
258
+ BLOCKLET_APP_LOGO_SQUARE: 'BLOCKLET_APP_LOGO_SQUARE',
259
+ BLOCKLET_APP_LOGO_RECT: 'BLOCKLET_APP_LOGO_RECT',
260
+ BLOCKLET_APP_LOGO_FAVICON: 'BLOCKLET_APP_LOGO_FAVICON',
261
+ BLOCKLET_APP_URL: 'BLOCKLET_APP_URL',
262
+ BLOCKLET_APP_LANGUAGES: 'BLOCKLET_APP_LANGUAGES',
263
+ BLOCKLET_PASSPORT_COLOR: 'BLOCKLET_PASSPORT_COLOR',
264
+ BLOCKLET_WALLET_TYPE: 'BLOCKLET_WALLET_TYPE', // deprecated
265
+ BLOCKLET_DELETABLE: 'BLOCKLET_DELETABLE',
266
+ BLOCKLET_APP_COPYRIGHT_OWNER: 'BLOCKLET_APP_COPYRIGHT_OWNER',
267
+ BLOCKLET_APP_COPYRIGHT_YEAR: 'BLOCKLET_APP_COPYRIGHT_YEAR',
268
+
269
+ // 应用使用 DID Spaces 存储 文件/nft 的时候使用的环境变量
270
+ BLOCKLET_APP_SPACE_ENDPOINT: 'BLOCKLET_APP_SPACE_ENDPOINT',
271
+ BLOCKLET_APP_SPACES_URL: 'BLOCKLET_APP_SPACES_URL',
272
+
273
+ // 应用使用 DID Spaces 备份的时候使用的环境变量
274
+ BLOCKLET_APP_BACKUP_ENDPOINT: 'BLOCKLET_APP_BACKUP_ENDPOINT',
275
+
276
+ BLOCKLET_APP_CHAIN_HOST: 'BLOCKLET_APP_CHAIN_HOST',
277
+ BLOCKLET_APP_CHAIN_TYPE: 'BLOCKLET_APP_CHAIN_TYPE',
278
+ BLOCKLET_APP_CHAIN_ID: 'BLOCKLET_APP_CHAIN_ID',
279
+
280
+ // Component Key
281
+ COMPONENT_ACCESS_WHO: 'COMPONENT_ACCESS_WHO',
282
+ };
283
+
284
+ export const BLOCKLET_APP_SPACE_ENDPOINTS = {
285
+ REQUIRED: 'required',
286
+ OPTIONAL: 'optional',
287
+ };
288
+
289
+ export const CHAIN_INFO_CONFIG = {
290
+ CHAIN_TYPE: ['type', 'arcblock'],
291
+ CHAIN_ID: ['id', 'none'],
292
+ CHAIN_HOST: ['host', 'none'],
293
+ };
294
+
295
+ export const RESTORE_PROGRESS_STATUS = {
296
+ waiting: 0,
297
+ start: 10,
298
+ importData: 20,
299
+ downloading: 30,
300
+ importDataSuccess: 40,
301
+ installing: 50,
302
+ completed: 60,
303
+ error: 70,
304
+ };
305
+
306
+ export const CHAIN_PROP_MAP = {
307
+ BLOCKLET_APP_CHAIN_HOST: 'CHAIN_HOST',
308
+ BLOCKLET_APP_CHAIN_ID: 'CHAIN_ID',
309
+ BLOCKLET_APP_CHAIN_TYPE: 'CHAIN_TYPE',
310
+ };
311
+
312
+ export const CHAIN_PROP_MAP_REVERSE = Object.keys(CHAIN_PROP_MAP).reduce((acc, key) => {
313
+ acc[CHAIN_PROP_MAP[key]] = key;
314
+ return acc;
315
+ }, {});
316
+
317
+ export const LOGIN_PROVIDER = {
318
+ AUTH0: 'auth0',
319
+ WALLET: 'wallet',
320
+ NFT: 'nft',
321
+ };
322
+
323
+ export const APP_CONFIG_DIR = '/.config';
324
+ export const APP_CONFIG_FILE_PATH = '/.config/config.json';
325
+ export const COMPONENT_ENV_FILE_NAME = 'env';
326
+ export const MAX_TITLE_LENGTH = 40;
package/package.json CHANGED
@@ -3,12 +3,14 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.20",
6
+ "version": "1.16.21-beta-edf184e1",
7
7
  "description": "Blocklet constants",
8
8
  "main": "index.js",
9
+ "type": "commonjs",
10
+ "types": "index.ts",
9
11
  "files": [
10
12
  "index.js",
11
- "index.d.ts"
13
+ "index.ts"
12
14
  ],
13
15
  "scripts": {
14
16
  "lint": "eslint tests index.ts",
@@ -16,7 +18,7 @@
16
18
  "test": "NODE_ENV=test node tools/jest.js",
17
19
  "coverage": "npm run test -- --coverage",
18
20
  "clean": "rm -f index.d.ts index.js",
19
- "build": "npm run clean && tsc"
21
+ "build": "npm run clean && npx esbuild index.ts --bundle --outfile=index.js --platform=node --format=cjs"
20
22
  },
21
23
  "author": "polunzh <polunzh@gmail.com> (http://github.com/polunzh)",
22
24
  "license": "Apache-2.0",
@@ -32,5 +34,5 @@
32
34
  "ts-jest": "^27.1.5",
33
35
  "typescript": "^5.0.4"
34
36
  },
35
- "gitHead": "715efa6465e9143c23b152b5ef639266ea834843"
37
+ "gitHead": "e89c7e31d2d9ca5d00ae1f72304bdc7dcb78cc44"
36
38
  }
package/index.d.ts DELETED
@@ -1,252 +0,0 @@
1
- type StringNumberObject = {
2
- [key: string]: number;
3
- };
4
- export declare const BlockletStatus: Readonly<{
5
- added: 0;
6
- downloading: 1;
7
- downloaded: 2;
8
- installing: 3;
9
- installed: 4;
10
- starting: 5;
11
- running: 6;
12
- stopping: 7;
13
- stopped: 8;
14
- error: 9;
15
- upgrading: 10;
16
- restarting: 11;
17
- corrupted: 12;
18
- waiting: 13;
19
- deleted: 14;
20
- }>;
21
- export declare const BLOCKLET_CONTROLLER_STATUS: {
22
- normal: number;
23
- suspended: number;
24
- };
25
- export declare const SUSPENDED_REASON: {
26
- expired: string;
27
- };
28
- export declare const fromBlockletStatus: (v: number | string) => string;
29
- export declare const toBlockletStatus: (v: number | string) => string;
30
- export declare const BlockletSource: StringNumberObject;
31
- export declare const fromBlockletSource: (v: number | string) => string;
32
- export declare const toBlockletSource: (v: number | string) => string;
33
- export declare const BlockletGroup: Readonly<{
34
- static: "static";
35
- dapp: "dapp";
36
- starter: false;
37
- gateway: "gateway";
38
- }>;
39
- export declare const BLOCKLET_GROUPS: string[];
40
- export declare const BlockletEvents: Readonly<{
41
- added: "blocklet.added";
42
- downloadFailed: "blocklet.downloadFailed";
43
- installed: "blocklet.installed";
44
- installFailed: "blocklet.installFailed";
45
- upgraded: "blocklet.upgraded";
46
- removed: "blocklet.removed";
47
- started: "blocklet.started";
48
- startFailed: "blocklet.startFailed";
49
- stopped: "blocklet.stopped";
50
- reloaded: "blocklet.reloaded";
51
- statusChange: "blocklet.statusChange";
52
- dataCleaned: "blocklet.dataCleaned";
53
- componentInstalled: "blocklet.componentInstalled";
54
- componentInstallFailed: "blocklet.componentInstallFailed";
55
- componentUpgraded: "blocklet.componentUpgraded";
56
- componentUpgradeFailed: "blocklet.componentUpgradeFailed";
57
- componentRemoved: "blocklet.componentRemoved";
58
- backupProgress: "blocklet.backupProgress";
59
- restoreProgress: "blocklet.restoreProgress";
60
- downloadBundleProgress: "blocklet.downloadBundleProgress";
61
- updated: "blocklet.updated";
62
- domainStatus: "blocklet.domainStatus";
63
- storeChange: "blocklet.storeChange";
64
- appDidChanged: "blocklet.appDidChanged";
65
- purchaseChange: "blocklet.purchaseChange";
66
- certError: "blocklet.certError";
67
- certIssued: "blocklet.certIssued";
68
- spaceConnected: "blocklet.spaceConnected";
69
- nftConsumed: "blocklet.nftConsumed";
70
- }>;
71
- export declare const BlockletInternalEvents: Readonly<{
72
- appConfigChanged: "blocklet.appConfigChanged";
73
- appSettingChanged: "blocklet.appSettingChanged";
74
- componentInstalled: "blocklet._componentInstalled";
75
- componentUpgraded: "blocklet._componentUpgraded";
76
- componentUpdated: "blocklet._componentUpdated";
77
- componentStarted: "blocklet._componentStarted";
78
- componentStopped: "blocklet._componentStopped";
79
- componentRemoved: "blocklet._componentRemoved";
80
- componentConfigChanged: "blocklet._componentConfigChanged";
81
- componentsUpdated: "blocklet.componentsUpdated";
82
- }>;
83
- export declare const BLOCKLET_PLATFORMS: string[];
84
- export declare const BLOCKLET_ARCHITECTURES: string[];
85
- export declare const BLOCKLET_MODES: Readonly<{
86
- PRODUCTION: "production";
87
- DEVELOPMENT: "development";
88
- }>;
89
- export declare const BLOCKLET_FACTORY_SHARES: {
90
- developer: number;
91
- store: number;
92
- };
93
- export declare const BLOCKLET_INTERFACE_TYPE_WEB = "web";
94
- export declare const BLOCKLET_INTERFACE_TYPE_SERVICE = "service";
95
- export declare const BLOCKLET_INTERFACE_TYPE_WELLKNOWN = "wellknown";
96
- export declare const BLOCKLET_INTERFACE_TYPES: string[];
97
- export declare const BLOCKLET_INTERFACE_PUBLIC = "publicUrl";
98
- export declare const BLOCKLET_INTERFACE_WELLKNOWN = "wellknownUrl";
99
- export declare const BLOCKLET_UI_INTERFACES: string[];
100
- export declare const BLOCKLET_STANDARD_INTERFACES: string[];
101
- export declare const BLOCKLET_INTERFACE_PROTOCOL_HTTP = "http";
102
- export declare const BLOCKLET_INTERFACE_PROTOCOL_TCP = "tcp";
103
- export declare const BLOCKLET_INTERFACE_PROTOCOL_UDP = "udp";
104
- export declare const BLOCKLET_INTERFACE_PROTOCOLS: string[];
105
- export declare const BLOCKLET_DYNAMIC_PATH_PREFIX = "*";
106
- export declare const BLOCKLET_DEFAULT_PORT_NAME = "BLOCKLET_PORT";
107
- export declare const BLOCKLET_DEFAULT_PATH_REWRITE = "/";
108
- export declare const BLOCKLET_RELEASE_FOLDER = ".blocklet/release";
109
- export declare const BLOCKLET_RELEASE_FILE = "blocklet.json";
110
- export declare const BLOCKLET_BUNDLE_FOLDER = ".blocklet/bundle";
111
- export declare const BLOCKLET_RELEASE_FOLDER_NAME = "release";
112
- export declare const BLOCKLET_BUNDLE_FOLDER_NAME = "bundle";
113
- export declare const BLOCKLET_BUNDLE_FILE = "blocklet.zip";
114
- export declare const BLOCKLET_ENTRY_FILE = "blocklet.js";
115
- export declare const BLOCKLET_META_FILE = "blocklet.yml";
116
- export declare const BLOCKLET_META_FILE_ALT = "blocklet.yaml";
117
- export declare const BLOCKLET_PREFERENCE_FILE = "blocklet.prefs.json";
118
- export declare const BLOCKLET_PREFERENCE_PREFIX = "prefs.";
119
- export declare const PROJECT: {
120
- DIR: string;
121
- RELEASE_DIR: string;
122
- RESOURCE_DIR: string;
123
- ASSET_DIR: string;
124
- TYPES: {
125
- resource: string;
126
- pack: string;
127
- };
128
- RELEASE_STATUS: {
129
- draft: string;
130
- published: string;
131
- };
132
- MAX_NOTE_LENGTH: number;
133
- MAX_INTRO_LENGTH: number;
134
- };
135
- export declare const BLOCKLET_DEFAULT_VERSION = "1.0.0";
136
- export declare const BLOCKLET_UPLOADS_DIR = "__uploads";
137
- export declare const BLOCKLET_LATEST_SPEC_VERSION = "1.2.8";
138
- export declare const BLOCKLET_LATEST_REQUIREMENT_SERVER = ">=1.7.0";
139
- export declare const BLOCKLET_LATEST_REQUIREMENT_ABTNODE = ">=1.5.15";
140
- export declare const BLOCKLET_CONFIGURABLE_KEY: {
141
- BLOCKLET_CLUSTER_SIZE: string;
142
- BLOCKLET_APP_NAME: string;
143
- BLOCKLET_APP_DESCRIPTION: string;
144
- BLOCKLET_APP_SK: string;
145
- BLOCKLET_APP_LOGO: string;
146
- BLOCKLET_APP_LOGO_SQUARE: string;
147
- BLOCKLET_APP_LOGO_RECT: string;
148
- BLOCKLET_APP_LOGO_FAVICON: string;
149
- BLOCKLET_APP_URL: string;
150
- BLOCKLET_APP_LANGUAGES: string;
151
- BLOCKLET_PASSPORT_COLOR: string;
152
- BLOCKLET_WALLET_TYPE: string;
153
- BLOCKLET_DELETABLE: string;
154
- BLOCKLET_APP_COPYRIGHT_OWNER: string;
155
- BLOCKLET_APP_COPYRIGHT_YEAR: string;
156
- BLOCKLET_APP_SPACE_ENDPOINT: string;
157
- BLOCKLET_APP_SPACES_URL: string;
158
- BLOCKLET_APP_BACKUP_ENDPOINT: string;
159
- BLOCKLET_APP_CHAIN_HOST: string;
160
- BLOCKLET_APP_CHAIN_TYPE: string;
161
- BLOCKLET_APP_CHAIN_ID: string;
162
- COMPONENT_ACCESS_WHO: string;
163
- };
164
- export declare const BLOCKLET_APP_SPACE_ENDPOINTS: {
165
- REQUIRED: string;
166
- OPTIONAL: string;
167
- };
168
- export declare const CHAIN_INFO_CONFIG: {
169
- CHAIN_TYPE: string[];
170
- CHAIN_ID: string[];
171
- CHAIN_HOST: string[];
172
- };
173
- export declare const RESTORE_PROGRESS_STATUS: {
174
- waiting: number;
175
- start: number;
176
- importData: number;
177
- downloading: number;
178
- importDataSuccess: number;
179
- installing: number;
180
- completed: number;
181
- error: number;
182
- };
183
- export declare const CHAIN_PROP_MAP: {
184
- BLOCKLET_APP_CHAIN_HOST: string;
185
- BLOCKLET_APP_CHAIN_ID: string;
186
- BLOCKLET_APP_CHAIN_TYPE: string;
187
- };
188
- export declare const CHAIN_PROP_MAP_REVERSE: {};
189
- export declare const SUPPORTED_LANGUAGES: {
190
- en: {
191
- name: string;
192
- nativeName: string;
193
- };
194
- es: {
195
- name: string;
196
- nativeName: string;
197
- };
198
- fr: {
199
- name: string;
200
- nativeName: string;
201
- };
202
- it: {
203
- name: string;
204
- nativeName: string;
205
- };
206
- zh: {
207
- name: string;
208
- nativeName: string;
209
- };
210
- 'zh-TW': {
211
- name: string;
212
- nativeName: string;
213
- };
214
- ja: {
215
- name: string;
216
- nativeName: string;
217
- };
218
- ko: {
219
- name: string;
220
- nativeName: string;
221
- };
222
- pt: {
223
- name: string;
224
- nativeName: string;
225
- };
226
- ru: {
227
- name: string;
228
- nativeName: string;
229
- };
230
- ar: {
231
- name: string;
232
- nativeName: string;
233
- };
234
- de: {
235
- name: string;
236
- nativeName: string;
237
- };
238
- mn: {
239
- name: string;
240
- nativeName: string;
241
- };
242
- };
243
- export declare const LOGIN_PROVIDER: {
244
- AUTH0: string;
245
- WALLET: string;
246
- NFT: string;
247
- };
248
- export declare const APP_CONFIG_DIR = "/.config";
249
- export declare const APP_CONFIG_FILE_PATH = "/.config/config.json";
250
- export declare const COMPONENT_ENV_FILE_NAME = "env";
251
- export declare const MAX_TITLE_LENGTH = 40;
252
- export {};