@shoplix-ai/block-kit 5.16.0 → 5.17.0
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 +24 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +11 -2
package/README.md
CHANGED
|
@@ -189,6 +189,30 @@ written against this package and nothing else from the runtime. It holds:
|
|
|
189
189
|
the ones Shopify sent; `derivedMoney` is the same figure with an empty
|
|
190
190
|
fraction dropped, for a line nobody is charged.
|
|
191
191
|
|
|
192
|
+
## The rendering libraries a Code Block may import
|
|
193
|
+
|
|
194
|
+
Beside this package, the schema package, React and React Native, a Shop
|
|
195
|
+
package's Code Blocks may import five rendering libraries the app already
|
|
196
|
+
ships: `react-native-svg`, `react-native-reanimated`,
|
|
197
|
+
`react-native-gesture-handler`, `expo-image` and `expo-linear-gradient`. This
|
|
198
|
+
package names them, with the app's own ranges, under
|
|
199
|
+
`shoplix.renderingLibraries` in its `package.json`, the one place the ranges
|
|
200
|
+
are written.
|
|
201
|
+
|
|
202
|
+
A Shop package names the ones it uses as optional peers at those ranges, which
|
|
203
|
+
the CLI writes when a project becomes a package, and the app resolves its own
|
|
204
|
+
copy. So a package adds no native code and needs no new app build. The
|
|
205
|
+
boundary gate reads the same list: each library by its root entry, and nothing
|
|
206
|
+
else. A test in the app holds each range equal to the version the app depends
|
|
207
|
+
on.
|
|
208
|
+
|
|
209
|
+
The ranges are part of the contract. A major of any library is a major of this
|
|
210
|
+
package, and the api's `RUNTIME_CONTRACT_MAJOR` follows it; a test holds the
|
|
211
|
+
majors of the five to the ones written down for the contract major, so a
|
|
212
|
+
library major that moves alone fails. They are named here rather than as this
|
|
213
|
+
package's own peer dependencies: every workspace that depends on the contract
|
|
214
|
+
would otherwise install them, the api and the dashboard images among them.
|
|
215
|
+
|
|
192
216
|
## The theme a renderer receives
|
|
193
217
|
|
|
194
218
|
`props.theme` is the Shop's tokens resolved once, by the schema package, for
|
package/dist/version.d.ts
CHANGED
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* The major is the compatibility line: a Shop package built against another
|
|
5
5
|
* major never meets this runtime, and a major bump is an announced event.
|
|
6
6
|
*/
|
|
7
|
-
export declare const CONTRACT_VERSION = "5.
|
|
7
|
+
export declare const CONTRACT_VERSION = "5.17.0";
|
|
8
8
|
export declare const CONTRACT_MAJOR = 5;
|
|
9
9
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* The major is the compatibility line: a Shop package built against another
|
|
5
5
|
* major never meets this runtime, and a major bump is an announced event.
|
|
6
6
|
*/
|
|
7
|
-
export const CONTRACT_VERSION = '5.
|
|
7
|
+
export const CONTRACT_VERSION = '5.17.0';
|
|
8
8
|
export const CONTRACT_MAJOR = 5;
|
|
9
9
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shoplix-ai/block-kit",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.17.0",
|
|
4
4
|
"description": "The renderer contract every Block Type renderer is written against: what a renderer receives, how a Block Type is registered with its owner, the closed capability set, and the small helpers renderers share. Contract only, no renderers.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -26,11 +26,20 @@
|
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@shoplix-ai/sdui-schema": "1.
|
|
29
|
+
"@shoplix-ai/sdui-schema": "1.57.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"react": ">=19.0.0"
|
|
33
33
|
},
|
|
34
|
+
"shoplix": {
|
|
35
|
+
"renderingLibraries": {
|
|
36
|
+
"expo-image": "~56.0.8",
|
|
37
|
+
"expo-linear-gradient": "~56.0.4",
|
|
38
|
+
"react-native-gesture-handler": "~2.31.1",
|
|
39
|
+
"react-native-reanimated": "4.3.1",
|
|
40
|
+
"react-native-svg": "15.15.4"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
34
43
|
"devDependencies": {
|
|
35
44
|
"@eslint/js": "^9.39.1",
|
|
36
45
|
"@types/react": "~19.2.2",
|