@blocklet/constant 1.16.21-beta-bd0e2503 → 1.16.21-beta-445a8baa

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 (3) hide show
  1. package/index.js +6 -2
  2. package/index.ts +7 -1
  3. package/package.json +2 -2
package/index.js CHANGED
@@ -57,6 +57,7 @@ __export(constant_exports, {
57
57
  BLOCKLET_RELEASE_FILE: () => BLOCKLET_RELEASE_FILE,
58
58
  BLOCKLET_RELEASE_FOLDER: () => BLOCKLET_RELEASE_FOLDER,
59
59
  BLOCKLET_RELEASE_FOLDER_NAME: () => BLOCKLET_RELEASE_FOLDER_NAME,
60
+ BLOCKLET_RESOURCE_DIR: () => BLOCKLET_RESOURCE_DIR,
60
61
  BLOCKLET_STANDARD_INTERFACES: () => BLOCKLET_STANDARD_INTERFACES,
61
62
  BLOCKLET_UI_INTERFACES: () => BLOCKLET_UI_INTERFACES,
62
63
  BLOCKLET_UPLOADS_DIR: () => BLOCKLET_UPLOADS_DIR,
@@ -868,9 +869,10 @@ var BlockletGroup = Object.freeze({
868
869
  static: "static",
869
870
  dapp: "dapp",
870
871
  starter: false,
871
- gateway: "gateway"
872
+ gateway: "gateway",
873
+ pack: "pack"
872
874
  });
873
- var BLOCKLET_GROUPS = ["dapp", "static", "gateway"];
875
+ var BLOCKLET_GROUPS = ["dapp", "static", "gateway", "pack"];
874
876
  var BlockletEvents = Object.freeze({
875
877
  added: "blocklet.added",
876
878
  downloadFailed: "blocklet.downloadFailed",
@@ -967,6 +969,7 @@ var BLOCKLET_META_FILE = "blocklet.yml";
967
969
  var BLOCKLET_META_FILE_ALT = "blocklet.yaml";
968
970
  var BLOCKLET_PREFERENCE_FILE = "blocklet.prefs.json";
969
971
  var BLOCKLET_PREFERENCE_PREFIX = "prefs.";
972
+ var BLOCKLET_RESOURCE_DIR = "resources";
970
973
  var PROJECT = {
971
974
  DIR: ".projects",
972
975
  RELEASE_DIR: "releases",
@@ -1089,6 +1092,7 @@ var MAX_TITLE_LENGTH = 40;
1089
1092
  BLOCKLET_RELEASE_FILE,
1090
1093
  BLOCKLET_RELEASE_FOLDER,
1091
1094
  BLOCKLET_RELEASE_FOLDER_NAME,
1095
+ BLOCKLET_RESOURCE_DIR,
1092
1096
  BLOCKLET_STANDARD_INTERFACES,
1093
1097
  BLOCKLET_UI_INTERFACES,
1094
1098
  BLOCKLET_UPLOADS_DIR,
package/index.ts CHANGED
@@ -87,9 +87,14 @@ export const BlockletGroup = Object.freeze({
87
87
  // This type is used to combine other component blocklets
88
88
  // No instance will be spawned at runtime
89
89
  gateway: 'gateway',
90
+
91
+ // This type is used to pack other blocklets
92
+ // No instance will be spawned at runtime
93
+ // The difference is that a pack is a component in an app, whereas a gateway is an app itself.
94
+ pack: 'pack',
90
95
  });
91
96
 
92
- export const BLOCKLET_GROUPS = ['dapp', 'static', 'gateway'];
97
+ export const BLOCKLET_GROUPS = ['dapp', 'static', 'gateway', 'pack'];
93
98
 
94
99
  // Blocklet Events
95
100
 
@@ -221,6 +226,7 @@ export const BLOCKLET_META_FILE = 'blocklet.yml';
221
226
  export const BLOCKLET_META_FILE_ALT = 'blocklet.yaml';
222
227
  export const BLOCKLET_PREFERENCE_FILE = 'blocklet.prefs.json';
223
228
  export const BLOCKLET_PREFERENCE_PREFIX = 'prefs.';
229
+ export const BLOCKLET_RESOURCE_DIR = 'resources';
224
230
 
225
231
  // project
226
232
  export const PROJECT = {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.21-beta-bd0e2503",
6
+ "version": "1.16.21-beta-445a8baa",
7
7
  "description": "Blocklet constants",
8
8
  "main": "index.js",
9
9
  "type": "commonjs",
@@ -34,5 +34,5 @@
34
34
  "ts-jest": "^27.1.5",
35
35
  "typescript": "^5.0.4"
36
36
  },
37
- "gitHead": "f4550e061b661cb67d7f1413ada51f3f6491f0b8"
37
+ "gitHead": "7a7ff8be7f424775c3bde0eead773d8e6177fa1a"
38
38
  }