Skip to content

Commit 67b88a7

Browse files
committed
chore: update dependencies
1 parent f8b6c1e commit 67b88a7

File tree

14 files changed

+27
-50
lines changed

14 files changed

+27
-50
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@
225225
]
226226
},
227227
"resolutions": {
228+
"systeminformation": "^5.23.18",
228229
"@emotion/react": "11.10.8",
229230
"@octokit/rest": "^20.0.2",
230231
"braces": "^3.0.3",

packages/api-apw/__tests__/utils/defaultIdentity.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { GraphQLSchemaPlugin } from "@webiny/handler-graphql/plugins";
22
import { SecurityContext } from "@webiny/api-security/types";
3+
import { GenericRecord } from "@webiny/api/types";
34

45
export const defaultIdentity = () => {
56
return new GraphQLSchemaPlugin<SecurityContext>({
@@ -16,7 +17,7 @@ export const defaultIdentity = () => {
1617
`,
1718
resolvers: {
1819
Admin: {
19-
__isTypeOf(obj) {
20+
__isTypeOf(obj: GenericRecord) {
2021
return obj.type === "admin";
2122
}
2223
}

packages/api-prerendering-service/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
"posthtml-noopener": "^1.0.5",
3232
"posthtml-plugin-link-preload": "^1.0.0",
3333
"puppeteer-core": "^23.9.0",
34-
"shortid": "^2.1.6",
3534
"srcset": "^4.0.0"
3635
},
3736
"devDependencies": {

packages/api-prerendering-service/src/render/renderUrl.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import injectRenderTs from "./injectRenderTs";
1414
import injectTenantLocale from "./injectTenantLocale";
1515
import injectNotFoundPageFlag from "./injectNotFoundPageFlag";
1616
import getPsTags from "./getPsTags";
17-
import shortid from "shortid";
17+
import { generateAlphaNumericId } from "@webiny/utils/generateId";
1818
import {
1919
RenderResult,
2020
RenderUrlCallableParams,
@@ -51,7 +51,7 @@ export interface File {
5151
}
5252

5353
export default async (url: string, args: RenderUrlParams): Promise<[File[], Meta]> => {
54-
const id = shortid.generate();
54+
const id = generateAlphaNumericId();
5555
const ts = new Date().getTime();
5656

5757
console.log(`Rendering "${url}" (render ID: ${id})...`);

packages/api-security/__tests__/mocks/defaultIdentity.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { GraphQLSchemaPlugin } from "@webiny/handler-graphql/plugins";
22
import { SecurityContext } from "~/types";
3+
import { GenericRecord } from "@webiny/api/types";
34

45
export const defaultIdentity = () => {
56
return new GraphQLSchemaPlugin<SecurityContext>({
@@ -14,7 +15,7 @@ export const defaultIdentity = () => {
1415
`,
1516
resolvers: {
1617
Admin: {
17-
__isTypeOf(obj) {
18+
__isTypeOf(obj: GenericRecord) {
1819
return obj.type === "admin";
1920
}
2021
}

packages/app-form-builder/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@
5555
"react-dnd-html5-backend": "^16.0.1",
5656
"react-dom": "18.2.0",
5757
"react-google-recaptcha": "^1.1.0",
58-
"react-hotkeyz": "^1.0.4",
59-
"shortid": "^2.1.6"
58+
"react-hotkeyz": "^1.0.4"
6059
},
6160
"devDependencies": {
6261
"@emotion/babel-plugin": "^11.11.0",

packages/app-form-builder/src/admin/components/FormEditor/Context/useFormEditorFactory.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import shortid from "shortid";
2+
import { generateAlphaNumericId } from "@webiny/utils/generateId";
33
import cloneDeep from "lodash/cloneDeep";
44
import pick from "lodash/pick";
55
import {
@@ -390,7 +390,7 @@ export const useFormEditorFactory = (
390390
*/
391391
insertField: ({ data, destination, target }) => {
392392
const field = cloneDeep(data);
393-
field._id = shortid.generate();
393+
field._id = generateAlphaNumericId();
394394

395395
if (!data.name) {
396396
throw new Error(`Field "name" missing.`);

packages/cli/files/references.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

packages/ui/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"@rmwc/typography": "^14.2.2",
4444
"@svgr/webpack": "^6.1.1",
4545
"@tanstack/react-table": "^8.5.22",
46+
"@webiny/utils": "0.0.0",
4647
"brace": "^0.11.1",
4748
"classnames": "^2.5.1",
4849
"cropperjs": "^1.4.3",
@@ -64,7 +65,6 @@
6465
"react-loading-skeleton": "^3.1.0",
6566
"react-spinner-material": "1.1.4",
6667
"react-transition-group": "^4.4.5",
67-
"shortid": "^2.1.6",
6868
"timeago-react": "^3.0.6"
6969
},
7070
"devDependencies": {
@@ -74,7 +74,6 @@
7474
"@types/react-color": "^2.17.11",
7575
"@types/react-custom-scrollbars": "^4.0.10",
7676
"@types/react-transition-group": "^4.4.4",
77-
"@types/shortid": "^0.0.29",
7877
"@webiny/cli": "0.0.0",
7978
"@webiny/form": "0.0.0",
8079
"@webiny/project-utils": "0.0.0",

packages/ui/src/RichTextEditor/RichTextEditor.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React, { Fragment, useEffect, useRef } from "react";
2-
import shortid from "shortid";
32
import EditorJS, {
43
LogLevels,
54
OutputBlockData,
@@ -11,6 +10,7 @@ import { FormElementMessage } from "~/FormElementMessage";
1110
import { css } from "emotion";
1211
import classNames from "classnames";
1312
import { FormComponentProps } from "@webiny/form";
13+
import { generateAlphaNumericId } from "@webiny/utils/generateId";
1414

1515
const classes = {
1616
wrapper: css({
@@ -83,7 +83,7 @@ const waitForDom = (id: string, callback: () => void) => {
8383
};
8484

8585
export const RichTextEditor = (props: RichTextEditorProps) => {
86-
const elementId = useRef("rte-" + shortid.generate());
86+
const elementId = useRef("rte-" + generateAlphaNumericId());
8787
const editorRef = useRef<EditorJSType>();
8888

8989
useEffect(() => {

0 commit comments

Comments
 (0)