@koralabs/kora-labs-common 5.1.30 → 5.1.32

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.
@@ -1,4 +1,5 @@
1
1
  export declare const IS_SERVER: boolean;
2
+ export declare const IS_LOCAL: boolean;
2
3
  export declare const NETWORK: string;
3
4
  export declare const IS_PRODUCTION: boolean;
4
5
  export declare const AUTH_GRANT_DURATION: number;
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  var _a, _b, _c;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.MINTED_OG_LIST = exports.TOU_URL = exports.AUTH_GRANT_DURATION = exports.IS_PRODUCTION = exports.NETWORK = exports.IS_SERVER = void 0;
4
+ exports.MINTED_OG_LIST = exports.TOU_URL = exports.AUTH_GRANT_DURATION = exports.IS_PRODUCTION = exports.NETWORK = exports.IS_LOCAL = exports.IS_SERVER = void 0;
5
5
  const mintedOgList_1 = require("./mintedOgList");
6
6
  exports.IS_SERVER = typeof process !== 'undefined' && typeof process.versions.node !== 'undefined';
7
+ exports.IS_LOCAL = exports.IS_SERVER ? process.env.IS_LOCAL === 'true' : window.location.host.includes('localhost');
7
8
  exports.NETWORK = (_b = (_a = process.env.NETWORK) === null || _a === void 0 ? void 0 : _a.toLowerCase()) !== null && _b !== void 0 ? _b : 'preview';
8
9
  exports.IS_PRODUCTION = exports.IS_SERVER
9
10
  ? ((_c = process.env.NODE_ENV) === null || _c === void 0 ? void 0 : _c.trim()) === 'production' && exports.NETWORK == 'mainnet'
@@ -71,7 +71,11 @@ export interface IPersonalizationPortal {
71
71
  export declare enum ScriptType {
72
72
  PZ_CONTRACT = "pz_contract",
73
73
  SUB_HANDLE_SETTINGS = "sub_handle_settings",
74
- MARKETPLACE_CONTRACT = "marketplace_contract"
74
+ MARKETPLACE_CONTRACT = "marketplace_contract",
75
+ DEMI_MINT = "demi_mint",
76
+ DEMI_MINT_PROXY = "demi_mint_proxy",
77
+ DEMI_MINTING_DATA = "demi_minting_data",
78
+ DEMI_ORDERS = "demi_orders"
75
79
  }
76
80
  export interface ScriptDetails {
77
81
  handle: string;
@@ -14,6 +14,10 @@ var ScriptType;
14
14
  ScriptType["PZ_CONTRACT"] = "pz_contract";
15
15
  ScriptType["SUB_HANDLE_SETTINGS"] = "sub_handle_settings";
16
16
  ScriptType["MARKETPLACE_CONTRACT"] = "marketplace_contract";
17
+ ScriptType["DEMI_MINT"] = "demi_mint";
18
+ ScriptType["DEMI_MINT_PROXY"] = "demi_mint_proxy";
19
+ ScriptType["DEMI_MINTING_DATA"] = "demi_minting_data";
20
+ ScriptType["DEMI_ORDERS"] = "demi_orders";
17
21
  })(ScriptType = exports.ScriptType || (exports.ScriptType = {}));
18
22
  var HandleType;
19
23
  (function (HandleType) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koralabs/kora-labs-common",
3
- "version": "5.1.30",
3
+ "version": "5.1.32",
4
4
  "description": "Kora Labs Common Utilities",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -1,4 +1,5 @@
1
1
  /// <reference types="node" />
2
+ /// <reference types="node" />
2
3
  export { designerSchema } from './schema/designer';
3
4
  export { handleDatumSchema } from './schema/handleData';
4
5
  export { marketplaceDatumSchema } from './schema/marketplaceDatum';