@medusajs/types
Advanced tools
Comparing version 1.8.6 to 1.8.7-snapshot-20230516140814
@@ -1,3 +0,3 @@ | ||
import { DomainKey, HookPointKey, LoadedWidget, WidgetsConfig } from "./widget"; | ||
export declare type InjectionZone = `${DomainKey}.${HookPointKey}`; | ||
import { DomainKey, HookPointKey, LoadedWidget, PageKey, PagePointKey, StumbDomainKey, WidgetsConfig } from "./widget"; | ||
export declare type InjectionZone = `${DomainKey}.${HookPointKey}` | `${PageKey}.${PagePointKey}` | `${StumbDomainKey}`; | ||
export declare type InjectionZones = Map<InjectionZone, LoadedWidget[]>; | ||
@@ -4,0 +4,0 @@ export interface Application { |
@@ -5,9 +5,20 @@ import { IBaseExtension, IBaseLoadedExtension } from "./common"; | ||
} | ||
export declare type DomainKey = "product" | "product_collection" | "order" | "customer"; | ||
export declare type HookPointKey = "details"; | ||
declare type HookPoint = { | ||
export declare type DomainKey = "product" | "product_collection" | "order" | "draft_order" | "customer" | "customer_group" | "discount" | "price_list" | "gift_card"; | ||
export declare type StumbDomainKey = "custom_gift_card"; | ||
export declare type PageKey = "login"; | ||
export declare type HookPointKey = "details" | "list"; | ||
export declare type PagePointKey = "before" | "after"; | ||
export declare type HookPoint = { | ||
[key in HookPointKey]?: Widget[]; | ||
}; | ||
export declare type PagePoint = { | ||
[key in PagePointKey]?: Widget[]; | ||
}; | ||
export declare type WidgetConfigKey = DomainKey | StumbDomainKey | PageKey; | ||
export declare type WidgetsConfig = { | ||
[key in DomainKey]?: HookPoint; | ||
} & { | ||
[key in StumbDomainKey]?: Widget[]; | ||
} & { | ||
[key in PageKey]?: PagePoint; | ||
}; | ||
@@ -21,2 +32,1 @@ export interface LoadedWidget extends Widget, IBaseLoadedExtension { | ||
} | ||
export {}; |
@@ -0,1 +1,2 @@ | ||
export * from "./admin"; | ||
export * from "./bundles"; | ||
@@ -2,0 +3,0 @@ export * from "./cache"; |
@@ -17,2 +17,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./admin"), exports); | ||
__exportStar(require("./bundles"), exports); | ||
@@ -19,0 +20,0 @@ __exportStar(require("./cache"), exports); |
{ | ||
"name": "@medusajs/types", | ||
"version": "1.8.6", | ||
"version": "1.8.7-snapshot-20230516140814", | ||
"description": "Medusa Types definition", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"repository": { | ||
@@ -22,2 +23,3 @@ "type": "git", | ||
"cross-env": "^5.2.1", | ||
"react-router-dom": "6.8.0", | ||
"typeorm": "^0.3.16", | ||
@@ -24,0 +26,0 @@ "typescript": "^4.4.4", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59308
6
100
1378
2