@prismicio/svelte 2.0.0-alpha.2 → 2.0.0-pr.35.8040369
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/README.md +0 -12
- package/dist/index.d.ts +1 -1
- package/dist/kit/enableAutoPreviews.d.ts +1 -1
- package/dist/kit/redirectToPreviewURL.d.ts +1 -1
- package/dist/kit/types.d.ts +2 -2
- package/package.json +21 -36
- package/src/index.ts +1 -1
- package/src/kit/enableAutoPreviews.ts +1 -1
- package/src/kit/redirectToPreviewURL.ts +1 -1
- package/src/kit/types.ts +2 -2
package/README.md
CHANGED
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
[![npm version][npm-version-src]][npm-version-href]
|
|
4
4
|
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
5
|
-
[![Github Actions CI][github-actions-ci-src]][github-actions-ci-href]
|
|
6
|
-
[![Codecov][codecov-src]][codecov-href]
|
|
7
|
-
[![Conventional Commits][conventional-commits-src]][conventional-commits-href]
|
|
8
|
-
[![License][license-src]][license-href]
|
|
9
5
|
|
|
10
6
|
[Svelte][svelte] components to present [Prismic][prismic] content.
|
|
11
7
|
|
|
@@ -93,11 +89,3 @@ limitations under the License.
|
|
|
93
89
|
[npm-version-href]: https://npmjs.com/package/@prismicio/svelte
|
|
94
90
|
[npm-downloads-src]: https://img.shields.io/npm/dm/@prismicio/svelte.svg
|
|
95
91
|
[npm-downloads-href]: https://npmjs.com/package/@prismicio/svelte
|
|
96
|
-
[github-actions-ci-src]: https://github.com/prismicio/prismic-svelte/workflows/ci/badge.svg
|
|
97
|
-
[github-actions-ci-href]: https://github.com/prismicio/prismic-svelte/actions?query=workflow%3Aci
|
|
98
|
-
[codecov-src]: https://img.shields.io/codecov/c/github/prismicio/prismic-svelte.svg
|
|
99
|
-
[codecov-href]: https://codecov.io/gh/prismicio/prismic-svelte
|
|
100
|
-
[conventional-commits-src]: https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?logo=conventionalcommits&logoColor=white
|
|
101
|
-
[conventional-commits-href]: https://conventionalcommits.org
|
|
102
|
-
[license-src]: https://img.shields.io/npm/l/@prismicio/svelte.svg
|
|
103
|
-
[license-href]: https://npmjs.com/package/@prismicio/svelte
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RichTextComponents } from "./types";
|
|
1
|
+
import type { RichTextComponents } from "./types";
|
|
2
2
|
export { default as PrismicEmbed } from "./PrismicEmbed.svelte";
|
|
3
3
|
export { default as PrismicImage } from "./PrismicImage.svelte";
|
|
4
4
|
export { default as PrismicLink } from "./PrismicLink.svelte";
|
package/dist/kit/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ClientConfig } from "@prismicio/client";
|
|
2
|
-
import { Cookies } from "@sveltejs/kit";
|
|
1
|
+
import type { ClientConfig } from "@prismicio/client";
|
|
2
|
+
import type { Cookies } from "@sveltejs/kit";
|
|
3
3
|
/**
|
|
4
4
|
* Configuration for creating a Prismic client with automatic preview support in
|
|
5
5
|
* SvelteKit apps.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prismicio/svelte",
|
|
3
|
-
"version": "2.0.0-
|
|
3
|
+
"version": "2.0.0-pr.35.8040369",
|
|
4
4
|
"description": "Svelte components to present Prismic content.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -47,51 +47,36 @@
|
|
|
47
47
|
"build": "svelte-package --input ./src",
|
|
48
48
|
"dev": "svelte-package --input ./src --watch",
|
|
49
49
|
"format": "prettier --write --plugin prettier-plugin-svelte .",
|
|
50
|
-
"lint": "eslint",
|
|
51
50
|
"prepare": "npm run build",
|
|
52
|
-
"
|
|
53
|
-
"release:alpha": "npm run test && standard-version --release-as major --prerelease alpha && git push --follow-tags && npm run build && npm publish --tag alpha",
|
|
54
|
-
"release:alpha:dry": "standard-version --release-as major --prerelease alpha --dry-run",
|
|
55
|
-
"release:dry": "standard-version --release-as patch --dry-run",
|
|
56
|
-
"size": "size-limit",
|
|
57
|
-
"test": "npm run lint && npm run types && npm run unit && npm run build && npm run size",
|
|
51
|
+
"lint": "oxlint --deny-warnings",
|
|
58
52
|
"types": "tsc --noEmit",
|
|
59
|
-
"types:watch": "vitest watch --typecheck.only",
|
|
60
53
|
"unit": "vitest run --coverage",
|
|
61
|
-
"unit:watch": "vitest watch"
|
|
54
|
+
"unit:watch": "vitest watch",
|
|
55
|
+
"test": "npm run lint && npm run types && npm run unit && npm run build"
|
|
62
56
|
},
|
|
63
57
|
"dependencies": {
|
|
64
58
|
"esm-env": "^1.2.2"
|
|
65
59
|
},
|
|
66
60
|
"devDependencies": {
|
|
67
|
-
"@
|
|
68
|
-
"@eslint/js": "^9.27.0",
|
|
69
|
-
"@prismicio/client": "^7.17.2",
|
|
61
|
+
"@prismicio/client": "^7.21.0",
|
|
70
62
|
"@prismicio/mock": "^0.7.1",
|
|
71
|
-
"@
|
|
72
|
-
"@sveltejs/
|
|
73
|
-
"@sveltejs/
|
|
74
|
-
"@
|
|
75
|
-
"@
|
|
76
|
-
"@
|
|
77
|
-
"@
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"globals": "^16.1.0",
|
|
85
|
-
"happy-dom": "^17.4.7",
|
|
86
|
-
"prettier": "^3.5.3",
|
|
87
|
-
"prettier-plugin-jsdoc": "^1.3.2",
|
|
88
|
-
"prettier-plugin-svelte": "^3.4.0",
|
|
89
|
-
"size-limit": "^11.2.0",
|
|
63
|
+
"@sveltejs/kit": "^2.49.2",
|
|
64
|
+
"@sveltejs/package": "^2.5.7",
|
|
65
|
+
"@sveltejs/vite-plugin-svelte": "^6.2.1",
|
|
66
|
+
"@testing-library/svelte": "^5.2.9",
|
|
67
|
+
"@trivago/prettier-plugin-sort-imports": "^6.0.0",
|
|
68
|
+
"@types/node": "^25.0.3",
|
|
69
|
+
"@vitest/coverage-v8": "^4.0.16",
|
|
70
|
+
"globals": "^16.5.0",
|
|
71
|
+
"happy-dom": "^20.0.11",
|
|
72
|
+
"oxlint": "^1.33.0",
|
|
73
|
+
"prettier": "^3.7.4",
|
|
74
|
+
"prettier-plugin-jsdoc": "^1.8.0",
|
|
75
|
+
"prettier-plugin-svelte": "^3.4.1",
|
|
90
76
|
"standard-version": "^9.5.0",
|
|
91
|
-
"svelte": "^5.
|
|
92
|
-
"typescript": "^5.
|
|
93
|
-
"
|
|
94
|
-
"vitest": "^3.1.3"
|
|
77
|
+
"svelte": "^5.46.0",
|
|
78
|
+
"typescript": "^5.9.3",
|
|
79
|
+
"vitest": "^4.0.16"
|
|
95
80
|
},
|
|
96
81
|
"peerDependencies": {
|
|
97
82
|
"@prismicio/client": ">=7",
|
package/src/index.ts
CHANGED
package/src/kit/types.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ClientConfig } from "@prismicio/client";
|
|
2
|
-
import { Cookies } from "@sveltejs/kit";
|
|
1
|
+
import type { ClientConfig } from "@prismicio/client";
|
|
2
|
+
import type { Cookies } from "@sveltejs/kit";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Configuration for creating a Prismic client with automatic preview support in
|