@knapsack/update 4.69.4--canary.1952c9a.0 → 4.69.4
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +12 -0
- package/dist/updates/4.0.0/markdown.utils.d.ts +1 -2
- package/dist/updates/4.0.0/markdown.utils.d.ts.map +1 -1
- package/dist/updates/4.0.0/markdown.utils.js +1 -1
- package/dist/updates/4.0.0/markdown.utils.js.map +1 -1
- package/package.json +14 -14
- package/src/updates/4.0.0/markdown.utils.ts +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
# v4.69.4 (Wed Sep 04 2024)
|
2
|
+
|
3
|
+
#### 🐛 Bug Fix
|
4
|
+
|
5
|
+
- fix `mdToTipTapJson` type error [#4674](https://github.com/knapsack-labs/app-monorepo/pull/4674) ([@EvanLovely](https://github.com/EvanLovely))
|
6
|
+
|
7
|
+
#### Authors: 1
|
8
|
+
|
9
|
+
- Evan Lovely ([@EvanLovely](https://github.com/EvanLovely))
|
10
|
+
|
11
|
+
---
|
12
|
+
|
1
13
|
# v4.69.3 (Wed Sep 04 2024)
|
2
14
|
|
3
15
|
#### 🐛 Bug Fix
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import { marked } from 'marked';
|
2
1
|
/**
|
3
2
|
* Convert markdown to html to sanitized html to TipTap JSON
|
4
3
|
*/
|
5
|
-
export declare const mdToTipTapJson: (
|
4
|
+
export declare const mdToTipTapJson: (md: string) => import("@knapsack/tiptap-utils").JSONContent;
|
6
5
|
//# sourceMappingURL=markdown.utils.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"markdown.utils.d.ts","sourceRoot":"","sources":["../../../src/updates/4.0.0/markdown.utils.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"markdown.utils.d.ts","sourceRoot":"","sources":["../../../src/updates/4.0.0/markdown.utils.ts"],"names":[],"mappings":"AA+BA;;GAEG;AACH,eAAO,MAAM,cAAc,8DAK1B,CAAC"}
|
@@ -28,5 +28,5 @@ function assertConvertableBlock(html) {
|
|
28
28
|
/**
|
29
29
|
* Convert markdown to html to sanitized html to TipTap JSON
|
30
30
|
*/
|
31
|
-
export const mdToTipTapJson = flow(marked.parse, assertConvertableBlock, domPurify.sanitize, convertHtmlToTipTapJson);
|
31
|
+
export const mdToTipTapJson = flow((md) => marked.parse(md), assertConvertableBlock, domPurify.sanitize, convertHtmlToTipTapJson);
|
32
32
|
//# sourceMappingURL=markdown.utils.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"markdown.utils.js","sourceRoot":"","sources":["../../../src/updates/4.0.0/markdown.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,SAAS,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,kFAAkF;AAClF,8EAA8E;AAC9E,+EAA+E;AAC/E,gFAAgF;AAChF,mFAAmF;AACnF,gFAAgF;AAChF,2BAA2B;AAC3B,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,SAAS,GAAG,CAAC,IAAY,EAAE,EAAE,CACrD,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,MAAM,IAAI,QAAQ,CAAC;AAE7D;;;GAGG;AACH,SAAS,sBAAsB,CAAC,IAAY;IAC1C,MAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IACrB,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;IAC9D,CAAC;IACD,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,GAAG,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AACd,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,CAChC,CAAC,EAAU,EAAU,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC,EACxC,sBAAsB,EACtB,SAAS,CAAC,QAAQ,EAClB,uBAAuB,CACxB,CAAC"}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@knapsack/update",
|
3
3
|
"description": "",
|
4
|
-
"version": "4.69.4
|
4
|
+
"version": "4.69.4",
|
5
5
|
"bin": {
|
6
6
|
"knapsack-update": "./cli.js"
|
7
7
|
},
|
@@ -18,13 +18,13 @@
|
|
18
18
|
"test": "ava"
|
19
19
|
},
|
20
20
|
"dependencies": {
|
21
|
-
"@knapsack/app": "4.69.4
|
22
|
-
"@knapsack/creator-utils": "4.69.4
|
23
|
-
"@knapsack/design-token-utils": "4.69.4
|
24
|
-
"@knapsack/file-utils": "4.69.4
|
25
|
-
"@knapsack/ks-file-utils": "4.69.4
|
26
|
-
"@knapsack/tiptap-utils": "4.69.4
|
27
|
-
"@knapsack/utils": "4.69.4
|
21
|
+
"@knapsack/app": "4.69.4",
|
22
|
+
"@knapsack/creator-utils": "4.69.4",
|
23
|
+
"@knapsack/design-token-utils": "4.69.4",
|
24
|
+
"@knapsack/file-utils": "4.69.4",
|
25
|
+
"@knapsack/ks-file-utils": "4.69.4",
|
26
|
+
"@knapsack/tiptap-utils": "4.69.4",
|
27
|
+
"@knapsack/utils": "4.69.4",
|
28
28
|
"cheerio": "^1.0.0",
|
29
29
|
"isomorphic-dompurify": "^1.13.0",
|
30
30
|
"marked": "^4.3.0",
|
@@ -32,11 +32,11 @@
|
|
32
32
|
"yargs": "^17.7.2"
|
33
33
|
},
|
34
34
|
"devDependencies": {
|
35
|
-
"@knapsack/eslint-config-starter": "4.69.4
|
36
|
-
"@knapsack/prettier-config": "4.69.4
|
37
|
-
"@knapsack/test-ava": "4.69.4
|
38
|
-
"@knapsack/types": "4.69.4
|
39
|
-
"@knapsack/typescript-config-starter": "4.69.4
|
35
|
+
"@knapsack/eslint-config-starter": "4.69.4",
|
36
|
+
"@knapsack/prettier-config": "4.69.4",
|
37
|
+
"@knapsack/test-ava": "4.69.4",
|
38
|
+
"@knapsack/types": "4.69.4",
|
39
|
+
"@knapsack/typescript-config-starter": "4.69.4",
|
40
40
|
"@types/marked": "^4.0.3",
|
41
41
|
"@types/node": "^20.16.3",
|
42
42
|
"@types/prompts": "^2.4.9",
|
@@ -54,5 +54,5 @@
|
|
54
54
|
"directory": "apps/client/update",
|
55
55
|
"type": "git"
|
56
56
|
},
|
57
|
-
"gitHead": "
|
57
|
+
"gitHead": "9f724886964ca07eee63cedcdd3b1254017e3b2c"
|
58
58
|
}
|
@@ -33,7 +33,7 @@ function assertConvertableBlock(html: string): string {
|
|
33
33
|
* Convert markdown to html to sanitized html to TipTap JSON
|
34
34
|
*/
|
35
35
|
export const mdToTipTapJson = flow(
|
36
|
-
marked.parse,
|
36
|
+
(md: string): string => marked.parse(md),
|
37
37
|
assertConvertableBlock,
|
38
38
|
domPurify.sanitize,
|
39
39
|
convertHtmlToTipTapJson,
|