Files
Umbraco-CMS/src/Umbraco.Web.UI.Client/package.json

177 lines
7.4 KiB
JSON
Raw Normal View History

2022-05-17 09:22:18 +02:00
{
"name": "@umbraco-cms/backoffice",
"license": "MIT",
"version": "0.0.0",
"type": "module",
"exports": {
".": null,
"./backend-api": "./dist-cms/external/backend-api/index.js",
"./context-api": "./dist-cms/libs/context-api/index.js",
"./controller-api": "./dist-cms/libs/controller-api/index.js",
"./element-api": "./dist-cms/libs/element-api/index.js",
"./extension-api": "./dist-cms/libs/extension-api/index.js",
"./observable-api": "./dist-cms/libs/observable-api/index.js",
"./events": "./dist-cms/shared/umb-events/index.js",
"./models": "./dist-cms/shared/models/index.js",
"./repository": "./dist-cms/shared/repository/index.js",
"./resources": "./dist-cms/shared/resources/index.js",
"./router": "./dist-cms/shared/router/index.js",
"./utils": "./dist-cms/shared/utils/index.js",
"./icon": "./dist-cms/shared/icon/index.js",
"./action": "./dist-cms/packages/core/action/index.js",
"./collection": "./dist-cms/packages/core/collection/index.js",
"./components": "./dist-cms/packages/core/components/index.js",
"./content-type": "./dist-cms/packages/core/content-type/index.js",
"./debug": "./dist-cms/packages/core/debug/index.js",
"./entity-action": "./dist-cms/packages/core/entity-action/index.js",
"./entity-bulk-action": "./dist-cms/packages/core/entity-bulk-action/index.js",
"./extension-registry": "./dist-cms/packages/core/extension-registry/index.js",
"./id": "./dist-cms/packages/core/id/index.js",
"./menu": "./dist-cms/packages/core/menu/index.js",
"./modal": "./dist-cms/packages/core/modal/index.js",
"./notification": "./dist-cms/packages/core/notification/index.js",
"./picker-input": "./dist-cms/packages/core/picker-input/index.js",
"./section": "./dist-cms/packages/core/section/index.js",
"./sorter": "./dist-cms/packages/core/sorter/index.js",
"./store": "./dist-cms/packages/core/store/index.js",
"./tree": "./dist-cms/packages/core/tree/index.js",
"./variant": "./dist-cms/packages/core/variant/index.js",
"./workspace": "./dist-cms/packages/core/workspace/index.js",
"./property-editor": "./dist-cms/packages/core/property-editor/index.js",
"./document": "./dist-cms/packages/documents/documents/index.js",
"./data-type": "./dist-cms/packages/settings/data-types/index.js",
"./user-group": "./dist-cms/packages/users/user-groups/index.js",
2023-06-01 11:12:54 +02:00
"./current-user": "./dist-cms/packages/users/current-user/index.js",
"./users/": "./dist-cms/packages/users/users/index.js",
"./external/*": "./dist-cms/external/*/index.js"
},
"files": [
"dist-cms",
"README.md",
"router-slot-*.*.*.tgz"
],
"repository": {
"url": "https://github.com/umbraco/Umbraco.CMS.Backoffice",
"type": "git"
},
"bugs": {
"url": "https://github.com/umbraco/Umbraco.CMS.Backoffice/issues"
},
"author": {
"name": "Umbraco A/S",
"email": "backoffice@umbraco.com",
"url": "https://umbraco.com"
},
"scripts": {
"dev": "vite",
"build": "tsc --project ./src/tsconfig.json && rollup -c ./src/rollup.config.js",
2023-05-25 09:36:21 +02:00
"build:vite": "tsc && vite build --mode staging",
2023-05-26 10:22:59 +02:00
"build:for:static": "vite build",
2023-05-25 09:36:21 +02:00
"build:for:cms": "npm run build && node ./devops/build/copy-to-cms.js",
"build:for:npm": "npm run build && tsc-alias -f -p src/tsconfig.json",
"preview": "vite preview --open",
"test": "web-test-runner --coverage",
"test:watch": "web-test-runner --watch",
"auth:test:e2e": "npx playwright test --config apps/auth/",
"backoffice:test:e2e": "npx playwright test",
"test:e2e": "npm run auth:test:e2e && npm run backoffice:test:e2e",
2023-05-25 14:13:39 +02:00
"lint": "eslint src apps e2e",
2023-03-09 21:24:39 +01:00
"lint:errors": "npm run lint -- --quiet",
"lint:fix": "npm run lint -- --fix",
"format": "prettier 'src/**/*.ts'",
"format:fix": "npm run format -- --write",
2023-05-31 19:42:44 +02:00
"generate:api": "openapi --input https://raw.githubusercontent.com/umbraco/Umbraco-CMS/v14/dev/src/Umbraco.Cms.Api.Management/OpenApi.json --output src/external/backend-api/src --postfixServices Resource --useOptions",
2023-06-01 10:14:02 +02:00
"generate:api-dev": "openapi --input http://localhost:11000/umbraco/swagger/management/swagger.json --output src/external/backend-api/src --postfixServices Resource --useOptions",
"generate:jsonschema": "typescript-json-schema --required --include \"./src/packages/core/extension-registry/*.ts\"",
"generate:jsonschema:dist": "typescript-json-schema --required --include \"./src/packages/core/extension-registry/umbraco-package.ts\" --out dist-cms/umbraco-package-schema.json tsconfig.json UmbracoPackage",
"storybook": "npm run wc-analyze && storybook dev -p 6006",
"storybook:build": "npm run wc-analyze && storybook build",
"build-storybook": "npm run wc-analyze && storybook build",
"generate:icons": "node ./devops/icons/index.js",
"wc-analyze": "wca **/*.element.ts --outFile dist-cms/custom-elements.json",
"wc-analyze:vscode": "wca **/*.element.ts --format vscode --outFile dist-cms/vscode-html-custom-data.json",
"new-extension": "plop --plopfile ./devops/plop/plop.js",
"compile": "tsc",
2023-05-26 16:31:53 +02:00
"check": "npm run lint && npm run compile && npm run build-storybook",
2023-05-30 11:41:09 +02:00
"prepublishOnly": "node ./devops/publish/cleanse-pkg.js"
},
"engines": {
"node": ">=18.14 <19",
"npm": ">=9.5 < 10"
},
"dependencies": {
Authentication using OpenID (#654) * install app auth * add service to handle auth * add openid handling to general app * move props to constructor * update default api url to https * add support for adjusting umbracoUrl from outside * use origin url for redirect if empty from env * merge origin/main * merge origin/main * add redirect uri support * only check auth on firstUpdated * merge origin/main * fix redirect_uri * listen for auth-success events before anything else * save current route to restore after login * set token function for all OpenAPI requests * include credentials after login * update openapi-typescript-codegen * generate new models with bugfixes for CancelablePromise and request * remove auth-success event * wait with fetchServiceConfiguration until we actually need to query the server * revert change where service configuration was delayed * use LocalStorageBackend to save/restore token state * improve documentation * cleanup todos * improve docs * update documentation and set everything to private fields * remove undefined * add a token to provide server url * add more docs * provide the base url of the server through a token * add more docs * fix import * allow to override the backoffice base url through a property * use private modifier * duplicate login image * make generic error element to use as error page * check for initialisation errors and show error page if necessary * rename class to UmbAuthFlow * control the notification manually with runtime status call * add styling * add stack to problemdetails * forward all errors * support problemdetails rendering * allow passthrough without a token * move error logic to function * add support for BOOT_FAILED and default errors * rename background img * remove false character * check for isMocking to simplify auth flow * add support for generic ApiErrors * make sure all errors from api controllers are ApiError or CancelError to be able to fine-tune the handling of them * remove unused legacy method * show notifications (for now) after session expiration * break early on CancelErrors * revert options argument * remove login token after a 401 is detected * catch api errors * prefix class with Umb * throw errors instead of using ProblemDetailsModel * add TODO * add TODO --------- Co-authored-by: Mads Rasmussen <madsr@hey.com>
2023-04-24 12:27:25 +02:00
"@openid/appauth": "^1.3.1",
2023-05-25 10:36:47 +02:00
"@umbraco-ui/uui": "1.3.0-rc.1",
"@umbraco-ui/uui-css": "1.3.0-rc.1",
"element-internals-polyfill": "^1.1.19",
2023-05-26 15:43:05 +02:00
"lit": "^2.7.4",
"lodash-es": "4.17.21",
"monaco-editor": "^0.36.1",
2023-05-30 15:29:54 +02:00
"router-slot": "file:router-slot-2.2.0.tgz",
"rxjs": "^7.8.0",
"uuid": "^9.0.0"
},
"devDependencies": {
"@babel/core": "^7.20.12",
"@mdx-js/react": "^2.2.1",
"@open-wc/testing": "^3.1.7",
"@playwright/test": "^1.30.0",
2023-05-19 14:31:36 +02:00
"@rollup/plugin-commonjs": "^25.0.0",
Feature/server packages v2 (#574) * new api models * use new PackageResource * do not error out on missing default exports (esmodules auto-execute) * do not check for js extensions (they might have been registered on the client without a js file) * prepend the api baseurl to any relataive server JS dependencies * ignore tsbuildinfo * create base file for tsconfig * extend from base config and optimise include/exclude paths * install rollup plugin to handle json files * use plugin to bundle json files * call script for cms builds that builds libs * add rollup config to utils lib * add a context token to the extension registry instance itself and provide it through BackofficeElement * add rollup node resolve * add node resolve * only include element mixin in element library * add error description to module load error * add types to UmbExtensionRegistry token * set UmbNotificationService as string in its token to avoid minification * correct comment * reverse order of checks * add host to server extensions and support life-cycle check * add imports * use lit rather than lit-html * correct comment * add PackageManifestModel * add import * run libs build for cms * revert reorder * use string name for NotificationContext token * make alias public readonly of UmbContextToken * remove TODO * use UmbContextToken::toString() for all stores * use string alias for contexts * move default data so we avoid importing a big lit library just to get default data interface * add rollup to two extra libraries * make sure we build uui and lit into our libraries for the few cases we import something * add lockfile * add separate options for .js files * add function to install types of module * add types output * remove unused tsconfig-base file for now
2023-03-02 20:29:20 +01:00
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.1",
2023-05-26 16:03:49 +02:00
"@storybook/addon-a11y": "^7.0.17",
"@storybook/addon-actions": "^7.0.17",
"@storybook/addon-essentials": "^7.0.17",
"@storybook/addon-links": "^7.0.17",
2023-05-15 15:47:30 +02:00
"@storybook/mdx2-csf": "^1.1.0",
2023-05-26 16:03:49 +02:00
"@storybook/web-components": "^7.0.17",
"@storybook/web-components-vite": "^7.0.17",
"@types/chai": "^4.3.4",
"@types/lodash-es": "^4.17.6",
"@types/mocha": "^10.0.0",
"@types/uuid": "^9.0.0",
"@typescript-eslint/eslint-plugin": "^5.59.2",
"@typescript-eslint/parser": "^5.57.0",
"@web/dev-server-esbuild": "^0.3.3",
"@web/dev-server-import-maps": "^0.0.7",
"@web/dev-server-rollup": "^0.3.21",
"@web/test-runner": "^0.16.1",
"@web/test-runner-playwright": "^0.10.0",
"babel-loader": "^9.1.2",
"eslint": "^8.32.0",
"eslint-config-prettier": "^8.8.0",
"eslint-import-resolver-typescript": "^3.5.3",
"eslint-plugin-import": "^2.27.4",
"eslint-plugin-lit": "^1.8.2",
"eslint-plugin-lit-a11y": "^2.3.0",
"eslint-plugin-local-rules": "^1.3.2",
2023-05-15 15:47:30 +02:00
"eslint-plugin-storybook": "^0.6.12",
"eslint-plugin-wc": "^1.4.0",
"msw": "^1.1.0",
2023-04-03 15:33:13 +01:00
"msw-storybook-addon": "^1.8.0",
Authentication using OpenID (#654) * install app auth * add service to handle auth * add openid handling to general app * move props to constructor * update default api url to https * add support for adjusting umbracoUrl from outside * use origin url for redirect if empty from env * merge origin/main * merge origin/main * add redirect uri support * only check auth on firstUpdated * merge origin/main * fix redirect_uri * listen for auth-success events before anything else * save current route to restore after login * set token function for all OpenAPI requests * include credentials after login * update openapi-typescript-codegen * generate new models with bugfixes for CancelablePromise and request * remove auth-success event * wait with fetchServiceConfiguration until we actually need to query the server * revert change where service configuration was delayed * use LocalStorageBackend to save/restore token state * improve documentation * cleanup todos * improve docs * update documentation and set everything to private fields * remove undefined * add a token to provide server url * add more docs * provide the base url of the server through a token * add more docs * fix import * allow to override the backoffice base url through a property * use private modifier * duplicate login image * make generic error element to use as error page * check for initialisation errors and show error page if necessary * rename class to UmbAuthFlow * control the notification manually with runtime status call * add styling * add stack to problemdetails * forward all errors * support problemdetails rendering * allow passthrough without a token * move error logic to function * add support for BOOT_FAILED and default errors * rename background img * remove false character * check for isMocking to simplify auth flow * add support for generic ApiErrors * make sure all errors from api controllers are ApiError or CancelError to be able to fine-tune the handling of them * remove unused legacy method * show notifications (for now) after session expiration * break early on CancelErrors * revert options argument * remove login token after a 401 is detected * catch api errors * prefix class with Umb * throw errors instead of using ProblemDetailsModel * add TODO * add TODO --------- Co-authored-by: Mads Rasmussen <madsr@hey.com>
2023-04-24 12:27:25 +02:00
"openapi-typescript-codegen": "^0.24.0",
"playwright-msw": "^2.1.0",
"plop": "^3.1.1",
"prettier": "2.8.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
2023-05-15 15:47:30 +02:00
"remark-gfm": "^3.0.1",
"rollup": "^3.21.2",
"rollup-plugin-dts": "^5.2.0",
"rollup-plugin-esbuild": "^5.0.0",
"rollup-plugin-url": "^3.0.1",
2023-05-26 16:03:49 +02:00
"storybook": "^7.0.17",
"tiny-glob": "^0.2.9",
"tsc-alias": "^1.8.6",
"typescript": "^5.0.3",
2023-05-26 15:42:36 +02:00
"typescript-json-schema": "^0.56.0",
"vite": "^4.3.3",
"vite-plugin-static-copy": "^0.14.0",
"vite-tsconfig-paths": "^4.2.0",
"web-component-analyzer": "^2.0.0-next.4"
},
"msw": {
"workerDirectory": "public"
}
2022-05-19 16:38:42 +02:00
}