Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

enonic-types

Package Overview
Dependencies
Maintainers
1
Versions
179
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enonic-types - npm Package Compare versions

Comparing version 0.3.17 to 0.3.18

29

guillotine.d.ts

@@ -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;
}

48

menu.d.ts

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc