-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add tsdocs for exposed utilities
- Loading branch information
Showing
11 changed files
with
270 additions
and
116 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
See higher level packages for examples: | ||
|
||
- [@prismicio/helpers](https://github.com/prismicio/prismic-helpers/tree/master/examples) | ||
- [@prismicio/react](https://github.com/prismicio/prismic-react/tree/master/examples) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,66 @@ | ||
{ | ||
"name": "@prismicio/richtext", | ||
"version": "0.0.0", | ||
"description": "A parser and serializer for Prismic's Rich Text format.", | ||
"keywords": [ | ||
"typescript", | ||
"prismic" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "ssh://git@github.com/prismicio/prismic-richtext.git" | ||
}, | ||
"license": "Apache-2.0", | ||
"author": "Prismic <contact@prismic.io> (https://prismic.io)", | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"require": "./dist/index.cjs", | ||
"import": "./dist/index.mjs" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"main": "dist/index.cjs", | ||
"module": "dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
"dist", | ||
"src" | ||
], | ||
"scripts": { | ||
"build": "siroc build", | ||
"dev": "siroc build --watch", | ||
"format": "prettier --write .", | ||
"prepare": "npm run build", | ||
"release": "npm run build && npm run test && standard-version && git push --follow-tags && npm run build && npm publish", | ||
"release:dry": "standard-version --dry-run", | ||
"release:alpha": "npm run build && npm run test && standard-version --release-as major --prerelease alpha && git push --follow-tags && npm run build && npm publish --tag alpha", | ||
"release:alpha:dry": "standard-version --release-as major --prerelease alpha --dry-run", | ||
"lint": "eslint --ext .js,.ts .", | ||
"unit": "nyc --reporter=lcovonly --reporter=text --exclude-after-remap=false ava", | ||
"test": "npm run lint && npm run unit" | ||
}, | ||
"dependencies": { | ||
"@prismicio/types": "^0.0.10" | ||
}, | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^4.28.0", | ||
"@typescript-eslint/parser": "^4.28.0", | ||
"ava": "^3.15.0", | ||
"eslint": "^7.29.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-prettier": "^3.4.0", | ||
"nyc": "^15.1.0", | ||
"prettier": "^2.3.1", | ||
"siroc": "^0.11.0", | ||
"standard-version": "^9.3.0", | ||
"ts-eager": "^2.0.2", | ||
"typescript": "^4.3.4" | ||
}, | ||
"engines": { | ||
"node": ">=12.7.0" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
"name": "@prismicio/richtext", | ||
"version": "0.0.0", | ||
"description": "A parser and serializer for Prismic's Rich Text format", | ||
"keywords": [ | ||
"typescript", | ||
"prismic" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "ssh://git@github.com/prismicio/prismic-richtext.git" | ||
}, | ||
"license": "Apache-2.0", | ||
"author": "Prismic <contact@prismic.io> (https://prismic.io)", | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"require": "./dist/index.cjs", | ||
"import": "./dist/index.mjs" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"main": "dist/index.cjs", | ||
"module": "dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
"dist", | ||
"src" | ||
], | ||
"scripts": { | ||
"build": "siroc build", | ||
"dev": "siroc build --watch", | ||
"format": "prettier --write .", | ||
"prepare": "npm run build", | ||
"release": "npm run build && npm run test && standard-version && git push --follow-tags && npm run build && npm publish", | ||
"release:dry": "standard-version --dry-run", | ||
"release:alpha": "npm run build && npm run test && standard-version --release-as major --prerelease alpha && git push --follow-tags && npm run build && npm publish --tag alpha", | ||
"release:alpha:dry": "standard-version --release-as major --prerelease alpha --dry-run", | ||
"lint": "eslint --ext .js,.ts .", | ||
"unit": "nyc --reporter=lcovonly --reporter=text --exclude-after-remap=false ava", | ||
"test": "npm run lint && npm run unit" | ||
}, | ||
"dependencies": { | ||
"@prismicio/types": "^0.0.10" | ||
}, | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^4.28.0", | ||
"@typescript-eslint/parser": "^4.28.0", | ||
"ava": "^3.15.0", | ||
"eslint": "^7.29.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-prettier": "^3.4.0", | ||
"nyc": "^15.1.0", | ||
"prettier": "^2.3.1", | ||
"siroc": "^0.11.1", | ||
"standard-version": "^9.3.0", | ||
"ts-eager": "^2.0.2", | ||
"typescript": "^4.3.4" | ||
}, | ||
"engines": { | ||
"node": ">=12.7.0" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
/** | ||
* Errors thrown by @prismicio/richtext {@link https://github.com/prismicio/prismic-richtext} | ||
*/ | ||
export class RichTextError extends Error {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.