enonic-types
Advanced tools
Comparing version 0.3.17 to 0.3.18
@@ -120,1 +120,30 @@ declare module "*/lib/guillotine" { | ||
} | ||
declare module "*/lib/guillotine/macro" { | ||
namespace guillotineMacroLib { | ||
interface GuillotineMacroLibrary { | ||
processHtml(params: ProcessHtmlParams): ProcessHtmlResult; | ||
} | ||
interface ProcessHtmlParams { | ||
value: string; | ||
type?: string; | ||
imageWidths?: Array<number>; | ||
imageSizes?: string; | ||
} | ||
interface ProcessHtmlResult<MacroConfig = unknown> { | ||
raw: string; | ||
processedHtml: string; | ||
macrosAsJson: Array<{ | ||
ref: string; | ||
name: string; | ||
descriptor: string; | ||
config: MacroConfig; | ||
}>; | ||
images: Array<{ | ||
imageId: string; | ||
imageRef: string; | ||
}>; | ||
} | ||
} | ||
const guillotineMacroLib: guillotineMacroLib.GuillotineMacroLibrary; | ||
export = guillotineMacroLib; | ||
} |
@@ -15,3 +15,3 @@ declare module "*/lib/menu" { | ||
*/ | ||
getSubMenus(parentContent: import("/lib/xp/content").Content<any> | import("/lib/xp/content").Site<any>, levels?: number, params?: GetMenuParams): ReadonlyArray<MenuItem>; | ||
getSubMenus(parentContent: import("/lib/xp/content").Content<any> | import("/lib/xp/content").Site<any>, levels?: number, params?: GetMenuParams): Array<MenuItem>; | ||
} | ||
@@ -22,7 +22,7 @@ interface MenuTree { | ||
*/ | ||
readonly menuItems: ReadonlyArray<MenuItem>; | ||
menuItems: Array<MenuItem>; | ||
/** | ||
* The ariaLabel used for this menu | ||
*/ | ||
readonly ariaLabel?: string; | ||
ariaLabel?: string; | ||
} | ||
@@ -56,11 +56,11 @@ interface GetBreadcrumbMenuParams { | ||
interface BreadcrumbMenu { | ||
readonly divider: string | null; | ||
readonly items: ReadonlyArray<{ | ||
readonly title: string; | ||
readonly text: string; | ||
readonly url: string; | ||
readonly active: boolean; | ||
readonly type: string; | ||
divider: string | null; | ||
items: Array<{ | ||
title: string; | ||
text: string; | ||
url: string; | ||
active: boolean; | ||
type: string; | ||
}>; | ||
readonly ariaLabel?: string; | ||
ariaLabel?: string; | ||
} | ||
@@ -85,15 +85,15 @@ type GetMenuTreeParams = GetMenuParams & { | ||
interface MenuItem { | ||
readonly title: string; | ||
readonly displayName: string; | ||
readonly menuName: string | null; | ||
readonly path: string; | ||
readonly name: string; | ||
readonly id: string; | ||
readonly hasChildren: boolean; | ||
readonly inPath: boolean; | ||
readonly isActive: boolean; | ||
readonly newWindow: boolean; | ||
readonly type: string; | ||
readonly url: string; | ||
readonly children: ReadonlyArray<MenuItem>; | ||
title: string; | ||
displayName: string; | ||
menuName: string | null; | ||
path: string; | ||
name: string; | ||
id: string; | ||
hasChildren: boolean; | ||
inPath: boolean; | ||
isActive: boolean; | ||
newWindow: boolean; | ||
type: string; | ||
url: string; | ||
children: Array<MenuItem>; | ||
} | ||
@@ -100,0 +100,0 @@ } |
{ | ||
"name": "enonic-types", | ||
"sideEffects": false, | ||
"version": "0.3.17", | ||
"version": "0.3.18", | ||
"description": "TypeScript types for Enonic XP", | ||
@@ -29,4 +29,4 @@ "typings": "index.d.ts", | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^5.12.0", | ||
"@typescript-eslint/parser": "^5.12.0", | ||
"@typescript-eslint/eslint-plugin": "^5.12.1", | ||
"@typescript-eslint/parser": "^5.12.1", | ||
"copyfiles": "^2.4.1", | ||
@@ -33,0 +33,0 @@ "eslint": "^8.9.0", |
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
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
265397
7179