Skip to content

Commit efac463

Browse files
authored
update-dependencies (#294)
* update-depenencies * fixes * fixes * fixes * fixes * multiple versions of tailwind css * multiple versions of tailwind css
1 parent 4ebf547 commit efac463

14 files changed

+1824
-826
lines changed

components/EditorPanel.tsx

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {
66
IconButton,
77
Pane,
88
Popover,
9-
Spinner,
109
TextInput,
1110
toaster,
1211
Tooltip
@@ -15,7 +14,6 @@ import React, { useCallback, useEffect, useRef, useState } from "react";
1514
import dynamic from "next/dynamic";
1615
import copy from "clipboard-copy";
1716
import Npm from "@assets/svgs/Npm";
18-
import { supportedLanguages } from "@utils/prettier";
1917
import { useDropzone } from "react-dropzone";
2018

2119
export interface EditorPanelProps {
@@ -44,18 +42,7 @@ export interface EditorPanelProps {
4442
}
4543

4644
const Monaco = dynamic(() => import("../components/Monaco"), {
47-
ssr: false,
48-
loading: () => (
49-
<Pane
50-
display="flex"
51-
alignItems="center"
52-
justifyContent="center"
53-
height={400}
54-
flex={1}
55-
>
56-
<Spinner />
57-
</Pane>
58-
)
45+
ssr: false
5946
});
6047

6148
export default function EditorPanel({

components/Monaco.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from "react";
22
import Editor from "@monaco-editor/react";
3+
import { Pane, Spinner } from "evergreen-ui";
34

45
export function processSize(size) {
56
return !/^\d+$/.test(size) ? size : `${size}px`;
@@ -34,6 +35,17 @@ export const Monaco: React.FC<MonacoProps> = ({
3435
width={width}
3536
options={options}
3637
onChange={onChange}
38+
loading={
39+
<Pane
40+
display="flex"
41+
alignItems="center"
42+
justifyContent="center"
43+
height={400}
44+
flex={1}
45+
>
46+
<Spinner />
47+
</Pane>
48+
}
3749
/>
3850
);
3951
};

package.json

Lines changed: 50 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -18,60 +18,62 @@
1818
"node": "12.x"
1919
},
2020
"dependencies": {
21-
"@babel/standalone": "^7.11.2",
22-
"@graphql-codegen/core": "^1.17.7",
23-
"@graphql-codegen/flow": "^1.17.7",
24-
"@graphql-codegen/flow-operations": "^1.17.7",
25-
"@graphql-codegen/flow-resolvers": "^1.17.7",
26-
"@graphql-codegen/fragment-matcher": "^1.17.7",
27-
"@graphql-codegen/introspection": "^1.17.7",
28-
"@graphql-codegen/java": "^1.17.7",
29-
"@graphql-codegen/java-resolvers": "^1.17.7",
30-
"@graphql-codegen/schema-ast": "^1.17.7",
31-
"@graphql-codegen/typescript": "^1.17.7",
32-
"@graphql-codegen/typescript-apollo-angular": "^2.0.0",
33-
"@graphql-codegen/typescript-mongodb": "^1.17.7",
34-
"@graphql-codegen/typescript-operations": "^1.17.7",
35-
"@graphql-codegen/typescript-react-apollo": "^2.0.5",
36-
"@graphql-codegen/typescript-resolvers": "^1.17.7",
37-
"@graphql-codegen/typescript-stencil-apollo": "^1.17.7",
38-
"@graphql-codegen/typescript-urql": "^2.0.0",
39-
"@khanacademy/flow-to-ts": "^0.1.6",
21+
"@babel/standalone": "^7.14.7",
22+
"@graphql-codegen/core": "^1.17.10",
23+
"@graphql-codegen/flow": "^1.19.3",
24+
"@graphql-codegen/flow-operations": "^1.18.11",
25+
"@graphql-codegen/flow-resolvers": "^1.17.16",
26+
"@graphql-codegen/fragment-matcher": "^2.0.1",
27+
"@graphql-codegen/introspection": "^1.18.2",
28+
"@graphql-codegen/java": "^2.0.2",
29+
"@graphql-codegen/java-resolvers": "^1.18.3",
30+
"@graphql-codegen/schema-ast": "^1.18.3",
31+
"@graphql-codegen/typescript": "^1.22.3",
32+
"@graphql-codegen/typescript-apollo-angular": "^2.3.6",
33+
"@graphql-codegen/typescript-mongodb": "^1.19.3",
34+
"@graphql-codegen/typescript-operations": "^1.18.2",
35+
"@graphql-codegen/typescript-react-apollo": "^2.2.7",
36+
"@graphql-codegen/typescript-resolvers": "^1.19.4",
37+
"@graphql-codegen/typescript-stencil-apollo": "^1.18.7",
38+
"@graphql-codegen/typescript-urql": "^2.0.9",
39+
"@khanacademy/flow-to-ts": "^0.5.2",
4040
"@monaco-editor/react": "^4.2.1",
41-
"@openapi-contrib/json-schema-to-openapi-schema": "^1.2.0",
42-
"@svgr/core": "^5.4.0",
43-
"@svgr/plugin-jsx": "^5.4.0",
44-
"@types/jsonld": "^1.5.1",
45-
"@walmartlabs/json-to-simple-graphql-schema": "^2.0.3",
46-
"autoprefixer": "^9.8.6",
41+
"@openapi-contrib/json-schema-to-openapi-schema": "^2.0.0",
42+
"@svgr/core": "^5.5.0",
43+
"@svgr/plugin-jsx": "^5.5.0",
44+
"@types/jsonld": "^1.5.5",
45+
"@walmartlabs/json-to-simple-graphql-schema": "^2.0.4",
46+
"autoprefixer": "^10.2.6",
47+
"autoprefixer9": "npm:[email protected]",
4748
"axios": "^0.21.1",
4849
"babel-plugin-json-to-proptypes": "^0.1.0",
4950
"babel-plugin-object-styles-to-template": "^0.2.2",
5051
"babel-standalone": "^6.26.0",
51-
"clipboard-copy": "^3.1.0",
52+
"clipboard-copy": "^4.0.1",
5253
"css-to-tailwind": "^1.0.3",
5354
"evergreen-ui": "^4.28.0",
54-
"flowgen": "^1.11.0",
55-
"formik": "^2.1.4",
55+
"flowgen": "^1.14.1",
56+
"formik": "^2.2.9",
5657
"generate-schema": "^2.6.0",
5758
"gofmt.js": "^0.0.2",
58-
"graphql": "^15.1.0",
59+
"graphql": "^15.5.1",
5960
"html2pug": "^4.0.0",
6061
"htmltojsx": "^0.3.0",
6162
"is-capitalized": "^1.0.0",
62-
"is-svg": "^4.2.1",
63-
"json-schema-to-typescript": "^9.1.0",
63+
"is-svg": "^4.3.1",
64+
"json-schema-to-typescript": "^10.1.4",
6465
"json-to-go": "gist:0d0b8324131c80eeb7e1df20001be32f",
6566
"json-ts": "^1.6.4",
66-
"json_typegen_wasm": "^0.4.0",
67-
"jsonld": "^3.1.1",
67+
"json_typegen_wasm": "^0.6.1",
68+
"jsonld": "^5.2.0",
6869
"jsonschema-protobuf": "^1.0.2",
69-
"lodash": "^4.17.19",
70+
"lodash": "^4.17.21",
7071
"markdown": "^0.5.0",
7172
"next": "10.2.3",
7273
"nprogress": "^0.2.0",
73-
"postcss": "^7.0.32",
74-
"postcss-js": "^3.0.0",
74+
"postcss": "^8.3.5",
75+
"postcss-js": "^3.0.3",
76+
"postcss7": "npm:[email protected]",
7577
"prettier": "^1.18.2",
7678
"react": "^17.0.2",
7779
"react-dom": "^17.0.2",
@@ -81,27 +83,28 @@
8183
"stringify-object": "^3.3.0",
8284
"svg-to-dataurl": "^1.0.0",
8385
"svgo": "^1.3.2",
84-
"tailwindcss": "^1.7.3",
85-
"tempy": "^0.6.0",
86+
"tailwindcss": "^2.2.4",
87+
"tailwindcss1": "npm:[email protected]",
88+
"tempy": "^1.0.1",
8689
"text-encoding-utf-8": "^1.0.2",
8790
"transform-json-types": "^0.7.0",
88-
"ts-json-schema-generator": "^0.70.2",
91+
"ts-json-schema-generator": "^0.93.0",
8992
"typescript": "4.3.4",
9093
"xml-js": "^1.6.11",
91-
"yaml": "^1.10.0"
94+
"yaml": "^1.10.2"
9295
},
9396
"devDependencies": {
94-
"@types/lodash": "^4.14.159",
95-
"@types/node": "^14.0.27",
96-
"@types/prettier": "^2.0.2",
97-
"@types/react": "^16.9.45",
97+
"@types/lodash": "^4.14.170",
98+
"@types/node": "^15.12.5",
99+
"@types/prettier": "^2.3.0",
100+
"@types/react": "^17.0.11",
98101
"@types/svgo": "^1.3.3",
99102
"husky": "^4.2.5",
100103
"imagemin-lint-staged": "^0.4.0",
101-
"lint-staged": "^10.2.11",
102-
"patch-package": "^6.1.2",
104+
"lint-staged": "^11.0.0",
105+
"patch-package": "^6.4.7",
103106
"postinstall-postinstall": "^2.0.0",
104-
"pretty-quick": "^2.0.1",
107+
"pretty-quick": "^3.1.1",
105108
"ui-box": "2.1.0",
106109
"webpack": "^4.44.1",
107110
"worker-loader": "^2.0.0"

pages/api/flow-to-typescript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { NextApiRequest, NextApiResponse } from "next";
2-
import convert from "@khanacademy/flow-to-ts";
2+
import { convert } from "@khanacademy/flow-to-ts";
33
import * as ts from "typescript";
44

55
export default (req: NextApiRequest, res: NextApiResponse) => {

pages/css-to-tailwind.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import ConversionPanel, { Transformer } from "@components/ConversionPanel";
22
import NoSSR from "@components/NoSSR";
33
import * as React from "react";
4-
import { useState, useCallback, useMemo } from "react";
4+
import { useState, useCallback } from "react";
55
import request from "@utils/request";
66
import tailwindCss from "@utils/tailwindcss";
77
import { promises as fs } from "fs";
@@ -20,7 +20,7 @@ import {
2020
Tooltip,
2121
toaster
2222
} from "evergreen-ui";
23-
import tailwindResolve from "tailwindcss/resolveConfig";
23+
import tailwindResolve from "tailwindcss1/resolveConfig";
2424
import dynamic from "next/dynamic";
2525

2626
const Monaco = dynamic(() => import("../components/Monaco"), {
@@ -36,7 +36,8 @@ const options = {
3636
enabled: false
3737
},
3838
quickSuggestions: false,
39-
lineNumbers: "on"
39+
lineNumbers: "on",
40+
renderValidationDecorations: "off"
4041
};
4142

4243
const tabs = [
@@ -115,7 +116,7 @@ function CssToTailwindSettings({ open, toggle, onConfirm, settings }) {
115116
: setPostCssInputValue
116117
}
117118
options={options}
118-
height="300"
119+
height={300}
119120
/>
120121
</Pane>
121122
</Pane>
@@ -270,7 +271,7 @@ export default function CssToTailwind({ defaultSettings }) {
270271
editorTitle="CSS"
271272
editorLanguage="css"
272273
editorDefaultValue="css2"
273-
resultTitle="TailwindCSS"
274+
resultTitle="TailwindCSS 1"
274275
resultLanguage={"css"}
275276
editorProps={{
276277
settingElement: ({ open, toggle }) => {

pages/typescript-to-flow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Alert } from "evergreen-ui";
66

77
export default function TypescriptToFlow() {
88
const transformer = useCallback(
9-
({ value }) => request("/api/typescript-to-flow", value),
9+
({ value }) => request("/api/typescript-to-flow", value, "plain/text"),
1010
[]
1111
);
1212

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
diff --git a/node_modules/@khanacademy/flow-to-ts/.DS_Store b/node_modules/@khanacademy/flow-to-ts/.DS_Store
2+
new file mode 100644
3+
index 0000000..c88a062
4+
Binary files /dev/null and b/node_modules/@khanacademy/flow-to-ts/.DS_Store differ
5+
diff --git a/node_modules/@khanacademy/flow-to-ts/dist/convert.bundle.js b/node_modules/@khanacademy/flow-to-ts/dist/convert.js
6+
similarity index 100%
7+
rename from node_modules/@khanacademy/flow-to-ts/dist/convert.bundle.js
8+
rename to node_modules/@khanacademy/flow-to-ts/dist/convert.js
Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,36 @@
11
diff --git a/node_modules/json-schema-to-typescript/dist/src/formatter.js b/node_modules/json-schema-to-typescript/dist/src/formatter.js
2-
index 1c2c709..b3eb9e1 100644
2+
index a9362fa..b3fef5a 100644
33
--- a/node_modules/json-schema-to-typescript/dist/src/formatter.js
44
+++ b/node_modules/json-schema-to-typescript/dist/src/formatter.js
5-
@@ -11,9 +11,8 @@ var __assign = (this && this.__assign) || function () {
6-
return __assign.apply(this, arguments);
5+
@@ -12,12 +12,11 @@ var __assign = (this && this.__assign) || function () {
76
};
87
Object.defineProperty(exports, "__esModule", { value: true });
8+
exports.format = void 0;
99
-var prettier_1 = require("prettier");
1010
function format(code, options) {
11+
if (!options.format) {
12+
return code;
13+
}
1114
- return prettier_1.format(code, __assign({ parser: 'typescript' }, options.style));
12-
+ return code;
15+
+ return code
1316
}
1417
exports.format = format;
1518
//# sourceMappingURL=formatter.js.map
16-
\ No newline at end of file
1719
diff --git a/node_modules/json-schema-to-typescript/dist/src/index.js b/node_modules/json-schema-to-typescript/dist/src/index.js
18-
index c3e750a..1d871dd 100644
20+
index f880f17..0ef8b27 100644
1921
--- a/node_modules/json-schema-to-typescript/dist/src/index.js
2022
+++ b/node_modules/json-schema-to-typescript/dist/src/index.js
21-
@@ -60,9 +60,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
22-
}
23+
@@ -61,9 +61,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
2324
};
2425
Object.defineProperty(exports, "__esModule", { value: true });
26+
exports.ValidationError = exports.compile = exports.compileFromFile = exports.DEFAULT_OPTIONS = void 0;
2527
-var fs_1 = require("fs");
2628
var lodash_1 = require("lodash");
2729
-var path_1 = require("path");
2830
var formatter_1 = require("./formatter");
2931
var generator_1 = require("./generator");
3032
var normalizer_1 = require("./normalizer");
31-
@@ -91,17 +89,7 @@ exports.DEFAULT_OPTIONS = {
33+
@@ -95,17 +93,6 @@ exports.DEFAULT_OPTIONS = {
3234
unreachableDefinitions: false,
3335
unknownAny: true
3436
};
@@ -43,7 +45,6 @@ index c3e750a..1d871dd 100644
4345
- return compile(schema, utils_1.stripExtension(filename), __assign({ cwd: path_1.dirname(filename) }, options));
4446
-}
4547
-exports.compileFromFile = compileFromFile;
46-
+
4748
function compile(schema, name, options) {
4849
if (options === void 0) { options = {}; }
4950
return __awaiter(this, void 0, void 0, function () {

patches/json_typegen_wasm+0.4.0.patch

Lines changed: 0 additions & 17 deletions
This file was deleted.

patches/json_typegen_wasm+0.6.1.patch

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
diff --git a/node_modules/json_typegen_wasm/json_typegen_wasm_bg.js b/node_modules/json_typegen_wasm/json_typegen_wasm_bg.js
2+
index 8bbefdb..b6167a1 100644
3+
--- a/node_modules/json_typegen_wasm/json_typegen_wasm_bg.js
4+
+++ b/node_modules/json_typegen_wasm/json_typegen_wasm_bg.js
5+
@@ -14,6 +14,12 @@ const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('u
6+
7+
let cachedTextEncoder = new lTextEncoder('utf-8');
8+
9+
+if (IN_BROWSER && !window.TextEncoder) {
10+
+ const encoding = require("text-encoding-utf-8");
11+
+ window.TextEncoder = encoding.TextEncoder;
12+
+ window.TextDecoder = encoding.TextDecoder;
13+
+ }
14+
+
15+
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
16+
? function (arg, view) {
17+
return cachedTextEncoder.encodeInto(arg, view);

patches/relay-compiler+10.0.1.patch renamed to patches/relay-compiler+10.1.0.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/node_modules/relay-compiler/lib/core/GraphQLCompilerProfiler.js b/node_modules/relay-compiler/lib/core/GraphQLCompilerProfiler.js
2-
index 77a0cad..d842094 100644
2+
index 77a0cad..a8e73d5 100644
33
--- a/node_modules/relay-compiler/lib/core/GraphQLCompilerProfiler.js
44
+++ b/node_modules/relay-compiler/lib/core/GraphQLCompilerProfiler.js
55
@@ -189,6 +189,8 @@ function instrumentWait(fn, name) {

typings.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,5 @@ declare module "@workers/svgr.worker" {
4848

4949
declare const IN_BROWSER: boolean;
5050
declare const IS_DEV: boolean;
51+
52+
declare module "@khanacademy/flow-to-ts";

utils/tailwindcss.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import postcss from "postcss";
2-
import tailwindcss from "tailwindcss";
3-
import defaultConfig from "tailwindcss/stubs/simpleConfig.stub.js";
4-
import autoprefixer from "autoprefixer";
1+
import postcss from "postcss7";
2+
import tailwindcss from "tailwindcss1";
3+
import defaultConfig from "tailwindcss1/stubs/simpleConfig.stub.js";
4+
import autoprefixer from "autoprefixer9";
55

66
export default async function buildTailwindCss(
77
tailwindConfig: any,

0 commit comments

Comments
 (0)