@portabletext/html 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -3
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as TypedObject, t as DeserializerRule } from "./_chunks-dts/types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as _portabletext_schema2 from "@portabletext/schema";
|
|
3
3
|
import { PortableTextObject, Schema, SchemaDefinition } from "@portabletext/schema";
|
|
4
4
|
/**
|
|
5
5
|
* Matcher function for mapping HTML objects to Portable Text block or inline objects.
|
|
@@ -58,7 +58,7 @@ type HtmlToPortableTextOptions = {
|
|
|
58
58
|
* @returns Array of Portable Text blocks
|
|
59
59
|
* @public
|
|
60
60
|
*/
|
|
61
|
-
declare function htmlToPortableText(html: string, options?: HtmlToPortableTextOptions): (Omit<TypedObject |
|
|
61
|
+
declare function htmlToPortableText(html: string, options?: HtmlToPortableTextOptions): (Omit<TypedObject | _portabletext_schema2.PortableTextTextBlock<TypedObject | _portabletext_schema2.PortableTextSpan>, "_key"> & {
|
|
62
62
|
_key: string;
|
|
63
63
|
})[];
|
|
64
64
|
/**
|
|
@@ -66,6 +66,6 @@ declare function htmlToPortableText(html: string, options?: HtmlToPortableTextOp
|
|
|
66
66
|
*
|
|
67
67
|
* @public
|
|
68
68
|
*/
|
|
69
|
-
declare const defaultSchema:
|
|
69
|
+
declare const defaultSchema: _portabletext_schema2.Schema;
|
|
70
70
|
export { type DeserializerRule, type HtmlToPortableTextOptions, type ObjectMatcher, buildObjectMatcher, defaultSchema, htmlToPortableText };
|
|
71
71
|
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@portabletext/html",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Convert HTML to Portable Text with built-in support for Google Docs, Word, and Notion",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"portable-text",
|
|
@@ -30,18 +30,18 @@
|
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@vercel/stega": "1.
|
|
33
|
+
"@vercel/stega": "^1.1.0",
|
|
34
34
|
"@portabletext/schema": "^2.1.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@portabletext/types": "^4.0.
|
|
37
|
+
"@portabletext/types": "^4.0.2",
|
|
38
38
|
"@sanity/pkg-utils": "^10.2.1",
|
|
39
39
|
"@sanity/tsconfig": "^2.1.0",
|
|
40
40
|
"@types/jsdom": "^27.0.0",
|
|
41
41
|
"@types/node": "^20",
|
|
42
42
|
"jsdom": "^27.0.0",
|
|
43
43
|
"typescript": "5.9.3",
|
|
44
|
-
"vitest": "^4.0
|
|
44
|
+
"vitest": "^4.1.0",
|
|
45
45
|
"@portabletext/test": "^1.0.3"
|
|
46
46
|
},
|
|
47
47
|
"engines": {
|