enonic-types
Advanced tools
Comparing version 0.5.0 to 7.11.0-RC3
@@ -1,47 +0,45 @@ | ||
/// <reference path="admin.d.ts" /> | ||
/// <reference path="auditlog.d.ts" /> | ||
/// <reference path="auth.d.ts" /> | ||
/// <reference path="cache.d.ts" /> | ||
/// <reference path="cluster.d.ts" /> | ||
/// <reference path="common.d.ts" /> | ||
/// <reference path="content.d.ts" /> | ||
/// <reference path="context.d.ts" /> | ||
/// <reference path="controller.d.ts" /> | ||
/// <reference path="cron.d.ts" /> | ||
/// <reference path="encoding.d.ts" /> | ||
/// <reference path="event.d.ts" /> | ||
/// <reference path="explorer.d.ts" /> | ||
/// <reference path="export.d.ts" /> | ||
/// <reference path="freemarker.d.ts" /> | ||
/// <reference path="graphql.d.ts" /> | ||
/// <reference path="grid.d.ts" /> | ||
/// <reference path="guillotine.d.ts" /> | ||
/// <reference path="http.d.ts" /> | ||
/// <reference path="i18n.d.ts" /> | ||
/// <reference path="io.d.ts" /> | ||
/// <reference path="mail.d.ts" /> | ||
/// <reference path="menu.d.ts" /> | ||
/// <reference path="mustache.d.ts" /> | ||
/// <reference path="node.d.ts" /> | ||
/// <reference path="notifications.d.ts" /> | ||
/// <reference path="portal.d.ts" /> | ||
/// <reference path="project.d.ts" /> | ||
/// <reference path="qr.d.ts" /> | ||
/// <reference path="react4xp.d.ts" /> | ||
/// <reference path="recaptcha.d.ts" /> | ||
/// <reference path="repo.d.ts" /> | ||
/// <reference path="router.d.ts" /> | ||
/// <reference path="scheduler.d.ts" /> | ||
/// <reference path="sentry.d.ts" /> | ||
/// <reference path="session.d.ts" /> | ||
/// <reference path="sql.d.ts" /> | ||
/// <reference path="static.d.ts" /> | ||
/// <reference path="task.d.ts" /> | ||
/// <reference path="testing.d.ts" /> | ||
/// <reference path="thymeleaf.d.ts" /> | ||
/// <reference path="turbo.d.ts" /> | ||
/// <reference path="value.d.ts" /> | ||
/// <reference path="vhost.d.ts" /> | ||
/// <reference path="websocket.d.ts" /> | ||
/// <reference path="xslt.d.ts" /> | ||
/// <reference path="cristin.d.ts" /> | ||
/// <reference path="node_modules/@item-enonic-types/global/index.d.ts" /> | ||
/// <reference path="modules/admin.d.ts" /> | ||
/// <reference path="modules/auditlog.d.ts" /> | ||
/// <reference path="modules/auth.d.ts" /> | ||
/// <reference path="modules/cache.d.ts" /> | ||
/// <reference path="modules/cluster.d.ts" /> | ||
/// <reference path="modules/common.d.ts" /> | ||
/// <reference path="modules/content.d.ts" /> | ||
/// <reference path="modules/context.d.ts" /> | ||
/// <reference path="modules/cron.d.ts" /> | ||
/// <reference path="modules/event.d.ts" /> | ||
/// <reference path="modules/explorer.d.ts" /> | ||
/// <reference path="modules/export.d.ts" /> | ||
/// <reference path="modules/freemarker.d.ts" /> | ||
/// <reference path="modules/graphql.d.ts" /> | ||
/// <reference path="modules/graphql-playground.d.ts" /> | ||
/// <reference path="modules/grid.d.ts" /> | ||
/// <reference path="modules/guillotine.d.ts" /> | ||
/// <reference path="modules/http-client.d.ts" /> | ||
/// <reference path="modules/i18n.d.ts" /> | ||
/// <reference path="modules/io.d.ts" /> | ||
/// <reference path="modules/mail.d.ts" /> | ||
/// <reference path="modules/menu.d.ts" /> | ||
/// <reference path="modules/mustache.d.ts" /> | ||
/// <reference path="modules/node.d.ts" /> | ||
/// <reference path="modules/notifications.d.ts" /> | ||
/// <reference path="modules/portal.d.ts" /> | ||
/// <reference path="modules/project.d.ts" /> | ||
/// <reference path="modules/qrcode.d.ts" /> | ||
/// <reference path="modules/react4xp.d.ts" /> | ||
/// <reference path="modules/recaptcha.d.ts" /> | ||
/// <reference path="modules/repo.d.ts" /> | ||
/// <reference path="modules/router.d.ts" /> | ||
/// <reference path="modules/scheduler.d.ts" /> | ||
/// <reference path="modules/sql.d.ts" /> | ||
/// <reference path="modules/static.d.ts" /> | ||
/// <reference path="modules/task.d.ts" /> | ||
/// <reference path="modules/testing.d.ts" /> | ||
/// <reference path="modules/text-encoding.d.ts" /> | ||
/// <reference path="modules/thymeleaf.d.ts" /> | ||
/// <reference path="modules/turbo-streams.d.ts" /> | ||
/// <reference path="modules/value.d.ts" /> | ||
/// <reference path="modules/vhost.d.ts" /> | ||
/// <reference path="modules/websocket.d.ts" /> | ||
/// <reference path="modules/xslt.d.ts" /> |
102
libs.d.ts
@@ -0,55 +1,51 @@ | ||
/// <reference path="index.d.ts" /> | ||
export interface EnonicLibraryMap { | ||
"/lib/xp/admin": typeof import("/lib/xp/admin"); | ||
"/lib/xp/auditlog": typeof import("/lib/xp/auditlog"); | ||
"/lib/xp/auth": typeof import("/lib/xp/auth"); | ||
"/lib/cache": typeof import("/lib/cache"); | ||
"/lib/xp/cluster": typeof import("/lib/xp/cluster"); | ||
"/lib/xp/common": typeof import("/lib/xp/common"); | ||
"/lib/xp/content": typeof import("/lib/xp/content"); | ||
"/lib/xp/context": typeof import("/lib/xp/context"); | ||
"/lib/cristin": typeof import("/lib/cristin"); | ||
"/lib/cristin/service": typeof import("/lib/cristin/service"); | ||
"/lib/cristin/storage": typeof import("/lib/cristin/storage"); | ||
"/lib/cristin/constants": typeof import("/lib/cristin/constants"); | ||
"/lib/cron": typeof import("/lib/cron"); | ||
"/lib/text-encoding": typeof import("/lib/text-encoding"); | ||
"/lib/xp/event": typeof import("/lib/xp/event"); | ||
"/lib/explorer": typeof import("/lib/explorer"); | ||
"/lib/explorer/model/2/constants": typeof import("/lib/explorer/model/2/constants"); | ||
"/lib/explorer/document": typeof import("/lib/explorer/document"); | ||
"/lib/explorer/client": typeof import("/lib/explorer/client"); | ||
"/lib/xp/export": typeof import("/lib/xp/export"); | ||
"/lib/tineikt/freemarker": typeof import("/lib/tineikt/freemarker"); | ||
"/lib/graphql": typeof import("/lib/graphql"); | ||
"/lib/graphql-playground": typeof import("/lib/graphql-playground"); | ||
"/lib/xp/grid": typeof import("/lib/xp/grid"); | ||
"/lib/guillotine": typeof import("/lib/guillotine"); | ||
"/lib/http-client": typeof import("/lib/http-client"); | ||
"/lib/xp/i18n": typeof import("/lib/xp/i18n"); | ||
"/lib/xp/io": typeof import("/lib/xp/io"); | ||
"/lib/xp/mail": typeof import("/lib/xp/mail"); | ||
"/lib/menu": typeof import("/lib/menu"); | ||
"/lib/mustache": typeof import("/lib/mustache"); | ||
"/lib/xp/node": typeof import("/lib/xp/node"); | ||
"/lib/notifications": typeof import("/lib/notifications"); | ||
"/lib/xp/portal": typeof import("/lib/xp/portal"); | ||
"/lib/xp/project": typeof import("/lib/xp/project"); | ||
"/lib/qrcode": typeof import("/lib/qrcode"); | ||
"/lib/enonic/react4xp": typeof import("/lib/enonic/react4xp"); | ||
"/lib/recaptcha": typeof import("/lib/recaptcha"); | ||
"/lib/xp/repo": typeof import("/lib/xp/repo"); | ||
"/lib/router": typeof import("/lib/router"); | ||
"/lib/xp/scheduler": typeof import("/lib/xp/scheduler"); | ||
"/lib/sentry": typeof import("/lib/sentry"); | ||
"/lib/session": typeof import("/lib/session"); | ||
"/lib/enonic/static": typeof import("/lib/enonic/static"); | ||
"/lib/sql": typeof import("/lib/sql"); | ||
"/lib/xp/task": typeof import("/lib/xp/task"); | ||
"/lib/xp/testing": typeof import("/lib/xp/testing"); | ||
"/lib/thymeleaf": typeof import("/lib/thymeleaf"); | ||
"/lib/turbo-streams": typeof import("/lib/turbo-streams"); | ||
"/lib/xp/value": typeof import("/lib/xp/value"); | ||
"/lib/xp/vhost": typeof import("/lib/xp/vhost"); | ||
"/lib/xp/websocket": typeof import("/lib/xp/websocket"); | ||
"/lib/xslt": typeof import("/lib/xslt"); | ||
"/lib/xp/admin": typeof import("/lib/xp/admin"); | ||
"/lib/xp/auditlog": typeof import("/lib/xp/auditlog"); | ||
"/lib/xp/auth": typeof import("/lib/xp/auth"); | ||
"/lib/cache": typeof import("/lib/cache"); | ||
"/lib/xp/cluster": typeof import("/lib/xp/cluster"); | ||
"/lib/xp/common": typeof import("/lib/xp/common"); | ||
"/lib/xp/content": typeof import("/lib/xp/content"); | ||
"/lib/xp/context": typeof import("/lib/xp/context"); | ||
"/lib/cron": typeof import("/lib/cron"); | ||
"/lib/text-encoding": typeof import("/lib/text-encoding"); | ||
"/lib/xp/event": typeof import("/lib/xp/event"); | ||
"/lib/explorer": typeof import("/lib/explorer"); | ||
"/lib/explorer/model/2/constants": typeof import("/lib/explorer/model/2/constants"); | ||
"/lib/explorer/document": typeof import("/lib/explorer/document"); | ||
"/lib/explorer/client": typeof import("/lib/explorer/client"); | ||
"/lib/xp/export": typeof import("/lib/xp/export"); | ||
"/lib/tineikt/freemarker": typeof import("/lib/tineikt/freemarker"); | ||
"/lib/graphql": typeof import("/lib/graphql"); | ||
"/lib/graphql-playground": typeof import("/lib/graphql-playground"); | ||
"/lib/xp/grid": typeof import("/lib/xp/grid"); | ||
"/lib/guillotine": typeof import("/lib/guillotine"); | ||
"/lib/http-client": typeof import("/lib/http-client"); | ||
"/lib/xp/i18n": typeof import("/lib/xp/i18n"); | ||
"/lib/xp/io": typeof import("/lib/xp/io"); | ||
"/lib/xp/mail": typeof import("/lib/xp/mail"); | ||
"/lib/menu": typeof import("/lib/menu"); | ||
"/lib/mustache": typeof import("/lib/mustache"); | ||
"/lib/xp/node": typeof import("/lib/xp/node"); | ||
"/lib/notifications": typeof import("/lib/notifications"); | ||
"/lib/xp/portal": typeof import("/lib/xp/portal"); | ||
"/lib/xp/project": typeof import("/lib/xp/project"); | ||
"/lib/qrcode": typeof import("/lib/qrcode"); | ||
"/lib/enonic/react4xp": typeof import("/lib/enonic/react4xp"); | ||
"/lib/recaptcha": typeof import("/lib/recaptcha"); | ||
"/lib/xp/repo": typeof import("/lib/xp/repo"); | ||
"/lib/router": typeof import("/lib/router"); | ||
"/lib/xp/scheduler": typeof import("/lib/xp/scheduler"); | ||
"/lib/enonic/static": typeof import("/lib/enonic/static"); | ||
"/lib/sql": typeof import("/lib/sql"); | ||
"/lib/xp/task": typeof import("/lib/xp/task"); | ||
"/lib/xp/testing": typeof import("/lib/xp/testing"); | ||
"/lib/thymeleaf": typeof import("/lib/thymeleaf"); | ||
"/lib/turbo-streams": typeof import("/lib/turbo-streams"); | ||
"/lib/xp/value": typeof import("/lib/xp/value"); | ||
"/lib/xp/vhost": typeof import("/lib/xp/vhost"); | ||
"/lib/xp/websocket": typeof import("/lib/xp/websocket"); | ||
"/lib/xslt": typeof import("/lib/xslt"); | ||
} |
{ | ||
"name": "enonic-types", | ||
"sideEffects": false, | ||
"version": "0.5.0", | ||
"version": "7.11.0-RC3", | ||
"description": "TypeScript types for Enonic XP", | ||
"typings": "index.d.ts", | ||
"scripts": { | ||
"clean": "rimraf ./*.d.ts && rimraf ./generated && rimraf ./*.tgz", | ||
"copy-dts": "copyfiles -u 1 \"src/generated/**/*.d.ts\" .", | ||
"build": "npm run clean && tsc && npm run copy-dts", | ||
"lint": "eslint --fix 'src/**/*.ts'", | ||
"prepublishOnly": "npm run lint && npm run build", | ||
"json2ts": "json2ts -i src/generated/schemas/ -o src/generated/" | ||
"clean": "rimraf ./*.tgz", | ||
"build": "npm run clean && tsc", | ||
"lint": "eslint --fix './**/*.ts'", | ||
"prepublishOnly": "npm run lint && npm run build" | ||
}, | ||
@@ -29,14 +27,42 @@ "repository": { | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^5.33.0", | ||
"@typescript-eslint/parser": "^5.33.0", | ||
"copyfiles": "^2.4.1", | ||
"eslint": "^8.22.0", | ||
"@typescript-eslint/eslint-plugin": "^5.42.0", | ||
"@typescript-eslint/parser": "^5.42.0", | ||
"eslint": "^8.26.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"json-schema-to-typescript": "^11.0.2", | ||
"prettier": "^2.7.1", | ||
"rimraf": "^3.0.2", | ||
"tsd": "^0.22.0", | ||
"typescript": "^4.7.4" | ||
"tsd": "^0.24.1", | ||
"typescript": "^4.8.4" | ||
}, | ||
"workspaces": [ | ||
"packages/*" | ||
], | ||
"dependencies": { | ||
"@enonic-types/core": "^7.11.0-RC3", | ||
"@enonic-types/global": "^7.11.0-RC3", | ||
"@enonic-types/lib-admin": "^7.11.0-RC3", | ||
"@enonic-types/lib-auditlog": "^7.11.0-RC3", | ||
"@enonic-types/lib-auth": "^7.11.0-RC3", | ||
"@enonic-types/lib-cluster": "^7.11.0-RC3", | ||
"@enonic-types/lib-common": "^7.11.0-RC3", | ||
"@enonic-types/lib-content": "^7.11.0-RC3", | ||
"@enonic-types/lib-context": "^7.11.0-RC3", | ||
"@enonic-types/lib-event": "^7.11.0-RC3", | ||
"@enonic-types/lib-export": "^7.11.0-RC3", | ||
"@enonic-types/lib-grid": "^7.11.0-RC3", | ||
"@enonic-types/lib-i18n": "^7.11.0-RC3", | ||
"@enonic-types/lib-io": "^7.11.0-RC3", | ||
"@enonic-types/lib-mail": "^7.11.0-RC3", | ||
"@enonic-types/lib-node": "^7.11.0-RC3", | ||
"@enonic-types/lib-portal": "^7.11.0-RC3", | ||
"@enonic-types/lib-project": "^7.11.0-RC3", | ||
"@enonic-types/lib-repo": "^7.11.0-RC3", | ||
"@enonic-types/lib-scheduler": "^7.11.0-RC3", | ||
"@enonic-types/lib-task": "^7.11.0-RC3", | ||
"@enonic-types/lib-value": "^7.11.0-RC3", | ||
"@enonic-types/lib-vhost": "^7.11.0-RC3", | ||
"@enonic-types/lib-websocket": "^7.11.0-RC3", | ||
"@item-enonic-types/lib-turbo-streams": "^1.0.4" | ||
} | ||
} |
@@ -28,3 +28,3 @@ # TypeScript types for Enonic XP | ||
"./.xp-codegen" | ||
], | ||
] | ||
}, | ||
@@ -88,7 +88,5 @@ "include": [ | ||
```typescript | ||
type LibMap = import('enonic-types/libs').EnonicLibraryMap; | ||
declare const require: <K extends keyof LibMap | string = string>( | ||
declare const require: <K extends keyof XpLibraries | string = string>( | ||
path: K | ||
) => K extends keyof LibMap ? LibMap[K] : unknown; | ||
) => K extends keyof XpLibraries ? XpLibraries[K] : unknown; | ||
@@ -126,6 +124,4 @@ declare const resolve: ( | ||
```typescript | ||
type LibMap = import("enonic-types/libs").EnonicLibraryMap; | ||
declare const __non_webpack_require__: <K extends keyof LibMap | string = string>(path: K) => K extends keyof LibMap | ||
? LibMap[K] | ||
declare const __non_webpack_require__: <K extends keyof XpLibraries | string = string>(path: K) => K extends keyof XpLibraries | ||
? XpLibraries[K] | ||
: any; | ||
@@ -182,1 +178,9 @@ ``` | ||
* [XsltLibrary](./src/xslt.ts) | ||
## Deployment | ||
You can run the following command to bump all XP-packages: | ||
```bash | ||
npm pkg set version=7.10.0 --workspace packages/xp | ||
``` |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
9
124
182
129396
25
1842
1
+ Added@enonic-types/core@7.14.4(transitive)
+ Added@enonic-types/global@7.14.4(transitive)
+ Added@enonic-types/lib-admin@7.14.4(transitive)
+ Added@enonic-types/lib-auditlog@7.14.4(transitive)
+ Added@enonic-types/lib-cluster@7.14.4(transitive)
+ Added@enonic-types/lib-common@7.14.4(transitive)
+ Added@enonic-types/lib-content@7.14.4(transitive)
+ Added@enonic-types/lib-context@7.14.4(transitive)
+ Added@enonic-types/lib-event@7.14.4(transitive)
+ Added@enonic-types/lib-export@7.14.4(transitive)
+ Added@enonic-types/lib-grid@7.14.4(transitive)
+ Added@enonic-types/lib-i18n@7.14.4(transitive)
+ Added@enonic-types/lib-io@7.14.4(transitive)
+ Added@enonic-types/lib-mail@7.14.4(transitive)
+ Added@enonic-types/lib-node@7.14.4(transitive)
+ Added@enonic-types/lib-portal@7.14.4(transitive)
+ Added@enonic-types/lib-project@7.14.4(transitive)
+ Added@enonic-types/lib-repo@7.14.4(transitive)
+ Added@enonic-types/lib-scheduler@7.14.4(transitive)
+ Added@enonic-types/lib-task@7.14.4(transitive)
+ Added@enonic-types/lib-value@7.14.4(transitive)
+ Added@enonic-types/lib-vhost@7.14.4(transitive)
+ Added@enonic-types/lib-websocket@7.14.4(transitive)
+ Added@item-enonic-types/global@7.13.1(transitive)
+ Added@item-enonic-types/lib-turbo-streams@1.1.2(transitive)