@blocklet/constant 1.16.15-beta-9318a201 → 1.16.15-beta-ed0db59e

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 +4 -0
  2. package/index.js +5 -1
  3. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -61,6 +61,7 @@ export declare const BlockletInternalEvents: Readonly<{
61
61
  componentStarted: "blocklet._componentStarted";
62
62
  componentStopped: "blocklet._componentStopped";
63
63
  componentRemoved: "blocklet._componentRemoved";
64
+ componentConfigChanged: "blocklet._componentConfigChanged";
64
65
  componentsUpdated: "blocklet.componentsUpdated";
65
66
  }>;
66
67
  export declare const BLOCKLET_PLATFORMS: string[];
@@ -209,4 +210,7 @@ export declare const LOGIN_PROVIDER: {
209
210
  FEDERATED: string;
210
211
  NFT: string;
211
212
  };
213
+ export declare const APP_CONFIG_DIR = "/.config";
214
+ export declare const APP_CONFIG_FILE_PATH = "/.config/config.json";
215
+ export declare const COMPONENT_ENV_FILE_NAME = "env";
212
216
  export {};
package/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable prettier/prettier */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.CHAIN_PROP_MAP = exports.RESTORE_PROGRESS_STATUS = exports.CHAIN_INFO_CONFIG = exports.BLOCKLET_APP_SPACE_ENDPOINTS = exports.BLOCKLET_CONFIGURABLE_KEY = exports.BLOCKLET_LATEST_REQUIREMENT_ABTNODE = exports.BLOCKLET_LATEST_REQUIREMENT_SERVER = exports.BLOCKLET_LATEST_SPEC_VERSION = exports.BLOCKLET_UPLOADS_DIR = exports.BLOCKLET_DEFAULT_VERSION = exports.BLOCKLET_PREFERENCE_PREFIX = exports.BLOCKLET_PREFERENCE_FILE = exports.BLOCKLET_META_FILE_ALT = exports.BLOCKLET_META_FILE = exports.BLOCKLET_ENTRY_FILE = exports.BLOCKLET_BUNDLE_FILE = exports.BLOCKLET_BUNDLE_FOLDER = exports.BLOCKLET_RELEASE_FILE = exports.BLOCKLET_RELEASE_FOLDER = exports.BLOCKLET_DEFAULT_PATH_REWRITE = exports.BLOCKLET_DEFAULT_PORT_NAME = exports.BLOCKLET_DYNAMIC_PATH_PREFIX = exports.BLOCKLET_INTERFACE_PROTOCOLS = exports.BLOCKLET_INTERFACE_PROTOCOL_UDP = exports.BLOCKLET_INTERFACE_PROTOCOL_TCP = exports.BLOCKLET_INTERFACE_PROTOCOL_HTTP = exports.BLOCKLET_STANDARD_INTERFACES = exports.BLOCKLET_UI_INTERFACES = exports.BLOCKLET_INTERFACE_WELLKNOWN = exports.BLOCKLET_INTERFACE_PUBLIC = exports.BLOCKLET_INTERFACE_TYPES = exports.BLOCKLET_INTERFACE_TYPE_WELLKNOWN = exports.BLOCKLET_INTERFACE_TYPE_SERVICE = exports.BLOCKLET_INTERFACE_TYPE_WEB = exports.BLOCKLET_FACTORY_SHARES = exports.BLOCKLET_MODES = exports.BLOCKLET_ARCHITECTURES = exports.BLOCKLET_PLATFORMS = exports.BlockletInternalEvents = exports.BlockletEvents = exports.BLOCKLET_GROUPS = exports.BlockletGroup = exports.toBlockletSource = exports.fromBlockletSource = exports.BlockletSource = exports.toBlockletStatus = exports.fromBlockletStatus = exports.SUSPENDED_REASON = exports.BLOCKLET_CONTROLLER_STATUS = exports.BlockletStatus = void 0;
5
- exports.LOGIN_PROVIDER = exports.SUPPORTED_LANGUAGES = exports.CHAIN_PROP_MAP_REVERSE = void 0;
5
+ exports.COMPONENT_ENV_FILE_NAME = exports.APP_CONFIG_FILE_PATH = exports.APP_CONFIG_DIR = exports.LOGIN_PROVIDER = exports.SUPPORTED_LANGUAGES = exports.CHAIN_PROP_MAP_REVERSE = void 0;
6
6
  const fromEntry = (entries) => (v) => {
7
7
  const match = Object.entries(entries).find((x) => x[1] === Number(v));
8
8
  return match ? match[0] : 'unknown';
@@ -112,6 +112,7 @@ exports.BlockletInternalEvents = Object.freeze({
112
112
  componentStarted: 'blocklet._componentStarted',
113
113
  componentStopped: 'blocklet._componentStopped',
114
114
  componentRemoved: 'blocklet._componentRemoved',
115
+ componentConfigChanged: 'blocklet._componentConfigChanged',
115
116
  componentsUpdated: 'blocklet.componentsUpdated', // deprecated, for backward compatibility
116
117
  });
117
118
  exports.BLOCKLET_PLATFORMS = ['aix', 'darwin', 'freebsd', 'linux', 'openbsd', 'sunos', 'win32'];
@@ -290,3 +291,6 @@ exports.LOGIN_PROVIDER = {
290
291
  FEDERATED: 'federated',
291
292
  NFT: 'nft',
292
293
  };
294
+ exports.APP_CONFIG_DIR = '/.config';
295
+ exports.APP_CONFIG_FILE_PATH = '/.config/config.json';
296
+ exports.COMPONENT_ENV_FILE_NAME = 'env';
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.15-beta-9318a201",
6
+ "version": "1.16.15-beta-ed0db59e",
7
7
  "description": "Blocklet constants",
8
8
  "main": "index.js",
9
9
  "files": [
@@ -32,5 +32,5 @@
32
32
  "ts-jest": "^27.1.5",
33
33
  "typescript": "^5.0.4"
34
34
  },
35
- "gitHead": "f3722cbd4fe10c5fa083cad7e859ecff6095060d"
35
+ "gitHead": "647ebe45f6214ea5c284c9234f1319b6ff72f915"
36
36
  }