@proulr/sdui-components 0.1.46 → 0.1.47
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@proulr/sdui-components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.47",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/renderer/index.ts",
|
|
6
6
|
"types": "./src/renderer/index.ts",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"access": "public"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@proulr/sdui-contract": "^0.1.
|
|
40
|
+
"@proulr/sdui-contract": "^0.1.12",
|
|
41
41
|
"react-native-qrcode-svg": "^6.3.21"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
@@ -121,6 +121,35 @@ describe('compileBdcToWire', () => {
|
|
|
121
121
|
expect(wire.meta).toMatchObject({ cache_ttl_ms: 30_000, offline_policy: 'cache_only' });
|
|
122
122
|
});
|
|
123
123
|
|
|
124
|
+
it('passes meta.chrome through to wire unchanged (snake_case)', () => {
|
|
125
|
+
const wire = compileBdcToWire(
|
|
126
|
+
screen(
|
|
127
|
+
{
|
|
128
|
+
id: 'discover.home',
|
|
129
|
+
meta: {
|
|
130
|
+
cache_ttl_ms: 45_000,
|
|
131
|
+
chrome: {
|
|
132
|
+
full_bleed_scroll: true,
|
|
133
|
+
header_slot: true,
|
|
134
|
+
pull_refresh: true,
|
|
135
|
+
surface: 'discover',
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
[],
|
|
140
|
+
),
|
|
141
|
+
);
|
|
142
|
+
expect(wire.meta).toMatchObject({
|
|
143
|
+
cache_ttl_ms: 45_000,
|
|
144
|
+
chrome: {
|
|
145
|
+
full_bleed_scroll: true,
|
|
146
|
+
header_slot: true,
|
|
147
|
+
pull_refresh: true,
|
|
148
|
+
surface: 'discover',
|
|
149
|
+
},
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
|
|
124
153
|
it('accepts headerSlot arrays and maps header camelCase', () => {
|
|
125
154
|
const wire = compileBdcToWire(
|
|
126
155
|
screen(
|