@blocklet/constant 1.16.17-beta-d282d63e → 1.16.17-beta-4f13d99d

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 +3 -0
  2. package/index.js +4 -1
  3. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -113,6 +113,8 @@ export declare const PROJECT: {
113
113
  draft: string;
114
114
  published: string;
115
115
  };
116
+ MAX_NOTE_LENGTH: number;
117
+ MAX_INTRO_LENGTH: number;
116
118
  };
117
119
  export declare const BLOCKLET_DEFAULT_VERSION = "1.0.0";
118
120
  export declare const BLOCKLET_UPLOADS_DIR = "__uploads";
@@ -230,4 +232,5 @@ export declare const LOGIN_PROVIDER: {
230
232
  export declare const APP_CONFIG_DIR = "/.config";
231
233
  export declare const APP_CONFIG_FILE_PATH = "/.config/config.json";
232
234
  export declare const COMPONENT_ENV_FILE_NAME = "env";
235
+ export declare const MAX_TITLE_LENGTH = 40;
233
236
  export {};
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  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.PROJECT = 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_NAME = exports.BLOCKLET_RELEASE_FOLDER_NAME = 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;
4
- 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 = exports.CHAIN_PROP_MAP = exports.RESTORE_PROGRESS_STATUS = exports.CHAIN_INFO_CONFIG = void 0;
4
+ exports.MAX_TITLE_LENGTH = 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 = exports.CHAIN_PROP_MAP = exports.RESTORE_PROGRESS_STATUS = exports.CHAIN_INFO_CONFIG = void 0;
5
5
  const fromEntry = (entries) => (v) => {
6
6
  const match = Object.entries(entries).find((x) => x[1] === Number(v));
7
7
  return match ? match[0] : 'unknown';
@@ -186,6 +186,8 @@ exports.PROJECT = {
186
186
  draft: 'draft',
187
187
  published: 'published',
188
188
  },
189
+ MAX_NOTE_LENGTH: 1000,
190
+ MAX_INTRO_LENGTH: 3000,
189
191
  };
190
192
  exports.BLOCKLET_DEFAULT_VERSION = '1.0.0';
191
193
  exports.BLOCKLET_UPLOADS_DIR = '__uploads';
@@ -311,3 +313,4 @@ exports.LOGIN_PROVIDER = {
311
313
  exports.APP_CONFIG_DIR = '/.config';
312
314
  exports.APP_CONFIG_FILE_PATH = '/.config/config.json';
313
315
  exports.COMPONENT_ENV_FILE_NAME = 'env';
316
+ exports.MAX_TITLE_LENGTH = 40;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.17-beta-d282d63e",
6
+ "version": "1.16.17-beta-4f13d99d",
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": "b675be55d76903e8b92d98cfca7d960fcfedd98f"
35
+ "gitHead": "005478c4b14448f2ae896ae363972afbde1d7e7b"
36
36
  }