@blocklet/constant 1.8.36 → 1.8.38

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 (2) hide show
  1. package/index.js +19 -5
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -72,6 +72,7 @@ const BLOCKLET_GROUPS = ['dapp', 'static', 'gateway'];
72
72
  // Blocklet Events
73
73
 
74
74
  const BlockletEvents = Object.freeze({
75
+ // status updated
75
76
  added: 'blocklet.added',
76
77
  downloadFailed: 'blocklet.downloadFailed',
77
78
  installed: 'blocklet.installed',
@@ -80,15 +81,20 @@ const BlockletEvents = Object.freeze({
80
81
  upgradeFailed: 'blocklet.upgradedFailed',
81
82
  downgraded: 'blocklet.downgraded',
82
83
  downgradeFailed: 'blocklet.downgradedFailed',
83
- updated: 'blocklet.updated',
84
- statusChange: 'blocklet.statusChange',
85
84
  removed: 'blocklet.removed',
86
85
  started: 'blocklet.started',
87
86
  startFailed: 'blocklet.startFailed',
88
87
  stopped: 'blocklet.stopped',
89
88
  reloaded: 'blocklet.reloaded', // Deprecated
90
- purchaseChange: 'blocklet.purchaseChange',
89
+ statusChange: 'blocklet.statusChange',
90
+
91
+ // state updated
92
+ updated: 'blocklet.updated',
91
93
  domainStatus: 'blocklet.domainStatus',
94
+ storeChange: 'blocklet.storeChange',
95
+
96
+ // purchase
97
+ purchaseChange: 'blocklet.purchaseChange',
92
98
  });
93
99
 
94
100
  // Blocklet Interface
@@ -172,14 +178,19 @@ module.exports = Object.freeze({
172
178
  BLOCKLET_ENTRY_FILE: 'blocklet.js',
173
179
  BLOCKLET_META_FILE: 'blocklet.yml',
174
180
  BLOCKLET_META_FILE_ALT: 'blocklet.yaml',
181
+ BLOCKLET_PREFERENCE_FILE: 'blocklet.prefs.json',
182
+ BLOCKLET_PREFERENCE_PREFIX: 'prefs.',
175
183
 
176
184
  BLOCKLET_DEFAULT_VERSION: '1.0.0',
177
185
 
186
+ BLOCKLET_UPLOADS_DIR: '__uploads',
187
+
178
188
  BLOCKLET_LATEST_SPEC_VERSION: '1.2.7',
179
189
  BLOCKLET_LATEST_REQUIREMENT_SERVER: '>=1.7.0',
180
190
  BLOCKLET_LATEST_REQUIREMENT_ABTNODE: '>=1.5.15', // Deprecated
181
191
 
182
192
  BLOCKLET_CONFIGURABLE_KEY: {
193
+ // APP Config Key that start with BLOCKLET_ cannot set to child component
183
194
  BLOCKLET_CLUSTER_SIZE: 'BLOCKLET_CLUSTER_SIZE',
184
195
  BLOCKLET_APP_NAME: 'BLOCKLET_APP_NAME',
185
196
  BLOCKLET_APP_DESCRIPTION: 'BLOCKLET_APP_DESCRIPTION',
@@ -190,10 +201,13 @@ module.exports = Object.freeze({
190
201
  BLOCKLET_PASSPORT_COLOR: 'BLOCKLET_PASSPORT_COLOR',
191
202
  BLOCKLET_WALLET_TYPE: 'BLOCKLET_WALLET_TYPE',
192
203
  BLOCKLET_DELETABLE: 'BLOCKLET_DELETABLE',
193
- BLOCKLET_APP_STORAGE_ENDPOINT: 'BLOCKLET_APP_STORAGE_ENDPOINT',
204
+ BLOCKLET_APP_SPACE_ENDPOINT: 'BLOCKLET_APP_SPACE_ENDPOINT',
205
+
206
+ // Component Key
207
+ COMPONENT_ACCESS_WHO: 'COMPONENT_ACCESS_WHO',
194
208
  },
195
209
 
196
- BLOCKLET_APP_STORAGE_ENDPOINTS: {
210
+ BLOCKLET_APP_SPACE_ENDPOINTS: {
197
211
  REQUIRED: 'required',
198
212
  OPTIONAL: 'optional',
199
213
  },
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.8.36",
6
+ "version": "1.8.38",
7
7
  "description": "Blocklet constants",
8
8
  "main": "index.js",
9
9
  "files": [
@@ -20,5 +20,5 @@
20
20
  "devDependencies": {
21
21
  "jest": "^27.5.1"
22
22
  },
23
- "gitHead": "507e974ce88bad1aa002c593130b32982207f803"
23
+ "gitHead": "cbb88f107eb6b403c8cd47a765920575860c7bc7"
24
24
  }