@knapsack/update 4.69.4--canary.d7e0dfc.0 → 4.69.4--canary.1952c9a.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,6 @@
1
+ import { marked } from 'marked';
1
2
  /**
2
3
  * Convert markdown to html to sanitized html to TipTap JSON
3
4
  */
4
- export declare const mdToTipTapJson: (md: string) => import("@knapsack/tiptap-utils").JSONContent;
5
+ export declare const mdToTipTapJson: (src: string, options?: marked.MarkedOptions, callback?: (error: any, parseResult: string) => void) => import("@knapsack/tiptap-utils").JSONContent;
5
6
  //# 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":"AA+BA;;GAEG;AACH,eAAO,MAAM,cAAc,8DAK1B,CAAC"}
1
+ {"version":3,"file":"markdown.utils.d.ts","sourceRoot":"","sources":["../../../src/updates/4.0.0/markdown.utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AA6BhC;;GAEG;AACH,eAAO,MAAM,cAAc,qJAK1B,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((md) => marked.parse(md), assertConvertableBlock, domPurify.sanitize, convertHtmlToTipTapJson);
31
+ export const mdToTipTapJson = flow(marked.parse, 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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AAQ,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,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;IAC9C,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,CAChC,MAAM,CAAC,KAAK,EACZ,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--canary.d7e0dfc.0",
4
+ "version": "4.69.4--canary.1952c9a.0",
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--canary.d7e0dfc.0",
22
- "@knapsack/creator-utils": "4.69.4--canary.d7e0dfc.0",
23
- "@knapsack/design-token-utils": "4.69.4--canary.d7e0dfc.0",
24
- "@knapsack/file-utils": "4.69.4--canary.d7e0dfc.0",
25
- "@knapsack/ks-file-utils": "4.69.4--canary.d7e0dfc.0",
26
- "@knapsack/tiptap-utils": "4.69.4--canary.d7e0dfc.0",
27
- "@knapsack/utils": "4.69.4--canary.d7e0dfc.0",
21
+ "@knapsack/app": "4.69.4--canary.1952c9a.0",
22
+ "@knapsack/creator-utils": "4.69.4--canary.1952c9a.0",
23
+ "@knapsack/design-token-utils": "4.69.4--canary.1952c9a.0",
24
+ "@knapsack/file-utils": "4.69.4--canary.1952c9a.0",
25
+ "@knapsack/ks-file-utils": "4.69.4--canary.1952c9a.0",
26
+ "@knapsack/tiptap-utils": "4.69.4--canary.1952c9a.0",
27
+ "@knapsack/utils": "4.69.4--canary.1952c9a.0",
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--canary.d7e0dfc.0",
36
- "@knapsack/prettier-config": "4.69.4--canary.d7e0dfc.0",
37
- "@knapsack/test-ava": "4.69.4--canary.d7e0dfc.0",
38
- "@knapsack/types": "4.69.4--canary.d7e0dfc.0",
39
- "@knapsack/typescript-config-starter": "4.69.4--canary.d7e0dfc.0",
35
+ "@knapsack/eslint-config-starter": "4.69.4--canary.1952c9a.0",
36
+ "@knapsack/prettier-config": "4.69.4--canary.1952c9a.0",
37
+ "@knapsack/test-ava": "4.69.4--canary.1952c9a.0",
38
+ "@knapsack/types": "4.69.4--canary.1952c9a.0",
39
+ "@knapsack/typescript-config-starter": "4.69.4--canary.1952c9a.0",
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": "d7e0dfc57d8755bed3b0414a1b65afa7e6c4630b"
57
+ "gitHead": "1952c9aa343e3507231bb8774d8c8d605c34c44e"
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
- (md: string): string => marked.parse(md),
36
+ marked.parse,
37
37
  assertConvertableBlock,
38
38
  domPurify.sanitize,
39
39
  convertHtmlToTipTapJson,