@slicemachine/plugin-kit 0.4.43-beta.2 → 0.4.43-beta.4
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.
|
@@ -10,10 +10,16 @@ export type Snippet = {
|
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
12
|
* Data provided to `snippet:read` hook handlers.
|
|
13
|
+
*
|
|
14
|
+
* The `itemName` string keeps slice machine as the single source of truth for
|
|
15
|
+
* the code snippet base names. Angelo suggested an improvement to `fieldPath`
|
|
16
|
+
* (linked below) that could be done in the future.
|
|
17
|
+
* https://github.com/prismicio/slice-machine/pull/1390#pullrequestreview-2123845118
|
|
13
18
|
*/
|
|
14
19
|
export type SnippetReadHookData = {
|
|
15
20
|
fieldPath: string[];
|
|
16
21
|
model: DynamicWidget;
|
|
22
|
+
itemName?: string;
|
|
17
23
|
};
|
|
18
24
|
/**
|
|
19
25
|
* Return value for `snippet:read` hook handlers.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slicemachine/plugin-kit",
|
|
3
|
-
"version": "0.4.43-beta.
|
|
3
|
+
"version": "0.4.43-beta.4",
|
|
4
4
|
"description": "A set of helpers to develop and run Slice Machine plugins",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"typescript",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"audit": "yarn npm audit --environment production --severity high"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@prismicio/client": "^7.
|
|
65
|
+
"@prismicio/client": "^7.6.0",
|
|
66
66
|
"common-tags": "^1.8.2",
|
|
67
67
|
"defu": "^6.1.2",
|
|
68
68
|
"dotenv": "16.3.1",
|
|
@@ -72,11 +72,11 @@
|
|
|
72
72
|
"io-ts-reporters": "^2.0.1",
|
|
73
73
|
"p-limit": "^4.0.0",
|
|
74
74
|
"prettier": "^3.0.3",
|
|
75
|
-
"prismic-ts-codegen": "^0.1.
|
|
75
|
+
"prismic-ts-codegen": "^0.1.21"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@prismicio/mock": "0.
|
|
79
|
-
"@prismicio/types-internal": "2.
|
|
78
|
+
"@prismicio/mock": "0.3.7",
|
|
79
|
+
"@prismicio/types-internal": "2.5.0",
|
|
80
80
|
"@size-limit/preset-small-lib": "8.2.4",
|
|
81
81
|
"@types/common-tags": "1.8.1",
|
|
82
82
|
"@types/fs-extra": "11.0.1",
|
|
@@ -17,10 +17,16 @@ export type Snippet = {
|
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Data provided to `snippet:read` hook handlers.
|
|
20
|
+
*
|
|
21
|
+
* The `itemName` string keeps slice machine as the single source of truth for
|
|
22
|
+
* the code snippet base names. Angelo suggested an improvement to `fieldPath`
|
|
23
|
+
* (linked below) that could be done in the future.
|
|
24
|
+
* https://github.com/prismicio/slice-machine/pull/1390#pullrequestreview-2123845118
|
|
20
25
|
*/
|
|
21
26
|
export type SnippetReadHookData = {
|
|
22
27
|
fieldPath: string[];
|
|
23
28
|
model: DynamicWidget;
|
|
29
|
+
itemName?: string;
|
|
24
30
|
};
|
|
25
31
|
|
|
26
32
|
/**
|