From dbcf756464d69e848f1892c87a622c61175e3525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Zori=C4=87?= Date: Tue, 27 Aug 2024 12:25:55 +0200 Subject: [PATCH] refactor: upgrade typescript to 4.9.5 (#4229) --- ...@material-base-npm-14.0.0-36e0a55c42.patch | 13 + .../apollo-link-npm-1.2.14-74f0ba01f9.patch | 13 + cypress-tests/cypress/support/utils.ts | 4 +- cypress-tests/package.json | 2 +- package.json | 10 +- packages/api-aco/package.json | 2 +- packages/api-aco/src/apps/AcoApp.ts | 27 +- packages/api-aco/src/record/record.types.ts | 13 +- packages/api-aco/src/types.ts | 9 +- packages/api-admin-settings/package.json | 2 +- packages/api-admin-users-so-ddb/package.json | 2 +- packages/api-admin-users/package.json | 2 +- .../api-apw-scheduler-so-ddb/package.json | 2 +- packages/api-apw/package.json | 2 +- packages/api-audit-logs/package.json | 2 +- .../api-authentication-cognito/package.json | 2 +- packages/api-authentication/package.json | 2 +- .../api-background-tasks-ddb/package.json | 2 +- packages/api-background-tasks-es/package.json | 2 +- packages/api-background-tasks-os/package.json | 2 +- .../api-cognito-authenticator/package.json | 2 +- .../package.json | 2 +- packages/api-elasticsearch-tasks/package.json | 2 +- packages/api-elasticsearch/package.json | 2 +- packages/api-file-manager-ddb/package.json | 2 +- packages/api-file-manager-s3/package.json | 2 +- packages/api-file-manager/package.json | 2 +- .../delivery/AssetDelivery/AssetRequest.ts | 6 +- .../api-form-builder-so-ddb-es/package.json | 2 +- packages/api-form-builder-so-ddb/package.json | 2 +- packages/api-form-builder/package.json | 2 +- packages/api-headless-cms-aco/package.json | 2 +- .../__tests__/tasks/createBulkAction.test.ts | 8 +- .../package.json | 2 +- packages/api-headless-cms-ddb-es/package.json | 2 +- packages/api-headless-cms-ddb/package.json | 2 +- .../api-headless-cms-es-tasks/package.json | 2 +- packages/api-headless-cms/package.json | 7 +- .../src/crud/contentEntry.crud.ts | 8 +- .../contentEntry/abstractions/IListEntries.ts | 4 +- .../src/crud/contentModel.crud.ts | 7 +- .../api-headless-cms/src/graphql/getSchema.ts | 10 +- .../graphql/schema/createManageResolvers.ts | 7 - .../src/graphql/schema/createManageSDL.ts | 3 - .../graphql/schema/createPreviewResolvers.ts | 6 - .../src/graphql/schema/createReadResolvers.ts | 6 - .../src/graphql/schema/createReadSDL.ts | 6 +- .../src/graphql/schema/schemaPlugins.ts | 112 ++-- .../api-headless-cms/src/types/context.ts | 8 +- packages/api-headless-cms/src/types/types.ts | 4 +- packages/api-i18n-content/package.json | 2 +- packages/api-i18n-ddb/package.json | 2 +- packages/api-i18n/package.json | 2 +- packages/api-mailer/package.json | 2 +- packages/api-page-builder-aco/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- .../__tests__/pages/customField.test.ts | 12 +- .../api-page-builder-so-ddb-es/package.json | 2 +- packages/api-page-builder-so-ddb/package.json | 2 +- packages/api-page-builder/package.json | 2 +- .../api-prerendering-service-aws/package.json | 2 +- .../package.json | 2 +- .../api-prerendering-service/package.json | 2 +- packages/api-record-locking/package.json | 2 +- packages/api-security-auth0/package.json | 2 +- packages/api-security-cognito/package.json | 2 +- packages/api-security-okta/package.json | 2 +- packages/api-security-so-ddb/package.json | 2 +- packages/api-security/package.json | 2 +- packages/api-serverless-cms/package.json | 2 +- packages/api-tenancy-so-ddb/package.json | 2 +- packages/api-tenancy/package.json | 2 +- packages/api-tenant-manager/package.json | 2 +- packages/api-theme-manager/package.json | 2 +- packages/api-wcp/package.json | 2 +- packages/api-websockets/package.json | 2 +- packages/api/package.json | 2 +- packages/app-aco/package.json | 2 +- packages/app-aco/src/contexts/acoList.tsx | 2 +- packages/app-admin-auth0/package.json | 2 +- packages/app-admin-cognito/package.json | 2 +- packages/app-admin-okta/package.json | 2 +- packages/app-admin-rmwc/package.json | 2 +- packages/app-admin-users-cognito/package.json | 2 +- packages/app-admin/package.json | 2 +- .../src/components/Filters/Filters.tsx | 3 +- .../src/ui/elements/ButtonElement.tsx | 8 +- .../src/ui/elements/SmallButtonElement.tsx | 5 +- packages/app-apw/package.json | 2 +- packages/app-audit-logs/package.json | 2 +- .../app-cognito-authenticator/package.json | 2 +- packages/app-file-manager-s3/package.json | 2 +- packages/app-file-manager/package.json | 2 +- packages/app-form-builder/package.json | 2 +- packages/app-graphql-playground/package.json | 2 +- packages/app-headless-cms-common/package.json | 2 +- packages/app-headless-cms/package.json | 2 +- packages/app-i18n-content/package.json | 2 +- packages/app-i18n/package.json | 2 +- packages/app-mailer/package.json | 2 +- packages/app-page-builder-editor/package.json | 2 +- .../app-page-builder-elements/package.json | 2 +- .../src/createRenderer.tsx | 17 +- packages/app-page-builder/package.json | 2 +- .../app-page-builder/src/blockEditor/types.ts | 8 +- .../app-page-builder/src/pageEditor/types.ts | 8 +- .../src/templateEditor/types.ts | 8 +- .../package.json | 2 +- packages/app-record-locking/package.json | 2 +- .../package.json | 2 +- packages/app-security/package.json | 2 +- packages/app-serverless-cms/package.json | 2 +- packages/app-tenancy/package.json | 2 +- packages/app-tenant-manager/package.json | 2 +- packages/app-theme-manager/package.json | 2 +- packages/app-theme/package.json | 2 +- packages/app-trash-bin/package.json | 2 +- packages/app-utils/package.json | 2 +- packages/app-wcp/package.json | 2 +- packages/app-website/package.json | 2 +- packages/app-websockets/package.json | 2 +- packages/app/package.json | 2 +- packages/aws-sdk/package.json | 2 +- .../package.json | 4 +- packages/cli-plugin-scaffold-ci/package.json | 6 +- packages/cli-plugin-scaffold-ci/src/types.ts | 3 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- .../package.json | 4 +- packages/cli-plugin-scaffold/package.json | 6 +- packages/cli-plugin-scaffold/src/types.ts | 10 +- packages/cli/package.json | 4 +- packages/cli/types.d.ts | 4 + packages/cwp-template-aws/package.json | 2 +- packages/data-migration/package.json | 2 +- packages/db-dynamodb/package.json | 2 +- packages/db/package.json | 2 +- packages/error/package.json | 2 +- packages/feature-flags/package.json | 2 +- packages/form/package.json | 2 +- packages/form/src/Bind.ts | 5 + packages/form/src/Form.tsx | 5 +- packages/form/src/FormApi.ts | 5 +- packages/form/src/types.ts | 2 +- packages/handler-aws/package.json | 2 +- packages/handler-client/package.json | 2 +- .../handler-client/src/HandlerClientPlugin.ts | 2 +- packages/handler-db/package.json | 2 +- packages/handler-graphql/package.json | 4 +- packages/handler-logs/package.json | 2 +- packages/handler/package.json | 2 +- packages/i18n-react/package.json | 2 +- packages/i18n/package.json | 2 +- packages/ioc/package.json | 2 +- packages/logger/package.json | 2 +- packages/migrations/package.json | 2 +- packages/plugins/package.json | 2 +- packages/project-utils/package.json | 2 +- packages/pubsub/package.json | 2 +- packages/pulumi-aws/package.json | 2 +- packages/pulumi-sdk/package.json | 2 +- packages/pulumi/package.json | 2 +- packages/react-composition/package.json | 2 +- .../react-rich-text-renderer/package.json | 2 +- packages/react-router/package.json | 2 +- packages/serverless-cms-aws/package.json | 2 +- packages/tasks/package.json | 2 +- packages/tasks/src/crud/trigger.tasks.ts | 8 +- packages/tasks/src/response/TaskResponse.ts | 4 +- .../runner/abstractions/TaskManagerStore.ts | 16 +- packages/tasks/src/types.ts | 5 +- packages/theme/package.json | 2 +- packages/ui-composer/package.json | 2 +- packages/ui-composer/src/UIView.tsx | 2 +- .../src/elements/GenericElement.tsx | 6 +- packages/ui/package.json | 2 +- packages/utils/package.json | 2 +- packages/validation/package.json | 2 +- packages/wcp/package.json | 2 +- yarn.lock | 594 ++++++++++-------- 185 files changed, 716 insertions(+), 623 deletions(-) create mode 100644 .yarn/patches/@material-base-npm-14.0.0-36e0a55c42.patch create mode 100644 .yarn/patches/apollo-link-npm-1.2.14-74f0ba01f9.patch diff --git a/.yarn/patches/@material-base-npm-14.0.0-36e0a55c42.patch b/.yarn/patches/@material-base-npm-14.0.0-36e0a55c42.patch new file mode 100644 index 00000000000..df8dba6f938 --- /dev/null +++ b/.yarn/patches/@material-base-npm-14.0.0-36e0a55c42.patch @@ -0,0 +1,13 @@ +diff --git a/observer-foundation.d.ts b/observer-foundation.d.ts +index d546598c6444aae71b00efdba33c20a884058e6f..ea99264896922327a4e5e40e6037edabdd9557c6 100644 +--- a/observer-foundation.d.ts ++++ b/observer-foundation.d.ts +@@ -22,7 +22,7 @@ + */ + import { MDCFoundation } from './foundation'; + import { Observer, ObserverRecord } from './observer'; +-export declare class MDCObserverFoundation extends MDCFoundation { ++export declare class MDCObserverFoundation extends MDCFoundation { + /** A set of cleanup functions to unobserve changes. */ + protected unobserves: Set; + constructor(adapter: Adapter); diff --git a/.yarn/patches/apollo-link-npm-1.2.14-74f0ba01f9.patch b/.yarn/patches/apollo-link-npm-1.2.14-74f0ba01f9.patch new file mode 100644 index 00000000000..c77ef737dbb --- /dev/null +++ b/.yarn/patches/apollo-link-npm-1.2.14-74f0ba01f9.patch @@ -0,0 +1,13 @@ +diff --git a/lib/types.d.ts b/lib/types.d.ts +index 723ae9715022e8ea5d678e9a984b1b5511b230f6..60e30928350db6d718881c45042955aa072a862e 100644 +--- a/lib/types.d.ts ++++ b/lib/types.d.ts +@@ -4,7 +4,7 @@ import { ExecutionResult as GraphQLExecutionResult } from 'graphql'; + export { DocumentNode }; + export interface ExecutionResult extends GraphQLExecutionResult { ++}> extends GraphQLExecutionResult { + data?: TData | null; + } + export interface GraphQLRequest { diff --git a/cypress-tests/cypress/support/utils.ts b/cypress-tests/cypress/support/utils.ts index 1742da21140..e6616ab3f03 100644 --- a/cypress-tests/cypress/support/utils.ts +++ b/cypress-tests/cypress/support/utils.ts @@ -87,7 +87,9 @@ type GqlQueryFunction = ( options?: GqlQueryOptions ) => Promise; -export const createGqlQuery = >( +export type GqlVariables = Record; + +export const createGqlQuery = ( query: string ): GqlQueryFunction => { return async (variables: TVariables, options?: GqlQueryOptions) => { diff --git a/cypress-tests/package.json b/cypress-tests/package.json index 26cfb439c69..37387e915e6 100644 --- a/cypress-tests/package.json +++ b/cypress-tests/package.json @@ -19,7 +19,7 @@ "lodash": "^4.17.21", "nanoid": "^3.3.7", "node-fetch": "^2.6.1", - "typescript": "4.7.4", + "typescript": "4.9.5", "uniqid": "^5.2.0" }, "scripts": { diff --git a/package.json b/package.json index 334e745de72..bf0374e33ae 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "glob": "^7.1.3", "graphql": "^15.7.2", "husky": "^4.2.5", - "inquirer": "^7.0.0", + "inquirer": "8.2.6", "inquirer-autocomplete-prompt": "^1.0.1", "inquirer-checkbox-plus-prompt": "^1.0.1", "inquirer-maxlength-input-prompt": "^1.0.0", @@ -94,7 +94,7 @@ "semver": "^7.5.4", "ts-expect": "^1.3.0", "ts-jest": "^29.1.2", - "typescript": "4.7.4", + "typescript": "4.9.5", "typescript-transform-paths": "^3.4.6", "verdaccio": "^5.29.1", "write-json-file": "^4.2.0", @@ -223,13 +223,15 @@ "@grpc/grpc-js": "^1.11.1", "postcss": "^8.4.35", "semver": "7.5.4", - "typescript": "4.7.4", "@types/eslint": "8.2.1", "xml2js": "0.6.2", "yargs": "^17.3.1", "lerna@8.1.2": "patch:lerna@npm%3A8.1.2#./.yarn/patches/lerna-npm-8.1.2-be48ad2329.patch", "react-dnd": "^16.0.0", - "react-dnd-html5-backend": "^16.0.0" + "react-dnd-html5-backend": "^16.0.0", + "apollo-link@^1.2.14": "patch:apollo-link@npm%3A1.2.14#./.yarn/patches/apollo-link-npm-1.2.14-74f0ba01f9.patch", + "apollo-link@^1.0.0": "patch:apollo-link@npm%3A1.2.14#./.yarn/patches/apollo-link-npm-1.2.14-74f0ba01f9.patch", + "@material/base@^14.0.0": "patch:@material/base@npm%3A14.0.0#./.yarn/patches/@material-base-npm-14.0.0-36e0a55c42.patch" }, "packageManager": "yarn@3.6.4", "dependencies": { diff --git a/packages/api-aco/package.json b/packages/api-aco/package.json index 78c963c1977..cdcb43f24ad 100644 --- a/packages/api-aco/package.json +++ b/packages/api-aco/package.json @@ -57,6 +57,6 @@ "prettier": "^2.8.3", "rimraf": "^5.0.5", "ttypescript": "^1.5.13", - "typescript": "^4.7.4" + "typescript": "4.9.5" } } diff --git a/packages/api-aco/src/apps/AcoApp.ts b/packages/api-aco/src/apps/AcoApp.ts index d3a569b83b5..7c00677b7f6 100644 --- a/packages/api-aco/src/apps/AcoApp.ts +++ b/packages/api-aco/src/apps/AcoApp.ts @@ -4,6 +4,7 @@ import { AcoRequestAction, AcoSearchRecordCrudBase, CreateSearchRecordParams, + GenericSearchData, IAcoApp, IAcoAppModifyFieldCallableCallback, IAcoAppOnAnyRequest, @@ -12,7 +13,8 @@ import { IAcoAppParams, ListSearchRecordsParams, ListSearchRecordTagsParams, - SearchRecord + SearchRecord, + UpdateSearchRecordParams } from "~/types"; import { CmsModel, CmsModelField } from "@webiny/api-headless-cms/types"; import lodashUpperFirst from "lodash/upperFirst"; @@ -34,15 +36,20 @@ export class AcoApp implements IAcoApp { public get search(): AcoSearchRecordCrudBase { return { - create: async (data: CreateSearchRecordParams) => { + create: async ( + data: CreateSearchRecordParams + ) => { await this.execOnAnyRequest("create"); const result = await this.context.aco.search.create(this.getModel(), data); if (!this.onEntry) { return result; } - return this.onEntry(result); + return (await this.onEntry(result)) as SearchRecord; }, - update: async (id: string, data: SearchRecord) => { + update: async ( + id: string, + data: UpdateSearchRecordParams + ) => { await this.execOnAnyRequest("update"); const result = await this.context.aco.search.update( this.getModel(), @@ -52,21 +59,23 @@ export class AcoApp implements IAcoApp { if (!this.onEntry) { return result; } - return this.onEntry(result); + return (await this.onEntry(result)) as SearchRecord; }, move: async (id: string, folderId?: string) => { await this.execOnAnyRequest("move"); return this.context.aco.search.move(this.getModel(), id, folderId); }, - get: async (id: string) => { + get: async (id: string) => { await this.execOnAnyRequest("fetch"); const result = await this.context.aco.search.get(this.getModel(), id); if (!result || !this.onEntry) { return result; } - return this.onEntry(result); + return (await this.onEntry(result)) as SearchRecord; }, - list: async (params: ListSearchRecordsParams) => { + list: async ( + params: ListSearchRecordsParams + ) => { await this.execOnAnyRequest("fetch"); const result = await this.context.aco.search.list(this.getModel(), params); const onEntryList = this.onEntryList; @@ -74,7 +83,7 @@ export class AcoApp implements IAcoApp { return result; } const [entries, meta] = result; - const items = await onEntryList(entries); + const items = (await onEntryList(entries)) as SearchRecord[]; return [items, meta]; }, delete: async (id: string): Promise => { diff --git a/packages/api-aco/src/record/record.types.ts b/packages/api-aco/src/record/record.types.ts index 4fce62e6638..28cf17cea5e 100644 --- a/packages/api-aco/src/record/record.types.ts +++ b/packages/api-aco/src/record/record.types.ts @@ -44,7 +44,7 @@ export interface ListSearchRecordsParams { after?: string | null; } -export type CreateSearchRecordParams = Pick< +export type CreateSearchRecordParams = Pick< SearchRecord, "id" | "title" | "content" | "type" | "location" | "data" | "tags" >; @@ -181,8 +181,11 @@ export interface AcoSearchRecordCrud AcoSearchRecordCrudBase, "get" | "list" | "create" | "update" | "delete" | "listTags" | "move" > { - get(model: CmsModel, id: string): Promise>; - list( + get( + model: CmsModel, + id: string + ): Promise>; + list( model: CmsModel, params: ListSearchRecordsParams ): Promise<[SearchRecord[], ListMeta]>; @@ -190,11 +193,11 @@ export interface AcoSearchRecordCrud model: CmsModel, params: ListSearchRecordTagsParams ): Promise<[SearchRecordTag[], ListMeta]>; - create( + create( model: CmsModel, data: CreateSearchRecordParams ): Promise>; - update( + update( model: CmsModel, id: string, data: UpdateSearchRecordParams diff --git a/packages/api-aco/src/types.ts b/packages/api-aco/src/types.ts index 87323b59706..88f614e0aa4 100644 --- a/packages/api-aco/src/types.ts +++ b/packages/api-aco/src/types.ts @@ -9,6 +9,7 @@ import { AcoSearchRecordCrud, AcoSearchRecordCrudBase, AcoSearchRecordStorageOperations, + GenericSearchData, SearchRecord } from "~/record/record.types"; import { AcoFolderCrud, AcoFolderStorageOperations } from "~/folder/folder.types"; @@ -118,8 +119,12 @@ export interface IAcoApp { modifyField: IAcoAppModifyFieldCallable; } // TODO: determine correct type -export type IAcoAppOnEntry = (entry: SearchRecord) => Promise>; -export type IAcoAppOnEntryList = (entry: SearchRecord[]) => Promise[]>; +export type IAcoAppOnEntry = ( + entry: SearchRecord +) => Promise>; +export type IAcoAppOnEntryList = ( + entry: SearchRecord[] +) => Promise[]>; export type AcoRequestAction = "create" | "update" | "delete" | "move" | "fetch"; export type IAcoAppOnAnyRequest = (context: AcoContext, action: AcoRequestAction) => Promise; diff --git a/packages/api-admin-settings/package.json b/packages/api-admin-settings/package.json index d5479dbe810..7f3b41c9760 100644 --- a/packages/api-admin-settings/package.json +++ b/packages/api-admin-settings/package.json @@ -41,7 +41,7 @@ "rimraf": "^5.0.5", "sinon": "^9.0.2", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-admin-users-so-ddb/package.json b/packages/api-admin-users-so-ddb/package.json index 197407b4597..a5862ce95d5 100644 --- a/packages/api-admin-users-so-ddb/package.json +++ b/packages/api-admin-users-so-ddb/package.json @@ -31,7 +31,7 @@ "jest-dynalite": "^3.2.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-admin-users/package.json b/packages/api-admin-users/package.json index f45e7fcb19e..f58ef30473b 100644 --- a/packages/api-admin-users/package.json +++ b/packages/api-admin-users/package.json @@ -36,7 +36,7 @@ "@webiny/cli": "0.0.0", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-apw-scheduler-so-ddb/package.json b/packages/api-apw-scheduler-so-ddb/package.json index 58865f5a036..9d3d9ee21e9 100644 --- a/packages/api-apw-scheduler-so-ddb/package.json +++ b/packages/api-apw-scheduler-so-ddb/package.json @@ -41,7 +41,7 @@ "jest-dynalite": "^3.2.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-apw/package.json b/packages/api-apw/package.json index 026ac05093c..1886bbc7449 100644 --- a/packages/api-apw/package.json +++ b/packages/api-apw/package.json @@ -55,7 +55,7 @@ "rimraf": "^5.0.5", "sinon": "^9.0.2", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-audit-logs/package.json b/packages/api-audit-logs/package.json index de642e3ca8f..208d21fb39e 100644 --- a/packages/api-audit-logs/package.json +++ b/packages/api-audit-logs/package.json @@ -38,7 +38,7 @@ "@webiny/project-utils": "0.0.0", "graphql": "^15.8.0", "ttypescript": "^1.5.13", - "typescript": "^4.7.4" + "typescript": "4.9.5" }, "dependencies": { "@webiny/api": "0.0.0", diff --git a/packages/api-authentication-cognito/package.json b/packages/api-authentication-cognito/package.json index b2110a7ee61..0e7e993697e 100644 --- a/packages/api-authentication-cognito/package.json +++ b/packages/api-authentication-cognito/package.json @@ -22,7 +22,7 @@ "@webiny/cli": "0.0.0", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-authentication/package.json b/packages/api-authentication/package.json index 72567b6a2a7..ac094e39999 100644 --- a/packages/api-authentication/package.json +++ b/packages/api-authentication/package.json @@ -27,7 +27,7 @@ "jest-dynalite": "^3.2.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-background-tasks-ddb/package.json b/packages/api-background-tasks-ddb/package.json index 236bdc0ed0b..7c8787c0d74 100644 --- a/packages/api-background-tasks-ddb/package.json +++ b/packages/api-background-tasks-ddb/package.json @@ -20,7 +20,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-background-tasks-es/package.json b/packages/api-background-tasks-es/package.json index bb45e2bb579..aa467b9a294 100644 --- a/packages/api-background-tasks-es/package.json +++ b/packages/api-background-tasks-es/package.json @@ -22,7 +22,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-background-tasks-os/package.json b/packages/api-background-tasks-os/package.json index a601892a62b..212721dcecd 100644 --- a/packages/api-background-tasks-os/package.json +++ b/packages/api-background-tasks-os/package.json @@ -22,7 +22,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-cognito-authenticator/package.json b/packages/api-cognito-authenticator/package.json index 80194fd6a64..eae869a866c 100644 --- a/packages/api-cognito-authenticator/package.json +++ b/packages/api-cognito-authenticator/package.json @@ -25,7 +25,7 @@ "@webiny/cli": "0.0.0", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-dynamodb-to-elasticsearch/package.json b/packages/api-dynamodb-to-elasticsearch/package.json index e8926bbecec..2daf9bf51be 100644 --- a/packages/api-dynamodb-to-elasticsearch/package.json +++ b/packages/api-dynamodb-to-elasticsearch/package.json @@ -29,7 +29,7 @@ "@webiny/cli": "0.0.0", "@webiny/plugins": "0.0.0", "@webiny/project-utils": "0.0.0", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-elasticsearch-tasks/package.json b/packages/api-elasticsearch-tasks/package.json index 93586b59408..3a0debe2738 100644 --- a/packages/api-elasticsearch-tasks/package.json +++ b/packages/api-elasticsearch-tasks/package.json @@ -42,7 +42,7 @@ "rimraf": "^5.0.5", "ttypescript": "^1.5.13", "type-fest": "^2.19.0", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-elasticsearch/package.json b/packages/api-elasticsearch/package.json index 9d0b4ee1d9f..e408bfeac93 100644 --- a/packages/api-elasticsearch/package.json +++ b/packages/api-elasticsearch/package.json @@ -27,7 +27,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-file-manager-ddb/package.json b/packages/api-file-manager-ddb/package.json index 738fff66be7..187174f226d 100644 --- a/packages/api-file-manager-ddb/package.json +++ b/packages/api-file-manager-ddb/package.json @@ -41,7 +41,7 @@ "jsonpack": "^1.1.5", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-file-manager-s3/package.json b/packages/api-file-manager-s3/package.json index 8865b6014c2..17647c8a025 100644 --- a/packages/api-file-manager-s3/package.json +++ b/packages/api-file-manager-s3/package.json @@ -37,7 +37,7 @@ "@webiny/cli": "0.0.0", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-file-manager/package.json b/packages/api-file-manager/package.json index 4e7da50b2cb..5a58bd92f9c 100644 --- a/packages/api-file-manager/package.json +++ b/packages/api-file-manager/package.json @@ -52,7 +52,7 @@ "jest": "^29.7.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-file-manager/src/delivery/AssetDelivery/AssetRequest.ts b/packages/api-file-manager/src/delivery/AssetDelivery/AssetRequest.ts index 3b849402fd2..986febd05a3 100644 --- a/packages/api-file-manager/src/delivery/AssetDelivery/AssetRequest.ts +++ b/packages/api-file-manager/src/delivery/AssetDelivery/AssetRequest.ts @@ -1,9 +1,11 @@ +import { GenericRecord } from "@webiny/api/types"; + export interface AssetRequestOptions { original?: boolean; width?: number; } -export type AssetRequestContext = Record> = T & { +export type AssetRequestContext = T & { /** * Asset request URL. */ @@ -35,7 +37,7 @@ export class AssetRequest() { + getContext() { return this.data.context as AssetRequestContext; } diff --git a/packages/api-form-builder-so-ddb-es/package.json b/packages/api-form-builder-so-ddb-es/package.json index b9a5b8a9183..60d8f370396 100644 --- a/packages/api-form-builder-so-ddb-es/package.json +++ b/packages/api-form-builder-so-ddb-es/package.json @@ -52,7 +52,7 @@ "jest-dynalite": "^3.2.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-form-builder-so-ddb/package.json b/packages/api-form-builder-so-ddb/package.json index c231d2b603f..d9fb3dbf4a9 100644 --- a/packages/api-form-builder-so-ddb/package.json +++ b/packages/api-form-builder-so-ddb/package.json @@ -42,7 +42,7 @@ "jest-dynalite": "^3.2.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-form-builder/package.json b/packages/api-form-builder/package.json index 8ea8e4b6d78..f53531fac9e 100644 --- a/packages/api-form-builder/package.json +++ b/packages/api-form-builder/package.json @@ -59,7 +59,7 @@ "jest-dynalite": "^3.2.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-headless-cms-aco/package.json b/packages/api-headless-cms-aco/package.json index ac14945a155..012d85b5642 100644 --- a/packages/api-headless-cms-aco/package.json +++ b/packages/api-headless-cms-aco/package.json @@ -40,7 +40,7 @@ "@webiny/wcp": "0.0.0", "graphql": "^15.8.0", "ttypescript": "^1.5.13", - "typescript": "^4.7.4" + "typescript": "4.9.5" }, "dependencies": { "@webiny/api": "0.0.0", diff --git a/packages/api-headless-cms-bulk-actions/__tests__/tasks/createBulkAction.test.ts b/packages/api-headless-cms-bulk-actions/__tests__/tasks/createBulkAction.test.ts index d86abecd6af..69ef24f03bf 100644 --- a/packages/api-headless-cms-bulk-actions/__tests__/tasks/createBulkAction.test.ts +++ b/packages/api-headless-cms-bulk-actions/__tests__/tasks/createBulkAction.test.ts @@ -48,7 +48,7 @@ describe("createBulkAction", () => { expect(type).toMatchObject({ kind: "ENUM", name: expect.any(String), - enumValues: getEnumValues(defaultBulkActionsEnumNames), + enumValues: expect.arrayContaining(getEnumValues(defaultBulkActionsEnumNames)), description: null, inputFields: null, interfaces: null, @@ -97,7 +97,9 @@ describe("createBulkAction", () => { expect(type).toMatchObject({ kind: "ENUM", name: expect.any(String), - enumValues: getEnumValues([...defaultBulkActionsEnumNames, "Print"]), + enumValues: expect.arrayContaining( + getEnumValues([...defaultBulkActionsEnumNames, "Print"]) + ), description: null, inputFields: null, interfaces: null, @@ -111,7 +113,7 @@ describe("createBulkAction", () => { expect(type).toMatchObject({ kind: "ENUM", name: expect.any(String), - enumValues: getEnumValues([...defaultBulkActionsEnumNames]), + enumValues: expect.arrayContaining(getEnumValues([...defaultBulkActionsEnumNames])), description: null, inputFields: null, interfaces: null, diff --git a/packages/api-headless-cms-bulk-actions/package.json b/packages/api-headless-cms-bulk-actions/package.json index 16a1d8624a8..358f47bc474 100644 --- a/packages/api-headless-cms-bulk-actions/package.json +++ b/packages/api-headless-cms-bulk-actions/package.json @@ -38,7 +38,7 @@ "@webiny/wcp": "0.0.0", "graphql": "^15.8.0", "ttypescript": "^1.5.13", - "typescript": "^4.7.4" + "typescript": "4.9.5" }, "scripts": { "build": "yarn webiny run build", diff --git a/packages/api-headless-cms-ddb-es/package.json b/packages/api-headless-cms-ddb-es/package.json index e52157f735b..4ef2a54341f 100644 --- a/packages/api-headless-cms-ddb-es/package.json +++ b/packages/api-headless-cms-ddb-es/package.json @@ -64,7 +64,7 @@ "rimraf": "^5.0.5", "sinon": "^9.0.2", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-headless-cms-ddb/package.json b/packages/api-headless-cms-ddb/package.json index 21b54213125..66636563428 100644 --- a/packages/api-headless-cms-ddb/package.json +++ b/packages/api-headless-cms-ddb/package.json @@ -45,7 +45,7 @@ "jest": "^29.7.0", "jest-dynalite": "^3.2.0", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-headless-cms-es-tasks/package.json b/packages/api-headless-cms-es-tasks/package.json index c9dfebabcbf..1a6cf58e20f 100644 --- a/packages/api-headless-cms-es-tasks/package.json +++ b/packages/api-headless-cms-es-tasks/package.json @@ -36,7 +36,7 @@ "@webiny/plugins": "0.0.0", "@webiny/project-utils": "0.0.0", "ttypescript": "^1.5.13", - "typescript": "^4.7.4" + "typescript": "4.9.5" }, "scripts": { "build": "yarn webiny run build", diff --git a/packages/api-headless-cms/package.json b/packages/api-headless-cms/package.json index 02dfd611aa7..939da13d342 100644 --- a/packages/api-headless-cms/package.json +++ b/packages/api-headless-cms/package.json @@ -18,8 +18,9 @@ ], "license": "MIT", "dependencies": { + "@babel/code-frame": "^7.24.7", "@babel/runtime": "^7.24.0", - "@graphql-tools/schema": "^7.1.2", + "@graphql-tools/schema": "^10.0.6", "@webiny/api": "0.0.0", "@webiny/api-i18n": "0.0.0", "@webiny/api-security": "0.0.0", @@ -34,7 +35,6 @@ "@webiny/pubsub": "0.0.0", "@webiny/utils": "0.0.0", "@webiny/validation": "0.0.0", - "code-frame": "^5.0.0", "dot-prop": "^6.0.1", "graphql": "^15.7.2", "graphql-tag": "^2.12.6", @@ -51,6 +51,7 @@ "@babel/cli": "^7.23.9", "@babel/core": "^7.24.0", "@babel/preset-env": "^7.24.0", + "@types/babel__code-frame": "^7.0.6", "@webiny/api-wcp": "0.0.0", "@webiny/aws-sdk": "0.0.0", "@webiny/cli": "0.0.0", @@ -63,7 +64,7 @@ "rimraf": "^5.0.5", "sinon": "^9.0.2", "ttypescript": "^1.5.12", - "typescript": "4.7.4", + "typescript": "4.9.5", "write-json-file": "^4.3.0" }, "publishConfig": { diff --git a/packages/api-headless-cms/src/crud/contentEntry.crud.ts b/packages/api-headless-cms/src/crud/contentEntry.crud.ts index 408a960124b..54b4e557029 100644 --- a/packages/api-headless-cms/src/crud/contentEntry.crud.ts +++ b/packages/api-headless-cms/src/crud/contentEntry.crud.ts @@ -1314,7 +1314,7 @@ export const createContentEntryCrud = (params: CreateContentEntryCrudParams): Cm * * @internal */ - async listEntries( + async listEntries( model: CmsModel, params: CmsEntryListParams ): Promise<[CmsEntry[], CmsEntryMeta]> { @@ -1322,7 +1322,7 @@ export const createContentEntryCrud = (params: CreateContentEntryCrudParams): Cm return await listEntriesUseCase.execute(model, params); }); }, - async listLatestEntries( + async listLatestEntries( model: CmsModel, params?: CmsEntryListParams ): Promise<[CmsEntry[], CmsEntryMeta]> { @@ -1333,7 +1333,7 @@ export const createContentEntryCrud = (params: CreateContentEntryCrudParams): Cm } ); }, - async listDeletedEntries( + async listDeletedEntries( model: CmsModel, params?: CmsEntryListParams ): Promise<[CmsEntry[], CmsEntryMeta]> { @@ -1344,7 +1344,7 @@ export const createContentEntryCrud = (params: CreateContentEntryCrudParams): Cm } ); }, - async listPublishedEntries( + async listPublishedEntries( model: CmsModel, params?: CmsEntryListParams ): Promise<[CmsEntry[], CmsEntryMeta]> { diff --git a/packages/api-headless-cms/src/crud/contentEntry/abstractions/IListEntries.ts b/packages/api-headless-cms/src/crud/contentEntry/abstractions/IListEntries.ts index 3b7328406e8..7d0b9cf2abb 100644 --- a/packages/api-headless-cms/src/crud/contentEntry/abstractions/IListEntries.ts +++ b/packages/api-headless-cms/src/crud/contentEntry/abstractions/IListEntries.ts @@ -1,7 +1,7 @@ -import { CmsEntry, CmsEntryListParams, CmsEntryMeta, CmsModel } from "~/types"; +import { CmsEntry, CmsEntryListParams, CmsEntryMeta, CmsEntryValues, CmsModel } from "~/types"; export interface IListEntries { - execute: ( + execute: ( model: CmsModel, params?: CmsEntryListParams ) => Promise<[CmsEntry[], CmsEntryMeta]>; diff --git a/packages/api-headless-cms/src/crud/contentModel.crud.ts b/packages/api-headless-cms/src/crud/contentModel.crud.ts index 276158caae5..d6727699d36 100644 --- a/packages/api-headless-cms/src/crud/contentModel.crud.ts +++ b/packages/api-headless-cms/src/crud/contentModel.crud.ts @@ -1,6 +1,7 @@ import WebinyError from "@webiny/error"; import { CmsContext, + CmsEntryValues, CmsModel, CmsModelContext, CmsModelFieldToGraphQLPlugin, @@ -70,7 +71,7 @@ export const createModelsCrud = (params: CreateModelsCrudParams): CmsModelContex }; const managers = new Map(); - const updateManager = async ( + const updateManager = async ( context: CmsContext, model: CmsModel ): Promise> => { @@ -206,7 +207,9 @@ export const createModelsCrud = (params: CreateModelsCrudParams): CmsModelContex }); }; - const getEntryManager: CmsModelContext["getEntryManager"] = async ( + const getEntryManager: CmsModelContext["getEntryManager"] = async < + T extends CmsEntryValues = CmsEntryValues + >( target: string | Pick ): Promise> => { const modelId = typeof target === "string" ? target : target.modelId; diff --git a/packages/api-headless-cms/src/graphql/getSchema.ts b/packages/api-headless-cms/src/graphql/getSchema.ts index ca4cbb41854..6dc695d6794 100644 --- a/packages/api-headless-cms/src/graphql/getSchema.ts +++ b/packages/api-headless-cms/src/graphql/getSchema.ts @@ -1,5 +1,4 @@ -// @ts-expect-error `code-frame` has no types -import codeFrame from "code-frame"; +import { codeFrameColumns } from "@babel/code-frame"; import WebinyError from "@webiny/error"; import { generateSchema } from "./generateSchema"; import { ApiEndpoint, CmsContext } from "~/types"; @@ -75,8 +74,11 @@ export const getSchema = async (params: GetSchemaParams): Promise code: "INVALID_GRAPHQL_SCHEMA", message: err.message, data: { - invalidSegment: codeFrame(err.source.body, location.line, location.column, { - frameSize: 15 + invalidSegment: codeFrameColumns(err.source.body, { + start: { + line: location.line, + column: location.column + } }) } }); diff --git a/packages/api-headless-cms/src/graphql/schema/createManageResolvers.ts b/packages/api-headless-cms/src/graphql/schema/createManageResolvers.ts index 9a603a17f3b..882f27e72ea 100644 --- a/packages/api-headless-cms/src/graphql/schema/createManageResolvers.ts +++ b/packages/api-headless-cms/src/graphql/schema/createManageResolvers.ts @@ -38,13 +38,6 @@ export const createManageResolvers: CreateManageResolvers = ({ model, fieldTypePlugins }) => { - if (model.fields.length === 0) { - return { - Query: {}, - Mutation: {} - }; - } - const createFieldResolvers = createFieldResolversFactory({ endpointType: "manage", models, diff --git a/packages/api-headless-cms/src/graphql/schema/createManageSDL.ts b/packages/api-headless-cms/src/graphql/schema/createManageSDL.ts index 3e36da3db22..402c6e13691 100644 --- a/packages/api-headless-cms/src/graphql/schema/createManageSDL.ts +++ b/packages/api-headless-cms/src/graphql/schema/createManageSDL.ts @@ -30,9 +30,6 @@ export const createManageSDL: CreateManageSDL = ({ fields: model.fields, fieldTypePlugins }); - if (inputFields.length === 0) { - return ""; - } const listFilterFieldsRender = renderListFilterFields({ model, fields: model.fields, diff --git a/packages/api-headless-cms/src/graphql/schema/createPreviewResolvers.ts b/packages/api-headless-cms/src/graphql/schema/createPreviewResolvers.ts index bd9265107b0..a27f1e9ddba 100644 --- a/packages/api-headless-cms/src/graphql/schema/createPreviewResolvers.ts +++ b/packages/api-headless-cms/src/graphql/schema/createPreviewResolvers.ts @@ -20,12 +20,6 @@ export const createPreviewResolvers: CreateReadResolvers = ({ model, fieldTypePlugins }) => { - if (model.fields.length === 0) { - return { - Query: {} - }; - } - const createFieldResolvers = createFieldResolversFactory({ endpointType: "read", models, diff --git a/packages/api-headless-cms/src/graphql/schema/createReadResolvers.ts b/packages/api-headless-cms/src/graphql/schema/createReadResolvers.ts index a050aa9371a..5a3de1c8cba 100644 --- a/packages/api-headless-cms/src/graphql/schema/createReadResolvers.ts +++ b/packages/api-headless-cms/src/graphql/schema/createReadResolvers.ts @@ -16,12 +16,6 @@ export interface CreateReadResolvers { } export const createReadResolvers: CreateReadResolvers = ({ models, model, fieldTypePlugins }) => { - if (model.fields.length === 0) { - return { - Query: {} - }; - } - const createFieldResolvers = createFieldResolversFactory({ endpointType: "read", models, diff --git a/packages/api-headless-cms/src/graphql/schema/createReadSDL.ts b/packages/api-headless-cms/src/graphql/schema/createReadSDL.ts index 58daebfda8f..70a0e9ee467 100644 --- a/packages/api-headless-cms/src/graphql/schema/createReadSDL.ts +++ b/packages/api-headless-cms/src/graphql/schema/createReadSDL.ts @@ -32,10 +32,6 @@ export const createReadSDL: CreateReadSDL = ({ type, fieldTypePlugins }); - - if (fieldsRender.length === 0) { - return ""; - } const listFilterFieldsRender = renderListFilterFields({ model, fields: model.fields, @@ -70,7 +66,7 @@ export const createReadSDL: CreateReadSDL = ({ entryId: String! ${hasModelIdField ? "" : "modelId: String!"} - ${onByMetaGqlFields} + ${onByMetaGqlFields} publishedOn: DateTime @deprecated(reason: "Field was removed with the 5.39.0 release. Use 'firstPublishedOn' or 'lastPublishedOn' field.") ownedBy: CmsIdentity @deprecated(reason: "Field was removed with the 5.39.0 release. Use 'createdBy' field.") diff --git a/packages/api-headless-cms/src/graphql/schema/schemaPlugins.ts b/packages/api-headless-cms/src/graphql/schema/schemaPlugins.ts index 8b1d2867f0f..68240346409 100644 --- a/packages/api-headless-cms/src/graphql/schema/schemaPlugins.ts +++ b/packages/api-headless-cms/src/graphql/schema/schemaPlugins.ts @@ -45,65 +45,61 @@ export const generateSchemaPlugins = async ( type }); - models - .filter(model => { - return model.fields.length > 0; - }) - .forEach(model => { - switch (type) { - case "manage": - { - const plugin = createCmsGraphQLSchemaPlugin({ - typeDefs: createManageSDL({ - models, - model, - fieldTypePlugins, - sorterPlugins - }), - resolvers: createManageResolvers({ - models, - model, - fieldTypePlugins, - context - }) - }); - plugin.name = `headless-cms.graphql.schema.manage.${model.modelId}`; - schemaPlugins.push(plugin); - } + models.forEach(model => { + switch (type) { + case "manage": + { + const plugin = createCmsGraphQLSchemaPlugin({ + typeDefs: createManageSDL({ + models, + model, + fieldTypePlugins, + sorterPlugins + }), + resolvers: createManageResolvers({ + models, + model, + fieldTypePlugins, + context + }) + }); + plugin.name = `headless-cms.graphql.schema.manage.${model.modelId}`; + schemaPlugins.push(plugin); + } - break; - case "preview": - case "read": - { - const plugin = createCmsGraphQLSchemaPlugin({ - typeDefs: createReadSDL({ - models, - model, - fieldTypePlugins, - sorterPlugins - }), - resolvers: cms.READ - ? createReadResolvers({ - models, - model, - fieldTypePlugins, - context - }) - : createPreviewResolvers({ - models, - model, - fieldTypePlugins, - context - }) - }); - plugin.name = `headless-cms.graphql.schema.${type}.${model.modelId}`; - schemaPlugins.push(plugin); - } - break; - default: - return; - } - }); + break; + case "preview": + case "read": + { + const plugin = createCmsGraphQLSchemaPlugin({ + typeDefs: createReadSDL({ + models, + model, + fieldTypePlugins, + sorterPlugins + }), + resolvers: cms.READ + ? createReadResolvers({ + models, + model, + fieldTypePlugins, + context + }) + : createPreviewResolvers({ + models, + model, + fieldTypePlugins, + context + }) + }); + plugin.name = `headless-cms.graphql.schema.${type}.${model.modelId}`; + schemaPlugins.push(plugin); + } + break; + default: + return; + } + }); return schemaPlugins.filter(pl => !!pl.schema.typeDefs); }; diff --git a/packages/api-headless-cms/src/types/context.ts b/packages/api-headless-cms/src/types/context.ts index b05f9077084..07d7ac34407 100644 --- a/packages/api-headless-cms/src/types/context.ts +++ b/packages/api-headless-cms/src/types/context.ts @@ -79,28 +79,28 @@ export interface CmsEntryContext { /** * List entries for a model. Internal method used by get, listLatest and listPublished. */ - listEntries: ( + listEntries: ( model: CmsModel, params: CmsEntryListParams ) => Promise<[CmsEntry[], CmsEntryMeta]>; /** * Lists the latest entries. Used for manage API. */ - listLatestEntries: ( + listLatestEntries: ( model: CmsModel, params?: CmsEntryListParams ) => Promise<[CmsEntry[], CmsEntryMeta]>; /** * List published entries. Used for read API. */ - listPublishedEntries: ( + listPublishedEntries: ( model: CmsModel, params?: CmsEntryListParams ) => Promise<[CmsEntry[], CmsEntryMeta]>; /** * Lists the deleted entries. Used for manage API. */ - listDeletedEntries: ( + listDeletedEntries: ( model: CmsModel, params?: CmsEntryListParams ) => Promise<[CmsEntry[], CmsEntryMeta]>; diff --git a/packages/api-headless-cms/src/types/types.ts b/packages/api-headless-cms/src/types/types.ts index 41e05096bef..c0f81e72d61 100644 --- a/packages/api-headless-cms/src/types/types.ts +++ b/packages/api-headless-cms/src/types/types.ts @@ -876,7 +876,9 @@ export interface CmsModelContext { * * @see CmsModelManager */ - getEntryManager(model: CmsModel | string): Promise>; + getEntryManager( + model: CmsModel | string + ): Promise>; /** * Get all content model managers mapped by modelId. * @see CmsModelManager diff --git a/packages/api-i18n-content/package.json b/packages/api-i18n-content/package.json index e73aca06243..aa9d0db99dc 100644 --- a/packages/api-i18n-content/package.json +++ b/packages/api-i18n-content/package.json @@ -22,7 +22,7 @@ "@webiny/cli": "0.0.0", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-i18n-ddb/package.json b/packages/api-i18n-ddb/package.json index 001252d3aa0..d0d9369fb44 100644 --- a/packages/api-i18n-ddb/package.json +++ b/packages/api-i18n-ddb/package.json @@ -43,7 +43,7 @@ "jest-dynalite": "^3.2.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-i18n/package.json b/packages/api-i18n/package.json index ddce37085ca..157c8b5c94b 100644 --- a/packages/api-i18n/package.json +++ b/packages/api-i18n/package.json @@ -37,7 +37,7 @@ "jest": "^29.7.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-mailer/package.json b/packages/api-mailer/package.json index 177278708cd..e4e1b699b17 100644 --- a/packages/api-mailer/package.json +++ b/packages/api-mailer/package.json @@ -47,7 +47,7 @@ "jest-dynalite": "^3.6.1", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-page-builder-aco/package.json b/packages/api-page-builder-aco/package.json index c367059a3e8..08c81e65048 100644 --- a/packages/api-page-builder-aco/package.json +++ b/packages/api-page-builder-aco/package.json @@ -41,7 +41,7 @@ "@webiny/wcp": "0.0.0", "graphql": "^15.8.0", "ttypescript": "^1.5.13", - "typescript": "^4.7.4" + "typescript": "4.9.5" }, "dependencies": { "@webiny/api": "0.0.0", diff --git a/packages/api-page-builder-import-export-so-ddb/package.json b/packages/api-page-builder-import-export-so-ddb/package.json index eb90aa7d6c3..1e9aaebb6c3 100644 --- a/packages/api-page-builder-import-export-so-ddb/package.json +++ b/packages/api-page-builder-import-export-so-ddb/package.json @@ -39,7 +39,7 @@ "jest-dynalite": "^3.2.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-page-builder-import-export/package.json b/packages/api-page-builder-import-export/package.json index 497b20f6e58..0f19f5b2474 100644 --- a/packages/api-page-builder-import-export/package.json +++ b/packages/api-page-builder-import-export/package.json @@ -62,7 +62,7 @@ "jest-dynalite": "^3.2.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-page-builder-so-ddb-es/__tests__/pages/customField.test.ts b/packages/api-page-builder-so-ddb-es/__tests__/pages/customField.test.ts index 328adcb7885..21a74fc421a 100644 --- a/packages/api-page-builder-so-ddb-es/__tests__/pages/customField.test.ts +++ b/packages/api-page-builder-so-ddb-es/__tests__/pages/customField.test.ts @@ -299,6 +299,12 @@ describe("page custom field", () => { kind: "ENUM", name: "PbListPagesSort", enumValues: [ + { + name: "customViews_ASC" + }, + { + name: "customViews_DESC" + }, { name: "id_ASC" }, @@ -328,12 +334,6 @@ describe("page custom field", () => { }, { name: "title_DESC" - }, - { - name: "customViews_ASC" - }, - { - name: "customViews_DESC" } ], possibleTypes: null diff --git a/packages/api-page-builder-so-ddb-es/package.json b/packages/api-page-builder-so-ddb-es/package.json index cea94f57b28..b027211352f 100644 --- a/packages/api-page-builder-so-ddb-es/package.json +++ b/packages/api-page-builder-so-ddb-es/package.json @@ -67,7 +67,7 @@ "jest-dynalite": "^3.2.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-page-builder-so-ddb/package.json b/packages/api-page-builder-so-ddb/package.json index 349dc22970e..ce0353d12e0 100644 --- a/packages/api-page-builder-so-ddb/package.json +++ b/packages/api-page-builder-so-ddb/package.json @@ -44,7 +44,7 @@ "jest-dynalite": "^3.2.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-page-builder/package.json b/packages/api-page-builder/package.json index 3ddb8ade0b6..d0b73fb7cb5 100644 --- a/packages/api-page-builder/package.json +++ b/packages/api-page-builder/package.json @@ -59,7 +59,7 @@ "jest": "^29.7.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-prerendering-service-aws/package.json b/packages/api-prerendering-service-aws/package.json index 8c7bd97cbb8..c58ab03dabd 100644 --- a/packages/api-prerendering-service-aws/package.json +++ b/packages/api-prerendering-service-aws/package.json @@ -30,7 +30,7 @@ "@webiny/cli": "0.0.0", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-prerendering-service-so-ddb/package.json b/packages/api-prerendering-service-so-ddb/package.json index 6924981d978..5ecfe378d30 100644 --- a/packages/api-prerendering-service-so-ddb/package.json +++ b/packages/api-prerendering-service-so-ddb/package.json @@ -38,7 +38,7 @@ "prettier": "^2.8.3", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-prerendering-service/package.json b/packages/api-prerendering-service/package.json index b810f64d75f..4f5b541a939 100644 --- a/packages/api-prerendering-service/package.json +++ b/packages/api-prerendering-service/package.json @@ -48,7 +48,7 @@ "prettier": "^2.8.3", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-record-locking/package.json b/packages/api-record-locking/package.json index 3123619fee5..44a8cef4d69 100644 --- a/packages/api-record-locking/package.json +++ b/packages/api-record-locking/package.json @@ -40,7 +40,7 @@ "rimraf": "^5.0.5", "ttypescript": "^1.5.13", "type-fest": "^2.19.0", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-security-auth0/package.json b/packages/api-security-auth0/package.json index 1bffa2047ef..40dbfcb6c21 100644 --- a/packages/api-security-auth0/package.json +++ b/packages/api-security-auth0/package.json @@ -33,7 +33,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.13", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-security-cognito/package.json b/packages/api-security-cognito/package.json index 7fe6278a223..fcbb4583a9a 100644 --- a/packages/api-security-cognito/package.json +++ b/packages/api-security-cognito/package.json @@ -34,7 +34,7 @@ "@webiny/project-utils": "0.0.0", "md5": "^2.3.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-security-okta/package.json b/packages/api-security-okta/package.json index 8ac2b9ecabf..b893c81274e 100644 --- a/packages/api-security-okta/package.json +++ b/packages/api-security-okta/package.json @@ -29,7 +29,7 @@ "@webiny/cli": "0.0.0", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-security-so-ddb/package.json b/packages/api-security-so-ddb/package.json index a73f4faa573..a0f399213f6 100644 --- a/packages/api-security-so-ddb/package.json +++ b/packages/api-security-so-ddb/package.json @@ -31,7 +31,7 @@ "jest-dynalite": "^3.2.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-security/package.json b/packages/api-security/package.json index 678bb62d97f..bd2969cd205 100644 --- a/packages/api-security/package.json +++ b/packages/api-security/package.json @@ -42,7 +42,7 @@ "@webiny/wcp": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-serverless-cms/package.json b/packages/api-serverless-cms/package.json index f9b7f39e892..9c64c98fffe 100644 --- a/packages/api-serverless-cms/package.json +++ b/packages/api-serverless-cms/package.json @@ -34,7 +34,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.13", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-tenancy-so-ddb/package.json b/packages/api-tenancy-so-ddb/package.json index 6ee620114d1..3dba55da3cc 100644 --- a/packages/api-tenancy-so-ddb/package.json +++ b/packages/api-tenancy-so-ddb/package.json @@ -31,7 +31,7 @@ "jest-dynalite": "^3.2.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-tenancy/package.json b/packages/api-tenancy/package.json index 6d69de9438d..db0a7af2809 100644 --- a/packages/api-tenancy/package.json +++ b/packages/api-tenancy/package.json @@ -29,7 +29,7 @@ "jest-dynalite": "^3.2.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-tenant-manager/package.json b/packages/api-tenant-manager/package.json index 00e6c394c16..4bed8e5265f 100644 --- a/packages/api-tenant-manager/package.json +++ b/packages/api-tenant-manager/package.json @@ -28,7 +28,7 @@ "jest-dynalite": "^3.2.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-theme-manager/package.json b/packages/api-theme-manager/package.json index bf5ef29beb7..def26d70096 100644 --- a/packages/api-theme-manager/package.json +++ b/packages/api-theme-manager/package.json @@ -22,7 +22,7 @@ "jest": "^29.7.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-wcp/package.json b/packages/api-wcp/package.json index 31217c3337b..ee45dddef53 100644 --- a/packages/api-wcp/package.json +++ b/packages/api-wcp/package.json @@ -30,7 +30,7 @@ "jest-dynalite": "^3.2.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api-websockets/package.json b/packages/api-websockets/package.json index 419fcfa504e..d947b440bca 100644 --- a/packages/api-websockets/package.json +++ b/packages/api-websockets/package.json @@ -43,7 +43,7 @@ "graphql": "^15.8.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.13", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/api/package.json b/packages/api/package.json index 74cc31b45c9..28eeceed7bf 100644 --- a/packages/api/package.json +++ b/packages/api/package.json @@ -25,7 +25,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.13", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-aco/package.json b/packages/app-aco/package.json index e0e400a63a7..074f29f6967 100644 --- a/packages/app-aco/package.json +++ b/packages/app-aco/package.json @@ -57,7 +57,7 @@ "apollo-link": "^1.2.14", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-aco/src/contexts/acoList.tsx b/packages/app-aco/src/contexts/acoList.tsx index fc68a7ae6eb..9279768295d 100644 --- a/packages/app-aco/src/contexts/acoList.tsx +++ b/packages/app-aco/src/contexts/acoList.tsx @@ -91,7 +91,7 @@ const getCurrentFolderList = ( return folders.filter(folder => folder.parentId === currentFolderId); }; -const getCurrentRecordList = ( +const getCurrentRecordList = ( records: SearchRecordItem[], folderIdPath: string, currentFolderId?: string diff --git a/packages/app-admin-auth0/package.json b/packages/app-admin-auth0/package.json index 44de2a3d2b7..33c7ad89354 100644 --- a/packages/app-admin-auth0/package.json +++ b/packages/app-admin-auth0/package.json @@ -45,7 +45,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.13", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-admin-cognito/package.json b/packages/app-admin-cognito/package.json index 3501636fd44..99637c8cfff 100644 --- a/packages/app-admin-cognito/package.json +++ b/packages/app-admin-cognito/package.json @@ -42,7 +42,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-admin-okta/package.json b/packages/app-admin-okta/package.json index 4a19470890a..870257b5867 100644 --- a/packages/app-admin-okta/package.json +++ b/packages/app-admin-okta/package.json @@ -46,7 +46,7 @@ "@webiny/cli": "0.0.0", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-admin-rmwc/package.json b/packages/app-admin-rmwc/package.json index 53888ead621..eb9b87e80c7 100644 --- a/packages/app-admin-rmwc/package.json +++ b/packages/app-admin-rmwc/package.json @@ -46,7 +46,7 @@ "babel-plugin-named-asset-import": "^1.0.0-next.3e165448", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-admin-users-cognito/package.json b/packages/app-admin-users-cognito/package.json index c47431809be..673aa6954ed 100644 --- a/packages/app-admin-users-cognito/package.json +++ b/packages/app-admin-users-cognito/package.json @@ -46,7 +46,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-admin/package.json b/packages/app-admin/package.json index 23f325ccbe1..c19192a68e5 100644 --- a/packages/app-admin/package.json +++ b/packages/app-admin/package.json @@ -72,7 +72,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-admin/src/components/Filters/Filters.tsx b/packages/app-admin/src/components/Filters/Filters.tsx index d599cdcacde..5b4146e0215 100644 --- a/packages/app-admin/src/components/Filters/Filters.tsx +++ b/packages/app-admin/src/components/Filters/Filters.tsx @@ -12,7 +12,8 @@ export type GenericFiltersData = GenericFormData; export type FiltersOnSubmit = FormOnSubmit; -export interface FiltersProps extends Pick, "data" | "onChange"> { +export interface FiltersProps + extends Pick, "data" | "onChange"> { filters: Filter[]; show: boolean; children?: React.ReactNode; diff --git a/packages/app-admin/src/ui/elements/ButtonElement.tsx b/packages/app-admin/src/ui/elements/ButtonElement.tsx index 71ccf48ba5d..815b1900349 100644 --- a/packages/app-admin/src/ui/elements/ButtonElement.tsx +++ b/packages/app-admin/src/ui/elements/ButtonElement.tsx @@ -1,6 +1,6 @@ import React from "react"; import { ButtonDefault, ButtonPrimary, ButtonSecondary } from "@webiny/ui/Button"; -import { UIElement, UIElementConfig } from "../UIElement"; +import { UIElement, UIElementConfig, UiElementRenderProps } from "../UIElement"; import kebabCase from "lodash/kebabCase"; export type ButtonElementType = "default" | "primary" | "secondary"; @@ -25,9 +25,9 @@ const BUTTONS = { secondary: ButtonSecondary }; -export class ButtonElement extends UIElement< - ButtonElementConfig -> { +export class ButtonElement< + TRenderProps extends UiElementRenderProps = UiElementRenderProps +> extends UIElement> { public setLabel( label: string | GetterWithProps ): void { diff --git a/packages/app-admin/src/ui/elements/SmallButtonElement.tsx b/packages/app-admin/src/ui/elements/SmallButtonElement.tsx index f9602a1dfd0..4a6ff49c16d 100644 --- a/packages/app-admin/src/ui/elements/SmallButtonElement.tsx +++ b/packages/app-admin/src/ui/elements/SmallButtonElement.tsx @@ -1,6 +1,7 @@ import React from "react"; import { ButtonDefault, ButtonPrimary, ButtonSecondary } from "@webiny/ui/Button"; import { ButtonElement, ButtonElementConfig } from "~/ui/elements/ButtonElement"; +import { UiElementRenderProps } from "@webiny/ui-composer/UIElement"; const BUTTONS = { default: ButtonDefault, @@ -8,7 +9,9 @@ const BUTTONS = { secondary: ButtonSecondary }; -export class SmallButtonElement extends ButtonElement { +export class SmallButtonElement< + TRenderProps extends UiElementRenderProps = UiElementRenderProps +> extends ButtonElement { public constructor(id: string, config: ButtonElementConfig) { super(id, config); diff --git a/packages/app-apw/package.json b/packages/app-apw/package.json index 995d56afff6..1f7dae01ec3 100644 --- a/packages/app-apw/package.json +++ b/packages/app-apw/package.json @@ -54,7 +54,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-audit-logs/package.json b/packages/app-audit-logs/package.json index 9e8b90faa52..a7e4f903bb1 100644 --- a/packages/app-audit-logs/package.json +++ b/packages/app-audit-logs/package.json @@ -45,7 +45,7 @@ "execa": "^5.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-cognito-authenticator/package.json b/packages/app-cognito-authenticator/package.json index cc89fd11555..95a39dad044 100644 --- a/packages/app-cognito-authenticator/package.json +++ b/packages/app-cognito-authenticator/package.json @@ -29,7 +29,7 @@ "@webiny/cli": "0.0.0", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-file-manager-s3/package.json b/packages/app-file-manager-s3/package.json index 823e00743c7..e00891c58c2 100644 --- a/packages/app-file-manager-s3/package.json +++ b/packages/app-file-manager-s3/package.json @@ -20,7 +20,7 @@ "@webiny/cli": "0.0.0", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-file-manager/package.json b/packages/app-file-manager/package.json index a12ebbe99ae..b3d01855549 100644 --- a/packages/app-file-manager/package.json +++ b/packages/app-file-manager/package.json @@ -69,7 +69,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.13", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-form-builder/package.json b/packages/app-form-builder/package.json index 7caef5166bd..34ccfa52454 100644 --- a/packages/app-form-builder/package.json +++ b/packages/app-form-builder/package.json @@ -73,7 +73,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-graphql-playground/package.json b/packages/app-graphql-playground/package.json index cb76a73bda9..8f977da5cfc 100644 --- a/packages/app-graphql-playground/package.json +++ b/packages/app-graphql-playground/package.json @@ -39,7 +39,7 @@ "@webiny/cli": "0.0.0", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-headless-cms-common/package.json b/packages/app-headless-cms-common/package.json index 17b74d52409..3294afed1c9 100644 --- a/packages/app-headless-cms-common/package.json +++ b/packages/app-headless-cms-common/package.json @@ -38,7 +38,7 @@ "babel-plugin-module-resolver": "^5.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-headless-cms/package.json b/packages/app-headless-cms/package.json index 35f0b0515b5..1f23863d904 100644 --- a/packages/app-headless-cms/package.json +++ b/packages/app-headless-cms/package.json @@ -90,7 +90,7 @@ "babel-plugin-module-resolver": "^5.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-i18n-content/package.json b/packages/app-i18n-content/package.json index 4facd91d673..cb564f98f3a 100644 --- a/packages/app-i18n-content/package.json +++ b/packages/app-i18n-content/package.json @@ -31,7 +31,7 @@ "@webiny/cli": "0.0.0", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-i18n/package.json b/packages/app-i18n/package.json index 7580821b5e8..052db47e91f 100644 --- a/packages/app-i18n/package.json +++ b/packages/app-i18n/package.json @@ -49,7 +49,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-mailer/package.json b/packages/app-mailer/package.json index 3197475833a..a70572d44d4 100644 --- a/packages/app-mailer/package.json +++ b/packages/app-mailer/package.json @@ -41,7 +41,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-page-builder-editor/package.json b/packages/app-page-builder-editor/package.json index 928df70d07f..9275adc134c 100644 --- a/packages/app-page-builder-editor/package.json +++ b/packages/app-page-builder-editor/package.json @@ -49,7 +49,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-page-builder-elements/package.json b/packages/app-page-builder-elements/package.json index 19bf17d3e14..0eb619dae12 100644 --- a/packages/app-page-builder-elements/package.json +++ b/packages/app-page-builder-elements/package.json @@ -63,7 +63,7 @@ "execa": "^5.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-page-builder-elements/src/createRenderer.tsx b/packages/app-page-builder-elements/src/createRenderer.tsx index d0f439f5901..68561456e2b 100644 --- a/packages/app-page-builder-elements/src/createRenderer.tsx +++ b/packages/app-page-builder-elements/src/createRenderer.tsx @@ -1,9 +1,9 @@ import React from "react"; import { usePageElements } from "~/hooks/usePageElements"; -import { Renderer, Element } from "~/types"; -import { Theme, StylesObject } from "@webiny/theme/types"; +import { Element, Renderer } from "~/types"; +import { StylesObject, Theme } from "@webiny/theme/types"; import { RendererProvider } from "~/contexts/Renderer"; -import { CSSObject, ClassNames } from "@emotion/react"; +import { ClassNames, CSSObject } from "@emotion/react"; interface GetStylesParams { theme: Theme; @@ -98,11 +98,12 @@ export function createRenderer>( <> {BeforeRenderer ? : null} - {/* Would've liked if the `as unknown as T` part wasn't - needed, but unfortunately, could not figure it out. */} - + {/* + Would've liked if the `as unknown as any` part wasn't + needed, but unfortunately, could not figure it out. + // TODO remove any! + */} + {AfterRenderer ? : null} )} diff --git a/packages/app-page-builder/package.json b/packages/app-page-builder/package.json index aa6e1b200eb..8e9770b3d3e 100644 --- a/packages/app-page-builder/package.json +++ b/packages/app-page-builder/package.json @@ -105,7 +105,7 @@ "execa": "^5.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-page-builder/src/blockEditor/types.ts b/packages/app-page-builder/src/blockEditor/types.ts index c37147458a6..91242054131 100644 --- a/packages/app-page-builder/src/blockEditor/types.ts +++ b/packages/app-page-builder/src/blockEditor/types.ts @@ -1,11 +1,9 @@ -import { EventActionCallable } from "~/types"; +import { EventActionCallable, EventActionHandlerCallableArgs } from "~/types"; import { BlockAtomType } from "~/blockEditor/state"; export interface BlockEditorEventActionCallableState { block: BlockAtomType; } -export type BlockEventActionCallable = EventActionCallable< - TArgs, - BlockEditorEventActionCallableState ->; +export type BlockEventActionCallable = + EventActionCallable; diff --git a/packages/app-page-builder/src/pageEditor/types.ts b/packages/app-page-builder/src/pageEditor/types.ts index 8c3350b16ea..8e270d6c82d 100644 --- a/packages/app-page-builder/src/pageEditor/types.ts +++ b/packages/app-page-builder/src/pageEditor/types.ts @@ -1,4 +1,4 @@ -import { EventActionCallable } from "~/types"; +import { EventActionCallable, EventActionHandlerCallableArgs } from "~/types"; import { PageAtomType } from "~/pageEditor/state"; import { TemplateModeAtomType } from "~/pageEditor/hooks/useTemplateMode"; @@ -7,7 +7,5 @@ export interface PageEditorEventActionCallableState { isTemplateMode: TemplateModeAtomType; } -export type PageEventActionCallable = EventActionCallable< - TArgs, - PageEditorEventActionCallableState ->; +export type PageEventActionCallable = + EventActionCallable; diff --git a/packages/app-page-builder/src/templateEditor/types.ts b/packages/app-page-builder/src/templateEditor/types.ts index f7daca80279..d093cc547ee 100644 --- a/packages/app-page-builder/src/templateEditor/types.ts +++ b/packages/app-page-builder/src/templateEditor/types.ts @@ -1,11 +1,9 @@ -import { EventActionCallable } from "~/types"; +import { EventActionCallable, EventActionHandlerCallableArgs } from "~/types"; import { PageTemplate } from "~/templateEditor/state"; export interface TemplateEditorEventActionCallableState { template: PageTemplate; } -export type TemplateEventActionCallable = EventActionCallable< - TArgs, - TemplateEditorEventActionCallableState ->; +export type TemplateEventActionCallable = + EventActionCallable; diff --git a/packages/app-plugin-admin-welcome-screen/package.json b/packages/app-plugin-admin-welcome-screen/package.json index 697967d523c..f228cc30d27 100644 --- a/packages/app-plugin-admin-welcome-screen/package.json +++ b/packages/app-plugin-admin-welcome-screen/package.json @@ -26,7 +26,7 @@ "@webiny/cli": "0.0.0", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-record-locking/package.json b/packages/app-record-locking/package.json index 1fae82f021f..f34c50cce96 100644 --- a/packages/app-record-locking/package.json +++ b/packages/app-record-locking/package.json @@ -45,7 +45,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-security-access-management/package.json b/packages/app-security-access-management/package.json index f7001c8380f..6f2c63aff49 100644 --- a/packages/app-security-access-management/package.json +++ b/packages/app-security-access-management/package.json @@ -45,7 +45,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-security/package.json b/packages/app-security/package.json index 04b8fc6f3fb..2adbdf8974e 100644 --- a/packages/app-security/package.json +++ b/packages/app-security/package.json @@ -31,7 +31,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-serverless-cms/package.json b/packages/app-serverless-cms/package.json index 808685a7721..5577ff095bf 100644 --- a/packages/app-serverless-cms/package.json +++ b/packages/app-serverless-cms/package.json @@ -56,7 +56,7 @@ "babel-plugin-named-asset-import": "^1.0.0-next.3e165448", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-tenancy/package.json b/packages/app-tenancy/package.json index 7ecd1d32430..9aa0bce404c 100644 --- a/packages/app-tenancy/package.json +++ b/packages/app-tenancy/package.json @@ -39,7 +39,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.3.2", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-tenant-manager/package.json b/packages/app-tenant-manager/package.json index ce1e81d3b67..5820b6cf538 100644 --- a/packages/app-tenant-manager/package.json +++ b/packages/app-tenant-manager/package.json @@ -45,7 +45,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-theme-manager/package.json b/packages/app-theme-manager/package.json index 76a6ac69aa0..e665c566d07 100644 --- a/packages/app-theme-manager/package.json +++ b/packages/app-theme-manager/package.json @@ -46,7 +46,7 @@ "babel-plugin-named-asset-import": "^1.0.0-next.3e165448", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-theme/package.json b/packages/app-theme/package.json index b2ee2d2cb60..f88df43d062 100644 --- a/packages/app-theme/package.json +++ b/packages/app-theme/package.json @@ -30,7 +30,7 @@ "execa": "^5.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-trash-bin/package.json b/packages/app-trash-bin/package.json index 486476c1305..585b602409b 100644 --- a/packages/app-trash-bin/package.json +++ b/packages/app-trash-bin/package.json @@ -40,7 +40,7 @@ "apollo-link": "^1.2.14", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-utils/package.json b/packages/app-utils/package.json index 04096dc6ca1..355863f1912 100644 --- a/packages/app-utils/package.json +++ b/packages/app-utils/package.json @@ -23,7 +23,7 @@ "@webiny/cli": "0.0.0", "@webiny/project-utils": "0.0.0", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-wcp/package.json b/packages/app-wcp/package.json index 3640431faeb..6f57d75fe12 100644 --- a/packages/app-wcp/package.json +++ b/packages/app-wcp/package.json @@ -32,7 +32,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-website/package.json b/packages/app-website/package.json index fac17518df3..347e88c4c29 100644 --- a/packages/app-website/package.json +++ b/packages/app-website/package.json @@ -41,7 +41,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app-websockets/package.json b/packages/app-websockets/package.json index eff74c84a40..d15ca7a6e40 100644 --- a/packages/app-websockets/package.json +++ b/packages/app-websockets/package.json @@ -31,7 +31,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/app/package.json b/packages/app/package.json index 71e3a1beecd..bc2f8adaf1d 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -56,7 +56,7 @@ "@webiny/cli": "0.0.0", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/aws-sdk/package.json b/packages/aws-sdk/package.json index 83bd48268c9..f9a1bf85b86 100644 --- a/packages/aws-sdk/package.json +++ b/packages/aws-sdk/package.json @@ -35,7 +35,7 @@ "@webiny/cli": "0.0.0", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/cli-plugin-scaffold-admin-app-module/package.json b/packages/cli-plugin-scaffold-admin-app-module/package.json index 999ebe6fc35..0a718c2ed56 100644 --- a/packages/cli-plugin-scaffold-admin-app-module/package.json +++ b/packages/cli-plugin-scaffold-admin-app-module/package.json @@ -31,13 +31,13 @@ "@babel/cli": "^7.23.9", "@babel/core": "^7.24.0", "@babel/preset-env": "^7.24.0", - "@types/inquirer": "^7.3.1", + "@types/inquirer": "8.2.10", "@types/ncp": "^2.0.4", "@types/pluralize": "^0.0.29", "@webiny/plugins": "0.0.0", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "scripts": { "build": "yarn webiny run build", diff --git a/packages/cli-plugin-scaffold-ci/package.json b/packages/cli-plugin-scaffold-ci/package.json index f8f48102fce..224591857a8 100644 --- a/packages/cli-plugin-scaffold-ci/package.json +++ b/packages/cli-plugin-scaffold-ci/package.json @@ -24,7 +24,7 @@ "@webiny/plugins": "0.0.0", "@webiny/validation": "0.0.0", "chalk": "^4.1.0", - "inquirer": "^7.3.3", + "inquirer": "8.2.6", "js-base64": "^3.6.0", "octokit": "^3.1.2", "open": "^8.0.6", @@ -35,13 +35,13 @@ "@babel/cli": "^7.23.9", "@babel/core": "^7.24.0", "@babel/preset-env": "^7.24.0", - "@types/inquirer": "^7.3.1", + "@types/inquirer": "8.2.10", "@types/ncp": "^2.0.4", "@types/pluralize": "^0.0.29", "@types/validate-npm-package-name": "^3.0.3", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "scripts": { "build": "yarn webiny run build", diff --git a/packages/cli-plugin-scaffold-ci/src/types.ts b/packages/cli-plugin-scaffold-ci/src/types.ts index f0cc71bdd18..6d696ae4dab 100644 --- a/packages/cli-plugin-scaffold-ci/src/types.ts +++ b/packages/cli-plugin-scaffold-ci/src/types.ts @@ -4,8 +4,9 @@ import { } from "@webiny/cli-plugin-scaffold/types"; import { Plugin } from "@webiny/plugins/types"; import { DistinctQuestion } from "inquirer"; +import { GenericRecord } from "@webiny/cli/types"; -export interface CliPluginsScaffoldCi extends Plugin { +export interface CliPluginsScaffoldCi extends Plugin { type: "cli-plugin-scaffold-ci"; provider: string; generate: (args: CliCommandScaffoldCallableArgs) => Promise; diff --git a/packages/cli-plugin-scaffold-extensions/package.json b/packages/cli-plugin-scaffold-extensions/package.json index 46e12b1f8c5..ea86d52c95e 100644 --- a/packages/cli-plugin-scaffold-extensions/package.json +++ b/packages/cli-plugin-scaffold-extensions/package.json @@ -38,13 +38,13 @@ "@babel/cli": "^7.23.9", "@babel/core": "^7.24.0", "@babel/preset-env": "^7.24.0", - "@types/inquirer": "^7.3.1", + "@types/inquirer": "8.2.10", "@types/ncp": "^2.0.4", "@types/pluralize": "^0.0.29", "@types/validate-npm-package-name": "^3.0.3", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "scripts": { "build": "yarn webiny run build", diff --git a/packages/cli-plugin-scaffold-full-stack-app/package.json b/packages/cli-plugin-scaffold-full-stack-app/package.json index a741dd54f74..53f96fd2013 100644 --- a/packages/cli-plugin-scaffold-full-stack-app/package.json +++ b/packages/cli-plugin-scaffold-full-stack-app/package.json @@ -29,13 +29,13 @@ "@babel/cli": "^7.23.9", "@babel/core": "^7.24.0", "@babel/preset-env": "^7.24.0", - "@types/inquirer": "^7.3.1", + "@types/inquirer": "8.2.10", "@types/ncp": "^2.0.4", "@types/pluralize": "^0.0.29", "@webiny/plugins": "0.0.0", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "scripts": { "build": "yarn webiny run build", diff --git a/packages/cli-plugin-scaffold-graphql-api/package.json b/packages/cli-plugin-scaffold-graphql-api/package.json index 1a85590f12e..07a5b0aa0a4 100644 --- a/packages/cli-plugin-scaffold-graphql-api/package.json +++ b/packages/cli-plugin-scaffold-graphql-api/package.json @@ -33,13 +33,13 @@ "@babel/cli": "^7.23.9", "@babel/core": "^7.24.0", "@babel/preset-env": "^7.24.0", - "@types/inquirer": "^7.3.1", + "@types/inquirer": "8.2.10", "@types/ncp": "^2.0.4", "@types/pluralize": "^0.0.29", "@webiny/plugins": "0.0.0", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "scripts": { "build": "yarn webiny run build", diff --git a/packages/cli-plugin-scaffold-graphql-service/package.json b/packages/cli-plugin-scaffold-graphql-service/package.json index 1d7dac2d81f..19bbe9e626f 100644 --- a/packages/cli-plugin-scaffold-graphql-service/package.json +++ b/packages/cli-plugin-scaffold-graphql-service/package.json @@ -34,13 +34,13 @@ "@babel/cli": "^7.23.9", "@babel/core": "^7.24.0", "@babel/preset-env": "^7.24.0", - "@types/inquirer": "^7.3.1", + "@types/inquirer": "8.2.10", "@types/ncp": "^2.0.4", "@types/pluralize": "^0.0.29", "@webiny/plugins": "0.0.0", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "scripts": { "build": "yarn webiny run build", diff --git a/packages/cli-plugin-scaffold-react-app/package.json b/packages/cli-plugin-scaffold-react-app/package.json index ed488e7450e..2eb083da459 100644 --- a/packages/cli-plugin-scaffold-react-app/package.json +++ b/packages/cli-plugin-scaffold-react-app/package.json @@ -32,13 +32,13 @@ "@babel/cli": "^7.23.9", "@babel/core": "^7.24.0", "@babel/preset-env": "^7.24.0", - "@types/inquirer": "^7.3.1", + "@types/inquirer": "8.2.10", "@types/ncp": "^2.0.4", "@types/pluralize": "^0.0.29", "@webiny/plugins": "0.0.0", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "scripts": { "build": "yarn webiny run build", diff --git a/packages/cli-plugin-scaffold-react-component/package.json b/packages/cli-plugin-scaffold-react-component/package.json index bc000449028..8cd21b02a3c 100644 --- a/packages/cli-plugin-scaffold-react-component/package.json +++ b/packages/cli-plugin-scaffold-react-component/package.json @@ -37,13 +37,13 @@ "@babel/cli": "^7.23.9", "@babel/core": "^7.24.0", "@babel/preset-env": "^7.24.0", - "@types/inquirer": "^7.3.1", + "@types/inquirer": "8.2.10", "@types/ncp": "^2.0.4", "@types/pluralize": "^0.0.29", "@types/validate-npm-package-name": "^3.0.3", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "scripts": { "build": "yarn webiny run build", diff --git a/packages/cli-plugin-scaffold-workspaces/package.json b/packages/cli-plugin-scaffold-workspaces/package.json index 94786d3af7f..6244ea383ea 100644 --- a/packages/cli-plugin-scaffold-workspaces/package.json +++ b/packages/cli-plugin-scaffold-workspaces/package.json @@ -34,13 +34,13 @@ "@babel/cli": "^7.23.9", "@babel/core": "^7.24.0", "@babel/preset-env": "^7.24.0", - "@types/inquirer": "^7.3.1", + "@types/inquirer": "8.2.10", "@types/ncp": "^2.0.4", "@types/pluralize": "^0.0.29", "@types/validate-npm-package-name": "^3.0.3", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "scripts": { "build": "yarn webiny run build", diff --git a/packages/cli-plugin-scaffold/package.json b/packages/cli-plugin-scaffold/package.json index 67b6506e495..88bff266680 100644 --- a/packages/cli-plugin-scaffold/package.json +++ b/packages/cli-plugin-scaffold/package.json @@ -14,7 +14,7 @@ "description": "A tool to bootstrap a Webiny project.", "dependencies": { "@babel/runtime": "^7.24.0", - "inquirer": "^7.3.3", + "inquirer": "8.2.6", "load-json-file": "^6.2.0", "ora": "4.1.1", "ts-morph": "^11.0.0", @@ -24,7 +24,7 @@ "@babel/cli": "^7.23.9", "@babel/core": "^7.24.0", "@babel/preset-env": "^7.24.0", - "@types/inquirer": "^7.3.1", + "@types/inquirer": "8.2.10", "@webiny/cli": "0.0.0", "@webiny/plugins": "0.0.0", "@webiny/project-utils": "0.0.0", @@ -34,7 +34,7 @@ "find-up": "^5.0.0", "prettier": "^2.8.3", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "license": "MIT", "publishConfig": { diff --git a/packages/cli-plugin-scaffold/src/types.ts b/packages/cli-plugin-scaffold/src/types.ts index 1cd2f2c8946..d21c990b717 100644 --- a/packages/cli-plugin-scaffold/src/types.ts +++ b/packages/cli-plugin-scaffold/src/types.ts @@ -1,5 +1,5 @@ import { QuestionCollection } from "inquirer"; -import { CliContext } from "@webiny/cli/types"; +import { CliContext, GenericRecord } from "@webiny/cli/types"; import { Plugin } from "@webiny/plugins/types"; import { Ora } from "ora"; import inquirer from "inquirer"; @@ -54,7 +54,7 @@ export type CliCommandScaffoldQuestionsCallable = ( * @category Scaffold * @category Template */ -export interface CliCommandScaffoldCallableArgs> { +export interface CliCommandScaffoldCallableArgs { input: T; context: CliContext; wait: (ms?: number) => Promise; @@ -68,7 +68,7 @@ export interface CliCommandScaffoldCallableArgs> { * @category Scaffold * @category Template */ -export interface CliCommandScaffoldCallableWithErrorArgs> +export interface CliCommandScaffoldCallableWithErrorArgs extends CliCommandScaffoldCallableArgs { error: Error; } @@ -79,7 +79,7 @@ export interface CliCommandScaffoldCallableWithErrorArgs> { +export interface CliCommandScaffold { /** * Name of the scaffold to be picked from list of choices. */ @@ -117,7 +117,7 @@ export interface CliCommandScaffold> { * @category Scaffold * @category Template */ -export interface CliCommandScaffoldTemplate = Record> +export interface CliCommandScaffoldTemplate extends Plugin { /** * A type of the plugin. diff --git a/packages/cli/package.json b/packages/cli/package.json index d9f63dbef6f..ee1b036cc16 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -24,14 +24,14 @@ "find-up": "5.0.0", "fs-extra": "^11.2.0", "graphql-request": "^3.7.0", - "inquirer": "^7.3.3", + "inquirer": "8.2.6", "is-ci": "^3.0.0", "ncp": "2.0.0", "open": "^8.0.6", "pirates": "^4.0.1", "semver": "^7.3.5", "ts-morph": "^11.0.0", - "typescript": "4.7.4", + "typescript": "4.9.5", "uniqid": "5.4.0", "yargs": "^17.4.0" }, diff --git a/packages/cli/types.d.ts b/packages/cli/types.d.ts index 46040a02a71..fd790729a2d 100644 --- a/packages/cli/types.d.ts +++ b/packages/cli/types.d.ts @@ -5,6 +5,10 @@ import glob from "fast-glob"; import { dirname, join } from "path"; +export type GenericRecordKey = string | number | symbol; + +export type GenericRecord = Record; + /** * A simplified plugins container interface, used specifically within the Webiny CLI. * Not in relation with "@webiny/plugins" package. diff --git a/packages/cwp-template-aws/package.json b/packages/cwp-template-aws/package.json index 1cb1bb0fb91..d7cf89c3c15 100644 --- a/packages/cwp-template-aws/package.json +++ b/packages/cwp-template-aws/package.json @@ -19,7 +19,7 @@ "fast-glob": "^3.2.7", "fs-extra": "^11.2.0", "get-yarn-workspaces": "1.0.2", - "inquirer": "7.3.3", + "inquirer": "8.2.6", "load-json-file": "6.2.0", "lodash": "^4.17.21", "open": "^8.4.0", diff --git a/packages/data-migration/package.json b/packages/data-migration/package.json index 41dc9f4b23c..3e6e758da77 100644 --- a/packages/data-migration/package.json +++ b/packages/data-migration/package.json @@ -38,7 +38,7 @@ "jest-dynalite": "^3.2.0", "jest-mock-console": "^1.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/db-dynamodb/package.json b/packages/db-dynamodb/package.json index dfa822a6d89..0582acbc268 100644 --- a/packages/db-dynamodb/package.json +++ b/packages/db-dynamodb/package.json @@ -33,7 +33,7 @@ "jest-dynalite": "^3.2.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/db/package.json b/packages/db/package.json index e2f48450bec..21347f1ea1a 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -18,7 +18,7 @@ "@webiny/cli": "0.0.0", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "scripts": { "build": "yarn webiny run build", diff --git a/packages/error/package.json b/packages/error/package.json index 333b5ea9443..3695529ef7b 100644 --- a/packages/error/package.json +++ b/packages/error/package.json @@ -20,7 +20,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.15", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "scripts": { "build": "yarn webiny run build", diff --git a/packages/feature-flags/package.json b/packages/feature-flags/package.json index 4e1968a92f0..92b7fd4b8b9 100644 --- a/packages/feature-flags/package.json +++ b/packages/feature-flags/package.json @@ -22,7 +22,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.13", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/form/package.json b/packages/form/package.json index 198968e3e3b..b1378f16391 100644 --- a/packages/form/package.json +++ b/packages/form/package.json @@ -35,7 +35,7 @@ "mobx-react-lite": "^3.4.3", "rimraf": "^5.0.5", "ttypescript": "^1.5.13", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "peerDependencies": { "react": "18.2.0" diff --git a/packages/form/src/Bind.ts b/packages/form/src/Bind.ts index 46f04275d07..bd776cb708f 100644 --- a/packages/form/src/Bind.ts +++ b/packages/form/src/Bind.ts @@ -7,8 +7,13 @@ export function Bind({ children, ...props }: BindComponentProps) { if (React.isValidElement(children)) { if (!bind.disabled) { + /** + * We can safely set the `disabled` prop on the child element, because we know it's a valid React element. + */ + // @ts-expect-error bind.disabled = children.props.disabled; } + // @ts-expect-error return React.cloneElement(children, { ...children.props, ...bind }); } diff --git a/packages/form/src/Form.tsx b/packages/form/src/Form.tsx index 904bbe936c2..9bcb79a75f1 100644 --- a/packages/form/src/Form.tsx +++ b/packages/form/src/Form.tsx @@ -8,7 +8,10 @@ import { FormContext } from "./FormContext"; import { FormPresenter } from "./FormPresenter"; import { FormAPI } from "./FormApi"; -type Callbacks = Pick, "onChange" | "onInvalid">; +type Callbacks = Pick< + FormProps, + "onChange" | "onInvalid" +>; function FormInner( props: FormProps, diff --git a/packages/form/src/FormApi.ts b/packages/form/src/FormApi.ts index 51a2a7f52be..c7ece1415d0 100644 --- a/packages/form/src/FormApi.ts +++ b/packages/form/src/FormApi.ts @@ -4,10 +4,11 @@ import { FormOnSubmit, FormPropsState, FormValidationOptions, + GenericFormData, UseBindHook } from "~/types"; -export interface FormApiOptions { +export interface FormApiOptions { onSubmit: FormOnSubmit; isFormDisabled: boolean | ((state: FormPropsState) => boolean); validateOnFirstSubmit: boolean; @@ -15,7 +16,7 @@ export interface FormApiOptions { const emptyValues: unknown[] = [undefined, null]; -export class FormAPI { +export class FormAPI { private presenter: FormPresenter; private readonly options: FormApiOptions; private wasSubmitted = false; diff --git a/packages/form/src/types.ts b/packages/form/src/types.ts index d46e2253495..097af52f515 100644 --- a/packages/form/src/types.ts +++ b/packages/form/src/types.ts @@ -16,7 +16,7 @@ export interface BindComponentRenderPropOnChange { export interface FormValidationOptions { skipValidators?: string[]; } -export interface FormAPI { +export interface FormAPI { data: T; submit: ( event?: React.SyntheticEvent, diff --git a/packages/handler-aws/package.json b/packages/handler-aws/package.json index 024e7b091c1..8cba65f7276 100644 --- a/packages/handler-aws/package.json +++ b/packages/handler-aws/package.json @@ -31,7 +31,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.13", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/handler-client/package.json b/packages/handler-client/package.json index 460acce9236..6e2996639f9 100644 --- a/packages/handler-client/package.json +++ b/packages/handler-client/package.json @@ -28,7 +28,7 @@ "@webiny/project-utils": "0.0.0", "jest": "^29.7.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/handler-client/src/HandlerClientPlugin.ts b/packages/handler-client/src/HandlerClientPlugin.ts index 20c9d5e324f..58a0d1a4773 100644 --- a/packages/handler-client/src/HandlerClientPlugin.ts +++ b/packages/handler-client/src/HandlerClientPlugin.ts @@ -1,7 +1,7 @@ import { Plugin } from "@webiny/plugins/Plugin"; import { InvokeArgs } from "~/types"; -interface HandlerClientPluginCallable, Response = any> { +interface HandlerClientPluginCallable { (params: InvokeArgs): Promise; } diff --git a/packages/handler-db/package.json b/packages/handler-db/package.json index 49303c43075..ddaf8edf7d9 100644 --- a/packages/handler-db/package.json +++ b/packages/handler-db/package.json @@ -21,7 +21,7 @@ "@webiny/cli": "0.0.0", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/handler-graphql/package.json b/packages/handler-graphql/package.json index 1ddd755c7fb..b38b941cf37 100644 --- a/packages/handler-graphql/package.json +++ b/packages/handler-graphql/package.json @@ -15,7 +15,7 @@ ], "dependencies": { "@babel/runtime": "^7.24.0", - "@graphql-tools/schema": "^7.0.0", + "@graphql-tools/schema": "^10.0.6", "@webiny/api": "0.0.0", "@webiny/error": "0.0.0", "@webiny/handler": "0.0.0", @@ -36,7 +36,7 @@ "jest-mock-console": "^1.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.13", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/handler-logs/package.json b/packages/handler-logs/package.json index 466a699d26c..0f06f22583b 100644 --- a/packages/handler-logs/package.json +++ b/packages/handler-logs/package.json @@ -27,7 +27,7 @@ "@webiny/handler-aws": "0.0.0", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/handler/package.json b/packages/handler/package.json index f25d3f92e3f..da128028cf4 100644 --- a/packages/handler/package.json +++ b/packages/handler/package.json @@ -31,7 +31,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.13", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/i18n-react/package.json b/packages/i18n-react/package.json index 7a488adccf4..1e0435644bc 100644 --- a/packages/i18n-react/package.json +++ b/packages/i18n-react/package.json @@ -27,7 +27,7 @@ "@webiny/cli": "0.0.0", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "peerDependencies": { "react": "18.2.0" diff --git a/packages/i18n/package.json b/packages/i18n/package.json index 20151ff9bfd..330b44b3e96 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -36,7 +36,7 @@ "glob": "^7.1.2", "rimraf": "^5.0.5", "ttypescript": "^1.5.13", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/ioc/package.json b/packages/ioc/package.json index 2d3c7ee2a38..eaa07b091a2 100644 --- a/packages/ioc/package.json +++ b/packages/ioc/package.json @@ -17,7 +17,7 @@ "@webiny/cli": "0.0.0", "@webiny/project-utils": "0.0.0", "ttypescript": "^1.5.13", - "typescript": "4.7.4", + "typescript": "4.9.5", "zod": "^3.22.4" }, "publishConfig": { diff --git a/packages/logger/package.json b/packages/logger/package.json index 50c8e37aeef..d5d51345667 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -24,7 +24,7 @@ "pino": "^8.11.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.13", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/migrations/package.json b/packages/migrations/package.json index 5ff5ff2df1a..8735435aafa 100644 --- a/packages/migrations/package.json +++ b/packages/migrations/package.json @@ -39,6 +39,6 @@ "elastic-ts": "^0.8.0", "jest-dynalite": "^3.2.0", "ttypescript": "^1.5.13", - "typescript": "4.7.4" + "typescript": "4.9.5" } } diff --git a/packages/plugins/package.json b/packages/plugins/package.json index 057249bbed0..2f94d7debdd 100644 --- a/packages/plugins/package.json +++ b/packages/plugins/package.json @@ -24,7 +24,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.13", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/project-utils/package.json b/packages/project-utils/package.json index 6766c201db7..70d951ef0cc 100644 --- a/packages/project-utils/package.json +++ b/packages/project-utils/package.json @@ -74,7 +74,7 @@ "style-loader": "3.3.1", "terser-webpack-plugin": "5.2.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4", + "typescript": "4.9.5", "url": "0.11.0", "url-loader": "4.1.1", "vm-browserify": "^1.1.2", diff --git a/packages/pubsub/package.json b/packages/pubsub/package.json index 9a91b9c5c64..8336c26171b 100644 --- a/packages/pubsub/package.json +++ b/packages/pubsub/package.json @@ -23,7 +23,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "scripts": { "build": "yarn webiny run build", diff --git a/packages/pulumi-aws/package.json b/packages/pulumi-aws/package.json index 0de019e0e53..b758a6e1766 100644 --- a/packages/pulumi-aws/package.json +++ b/packages/pulumi-aws/package.json @@ -38,7 +38,7 @@ "mime": "^2.5.2", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "scripts": { "build": "yarn webiny run build", diff --git a/packages/pulumi-sdk/package.json b/packages/pulumi-sdk/package.json index 98ee06adf18..de4bce1a5ad 100644 --- a/packages/pulumi-sdk/package.json +++ b/packages/pulumi-sdk/package.json @@ -31,7 +31,7 @@ "@webiny/cli": "0.0.0", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "adio": { "ignore": { diff --git a/packages/pulumi/package.json b/packages/pulumi/package.json index 000acbe5060..d0f354dd6ae 100644 --- a/packages/pulumi/package.json +++ b/packages/pulumi/package.json @@ -25,7 +25,7 @@ "@webiny/cli": "0.0.0", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "scripts": { "build": "yarn webiny run build", diff --git a/packages/react-composition/package.json b/packages/react-composition/package.json index 781716c38c2..bf5e55e3fc2 100644 --- a/packages/react-composition/package.json +++ b/packages/react-composition/package.json @@ -28,7 +28,7 @@ "@webiny/cli": "0.0.0", "@webiny/project-utils": "0.0.0", "ttypescript": "^1.5.13", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/react-rich-text-renderer/package.json b/packages/react-rich-text-renderer/package.json index 3133f765df5..6f7a9353852 100644 --- a/packages/react-rich-text-renderer/package.json +++ b/packages/react-rich-text-renderer/package.json @@ -27,7 +27,7 @@ "@webiny/cli": "0.0.0", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/react-router/package.json b/packages/react-router/package.json index dc070c237ba..b9ad4d3e613 100644 --- a/packages/react-router/package.json +++ b/packages/react-router/package.json @@ -33,7 +33,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.13", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "peerDependencies": { "react": "18.2.0" diff --git a/packages/serverless-cms-aws/package.json b/packages/serverless-cms-aws/package.json index 71f3d6aa1c2..8e93576e247 100644 --- a/packages/serverless-cms-aws/package.json +++ b/packages/serverless-cms-aws/package.json @@ -74,7 +74,7 @@ "@webiny/migrations": "0.0.0", "@webiny/project-utils": "0.0.0", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "scripts": { "build": "yarn webiny run build", diff --git a/packages/tasks/package.json b/packages/tasks/package.json index f17c70dde09..ad7825cc2bc 100644 --- a/packages/tasks/package.json +++ b/packages/tasks/package.json @@ -43,7 +43,7 @@ "rimraf": "^5.0.5", "ttypescript": "^1.5.13", "type-fest": "^2.19.0", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/tasks/src/crud/trigger.tasks.ts b/packages/tasks/src/crud/trigger.tasks.ts index 45e36ee60db..c77ad943c6b 100644 --- a/packages/tasks/src/crud/trigger.tasks.ts +++ b/packages/tasks/src/crud/trigger.tasks.ts @@ -20,12 +20,12 @@ import { EventBridgeEventTransportPlugin } from "~/crud/transport/EventBridgeEve const MAX_DELAY_DAYS = 355; const MAX_DELAY_SECONDS = MAX_DELAY_DAYS * 24 * 60 * 60; -interface ValidateDelayParams { - input: ITaskCreateData; +interface ValidateDelayParams { + input: ITaskCreateData; delay?: number; } -const validateDelay = ({ input, delay }: ValidateDelayParams): void => { +const validateDelay = ({ input, delay }: ValidateDelayParams): void => { if (!delay || delay < 0 || typeof delay !== "number" || Number.isInteger(delay) === false) { return; } else if (delay < MAX_DELAY_SECONDS) { @@ -73,7 +73,7 @@ export const createTriggerTasksCrud = ( data: input }); } - validateDelay({ + validateDelay({ input, delay }); diff --git a/packages/tasks/src/response/TaskResponse.ts b/packages/tasks/src/response/TaskResponse.ts index 309be15f282..2dd82c2b169 100644 --- a/packages/tasks/src/response/TaskResponse.ts +++ b/packages/tasks/src/response/TaskResponse.ts @@ -68,11 +68,11 @@ export class TaskResponse implements ITaskResponse { const wait = getWaitingTime(options); if (!wait || wait < 1) { return this.response.continue({ - input + input: input as ITaskDataInput }); } return this.response.continue({ - input, + input: input as ITaskDataInput, wait }); } diff --git a/packages/tasks/src/runner/abstractions/TaskManagerStore.ts b/packages/tasks/src/runner/abstractions/TaskManagerStore.ts index 74b7833289f..1bf6029599b 100644 --- a/packages/tasks/src/runner/abstractions/TaskManagerStore.ts +++ b/packages/tasks/src/runner/abstractions/TaskManagerStore.ts @@ -8,9 +8,9 @@ import { TaskDataStatus } from "~/types"; -export type ITaskManagerStoreUpdateTaskValues = T; +export type ITaskManagerStoreUpdateTaskValues = T; -export interface ITaskManagerStoreUpdateTaskValuesCb { +export interface ITaskManagerStoreUpdateTaskValuesCb { (input: T): T; } @@ -18,24 +18,24 @@ export interface ITaskManagerStoreUpdateTaskInputOptions { save: boolean; } -export type ITaskManagerStoreUpdateTaskInputParam = +export type ITaskManagerStoreUpdateTaskInputParam = | ITaskManagerStoreUpdateTaskValuesCb | Partial>; export interface ITaskManagerStoreUpdateTaskParamCb< - T extends ITaskDataInput = ITaskDataInput, + T = ITaskDataInput, O extends ITaskResponseDoneResultOutput = ITaskResponseDoneResultOutput > { (task: ITask): ITaskUpdateData; } export type ITaskManagerStoreUpdateTask< - T extends ITaskDataInput = ITaskDataInput, + T = ITaskDataInput, O extends ITaskResponseDoneResultOutput = ITaskResponseDoneResultOutput > = ITaskUpdateData; export type ITaskManagerStoreUpdateTaskParams< - T extends ITaskDataInput = ITaskDataInput, + T = ITaskDataInput, O extends ITaskResponseDoneResultOutput = ITaskResponseDoneResultOutput > = ITaskManagerStoreUpdateTaskParamCb | Partial>; @@ -75,7 +75,7 @@ export interface ITaskManagerStoreAddLogOptions { * Interface should not be used outside the @webiny/tasks package. */ export interface ITaskManagerStorePrivate< - T extends ITaskDataInput = ITaskDataInput, + T = ITaskDataInput, O extends ITaskResponseDoneResultOutput = ITaskResponseDoneResultOutput > { getTask: () => ITask; @@ -129,6 +129,6 @@ export interface ITaskManagerStorePrivate< } export type ITaskManagerStore< - T extends ITaskDataInput = ITaskDataInput, + T = ITaskDataInput, O extends ITaskResponseDoneResultOutput = ITaskResponseDoneResultOutput > = Omit, "save">; diff --git a/packages/tasks/src/types.ts b/packages/tasks/src/types.ts index 64a14b972d6..f74c8a5d415 100644 --- a/packages/tasks/src/types.ts +++ b/packages/tasks/src/types.ts @@ -16,6 +16,7 @@ import { import { ITaskManagerStore } from "./runner/abstractions"; import { PutEventsCommandOutput } from "@webiny/aws-sdk/client-eventbridge"; import { SecurityPermission } from "@webiny/api-security/types"; +import { GenericRecord } from "@webiny/api/types"; export { PutEventsCommandOutput }; @@ -27,9 +28,7 @@ export interface ITaskConfig { readonly eventBusName: string; } -export interface ITaskDataInput { - [key: string]: any; -} +export type ITaskDataInput = GenericRecord; export enum ITaskLogItemType { INFO = "info", diff --git a/packages/theme/package.json b/packages/theme/package.json index 505866b628c..f8b71b35df6 100644 --- a/packages/theme/package.json +++ b/packages/theme/package.json @@ -29,7 +29,7 @@ "execa": "^5.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/ui-composer/package.json b/packages/ui-composer/package.json index f3d331f1817..dc069131c40 100644 --- a/packages/ui-composer/package.json +++ b/packages/ui-composer/package.json @@ -22,7 +22,7 @@ "@webiny/cli": "0.0.0", "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/ui-composer/src/UIView.tsx b/packages/ui-composer/src/UIView.tsx index 578419cce03..d87701271e1 100644 --- a/packages/ui-composer/src/UIView.tsx +++ b/packages/ui-composer/src/UIView.tsx @@ -25,7 +25,7 @@ export interface UIViewProps { [key: string]: any; } -export class UIView extends UIElement { +export class UIView extends UIElement { private _events = new Map(); private _hookDefinitions: Record any> = {}; private _hookValues: Record = {}; diff --git a/packages/ui-composer/src/elements/GenericElement.tsx b/packages/ui-composer/src/elements/GenericElement.tsx index d59300a892a..2d80889d0c0 100644 --- a/packages/ui-composer/src/elements/GenericElement.tsx +++ b/packages/ui-composer/src/elements/GenericElement.tsx @@ -1,11 +1,13 @@ import React from "react"; -import { UIElement } from "~/UIElement"; +import { UIElement, UiElementRenderProps } from "~/UIElement"; interface Renderer { (props: TRenderProps): React.ReactNode; } -export class GenericElement extends UIElement { +export class GenericElement< + TRenderProps extends UiElementRenderProps = UiElementRenderProps +> extends UIElement { private readonly _render?: Renderer; constructor(id: string, render?: Renderer) { diff --git a/packages/ui/package.json b/packages/ui/package.json index 63b6cdb9163..a1e56a1a4aa 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -92,7 +92,7 @@ "raw-loader": "^0.5.1", "rimraf": "^5.0.5", "ttypescript": "^1.5.13", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "peerDependencies": { "minimatch": "^5.1.0", diff --git a/packages/utils/package.json b/packages/utils/package.json index 0fbbb37af09..d3bb2df7ed5 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -31,7 +31,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "peerDependencies": { "zod": "^3.22.4" diff --git a/packages/validation/package.json b/packages/validation/package.json index e2f345ab8c6..74d9f818ab4 100644 --- a/packages/validation/package.json +++ b/packages/validation/package.json @@ -29,7 +29,7 @@ "jest": "^29.7.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.13", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/packages/wcp/package.json b/packages/wcp/package.json index 336e8b05d90..303dd9bd8f7 100644 --- a/packages/wcp/package.json +++ b/packages/wcp/package.json @@ -25,7 +25,7 @@ "@webiny/project-utils": "0.0.0", "rimraf": "^5.0.5", "ttypescript": "^1.5.12", - "typescript": "4.7.4" + "typescript": "4.9.5" }, "publishConfig": { "access": "public", diff --git a/yarn.lock b/yarn.lock index ae421e80a57..1543f079537 100644 --- a/yarn.lock +++ b/yarn.lock @@ -97,15 +97,6 @@ __metadata: languageName: node linkType: hard -"@ardatan/aggregate-error@npm:0.0.6": - version: 0.0.6 - resolution: "@ardatan/aggregate-error@npm:0.0.6" - dependencies: - tslib: ~2.0.1 - checksum: 72334225df487342ca1d9c9dc6b6b7080e9ccba6e85ffbfd04839997067c709c4b058f747ee20bcac0477db6f12c9b098fd030bd7559dbc552a283df87ef4478 - languageName: node - linkType: hard - "@auth0/auth0-react@npm:^2.2.4": version: 2.2.4 resolution: "@auth0/auth0-react@npm:2.2.4" @@ -7993,29 +7984,52 @@ __metadata: languageName: node linkType: hard -"@graphql-tools/schema@npm:^7.0.0, @graphql-tools/schema@npm:^7.1.2": - version: 7.1.5 - resolution: "@graphql-tools/schema@npm:7.1.5" +"@graphql-tools/merge@npm:^9.0.6": + version: 9.0.6 + resolution: "@graphql-tools/merge@npm:9.0.6" + dependencies: + "@graphql-tools/utils": ^10.5.4 + tslib: ^2.4.0 + peerDependencies: + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + checksum: d9dca559186267a3eedcb6c2fd9b012e91e40a467d3440a8f9a1dbb542d159abde09578716b00b0f9123c8f97c1816bf2df67c9fbf79b0be619d50b5d89240db + languageName: node + linkType: hard + +"@graphql-tools/schema@npm:^10.0.6": + version: 10.0.6 + resolution: "@graphql-tools/schema@npm:10.0.6" dependencies: - "@graphql-tools/utils": ^7.1.2 - tslib: ~2.2.0 - value-or-promise: 1.0.6 + "@graphql-tools/merge": ^9.0.6 + "@graphql-tools/utils": ^10.5.4 + tslib: ^2.4.0 + value-or-promise: ^1.0.12 peerDependencies: - graphql: ^14.0.0 || ^15.0.0 - checksum: 4baf3a39bd33ef33dbc0cfc04fa671718f48f603b5301ec21d5501145fd270a258dd4ea94d49a8062091d6c2ed35727e31a7992c564cbb14bb4d159f7f2d60f8 + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + checksum: 3548c7daf7df7a13ae8852379b5589ee2041caabca31e3c14106dfae3e4417b66623a9f33037c93659e84c1129e9ab93ba16138f1fdd43c6c858802d4c9e93a8 languageName: node linkType: hard -"@graphql-tools/utils@npm:^7.1.2": - version: 7.10.0 - resolution: "@graphql-tools/utils@npm:7.10.0" +"@graphql-tools/utils@npm:^10.5.4": + version: 10.5.4 + resolution: "@graphql-tools/utils@npm:10.5.4" dependencies: - "@ardatan/aggregate-error": 0.0.6 - camel-case: 4.1.2 - tslib: ~2.2.0 + "@graphql-typed-document-node/core": ^3.1.1 + cross-inspect: 1.0.1 + dset: ^3.1.2 + tslib: ^2.4.0 peerDependencies: - graphql: ^14.0.0 || ^15.0.0 - checksum: e40c29608d3380f589f756977f6afd1cc2b96dd08eaa392a412ee320dce98af32e62138ceae752e3db5561776370e3b7766a859eed0b52f8c1e35d0e8fabc6db + graphql: ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + checksum: 56b41b276401c9010e47627b0d84336ac840d4e3e7c0124884626f11b92a20a1f1aec97712dd06d8adf5239fc39f4a86d4f4349f6a7028205e577e4c200bf070 + languageName: node + linkType: hard + +"@graphql-typed-document-node/core@npm:^3.1.1": + version: 3.2.0 + resolution: "@graphql-typed-document-node/core@npm:3.2.0" + peerDependencies: + graphql: ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 + checksum: fa44443accd28c8cf4cb96aaaf39d144a22e8b091b13366843f4e97d19c7bfeaf609ce3c7603a4aeffe385081eaf8ea245d078633a7324c11c5ec4b2011bb76d languageName: node linkType: hard @@ -8929,7 +8943,7 @@ __metadata: languageName: node linkType: hard -"@material/base@npm:^14.0.0": +"@material/base@npm:14.0.0": version: 14.0.0 resolution: "@material/base@npm:14.0.0" dependencies: @@ -8938,6 +8952,15 @@ __metadata: languageName: node linkType: hard +"@material/base@patch:@material/base@npm%3A14.0.0#./.yarn/patches/@material-base-npm-14.0.0-36e0a55c42.patch::locator=root-workspace-0b6124%40workspace%3A.": + version: 14.0.0 + resolution: "@material/base@patch:@material/base@npm%3A14.0.0#./.yarn/patches/@material-base-npm-14.0.0-36e0a55c42.patch::version=14.0.0&hash=ed4a27&locator=root-workspace-0b6124%40workspace%3A." + dependencies: + tslib: ^2.1.0 + checksum: 85aab81e4e0f13d8bfd6a70c90bef76b0f5a4d3e1e733cbaa344381b26cf1304ede1730263e4ab9dfc3af567c406db69e6bc47dc664266e0597cddd36f9919b5 + languageName: node + linkType: hard + "@material/button@npm:^14.0.0": version: 14.0.0 resolution: "@material/button@npm:14.0.0" @@ -12946,6 +12969,13 @@ __metadata: languageName: node linkType: hard +"@types/babel__code-frame@npm:^7.0.6": + version: 7.0.6 + resolution: "@types/babel__code-frame@npm:7.0.6" + checksum: 5325ab85d95e58fe84279757788ddb0de68bfd6814bc636e868f9ff7b5229915873f28847c4baf48fd3a4a460a73b4ea87bc9e1d78a3a5a60cfc7ca627a722c5 + languageName: node + linkType: hard + "@types/babel__core@npm:^7.1.14": version: 7.20.0 resolution: "@types/babel__core@npm:7.20.0" @@ -13261,13 +13291,13 @@ __metadata: languageName: node linkType: hard -"@types/inquirer@npm:^7.3.1": - version: 7.3.3 - resolution: "@types/inquirer@npm:7.3.3" +"@types/inquirer@npm:8.2.10": + version: 8.2.10 + resolution: "@types/inquirer@npm:8.2.10" dependencies: "@types/through": "*" - rxjs: ^6.4.0 - checksum: 49b21d883ab533dbb84b400fa1aeab2638c37b87978d16f15636316c8d9f70d93a185479cf32081d9013fe2b362db05a83bdc3725771cc93d8bdab9182a96ab9 + rxjs: ^7.2.0 + checksum: e576823345146e939e93e06fc5a81baa5231f0113b669191155cd5f5925b3e897d3a3c42c0be8b3e7b0b188b7e05d1cf42011cc2da4d123f7e58940caf9cd17f languageName: node linkType: hard @@ -14591,7 +14621,7 @@ __metadata: prettier: ^2.8.3 rimraf: ^5.0.5 ttypescript: ^1.5.13 - typescript: ^4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -14620,7 +14650,7 @@ __metadata: rimraf: ^5.0.5 sinon: ^9.0.2 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -14640,7 +14670,7 @@ __metadata: jest-dynalite: ^3.2.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -14670,7 +14700,7 @@ __metadata: lodash: ^4.17.21 md5: ^2.3.0 rimraf: ^5.0.5 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -14699,7 +14729,7 @@ __metadata: jest-dynalite: ^3.2.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -14746,7 +14776,7 @@ __metadata: rimraf: ^5.0.5 sinon: ^9.0.2 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -14783,7 +14813,7 @@ __metadata: "@webiny/utils": 0.0.0 graphql: ^15.8.0 ttypescript: ^1.5.13 - typescript: ^4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -14799,7 +14829,7 @@ __metadata: "@webiny/cli": 0.0.0 "@webiny/project-utils": 0.0.0 rimraf: ^5.0.5 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -14821,7 +14851,7 @@ __metadata: jest-dynalite: ^3.2.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -14837,7 +14867,7 @@ __metadata: "@webiny/tasks": 0.0.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -14855,7 +14885,7 @@ __metadata: "@webiny/tasks": 0.0.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -14873,7 +14903,7 @@ __metadata: "@webiny/tasks": 0.0.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -14892,7 +14922,7 @@ __metadata: jwk-to-pem: ^2.0.1 node-fetch: ^2.6.13 rimraf: ^5.0.5 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -14916,7 +14946,7 @@ __metadata: "@webiny/plugins": 0.0.0 "@webiny/project-utils": 0.0.0 p-retry: ^4.6.2 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -14951,7 +14981,7 @@ __metadata: rimraf: ^5.0.5 ttypescript: ^1.5.13 type-fest: ^2.19.0 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -14972,7 +15002,7 @@ __metadata: elastic-ts: ^0.8.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -14999,7 +15029,7 @@ __metadata: jsonpack: ^1.1.5 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -15032,7 +15062,7 @@ __metadata: rimraf: ^5.0.5 sanitize-filename: ^1.6.3 sharp: 0.32.6 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -15072,7 +15102,7 @@ __metadata: object-hash: ^3.0.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -15105,7 +15135,7 @@ __metadata: jest-dynalite: ^3.2.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -15132,7 +15162,7 @@ __metadata: jest-dynalite: ^3.2.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -15180,7 +15210,7 @@ __metadata: rimraf: ^5.0.5 slugify: ^1.2.9 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -15211,7 +15241,7 @@ __metadata: "@webiny/wcp": 0.0.0 graphql: ^15.8.0 ttypescript: ^1.5.13 - typescript: ^4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -15242,7 +15272,7 @@ __metadata: "@webiny/wcp": 0.0.0 graphql: ^15.8.0 ttypescript: ^1.5.13 - typescript: ^4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -15286,7 +15316,7 @@ __metadata: rimraf: ^5.0.5 sinon: ^9.0.2 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -15315,7 +15345,7 @@ __metadata: jsonpack: ^1.1.5 lodash: ^4.17.21 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -15344,7 +15374,7 @@ __metadata: "@webiny/tasks": 0.0.0 "@webiny/utils": 0.0.0 ttypescript: ^1.5.13 - typescript: ^4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -15367,10 +15397,12 @@ __metadata: resolution: "@webiny/api-headless-cms@workspace:packages/api-headless-cms" dependencies: "@babel/cli": ^7.23.9 + "@babel/code-frame": ^7.24.7 "@babel/core": ^7.24.0 "@babel/preset-env": ^7.24.0 "@babel/runtime": ^7.24.0 - "@graphql-tools/schema": ^7.1.2 + "@graphql-tools/schema": ^10.0.6 + "@types/babel__code-frame": ^7.0.6 "@webiny/api": 0.0.0 "@webiny/api-i18n": 0.0.0 "@webiny/api-security": 0.0.0 @@ -15390,7 +15422,6 @@ __metadata: "@webiny/utils": 0.0.0 "@webiny/validation": 0.0.0 apollo-graphql: ^0.9.5 - code-frame: ^5.0.0 dot-prop: ^6.0.1 get-yarn-workspaces: ^1.0.2 graphql: ^15.7.2 @@ -15407,7 +15438,7 @@ __metadata: sinon: ^9.0.2 slugify: ^1.4.0 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 write-json-file: ^4.3.0 zod: ^3.22.4 languageName: unknown @@ -15427,7 +15458,7 @@ __metadata: "@webiny/project-utils": 0.0.0 graphql: ^15.7.2 rimraf: ^5.0.5 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -15458,7 +15489,7 @@ __metadata: jest-dynalite: ^3.2.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -15490,7 +15521,7 @@ __metadata: jest: ^29.7.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -15528,7 +15559,7 @@ __metadata: nodemailer: ^6.9.12 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 zod: ^3.22.4 languageName: unknown linkType: soft @@ -15562,7 +15593,7 @@ __metadata: graphql: ^15.8.0 lodash: ^4.17.21 ttypescript: ^1.5.13 - typescript: ^4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -15589,7 +15620,7 @@ __metadata: jest-dynalite: ^3.2.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -15641,7 +15672,7 @@ __metadata: rimraf: ^5.0.5 stream: ^0.0.2 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 uniqid: ^5.2.0 yauzl: ^2.10.0 languageName: unknown @@ -15694,7 +15725,7 @@ __metadata: lodash: ^4.17.21 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -15726,7 +15757,7 @@ __metadata: lodash: ^4.17.21 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -15775,7 +15806,7 @@ __metadata: rimraf: ^5.0.5 stream: ^0.0.2 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 uniqid: ^5.2.0 zod: ^3.22.4 languageName: unknown @@ -15802,7 +15833,7 @@ __metadata: "@webiny/utils": 0.0.0 lodash: ^4.17.21 rimraf: ^5.0.5 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -15828,7 +15859,7 @@ __metadata: prettier: ^2.8.3 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -15867,7 +15898,7 @@ __metadata: shortid: ^2.2.16 srcset: ^4.0.0 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -15901,7 +15932,7 @@ __metadata: rimraf: ^5.0.5 ttypescript: ^1.5.13 type-fest: ^2.19.0 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -15930,7 +15961,7 @@ __metadata: node-fetch: ^2.6.13 rimraf: ^5.0.5 ttypescript: ^1.5.13 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -15958,7 +15989,7 @@ __metadata: "@webiny/project-utils": 0.0.0 md5: ^2.3.0 rimraf: ^5.0.5 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -15983,7 +16014,7 @@ __metadata: jwk-to-pem: ^2.0.1 node-fetch: ^2.6.13 rimraf: ^5.0.5 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -16003,7 +16034,7 @@ __metadata: jest-dynalite: ^3.2.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -16042,7 +16073,7 @@ __metadata: minimatch: ^5.1.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -16073,7 +16104,7 @@ __metadata: "@webiny/project-utils": 0.0.0 rimraf: ^5.0.5 ttypescript: ^1.5.13 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -16093,7 +16124,7 @@ __metadata: jest-dynalite: ^3.2.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -16118,7 +16149,7 @@ __metadata: jest-dynalite: ^3.2.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -16142,7 +16173,7 @@ __metadata: jest-dynalite: ^3.2.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -16160,7 +16191,7 @@ __metadata: jest: ^29.7.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -16185,7 +16216,7 @@ __metadata: node-fetch: ^2.6.13 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -16221,7 +16252,7 @@ __metadata: rimraf: ^5.0.5 ttypescript: ^1.5.13 type-fest: ^2.19.0 - typescript: 4.7.4 + typescript: 4.9.5 zod: ^3.22.4 languageName: unknown linkType: soft @@ -16241,7 +16272,7 @@ __metadata: "@webiny/project-utils": 0.0.0 rimraf: ^5.0.5 ttypescript: ^1.5.13 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -16292,7 +16323,7 @@ __metadata: slugify: ^1.2.9 store: ^2.0.12 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 zod: ^3.22.4 languageName: unknown linkType: soft @@ -16334,7 +16365,7 @@ __metadata: react-helmet: ^6.1.0 rimraf: ^5.0.5 ttypescript: ^1.5.13 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -16370,7 +16401,7 @@ __metadata: react-dom: 18.2.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -16412,7 +16443,7 @@ __metadata: react-dom: 18.2.0 react-helmet: ^6.1.0 rimraf: ^5.0.5 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -16455,7 +16486,7 @@ __metadata: rimraf: ^5.0.5 store: ^2.0.12 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -16495,7 +16526,7 @@ __metadata: react-helmet: ^6.1.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -16563,7 +16594,7 @@ __metadata: rimraf: ^5.0.5 store: ^2.0.12 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -16614,7 +16645,7 @@ __metadata: react-spinner-material: 1.1.4 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -16653,7 +16684,7 @@ __metadata: lodash: ^4.17.21 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 peerDependencies: react: 18.2.0 languageName: unknown @@ -16678,7 +16709,7 @@ __metadata: react: 18.2.0 react-dom: 18.2.0 rimraf: ^5.0.5 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -16694,7 +16725,7 @@ __metadata: graphql-tag: ^2.12.6 p-retry: ^4.6.2 rimraf: ^5.0.5 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -16759,7 +16790,7 @@ __metadata: react-lazy-load: ^3.1.14 rimraf: ^5.0.5 ttypescript: ^1.5.13 - typescript: 4.7.4 + typescript: 4.9.5 zod: ^3.22.4 languageName: unknown linkType: soft @@ -16826,7 +16857,7 @@ __metadata: rimraf: ^5.0.5 shortid: ^2.2.14 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -16862,7 +16893,7 @@ __metadata: react: 18.2.0 react-dom: 18.2.0 rimraf: ^5.0.5 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -16893,7 +16924,7 @@ __metadata: react: 18.2.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -16975,7 +17006,7 @@ __metadata: react-virtualized: ^9.21.2 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 use-deep-compare-effect: ^1.6.1 languageName: unknown linkType: soft @@ -17004,7 +17035,7 @@ __metadata: react: 18.2.0 react-dom: 18.2.0 rimraf: ^5.0.5 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -17046,7 +17077,7 @@ __metadata: react-dom: 18.2.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -17084,7 +17115,7 @@ __metadata: react-helmet: ^6.1.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -17129,7 +17160,7 @@ __metadata: recoil: ^0.7.7 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -17155,7 +17186,7 @@ __metadata: facepaint: ^1.2.1 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 peerDependencies: "@editorjs/editorjs": ^2.20.1 aos: ^2.3.4 @@ -17277,7 +17308,7 @@ __metadata: store: ^2.0.12 swiper: ^9.3.2 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 uniqid: ^5.0.3 languageName: unknown linkType: soft @@ -17297,7 +17328,7 @@ __metadata: react: 18.2.0 react-dom: 18.2.0 rimraf: ^5.0.5 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -17335,7 +17366,7 @@ __metadata: react-dom: 18.2.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -17373,7 +17404,7 @@ __metadata: react-helmet: ^6.1.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -17397,7 +17428,7 @@ __metadata: react-dom: 18.2.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -17450,7 +17481,7 @@ __metadata: react-dom: 18.2.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -17482,7 +17513,7 @@ __metadata: rimraf: ^5.0.5 store: ^2.0.12 ttypescript: ^1.3.2 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -17524,7 +17555,7 @@ __metadata: react-dom: 18.2.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -17567,7 +17598,7 @@ __metadata: react-dom: 18.2.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -17590,7 +17621,7 @@ __metadata: execa: ^5.0.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 peerDependencies: react: 18.2.0 languageName: unknown @@ -17627,7 +17658,7 @@ __metadata: react-dom: 18.2.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -17646,7 +17677,7 @@ __metadata: "@webiny/utils": 0.0.0 mobx: ^6.9.0 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -17673,7 +17704,7 @@ __metadata: react-dom: 18.2.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -17709,7 +17740,7 @@ __metadata: reset-css: ^5.0.1 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -17733,7 +17764,7 @@ __metadata: react-dom: 18.2.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -17780,7 +17811,7 @@ __metadata: react-dom: 18.2.0 rimraf: ^5.0.5 ts-invariant: ^0.10.3 - typescript: 4.7.4 + typescript: 4.9.5 warning: ^4.0.2 languageName: unknown linkType: soft @@ -17835,7 +17866,7 @@ __metadata: "@webiny/project-utils": 0.0.0 "@webiny/utils": 0.0.0 rimraf: ^5.0.5 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -17880,7 +17911,7 @@ __metadata: "@babel/cli": ^7.23.9 "@babel/core": ^7.24.0 "@babel/preset-env": ^7.24.0 - "@types/inquirer": ^7.3.1 + "@types/inquirer": 8.2.10 "@types/ncp": ^2.0.4 "@types/pluralize": ^0.0.29 "@webiny/cli": 0.0.0 @@ -17896,7 +17927,7 @@ __metadata: replace-in-path: ^1.1.0 rimraf: ^5.0.5 terminal-link: ^2.1.1 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -17907,7 +17938,7 @@ __metadata: "@babel/cli": ^7.23.9 "@babel/core": ^7.24.0 "@babel/preset-env": ^7.24.0 - "@types/inquirer": ^7.3.1 + "@types/inquirer": 8.2.10 "@types/ncp": ^2.0.4 "@types/pluralize": ^0.0.29 "@types/validate-npm-package-name": ^3.0.3 @@ -17917,13 +17948,13 @@ __metadata: "@webiny/project-utils": 0.0.0 "@webiny/validation": 0.0.0 chalk: ^4.1.0 - inquirer: ^7.3.3 + inquirer: 8.2.6 js-base64: ^3.6.0 octokit: ^3.1.2 open: ^8.0.6 rimraf: ^5.0.5 terminal-link: ^2.1.1 - typescript: 4.7.4 + typescript: 4.9.5 validate-npm-package-name: ^3.0.0 languageName: unknown linkType: soft @@ -17935,7 +17966,7 @@ __metadata: "@babel/cli": ^7.23.9 "@babel/core": ^7.24.0 "@babel/preset-env": ^7.24.0 - "@types/inquirer": ^7.3.1 + "@types/inquirer": 8.2.10 "@types/ncp": ^2.0.4 "@types/pluralize": ^0.0.29 "@types/validate-npm-package-name": ^3.0.3 @@ -17953,7 +17984,7 @@ __metadata: replace-in-path: ^1.1.0 rimraf: ^5.0.5 ts-morph: ^11.0.0 - typescript: 4.7.4 + typescript: 4.9.5 validate-npm-package-name: ^3.0.0 write-json-file: ^4.3.0 languageName: unknown @@ -17966,7 +17997,7 @@ __metadata: "@babel/cli": ^7.23.9 "@babel/core": ^7.24.0 "@babel/preset-env": ^7.24.0 - "@types/inquirer": ^7.3.1 + "@types/inquirer": 8.2.10 "@types/ncp": ^2.0.4 "@types/pluralize": ^0.0.29 "@webiny/cli": 0.0.0 @@ -17980,7 +18011,7 @@ __metadata: replace-in-path: ^1.1.0 rimraf: ^5.0.5 terminal-link: ^2.1.1 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -17991,7 +18022,7 @@ __metadata: "@babel/cli": ^7.23.9 "@babel/core": ^7.24.0 "@babel/preset-env": ^7.24.0 - "@types/inquirer": ^7.3.1 + "@types/inquirer": 8.2.10 "@types/ncp": ^2.0.4 "@types/pluralize": ^0.0.29 "@webiny/cli": 0.0.0 @@ -18008,7 +18039,7 @@ __metadata: replace-in-path: ^1.1.0 rimraf: ^5.0.5 terminal-link: ^2.1.1 - typescript: 4.7.4 + typescript: 4.9.5 write-json-file: ^4.3.0 languageName: unknown linkType: soft @@ -18020,7 +18051,7 @@ __metadata: "@babel/cli": ^7.23.9 "@babel/core": ^7.24.0 "@babel/preset-env": ^7.24.0 - "@types/inquirer": ^7.3.1 + "@types/inquirer": 8.2.10 "@types/ncp": ^2.0.4 "@types/pluralize": ^0.0.29 "@webiny/cli": 0.0.0 @@ -18038,7 +18069,7 @@ __metadata: rimraf: ^5.0.5 terminal-link: ^2.1.1 ts-morph: ^11.0.0 - typescript: 4.7.4 + typescript: 4.9.5 write-json-file: ^4.3.0 languageName: unknown linkType: soft @@ -18050,7 +18081,7 @@ __metadata: "@babel/cli": ^7.23.9 "@babel/core": ^7.24.0 "@babel/preset-env": ^7.24.0 - "@types/inquirer": ^7.3.1 + "@types/inquirer": 8.2.10 "@types/ncp": ^2.0.4 "@types/pluralize": ^0.0.29 "@webiny/cli": 0.0.0 @@ -18066,7 +18097,7 @@ __metadata: replace-in-path: ^1.1.0 rimraf: ^5.0.5 terminal-link: ^2.1.1 - typescript: 4.7.4 + typescript: 4.9.5 write-json-file: ^4.3.0 languageName: unknown linkType: soft @@ -18078,7 +18109,7 @@ __metadata: "@babel/cli": ^7.23.9 "@babel/core": ^7.24.0 "@babel/preset-env": ^7.24.0 - "@types/inquirer": ^7.3.1 + "@types/inquirer": 8.2.10 "@types/ncp": ^2.0.4 "@types/pluralize": ^0.0.29 "@types/validate-npm-package-name": ^3.0.3 @@ -18095,7 +18126,7 @@ __metadata: pluralize: ^8.0.0 replace-in-path: ^1.1.0 rimraf: ^5.0.5 - typescript: 4.7.4 + typescript: 4.9.5 validate-npm-package-name: ^3.0.0 write-json-file: ^4.3.0 languageName: unknown @@ -18108,7 +18139,7 @@ __metadata: "@babel/cli": ^7.23.9 "@babel/core": ^7.24.0 "@babel/preset-env": ^7.24.0 - "@types/inquirer": ^7.3.1 + "@types/inquirer": 8.2.10 "@types/ncp": ^2.0.4 "@types/pluralize": ^0.0.29 "@types/validate-npm-package-name": ^3.0.3 @@ -18122,7 +18153,7 @@ __metadata: ncp: ^2.0.0 replace-in-path: ^1.1.0 rimraf: ^5.0.5 - typescript: 4.7.4 + typescript: 4.9.5 validate-npm-package-name: ^3.0.0 write-json-file: ^4.3.0 languageName: unknown @@ -18136,7 +18167,7 @@ __metadata: "@babel/core": ^7.24.0 "@babel/preset-env": ^7.24.0 "@babel/runtime": ^7.24.0 - "@types/inquirer": ^7.3.1 + "@types/inquirer": 8.2.10 "@webiny/cli": 0.0.0 "@webiny/plugins": 0.0.0 "@webiny/project-utils": 0.0.0 @@ -18144,13 +18175,13 @@ __metadata: execa: ^5.0.0 fast-glob: ^3.2.7 find-up: ^5.0.0 - inquirer: ^7.3.3 + inquirer: 8.2.6 load-json-file: ^6.2.0 ora: 4.1.1 prettier: ^2.8.3 rimraf: ^5.0.5 ts-morph: ^11.0.0 - typescript: 4.7.4 + typescript: 4.9.5 write-json-file: ^4.3.0 languageName: unknown linkType: soft @@ -18185,14 +18216,14 @@ __metadata: find-up: 5.0.0 fs-extra: ^11.2.0 graphql-request: ^3.7.0 - inquirer: ^7.3.3 + inquirer: 8.2.6 is-ci: ^3.0.0 ncp: 2.0.0 open: ^8.0.6 pirates: ^4.0.1 semver: ^7.3.5 ts-morph: ^11.0.0 - typescript: 4.7.4 + typescript: 4.9.5 uniqid: 5.4.0 yargs: ^17.4.0 bin: @@ -18213,7 +18244,7 @@ __metadata: fast-glob: ^3.2.7 fs-extra: ^11.2.0 get-yarn-workspaces: 1.0.2 - inquirer: 7.3.3 + inquirer: 8.2.6 load-json-file: 6.2.0 lodash: ^4.17.21 open: ^8.4.0 @@ -18251,7 +18282,7 @@ __metadata: pino-pretty: ^9.4.0 rimraf: ^5.0.5 semver: ^7.3.5 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -18280,7 +18311,7 @@ __metadata: lodash: ^4.17.21 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -18293,7 +18324,7 @@ __metadata: "@webiny/cli": 0.0.0 "@webiny/project-utils": 0.0.0 rimraf: ^5.0.5 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -18307,7 +18338,7 @@ __metadata: "@webiny/project-utils": 0.0.0 rimraf: ^5.0.5 ttypescript: ^1.5.15 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -18323,7 +18354,7 @@ __metadata: "@webiny/project-utils": 0.0.0 rimraf: ^5.0.5 ttypescript: ^1.5.13 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -18350,7 +18381,7 @@ __metadata: mobx-react-lite: ^3.4.3 rimraf: ^5.0.5 ttypescript: ^1.5.13 - typescript: 4.7.4 + typescript: 4.9.5 peerDependencies: react: 18.2.0 languageName: unknown @@ -18387,7 +18418,7 @@ __metadata: fastify: 4.11.0 rimraf: ^5.0.5 ttypescript: ^1.5.13 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -18407,7 +18438,7 @@ __metadata: "@webiny/project-utils": 0.0.0 jest: ^29.7.0 rimraf: ^5.0.5 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -18424,7 +18455,7 @@ __metadata: "@webiny/db": 0.0.0 "@webiny/project-utils": 0.0.0 rimraf: ^5.0.5 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -18436,7 +18467,7 @@ __metadata: "@babel/core": ^7.24.0 "@babel/preset-env": ^7.24.0 "@babel/runtime": ^7.24.0 - "@graphql-tools/schema": ^7.0.0 + "@graphql-tools/schema": ^10.0.6 "@webiny/api": 0.0.0 "@webiny/cli": 0.0.0 "@webiny/error": 0.0.0 @@ -18452,7 +18483,7 @@ __metadata: jest-mock-console: ^1.0.0 rimraf: ^5.0.5 ttypescript: ^1.5.13 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -18472,7 +18503,7 @@ __metadata: "@webiny/project-utils": 0.0.0 node-fetch: ^2.6.13 rimraf: ^5.0.5 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -18497,7 +18528,7 @@ __metadata: fastify: 4.11.0 rimraf: ^5.0.5 ttypescript: ^1.5.13 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -18516,7 +18547,7 @@ __metadata: "@webiny/project-utils": 0.0.0 lodash: ^4.17.21 rimraf: ^5.0.5 - typescript: 4.7.4 + typescript: 4.9.5 peerDependencies: react: 18.2.0 languageName: unknown @@ -18543,7 +18574,7 @@ __metadata: rimraf: ^5.0.5 short-hash: ^1.0.0 ttypescript: ^1.5.13 - typescript: 4.7.4 + typescript: 4.9.5 yargs: ^17.6.2 peerDependencies: react: 18.2.0 @@ -18559,7 +18590,7 @@ __metadata: inversify: ^6.0.1 reflect-metadata: ^0.1.13 ttypescript: ^1.5.13 - typescript: 4.7.4 + typescript: 4.9.5 zod: ^3.22.4 languageName: unknown linkType: soft @@ -18699,7 +18730,7 @@ __metadata: pino: ^8.11.0 rimraf: ^5.0.5 ttypescript: ^1.5.13 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -18733,7 +18764,7 @@ __metadata: pino-pretty: ^9.4.0 pluralize: ^8.0.0 ttypescript: ^1.5.13 - typescript: 4.7.4 + typescript: 4.9.5 yargs: ^17.4.0 languageName: unknown linkType: soft @@ -18750,7 +18781,7 @@ __metadata: "@webiny/project-utils": 0.0.0 rimraf: ^5.0.5 ttypescript: ^1.5.13 - typescript: 4.7.4 + typescript: 4.9.5 uniqid: ^5.2.0 languageName: unknown linkType: soft @@ -18826,7 +18857,7 @@ __metadata: style-loader: 3.3.1 terser-webpack-plugin: 5.2.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 url: 0.11.0 url-loader: 4.1.1 vm-browserify: ^1.1.2 @@ -18851,7 +18882,7 @@ __metadata: "@webiny/project-utils": 0.0.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -18882,7 +18913,7 @@ __metadata: node-fetch: ^2.6.13 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -18905,7 +18936,7 @@ __metadata: rimraf: ^5.0.5 semver: ^7.3.5 tar: ^6.2.1 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -18922,7 +18953,7 @@ __metadata: find-up: ^5.0.0 lodash: ^4.17.21 rimraf: ^5.0.5 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -18942,7 +18973,7 @@ __metadata: react: 18.2.0 react-dom: 18.2.0 ttypescript: ^1.5.13 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -19001,7 +19032,7 @@ __metadata: react: 18.2.0 rimraf: ^5.0.5 sanitize-html: 2.12.1 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -19026,7 +19057,7 @@ __metadata: react-router-dom: 6.3.0 rimraf: ^5.0.5 ttypescript: ^1.5.13 - typescript: 4.7.4 + typescript: 4.9.5 peerDependencies: react: 18.2.0 languageName: unknown @@ -19094,7 +19125,7 @@ __metadata: node-fetch: ^2.6.13 ora: ^4.1.1 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 webpack: ^5.91.0 languageName: unknown linkType: soft @@ -19131,7 +19162,7 @@ __metadata: rimraf: ^5.0.5 ttypescript: ^1.5.13 type-fest: ^2.19.0 - typescript: 4.7.4 + typescript: 4.9.5 zod: ^3.22.4 languageName: unknown linkType: soft @@ -19166,7 +19197,7 @@ __metadata: execa: ^5.0.0 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 peerDependencies: react: 18.2.0 languageName: unknown @@ -19187,7 +19218,7 @@ __metadata: react: 18.2.0 react-dom: 18.2.0 rimraf: ^5.0.5 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -19271,7 +19302,7 @@ __metadata: shortid: ^2.2.16 timeago-react: ^3.0.6 ttypescript: ^1.5.13 - typescript: 4.7.4 + typescript: 4.9.5 peerDependencies: minimatch: ^5.1.0 react: 18.2.0 @@ -19297,7 +19328,7 @@ __metadata: p-retry: ^4.6.2 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 peerDependencies: zod: ^3.22.4 languageName: unknown @@ -19320,7 +19351,7 @@ __metadata: lodash: ^4.17.21 rimraf: ^5.0.5 ttypescript: ^1.5.13 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -19340,7 +19371,7 @@ __metadata: node-fetch: ^2.6.13 rimraf: ^5.0.5 ttypescript: ^1.5.12 - typescript: 4.7.4 + typescript: 4.9.5 languageName: unknown linkType: soft @@ -20298,7 +20329,7 @@ __metadata: languageName: node linkType: hard -"apollo-link@npm:^1.0.0, apollo-link@npm:^1.2.14": +"apollo-link@npm:1.2.14": version: 1.2.14 resolution: "apollo-link@npm:1.2.14" dependencies: @@ -20312,6 +20343,20 @@ __metadata: languageName: node linkType: hard +"apollo-link@patch:apollo-link@npm%3A1.2.14#./.yarn/patches/apollo-link-npm-1.2.14-74f0ba01f9.patch::locator=root-workspace-0b6124%40workspace%3A.": + version: 1.2.14 + resolution: "apollo-link@patch:apollo-link@npm%3A1.2.14#./.yarn/patches/apollo-link-npm-1.2.14-74f0ba01f9.patch::version=1.2.14&hash=7a5c8e&locator=root-workspace-0b6124%40workspace%3A." + dependencies: + apollo-utilities: ^1.3.0 + ts-invariant: ^0.4.0 + tslib: ^1.9.3 + zen-observable-ts: ^0.8.21 + peerDependencies: + graphql: ^0.11.3 || ^0.12.3 || ^0.13.0 || ^14.0.0 || ^15.0.0 + checksum: dec89eb774c1bf9e220bd4005bba3bd15f39c66983ddb132ad702e811901c94f404878d9f8f68ad9c46e8ac8a1872408b5c2d342a1ecd1a529f8065e35778d8f + languageName: node + linkType: hard + "apollo-utilities@npm:1.3.4, apollo-utilities@npm:^1.3.0, apollo-utilities@npm:^1.3.4": version: 1.3.4 resolution: "apollo-utilities@npm:1.3.4" @@ -21855,7 +21900,7 @@ __metadata: languageName: node linkType: hard -"camel-case@npm:4.1.2, camel-case@npm:^4.1.2": +"camel-case@npm:^4.1.2": version: 4.1.2 resolution: "camel-case@npm:4.1.2" dependencies: @@ -22455,15 +22500,6 @@ __metadata: languageName: node linkType: hard -"code-frame@npm:^5.0.0": - version: 5.0.0 - resolution: "code-frame@npm:5.0.0" - dependencies: - left-pad: ^1.1.3 - checksum: cf47b3f1aa7b052cf0117a6ae8be3da700afb803e96c89c468006e2bf6735f3b752391a50242623f08ebd05ba21e866561164507239f9822f780c60d8a3be11d - languageName: node - linkType: hard - "code-point-at@npm:^1.0.0": version: 1.1.0 resolution: "code-point-at@npm:1.1.0" @@ -23337,6 +23373,15 @@ __metadata: languageName: node linkType: hard +"cross-inspect@npm:1.0.1": + version: 1.0.1 + resolution: "cross-inspect@npm:1.0.1" + dependencies: + tslib: ^2.4.0 + checksum: 7c1e02e0a9670b62416a3ea1df7ae880fdad3aa0a857de8932c4e5f8acd71298c7e3db9da8e9da603f5692cd1879938f5e72e34a9f5d1345987bef656d117fc1 + languageName: node + linkType: hard + "cross-spawn@npm:^6.0.0, cross-spawn@npm:^6.0.5": version: 6.0.5 resolution: "cross-spawn@npm:6.0.5" @@ -23759,7 +23804,7 @@ __metadata: lodash: ^4.17.21 nanoid: ^3.3.7 node-fetch: ^2.6.1 - typescript: 4.7.4 + typescript: 4.9.5 uniqid: ^5.2.0 languageName: unknown linkType: soft @@ -24825,6 +24870,13 @@ __metadata: languageName: node linkType: hard +"dset@npm:^3.1.2": + version: 3.1.3 + resolution: "dset@npm:3.1.3" + checksum: 5db964a36c60c51aa3f7088bfe1dc5c0eedd9a6ef3b216935bb70ef4a7b8fc40fd2f9bb16b9a4692c9c9772cea60cfefb108d2d09fbd53c85ea8f6cd54502d6a + languageName: node + linkType: hard + "duplexer@npm:^0.1.1, duplexer@npm:^0.1.2": version: 0.1.2 resolution: "duplexer@npm:0.1.2" @@ -28700,24 +28752,26 @@ __metadata: languageName: node linkType: hard -"inquirer@npm:7.3.3, inquirer@npm:^7.0.0, inquirer@npm:^7.3.3": - version: 7.3.3 - resolution: "inquirer@npm:7.3.3" +"inquirer@npm:8.2.6, inquirer@npm:^8.2.4": + version: 8.2.6 + resolution: "inquirer@npm:8.2.6" dependencies: ansi-escapes: ^4.2.1 - chalk: ^4.1.0 + chalk: ^4.1.1 cli-cursor: ^3.1.0 cli-width: ^3.0.0 external-editor: ^3.0.3 figures: ^3.0.0 - lodash: ^4.17.19 + lodash: ^4.17.21 mute-stream: 0.0.8 + ora: ^5.4.1 run-async: ^2.4.0 - rxjs: ^6.6.0 + rxjs: ^7.5.5 string-width: ^4.1.0 strip-ansi: ^6.0.0 through: ^2.3.6 - checksum: 4d387fc1eb6126acbd58cbdb9ad99d2887d181df86ab0c2b9abdf734e751093e2d5882c2b6dc7144d9ab16b7ab30a78a1d7f01fb6a2850a44aeb175d1e3f8778 + wrap-ansi: ^6.0.1 + checksum: 387ffb0a513559cc7414eb42c57556a60e302f820d6960e89d376d092e257a919961cd485a1b4de693dbb5c0de8bc58320bfd6247dfd827a873aa82a4215a240 languageName: node linkType: hard @@ -28742,29 +28796,6 @@ __metadata: languageName: node linkType: hard -"inquirer@npm:^8.2.4": - version: 8.2.6 - resolution: "inquirer@npm:8.2.6" - dependencies: - ansi-escapes: ^4.2.1 - chalk: ^4.1.1 - cli-cursor: ^3.1.0 - cli-width: ^3.0.0 - external-editor: ^3.0.3 - figures: ^3.0.0 - lodash: ^4.17.21 - mute-stream: 0.0.8 - ora: ^5.4.1 - run-async: ^2.4.0 - rxjs: ^7.5.5 - string-width: ^4.1.0 - strip-ansi: ^6.0.0 - through: ^2.3.6 - wrap-ansi: ^6.0.1 - checksum: 387ffb0a513559cc7414eb42c57556a60e302f820d6960e89d376d092e257a919961cd485a1b4de693dbb5c0de8bc58320bfd6247dfd827a873aa82a4215a240 - languageName: node - linkType: hard - "internal-slot@npm:^1.0.3, internal-slot@npm:^1.0.4": version: 1.0.4 resolution: "internal-slot@npm:1.0.4" @@ -30754,13 +30785,6 @@ __metadata: languageName: node linkType: hard -"left-pad@npm:^1.1.3": - version: 1.3.0 - resolution: "left-pad@npm:1.3.0" - checksum: 13fa96e17b70a54836490de22d4bab706e2ed508338bbabecfac72ecce445a74139c5b009a8112252cab8fc4ab7ac4ebd870e5b35bd236b443b12be96f8745ac - languageName: node - linkType: hard - "lerna@npm:8.1.2": version: 8.1.2 resolution: "lerna@npm:8.1.2" @@ -37889,7 +37913,7 @@ __metadata: glob: ^7.1.3 graphql: ^15.7.2 husky: ^4.2.5 - inquirer: ^7.0.0 + inquirer: 8.2.6 inquirer-autocomplete-prompt: ^1.0.1 inquirer-checkbox-plus-prompt: ^1.0.1 inquirer-maxlength-input-prompt: ^1.0.0 @@ -37911,7 +37935,7 @@ __metadata: semver: ^7.5.4 ts-expect: ^1.3.0 ts-jest: ^29.1.2 - typescript: 4.7.4 + typescript: 4.9.5 typescript-transform-paths: ^3.4.6 verdaccio: ^5.29.1 write-json-file: ^4.2.0 @@ -37961,7 +37985,7 @@ __metadata: languageName: node linkType: hard -"rxjs@npm:^6.3.3, rxjs@npm:^6.4.0, rxjs@npm:^6.6.0, rxjs@npm:^6.6.2, rxjs@npm:^6.6.7": +"rxjs@npm:^6.3.3, rxjs@npm:^6.6.2, rxjs@npm:^6.6.7": version: 6.6.7 resolution: "rxjs@npm:6.6.7" dependencies: @@ -37970,21 +37994,21 @@ __metadata: languageName: node linkType: hard -"rxjs@npm:^7.5.1, rxjs@npm:^7.8.0": - version: 7.8.0 - resolution: "rxjs@npm:7.8.0" +"rxjs@npm:^7.2.0, rxjs@npm:^7.5.5": + version: 7.8.1 + resolution: "rxjs@npm:7.8.1" dependencies: tslib: ^2.1.0 - checksum: 61b4d4fd323c1043d8d6ceb91f24183b28bcf5def4f01ca111511d5c6b66755bc5578587fe714ef5d67cf4c9f2e26f4490d4e1d8cabf9bd5967687835e9866a2 + checksum: de4b53db1063e618ec2eca0f7965d9137cabe98cf6be9272efe6c86b47c17b987383df8574861bcced18ebd590764125a901d5506082be84a8b8e364bf05f119 languageName: node linkType: hard -"rxjs@npm:^7.5.5": - version: 7.8.1 - resolution: "rxjs@npm:7.8.1" +"rxjs@npm:^7.5.1, rxjs@npm:^7.8.0": + version: 7.8.0 + resolution: "rxjs@npm:7.8.0" dependencies: tslib: ^2.1.0 - checksum: de4b53db1063e618ec2eca0f7965d9137cabe98cf6be9272efe6c86b47c17b987383df8574861bcced18ebd590764125a901d5506082be84a8b8e364bf05f119 + checksum: 61b4d4fd323c1043d8d6ceb91f24183b28bcf5def4f01ca111511d5c6b66755bc5578587fe714ef5d67cf4c9f2e26f4490d4e1d8cabf9bd5967687835e9866a2 languageName: node linkType: hard @@ -40397,20 +40421,6 @@ __metadata: languageName: node linkType: hard -"tslib@npm:~2.0.1": - version: 2.0.3 - resolution: "tslib@npm:2.0.3" - checksum: 00fcdd1f9995c9f8eb6a4a1ad03f55bc95946321b7f55434182dddac259d4e095fedf78a84f73b6e32dd3f881d9281f09cb583123d3159ed4bdac9ad7393ef8b - languageName: node - linkType: hard - -"tslib@npm:~2.2.0": - version: 2.2.0 - resolution: "tslib@npm:2.2.0" - checksum: a48c9639f7496fa701ea8ffe0561070fcb44c104a59632f7f845c0af00825c99b6373575ec59b2b5cdbfd7505875086dbe5dc83312304d8979f22ce571218ca3 - languageName: node - linkType: hard - "tslib@npm:~2.3.0": version: 2.3.1 resolution: "tslib@npm:2.3.1" @@ -40634,23 +40644,63 @@ __metadata: languageName: node linkType: hard -"typescript@npm:4.7.4": - version: 4.7.4 - resolution: "typescript@npm:4.7.4" +"typescript@npm:4.9.5": + version: 4.9.5 + resolution: "typescript@npm:4.9.5" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: ee000bc26848147ad423b581bd250075662a354d84f0e06eb76d3b892328d8d4440b7487b5a83e851b12b255f55d71835b008a66cbf8f255a11e4400159237db + languageName: node + linkType: hard + +"typescript@npm:>=3 < 6": + version: 5.5.4 + resolution: "typescript@npm:5.5.4" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: b309040f3a1cd91c68a5a58af6b9fdd4e849b8c42d837b2c2e73f9a4f96a98c4f1ed398a9aab576ee0a4748f5690cf594e6b99dbe61de7839da748c41e6d6ca8 + languageName: node + linkType: hard + +"typescript@npm:~3.8.3": + version: 3.8.3 + resolution: "typescript@npm:3.8.3" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 5750181b1cd7e6482c4195825547e70f944114fb47e58e4aa7553e62f11b3f3173766aef9c281783edfd881f7b8299cf35e3ca8caebe73d8464528c907a164df + checksum: 3ef07f997a9a3af80d663cc611be984d3e22df3dc2b5ecfa6cbe7dbd54f1984fa1c679ba67e6a9d36d73ffdbbab88a0fbb58eb30ffc4f748f3a3c28d562b546a languageName: node linkType: hard -"typescript@patch:typescript@npm%3A4.7.4#~builtin": - version: 4.7.4 - resolution: "typescript@patch:typescript@npm%3A4.7.4#~builtin::version=4.7.4&hash=65a307" +"typescript@patch:typescript@4.9.5#~builtin": + version: 4.9.5 + resolution: "typescript@patch:typescript@npm%3A4.9.5#~builtin::version=4.9.5&hash=289587" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: 9096d8f6c16cb80ef3bf96fcbbd055bf1c4a43bd14f3b7be45a9fbe7ada46ec977f604d5feed3263b4f2aa7d4c7477ce5f9cd87de0d6feedec69a983f3a4f93e + checksum: 1f8f3b6aaea19f0f67cba79057674ba580438a7db55057eb89cc06950483c5d632115c14077f6663ea76fd09fce3c190e6414bb98582ec80aa5a4eaf345d5b68 + languageName: node + linkType: hard + +"typescript@patch:typescript@>=3 < 6#~builtin": + version: 5.5.4 + resolution: "typescript@patch:typescript@npm%3A5.5.4#~builtin::version=5.5.4&hash=29ae49" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: fc52962f31a5bcb716d4213bef516885e4f01f30cea797a831205fc9ef12b405a40561c40eae3127ab85ba1548e7df49df2bcdee6b84a94bfbe3a0d7eff16b14 + languageName: node + linkType: hard + +"typescript@patch:typescript@~3.8.3#~builtin": + version: 3.8.3 + resolution: "typescript@patch:typescript@npm%3A3.8.3#~builtin::version=3.8.3&hash=c44097" + bin: + tsc: bin/tsc + tsserver: bin/tsserver + checksum: fba33b9756bbffcbdc87254af0f491852bac475c1302b570b9c656c10fad9dbe7113975a64beb6035979db555b0fc87fa168734f10bf556f173213c13d371e4e languageName: node linkType: hard @@ -41143,10 +41193,10 @@ __metadata: languageName: node linkType: hard -"value-or-promise@npm:1.0.6": - version: 1.0.6 - resolution: "value-or-promise@npm:1.0.6" - checksum: 3f255d288ba25c4021cb88f319c3a8fe147d1cbc9a4a3b70c795c1a6225d126959b1709d3b4d357745ceb4812f644218de02907ad4934023ca0be2db7e194f86 +"value-or-promise@npm:^1.0.12": + version: 1.0.12 + resolution: "value-or-promise@npm:1.0.12" + checksum: f53a66c75b7447c90bbaf946a757ca09c094629cb80ba742f59c980ec3a69be0a385a0e75505dedb4e757862f1a994ca4beaf083a831f24d3ffb3d4bb18cd1e1 languageName: node linkType: hard