@ledgerhq/device-mockserver-react 0.0.0-develop-20261016001242 → 0.0.0-develop-20261022001213
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/lib/cjs/package.json +4 -4
- package/lib/cjs/src/deviceModels.js +1 -1
- package/lib/cjs/src/deviceModels.js.map +2 -2
- package/lib/esm/package.json +4 -4
- package/lib/esm/src/deviceModels.js +1 -1
- package/lib/esm/src/deviceModels.js.map +3 -3
- package/lib/types/src/deviceModels.d.ts.map +1 -1
- package/lib/types/tsconfig.prod.tsbuildinfo +1 -1
- package/package.json +9 -9
package/lib/cjs/package.json
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
"@ledgerhq/device-management-kit": "workspace:*",
|
|
7
7
|
"@ledgerhq/eslint-config-dsdk": "workspace:*",
|
|
8
8
|
"@ledgerhq/ldmk-tool": "workspace:*",
|
|
9
|
-
"@ledgerhq/lumen-design-core": "0.1.
|
|
10
|
-
"@ledgerhq/lumen-ui-react": "0.1.
|
|
9
|
+
"@ledgerhq/lumen-design-core": "0.1.34",
|
|
10
|
+
"@ledgerhq/lumen-ui-react": "0.1.66",
|
|
11
11
|
"@ledgerhq/prettier-config-dsdk": "workspace:*",
|
|
12
12
|
"@ledgerhq/tsconfig-dsdk": "workspace:*",
|
|
13
13
|
"@ledgerhq/vitest-config-dmk": "workspace:*",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"name": "@ledgerhq/device-mockserver-react",
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@ledgerhq/device-management-kit": "workspace:*",
|
|
41
|
-
"@ledgerhq/lumen-ui-react": "^0.1.
|
|
41
|
+
"@ledgerhq/lumen-ui-react": "^0.1.66",
|
|
42
42
|
"react": "catalog:",
|
|
43
43
|
"react-dom": "catalog:"
|
|
44
44
|
},
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"watch:types": "concurrently \"tsc --watch -p tsconfig.prod.json\" \"tsc-alias --watch -p tsconfig.prod.json\""
|
|
64
64
|
},
|
|
65
65
|
"types": "lib/index.d.ts",
|
|
66
|
-
"version": "0.0.0-develop-
|
|
66
|
+
"version": "0.0.0-develop-20261022001213"
|
|
67
67
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var l=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var d=(e,n)=>{for(var c in n)l(e,c,{get:n[c],enumerable:!0})},h=(e,n,c,s)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of a(n))!u.call(e,r)&&r!==c&&l(e,r,{get:()=>n[r],enumerable:!(s=i(n,r))||s.enumerable});return e};var S=e=>h(l({},"__esModule",{value:!0}),e);var
|
|
1
|
+
"use strict";var l=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var d=(e,n)=>{for(var c in n)l(e,c,{get:n[c],enumerable:!0})},h=(e,n,c,s)=>{if(n&&typeof n=="object"||typeof n=="function")for(let r of a(n))!u.call(e,r)&&r!==c&&l(e,r,{get:()=>n[r],enumerable:!(s=i(n,r))||s.enumerable});return e};var S=e=>h(l({},"__esModule",{value:!0}),e);var x={};d(x,{findDeviceScreenModel:()=>b});module.exports=S(x);var o=require("@ledgerhq/lumen-ui-react/symbols");const t=(e,n)=>({label:e,icon:o.Nano,touch:!1,speculos:!0,screenWidth:128,screenHeight:n,lightScreen:!1}),g={nanoS:{...t("Nano S",32),speculos:!1},nanoSP:t("Nano S Plus",64),nanoX:t("Nano X",64),stax:{label:"Stax",icon:o.Stax,touch:!0,speculos:!0,screenWidth:400,screenHeight:672,lightScreen:!0},flex:{label:"Flex",icon:o.Flex,touch:!0,speculos:!0,screenWidth:480,screenHeight:600,lightScreen:!0},apexp:{label:"Apex",icon:o.NanoGen5,touch:!0,speculos:!0,screenWidth:300,screenHeight:400,lightScreen:!0}},p=t("Device",64),b=e=>g[e]??p;0&&(module.exports={findDeviceScreenModel});
|
|
2
2
|
//# sourceMappingURL=deviceModels.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/deviceModels.ts"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,2BAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,
|
|
4
|
+
"sourcesContent": ["import { Flex, Nano, NanoGen5, Stax } from \"@ledgerhq/lumen-ui-react/symbols\";\n\nexport interface DeviceScreenModel {\n readonly label: string;\n readonly icon: typeof Nano;\n readonly touch: boolean;\n /** Whether Speculos has an emulator for it, so it can have a screen. */\n readonly speculos: boolean;\n /** In device pixels. */\n readonly screenWidth: number;\n readonly screenHeight: number;\n readonly lightScreen: boolean;\n}\n\nconst nano = (label: string, screenHeight: number): DeviceScreenModel => ({\n label,\n icon: Nano,\n touch: false,\n speculos: true,\n screenWidth: 128,\n screenHeight,\n lightScreen: false,\n});\n\n/** Keyed by the mock server's `device_type`, a DMK `DeviceModelId`. */\nconst MODELS: Record<string, DeviceScreenModel> = {\n nanoS: { ...nano(\"Nano S\", 32), speculos: false },\n nanoSP: nano(\"Nano S Plus\", 64),\n nanoX: nano(\"Nano X\", 64),\n stax: {\n label: \"Stax\",\n icon: Stax,\n touch: true,\n speculos: true,\n screenWidth: 400,\n screenHeight: 672,\n lightScreen: true,\n },\n flex: {\n label: \"Flex\",\n icon: Flex,\n touch: true,\n speculos: true,\n screenWidth: 480,\n screenHeight: 600,\n lightScreen: true,\n },\n apexp: {\n label: \"Apex\",\n icon: NanoGen5,\n touch: true,\n speculos: true,\n screenWidth: 300,\n screenHeight: 400,\n lightScreen: true,\n },\n};\n\nconst UNKNOWN: DeviceScreenModel = nano(\"Device\", 64);\n\nexport const findDeviceScreenModel = (deviceType: string): DeviceScreenModel =>\n MODELS[deviceType] ?? UNKNOWN;\n"],
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,2BAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAA2C,4CAc3C,MAAMC,EAAO,CAACC,EAAeC,KAA6C,CACxE,MAAAD,EACA,KAAM,OACN,MAAO,GACP,SAAU,GACV,YAAa,IACb,aAAAC,EACA,YAAa,EACf,GAGMC,EAA4C,CAChD,MAAO,CAAE,GAAGH,EAAK,SAAU,EAAE,EAAG,SAAU,EAAM,EAChD,OAAQA,EAAK,cAAe,EAAE,EAC9B,MAAOA,EAAK,SAAU,EAAE,EACxB,KAAM,CACJ,MAAO,OACP,KAAM,OACN,MAAO,GACP,SAAU,GACV,YAAa,IACb,aAAc,IACd,YAAa,EACf,EACA,KAAM,CACJ,MAAO,OACP,KAAM,OACN,MAAO,GACP,SAAU,GACV,YAAa,IACb,aAAc,IACd,YAAa,EACf,EACA,MAAO,CACL,MAAO,OACP,KAAM,WACN,MAAO,GACP,SAAU,GACV,YAAa,IACb,aAAc,IACd,YAAa,EACf,CACF,EAEMI,EAA6BJ,EAAK,SAAU,EAAE,EAEvCH,EAAyBQ,GACpCF,EAAOE,CAAU,GAAKD",
|
|
6
6
|
"names": ["deviceModels_exports", "__export", "findDeviceScreenModel", "__toCommonJS", "import_symbols", "nano", "label", "screenHeight", "MODELS", "UNKNOWN", "deviceType"]
|
|
7
7
|
}
|
package/lib/esm/package.json
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
"@ledgerhq/device-management-kit": "workspace:*",
|
|
7
7
|
"@ledgerhq/eslint-config-dsdk": "workspace:*",
|
|
8
8
|
"@ledgerhq/ldmk-tool": "workspace:*",
|
|
9
|
-
"@ledgerhq/lumen-design-core": "0.1.
|
|
10
|
-
"@ledgerhq/lumen-ui-react": "0.1.
|
|
9
|
+
"@ledgerhq/lumen-design-core": "0.1.34",
|
|
10
|
+
"@ledgerhq/lumen-ui-react": "0.1.66",
|
|
11
11
|
"@ledgerhq/prettier-config-dsdk": "workspace:*",
|
|
12
12
|
"@ledgerhq/tsconfig-dsdk": "workspace:*",
|
|
13
13
|
"@ledgerhq/vitest-config-dmk": "workspace:*",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"name": "@ledgerhq/device-mockserver-react",
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@ledgerhq/device-management-kit": "workspace:*",
|
|
41
|
-
"@ledgerhq/lumen-ui-react": "^0.1.
|
|
41
|
+
"@ledgerhq/lumen-ui-react": "^0.1.66",
|
|
42
42
|
"react": "catalog:",
|
|
43
43
|
"react-dom": "catalog:"
|
|
44
44
|
},
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"watch:types": "concurrently \"tsc --watch -p tsconfig.prod.json\" \"tsc-alias --watch -p tsconfig.prod.json\""
|
|
64
64
|
},
|
|
65
65
|
"types": "lib/index.d.ts",
|
|
66
|
-
"version": "0.0.0-develop-
|
|
66
|
+
"version": "0.0.0-develop-20261022001213"
|
|
67
67
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Flex as r,Nano as c,NanoGen5 as t,Stax as l}from"@ledgerhq/lumen-ui-react/symbols";const e=(n,o)=>({label:n,icon:c,touch:!1,speculos:!0,screenWidth:128,screenHeight:o,lightScreen:!1}),s={nanoS:{...e("Nano S",32),speculos:!1},nanoSP:e("Nano S Plus",64),nanoX:e("Nano X",64),stax:{label:"Stax",icon:l,touch:!0,speculos:!0,screenWidth:400,screenHeight:672,lightScreen:!0},flex:{label:"Flex",icon:r,touch:!0,speculos:!0,screenWidth:480,screenHeight:600,lightScreen:!0},apexp:{label:"Apex",icon:t,touch:!0,speculos:!0,screenWidth:300,screenHeight:400,lightScreen:!0}},i=e("Device",64),u=n=>s[n]??i;export{u as findDeviceScreenModel};
|
|
2
2
|
//# sourceMappingURL=deviceModels.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/deviceModels.ts"],
|
|
4
|
-
"sourcesContent": ["import {
|
|
5
|
-
"mappings": "AAAA,OAAS,QAAAA,EAAM,QAAAC,EAAM,
|
|
6
|
-
"names": ["
|
|
4
|
+
"sourcesContent": ["import { Flex, Nano, NanoGen5, Stax } from \"@ledgerhq/lumen-ui-react/symbols\";\n\nexport interface DeviceScreenModel {\n readonly label: string;\n readonly icon: typeof Nano;\n readonly touch: boolean;\n /** Whether Speculos has an emulator for it, so it can have a screen. */\n readonly speculos: boolean;\n /** In device pixels. */\n readonly screenWidth: number;\n readonly screenHeight: number;\n readonly lightScreen: boolean;\n}\n\nconst nano = (label: string, screenHeight: number): DeviceScreenModel => ({\n label,\n icon: Nano,\n touch: false,\n speculos: true,\n screenWidth: 128,\n screenHeight,\n lightScreen: false,\n});\n\n/** Keyed by the mock server's `device_type`, a DMK `DeviceModelId`. */\nconst MODELS: Record<string, DeviceScreenModel> = {\n nanoS: { ...nano(\"Nano S\", 32), speculos: false },\n nanoSP: nano(\"Nano S Plus\", 64),\n nanoX: nano(\"Nano X\", 64),\n stax: {\n label: \"Stax\",\n icon: Stax,\n touch: true,\n speculos: true,\n screenWidth: 400,\n screenHeight: 672,\n lightScreen: true,\n },\n flex: {\n label: \"Flex\",\n icon: Flex,\n touch: true,\n speculos: true,\n screenWidth: 480,\n screenHeight: 600,\n lightScreen: true,\n },\n apexp: {\n label: \"Apex\",\n icon: NanoGen5,\n touch: true,\n speculos: true,\n screenWidth: 300,\n screenHeight: 400,\n lightScreen: true,\n },\n};\n\nconst UNKNOWN: DeviceScreenModel = nano(\"Device\", 64);\n\nexport const findDeviceScreenModel = (deviceType: string): DeviceScreenModel =>\n MODELS[deviceType] ?? UNKNOWN;\n"],
|
|
5
|
+
"mappings": "AAAA,OAAS,QAAAA,EAAM,QAAAC,EAAM,YAAAC,EAAU,QAAAC,MAAY,mCAc3C,MAAMC,EAAO,CAACC,EAAeC,KAA6C,CACxE,MAAAD,EACA,KAAMJ,EACN,MAAO,GACP,SAAU,GACV,YAAa,IACb,aAAAK,EACA,YAAa,EACf,GAGMC,EAA4C,CAChD,MAAO,CAAE,GAAGH,EAAK,SAAU,EAAE,EAAG,SAAU,EAAM,EAChD,OAAQA,EAAK,cAAe,EAAE,EAC9B,MAAOA,EAAK,SAAU,EAAE,EACxB,KAAM,CACJ,MAAO,OACP,KAAMD,EACN,MAAO,GACP,SAAU,GACV,YAAa,IACb,aAAc,IACd,YAAa,EACf,EACA,KAAM,CACJ,MAAO,OACP,KAAMH,EACN,MAAO,GACP,SAAU,GACV,YAAa,IACb,aAAc,IACd,YAAa,EACf,EACA,MAAO,CACL,MAAO,OACP,KAAME,EACN,MAAO,GACP,SAAU,GACV,YAAa,IACb,aAAc,IACd,YAAa,EACf,CACF,EAEMM,EAA6BJ,EAAK,SAAU,EAAE,EAEvCK,EAAyBC,GACpCH,EAAOG,CAAU,GAAKF",
|
|
6
|
+
"names": ["Flex", "Nano", "NanoGen5", "Stax", "nano", "label", "screenHeight", "MODELS", "UNKNOWN", "findDeviceScreenModel", "deviceType"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceModels.d.ts","sourceRoot":"","sources":["../../../src/deviceModels.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"deviceModels.d.ts","sourceRoot":"","sources":["../../../src/deviceModels.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,IAAI,EAAkB,MAAM,kCAAkC,CAAC;AAE9E,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,OAAO,IAAI,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,wEAAwE;IACxE,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,wBAAwB;IACxB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B;AAgDD,eAAO,MAAM,qBAAqB,GAAI,YAAY,MAAM,KAAG,iBAC5B,CAAC"}
|