@blocklet/constant 1.16.30-beta-b7f31b10 → 1.16.30-beta-b80c7bcd

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.d.ts +1 -1
  2. package/index.js +0 -34
  3. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Generated by dts-bundle-generator v9.2.3
1
+ // Generated by dts-bundle-generator v9.5.1
2
2
 
3
3
  export declare const SUPPORTED_LANGUAGES: {
4
4
  en: {
package/index.js CHANGED
@@ -863,7 +863,6 @@ var BlockletStatus = Object.freeze({
863
863
  added: 0,
864
864
  downloading: 1,
865
865
  downloaded: 2,
866
- // Deprecated
867
866
  installing: 3,
868
867
  installed: 4,
869
868
  starting: 5,
@@ -873,7 +872,6 @@ var BlockletStatus = Object.freeze({
873
872
  error: 9,
874
873
  upgrading: 10,
875
874
  restarting: 11,
876
- // Deprecated
877
875
  corrupted: 12,
878
876
  waiting: 13,
879
877
  deleted: 14
@@ -888,42 +886,27 @@ var SUSPENDED_REASON = {
888
886
  var fromBlockletStatus = fromEntry(BlockletStatus);
889
887
  var toBlockletStatus = toEntry(BlockletStatus);
890
888
  var BlockletSource = Object.freeze({
891
- // Installed from Blocklet Store
892
889
  registry: 0,
893
- // Installed from local development source folder
894
890
  local: 1,
895
- // Installed from uploading bundle directly
896
891
  upload: 2,
897
- // Installed from a url (similar to Blocklet Store)
898
892
  url: 3,
899
- // Installed by custom creation
900
893
  custom: 4
901
894
  });
902
895
  var fromBlockletSource = fromEntry(BlockletSource);
903
896
  var toBlockletSource = toEntry(BlockletSource);
904
897
  var BlockletGroup = Object.freeze({
905
- // Only static website
906
- // The website is served by by Blocklet Server at runtime
907
898
  static: "static",
908
- // The runtime instance is provided by its own backend server
909
899
  dapp: "dapp",
910
- // This type is used to combine other component blocklets
911
- // No instance will be spawned at runtime
912
900
  gateway: "gateway",
913
- // This type is used to pack other blocklets
914
- // No instance will be spawned at runtime
915
- // The difference is that a pack is a component in an app, whereas a gateway is an app itself.
916
901
  pack: "pack"
917
902
  });
918
903
  var BLOCKLET_GROUPS = ["dapp", "static", "gateway", "pack"];
919
904
  var BlockletEvents = Object.freeze({
920
- // status updated
921
905
  added: "blocklet.added",
922
906
  downloadFailed: "blocklet.downloadFailed",
923
907
  installed: "blocklet.installed",
924
908
  installFailed: "blocklet.installFailed",
925
909
  upgraded: "blocklet.upgraded",
926
- // only for internal use (refresh router)
927
910
  removed: "blocklet.removed",
928
911
  started: "blocklet.started",
929
912
  startFailed: "blocklet.startFailed",
@@ -935,23 +918,17 @@ var BlockletEvents = Object.freeze({
935
918
  componentUpgraded: "blocklet.componentUpgraded",
936
919
  componentUpgradeFailed: "blocklet.componentUpgradeFailed",
937
920
  componentRemoved: "blocklet.componentRemoved",
938
- // 备份还原进度
939
921
  backupProgress: "blocklet.backupProgress",
940
922
  restoreProgress: "blocklet.restoreProgress",
941
923
  downloadBundleProgress: "blocklet.downloadBundleProgress",
942
- // state updated
943
924
  updated: "blocklet.updated",
944
925
  domainStatus: "blocklet.domainStatus",
945
926
  storeChange: "blocklet.storeChange",
946
927
  appDidChanged: "blocklet.appDidChanged",
947
- // purchase
948
928
  purchaseChange: "blocklet.purchaseChange",
949
- // cert
950
929
  certError: "blocklet.certError",
951
930
  certIssued: "blocklet.certIssued",
952
- // did-space
953
931
  spaceConnected: "blocklet.spaceConnected",
954
- // install by nft
955
932
  nftConsumed: "blocklet.nftConsumed"
956
933
  });
957
934
  var BlockletInternalEvents = Object.freeze({
@@ -965,7 +942,6 @@ var BlockletInternalEvents = Object.freeze({
965
942
  componentRemoved: "blocklet._componentRemoved",
966
943
  componentConfigChanged: "blocklet._componentConfigChanged",
967
944
  componentsUpdated: "blocklet.componentsUpdated"
968
- // deprecated, for backward compatibility
969
945
  });
970
946
  var TeamEvents = Object.freeze({
971
947
  userAdded: "user.added",
@@ -1060,13 +1036,11 @@ var BLOCKLET_LATEST_SPEC_VERSION = "1.2.8";
1060
1036
  var BLOCKLET_LATEST_REQUIREMENT_SERVER = ">=1.7.0";
1061
1037
  var BLOCKLET_LATEST_REQUIREMENT_ABTNODE = ">=1.5.15";
1062
1038
  var BLOCKLET_CONFIGURABLE_KEY = {
1063
- // APP Config Key that start with BLOCKLET_ cannot set to child component
1064
1039
  BLOCKLET_CLUSTER_SIZE: "BLOCKLET_CLUSTER_SIZE",
1065
1040
  BLOCKLET_APP_NAME: "BLOCKLET_APP_NAME",
1066
1041
  BLOCKLET_APP_DESCRIPTION: "BLOCKLET_APP_DESCRIPTION",
1067
1042
  BLOCKLET_APP_SK: "BLOCKLET_APP_SK",
1068
1043
  BLOCKLET_APP_LOGO: "BLOCKLET_APP_LOGO",
1069
- // deprecated
1070
1044
  BLOCKLET_APP_LOGO_SQUARE: "BLOCKLET_APP_LOGO_SQUARE",
1071
1045
  BLOCKLET_APP_LOGO_RECT: "BLOCKLET_APP_LOGO_RECT",
1072
1046
  BLOCKLET_APP_LOGO_FAVICON: "BLOCKLET_APP_LOGO_FAVICON",
@@ -1074,20 +1048,16 @@ var BLOCKLET_CONFIGURABLE_KEY = {
1074
1048
  BLOCKLET_APP_LANGUAGES: "BLOCKLET_APP_LANGUAGES",
1075
1049
  BLOCKLET_PASSPORT_COLOR: "BLOCKLET_PASSPORT_COLOR",
1076
1050
  BLOCKLET_WALLET_TYPE: "BLOCKLET_WALLET_TYPE",
1077
- // deprecated
1078
1051
  BLOCKLET_DELETABLE: "BLOCKLET_DELETABLE",
1079
1052
  BLOCKLET_APP_TENANT_MODE: "BLOCKLET_APP_TENANT_MODE",
1080
1053
  BLOCKLET_APP_COPYRIGHT_OWNER: "BLOCKLET_APP_COPYRIGHT_OWNER",
1081
1054
  BLOCKLET_APP_COPYRIGHT_YEAR: "BLOCKLET_APP_COPYRIGHT_YEAR",
1082
- // 应用使用 DID Spaces 存储 文件/nft 的时候使用的环境变量
1083
1055
  BLOCKLET_APP_SPACE_ENDPOINT: "BLOCKLET_APP_SPACE_ENDPOINT",
1084
1056
  BLOCKLET_APP_SPACES_URL: "BLOCKLET_APP_SPACES_URL",
1085
- // 应用使用 DID Spaces 备份的时候使用的环境变量
1086
1057
  BLOCKLET_APP_BACKUP_ENDPOINT: "BLOCKLET_APP_BACKUP_ENDPOINT",
1087
1058
  BLOCKLET_APP_CHAIN_HOST: "BLOCKLET_APP_CHAIN_HOST",
1088
1059
  BLOCKLET_APP_CHAIN_TYPE: "BLOCKLET_APP_CHAIN_TYPE",
1089
1060
  BLOCKLET_APP_CHAIN_ID: "BLOCKLET_APP_CHAIN_ID",
1090
- // Component Key
1091
1061
  COMPONENT_ACCESS_WHO: "COMPONENT_ACCESS_WHO"
1092
1062
  };
1093
1063
  var DID_SPACES = {
@@ -1098,13 +1068,9 @@ var DID_SPACES = {
1098
1068
  }
1099
1069
  };
1100
1070
  var BLOCKLET_APP_SPACE_REQUIREMENT = {
1101
- // 安装应用的时候,启动流程必须绑定 DID Space
1102
1071
  REQUIRED: "required",
1103
1072
  REQUIRED_ON_SETUP: "requiredOnSetup",
1104
- // 等价于 REQUIRED
1105
- // 安装应用的时候,绑定 DID Space 是可选的
1106
1073
  OPTIONAL: "optional",
1107
- // 所有的数据都将存储到用户各自的 DID Space
1108
1074
  REQUIRED_ON_CONNECT: "requiredOnConnect"
1109
1075
  };
1110
1076
  var CHAIN_INFO_CONFIG = {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.30-beta-b7f31b10",
6
+ "version": "1.16.30-beta-b80c7bcd",
7
7
  "description": "Blocklet constants",
8
8
  "main": "index.js",
9
9
  "type": "commonjs",
@@ -36,5 +36,5 @@
36
36
  "ts-jest": "^29.1.1",
37
37
  "typescript": "^5.0.4"
38
38
  },
39
- "gitHead": "2d429b619b7b54b5603fb05761d3acd9ff674c2c"
39
+ "gitHead": "9d68833290b1a59357b7c362018416b82b5d1503"
40
40
  }