@oxy.so/services 15.1.0 → 15.1.1

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.
Files changed (68) hide show
  1. package/lib/commonjs/assets/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
  2. package/lib/commonjs/assets/assets/fonts/icons/manifest.json +4 -3
  3. package/lib/commonjs/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
  4. package/lib/commonjs/assets/fonts/icons/manifest.json +4 -3
  5. package/lib/commonjs/ui/components/OxyDeviceSignIn.js +2 -3
  6. package/lib/commonjs/ui/components/OxyDeviceSignIn.js.map +1 -1
  7. package/lib/commonjs/ui/components/QRCode.js +86 -0
  8. package/lib/commonjs/ui/components/QRCode.js.map +1 -0
  9. package/lib/commonjs/ui/components/authChooser/requestSurfaces.js +2 -2
  10. package/lib/commonjs/ui/components/authChooser/requestSurfaces.js.map +1 -1
  11. package/lib/commonjs/ui/components/signIn/InlineCommonsQr.js +2 -3
  12. package/lib/commonjs/ui/components/signIn/InlineCommonsQr.js.map +1 -1
  13. package/lib/commonjs/ui/components/signIn/OxyAuthenticatorPanel.js +2 -3
  14. package/lib/commonjs/ui/components/signIn/OxyAuthenticatorPanel.js.map +1 -1
  15. package/lib/commonjs/ui/components/signIn/OxyLinkCommonsPanel.js +2 -3
  16. package/lib/commonjs/ui/components/signIn/OxyLinkCommonsPanel.js.map +1 -1
  17. package/lib/commonjs/ui/icons/subsetGlyphMaps.js +1 -0
  18. package/lib/commonjs/ui/icons/subsetGlyphMaps.js.map +1 -1
  19. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +2 -2
  20. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
  21. package/lib/module/assets/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
  22. package/lib/module/assets/assets/fonts/icons/manifest.json +4 -3
  23. package/lib/module/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
  24. package/lib/module/assets/fonts/icons/manifest.json +4 -3
  25. package/lib/module/ui/components/OxyDeviceSignIn.js +1 -1
  26. package/lib/module/ui/components/OxyDeviceSignIn.js.map +1 -1
  27. package/lib/module/ui/components/QRCode.js +79 -0
  28. package/lib/module/ui/components/QRCode.js.map +1 -0
  29. package/lib/module/ui/components/authChooser/requestSurfaces.js +1 -1
  30. package/lib/module/ui/components/authChooser/requestSurfaces.js.map +1 -1
  31. package/lib/module/ui/components/signIn/InlineCommonsQr.js +1 -1
  32. package/lib/module/ui/components/signIn/InlineCommonsQr.js.map +1 -1
  33. package/lib/module/ui/components/signIn/OxyAuthenticatorPanel.js +1 -1
  34. package/lib/module/ui/components/signIn/OxyAuthenticatorPanel.js.map +1 -1
  35. package/lib/module/ui/components/signIn/OxyLinkCommonsPanel.js +1 -1
  36. package/lib/module/ui/components/signIn/OxyLinkCommonsPanel.js.map +1 -1
  37. package/lib/module/ui/icons/subsetGlyphMaps.js +1 -0
  38. package/lib/module/ui/icons/subsetGlyphMaps.js.map +1 -1
  39. package/lib/module/ui/screens/PaymentGatewayScreen.js +1 -1
  40. package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
  41. package/lib/typescript/commonjs/ui/components/QRCode.d.ts +25 -0
  42. package/lib/typescript/commonjs/ui/components/QRCode.d.ts.map +1 -0
  43. package/lib/typescript/commonjs/ui/components/payment/PaymentDetailsStep.d.ts +1 -1
  44. package/lib/typescript/commonjs/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -1
  45. package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts +1 -1
  46. package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
  47. package/lib/typescript/commonjs/ui/icons/subsetGlyphMaps.d.ts +1 -0
  48. package/lib/typescript/commonjs/ui/icons/subsetGlyphMaps.d.ts.map +1 -1
  49. package/lib/typescript/module/ui/components/QRCode.d.ts +25 -0
  50. package/lib/typescript/module/ui/components/QRCode.d.ts.map +1 -0
  51. package/lib/typescript/module/ui/components/payment/PaymentDetailsStep.d.ts +1 -1
  52. package/lib/typescript/module/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -1
  53. package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts +1 -1
  54. package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
  55. package/lib/typescript/module/ui/icons/subsetGlyphMaps.d.ts +1 -0
  56. package/lib/typescript/module/ui/icons/subsetGlyphMaps.d.ts.map +1 -1
  57. package/package.json +4 -2
  58. package/src/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf +0 -0
  59. package/src/assets/fonts/icons/manifest.json +4 -3
  60. package/src/ui/components/OxyDeviceSignIn.tsx +1 -1
  61. package/src/ui/components/QRCode.tsx +67 -0
  62. package/src/ui/components/authChooser/requestSurfaces.tsx +1 -1
  63. package/src/ui/components/payment/PaymentDetailsStep.tsx +1 -1
  64. package/src/ui/components/signIn/InlineCommonsQr.tsx +1 -1
  65. package/src/ui/components/signIn/OxyAuthenticatorPanel.tsx +1 -1
  66. package/src/ui/components/signIn/OxyLinkCommonsPanel.tsx +1 -1
  67. package/src/ui/icons/subsetGlyphMaps.ts +1 -0
  68. package/src/ui/screens/PaymentGatewayScreen.tsx +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"PaymentDetailsStep.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/payment/PaymentDetailsStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAGjF,UAAU,uBAAuB;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,WAAW,CAAC;IACzB,mBAAmB,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IACpD,MAAM,EAAE,aAAa,CAAC;IACtB,UAAU,EAAE,qBAAqB,CAAC;IAClC,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC1E;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA0OzD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"PaymentDetailsStep.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/payment/PaymentDetailsStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAGjF,UAAU,uBAAuB;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,WAAW,CAAC;IACzB,mBAAmB,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IACpD,MAAM,EAAE,aAAa,CAAC;IACtB,UAAU,EAAE,qBAAqB,CAAC;IAClC,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACzE;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA0OzD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  /** Glyphs are decorative: hidden from assistive technology (see `decorativeIconSet`). */
2
- declare const MaterialCommunityIcons: import("@expo/vector-icons/build/createIconSet").Icon<"function" | "android" | "web" | "account" | "message" | "email" | "bio" | "phone" | "key" | "network" | "logout" | "label" | "group" | "loading" | "link" | "solid" | "text" | "translate" | "scale" | "wrap" | "ellipse" | "image" | "card" | "alert" | "radio" | "grid" | "presentation" | "numeric" | "decimal" | "alert-circle" | "alert-circle-outline" | "apps" | "archive" | "arrow-down" | "arrow-up" | "at" | "briefcase-outline" | "bug" | "calendar" | "calendar-outline" | "camera" | "camera-outline" | "card-outline" | "cart-outline" | "chevron-down" | "chevron-up" | "close" | "close-circle" | "cloud-outline" | "cloud-upload" | "cloud-upload-outline" | "cog" | "cog-outline" | "cube-outline" | "download" | "download-outline" | "earth" | "ellipse-outline" | "eye" | "eye-off-outline" | "filter-outline" | "flash" | "folder" | "folder-open-outline" | "folder-outline" | "gift" | "gift-outline" | "heart" | "heart-outline" | "help-circle" | "help-circle-outline" | "image-outline" | "information" | "information-outline" | "leaf" | "library" | "mail" | "pencil-outline" | "play" | "pulse" | "receipt-outline" | "resize" | "rocket" | "school-outline" | "server" | "share-outline" | "shield" | "star" | "sync" | "trophy" | "trophy-outline" | "volume-off" | "wallet-outline" | "watch" | "wifi" | "delete" | "cancel" | "account-circle" | "account-cog-outline" | "account-eye-outline" | "account-group" | "account-multiple" | "account-outline" | "account-plus" | "account-search" | "account-switch" | "account-voice" | "archive-arrow-down" | "arrow-left" | "bell" | "bell-outline" | "bullhorn" | "cake-variant" | "cake-variant-outline" | "cellphone" | "cellphone-basic" | "cellphone-message" | "cellphone-screenshot" | "chart-line" | "check-all" | "check-circle" | "chip" | "circle-outline" | "clock" | "clock-outline" | "code-tags" | "contain" | "content-copy" | "controller" | "cookie" | "credit-card" | "database-outline" | "delete-outline" | "dots-horizontal" | "email-outline" | "file" | "file-document" | "file-document-edit-outline" | "file-document-outline" | "file-excel-outline" | "file-outline" | "file-pdf-box" | "folder-image" | "folder-zip-outline" | "forward" | "ghost" | "history" | "image-multiple-outline" | "inbox" | "link-variant" | "lock-outline" | "magnify" | "map-marker" | "map-marker-multiple" | "map-marker-outline" | "message-outline" | "minus-circle" | "motion" | "music-note-outline" | "null" | "open-in-app" | "openid" | "palette" | "palette-outline" | "pan" | "phone-outline" | "plus" | "plus-circle" | "post" | "react" | "read" | "shield-account-outline" | "shield-check" | "shield-search" | "signature" | "sort-alphabetical-variant" | "sort-numeric-variant" | "store" | "tag" | "tag-outline" | "text-box-outline" | "theme-light-dark" | "transfer" | "trash-can-outline" | "tray-arrow-down" | "upload" | "video-outline" | "wifi-off" | "wrench" | "xml", "OxyServicesMaterialCommunityIcons">;
2
+ declare const MaterialCommunityIcons: import("@expo/vector-icons/build/createIconSet").Icon<"function" | "android" | "web" | "account" | "message" | "email" | "bio" | "phone" | "key" | "network" | "logout" | "label" | "group" | "loading" | "link" | "solid" | "text" | "translate" | "scale" | "wrap" | "ellipse" | "image" | "card" | "alert" | "radio" | "grid" | "presentation" | "numeric" | "decimal" | "alert-circle" | "alert-circle-outline" | "apps" | "archive" | "arrow-down" | "arrow-up" | "at" | "briefcase-outline" | "bug" | "calendar" | "calendar-outline" | "camera" | "camera-outline" | "card-outline" | "cart-outline" | "chevron-down" | "chevron-up" | "close" | "close-circle" | "cloud-outline" | "cloud-upload" | "cloud-upload-outline" | "cog" | "cog-outline" | "cube-outline" | "download" | "download-outline" | "earth" | "ellipse-outline" | "eye" | "eye-off-outline" | "filter-outline" | "flash" | "folder" | "folder-open-outline" | "folder-outline" | "gift" | "gift-outline" | "heart" | "heart-outline" | "help-circle" | "help-circle-outline" | "image-outline" | "information" | "information-outline" | "leaf" | "library" | "mail" | "pencil-outline" | "play" | "pulse" | "receipt-outline" | "resize" | "rocket" | "school-outline" | "server" | "share-outline" | "shield" | "star" | "sync" | "trophy" | "trophy-outline" | "volume-off" | "wallet-outline" | "watch" | "wifi" | "delete" | "cancel" | "account-circle" | "account-cog-outline" | "account-eye-outline" | "account-group" | "account-multiple" | "account-outline" | "account-plus" | "account-search" | "account-switch" | "account-voice" | "archive-arrow-down" | "arrow-left" | "bell" | "bell-outline" | "bullhorn" | "cake-variant" | "cake-variant-outline" | "cellphone" | "cellphone-basic" | "cellphone-message" | "cellphone-screenshot" | "chart-line" | "check-all" | "check-circle" | "chip" | "circle-outline" | "clock" | "clock-outline" | "code-tags" | "contain" | "content-copy" | "controller" | "cookie" | "credit-card" | "database-outline" | "delete-outline" | "dots-horizontal" | "email-outline" | "file" | "file-document" | "file-document-edit-outline" | "file-document-outline" | "file-excel-outline" | "file-outline" | "file-pdf-box" | "folder-image" | "folder-zip-outline" | "forward" | "ghost" | "history" | "image-multiple-outline" | "inbox" | "link-variant" | "lock-outline" | "magnify" | "map-marker" | "map-marker-multiple" | "map-marker-outline" | "message-outline" | "minus-circle" | "motion" | "music-note-outline" | "null" | "open-in-app" | "openid" | "palette" | "palette-outline" | "pan" | "phone-outline" | "plus" | "plus-circle" | "post" | "qrcode" | "react" | "read" | "shield-account-outline" | "shield-check" | "shield-search" | "signature" | "sort-alphabetical-variant" | "sort-numeric-variant" | "store" | "tag" | "tag-outline" | "text-box-outline" | "theme-light-dark" | "transfer" | "trash-can-outline" | "tray-arrow-down" | "upload" | "video-outline" | "wifi-off" | "wrench" | "xml", "OxyServicesMaterialCommunityIcons">;
3
3
  export default MaterialCommunityIcons;
4
4
  //# sourceMappingURL=MaterialCommunityIcons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MaterialCommunityIcons.d.ts","sourceRoot":"","sources":["../../../../../src/ui/icons/MaterialCommunityIcons.ts"],"names":[],"mappings":"AAKA,yFAAyF;AACzF,QAAA,MAAM,sBAAsB,25FAG3B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"MaterialCommunityIcons.d.ts","sourceRoot":"","sources":["../../../../../src/ui/icons/MaterialCommunityIcons.ts"],"names":[],"mappings":"AAKA,yFAAyF;AACzF,QAAA,MAAM,sBAAsB,s6FAG3B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -285,6 +285,7 @@ export declare const materialCommunityIconsGlyphMap: {
285
285
  readonly post: 987144;
286
286
  readonly presentation: 984104;
287
287
  readonly pulse: 984112;
288
+ readonly qrcode: 984114;
288
289
  readonly radio: 984121;
289
290
  readonly react: 984840;
290
291
  readonly read: 984135;
@@ -1 +1 @@
1
- {"version":3,"file":"subsetGlyphMaps.d.ts","sourceRoot":"","sources":["../../../../../src/ui/icons/subsetGlyphMaps.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0InB,CAAC;AAEX,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+LjC,CAAC"}
1
+ {"version":3,"file":"subsetGlyphMaps.d.ts","sourceRoot":"","sources":["../../../../../src/ui/icons/subsetGlyphMaps.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0InB,CAAC;AAEX,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgMjC,CAAC"}
@@ -0,0 +1,25 @@
1
+ export interface QRCodeProps {
2
+ /** The text the code holds. */
3
+ value: string;
4
+ /** Width and height, in points. */
5
+ size?: number;
6
+ /** The modules' colour. */
7
+ color?: string;
8
+ /** The plate behind them. */
9
+ backgroundColor?: string;
10
+ }
11
+ /**
12
+ * The QR matrix as one stroked path: a horizontal run per row of dark modules, each `cellSize` wide.
13
+ * Exactly what react-native-qrcode-svg 6.3 drew (`genMatrix` and `transformMatrixIntoPath`, MIT), at
14
+ * error correction level M on the same `qrcode` encoder, so a code is the same pixels. That package
15
+ * is not imported: its logo support links `react-native-svg/css` (css-tree, css-select, entities:
16
+ * about 200 KB of every Android bundle) whether or not a logo is drawn.
17
+ */
18
+ export declare function qrCodePath(value: string, size: number): {
19
+ path: string;
20
+ cellSize: number;
21
+ };
22
+ /** A QR code drawn with react-native-svg, on its plate. */
23
+ export declare function QRCode({ value, size, color, backgroundColor, }: QRCodeProps): import("react").JSX.Element;
24
+ export default QRCode;
25
+ //# sourceMappingURL=QRCode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QRCode.d.ts","sourceRoot":"","sources":["../../../../../src/ui/components/QRCode.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,WAAW;IAC1B,+BAA+B;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAsB1F;AAED,2DAA2D;AAC3D,wBAAgB,MAAM,CAAC,EACrB,KAAK,EACL,IAAU,EACV,KAAe,EACf,eAAyB,GAC1B,EAAE,WAAW,+BAYb;AAED,eAAe,MAAM,CAAC"}
@@ -12,7 +12,7 @@ interface PaymentDetailsStepProps {
12
12
  onBack: () => void;
13
13
  onNext: () => void;
14
14
  QRCodeComponent?: React.ComponentType<{
15
- value?: string;
15
+ value: string;
16
16
  size?: number;
17
17
  }>;
18
18
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PaymentDetailsStep.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/payment/PaymentDetailsStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,YAAS,CAAC;AAGjF,UAAU,uBAAuB;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,WAAW,CAAC;IACzB,mBAAmB,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IACpD,MAAM,EAAE,aAAa,CAAC;IACtB,UAAU,EAAE,qBAAqB,CAAC;IAClC,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC1E;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA0OzD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"PaymentDetailsStep.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/payment/PaymentDetailsStep.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,YAAS,CAAC;AAGjF,UAAU,uBAAuB;IAC/B,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,WAAW,CAAC;IACzB,mBAAmB,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAC;IACpD,MAAM,EAAE,aAAa,CAAC;IACtB,UAAU,EAAE,qBAAqB,CAAC;IAClC,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,eAAe,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACzE;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA0OzD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  /** Glyphs are decorative: hidden from assistive technology (see `decorativeIconSet`). */
2
- declare const MaterialCommunityIcons: import("@expo/vector-icons/build/createIconSet").Icon<"function" | "android" | "web" | "account" | "message" | "email" | "bio" | "phone" | "key" | "network" | "logout" | "label" | "group" | "loading" | "link" | "solid" | "text" | "translate" | "scale" | "wrap" | "ellipse" | "image" | "card" | "alert" | "radio" | "grid" | "presentation" | "numeric" | "decimal" | "alert-circle" | "alert-circle-outline" | "apps" | "archive" | "arrow-down" | "arrow-up" | "at" | "briefcase-outline" | "bug" | "calendar" | "calendar-outline" | "camera" | "camera-outline" | "card-outline" | "cart-outline" | "chevron-down" | "chevron-up" | "close" | "close-circle" | "cloud-outline" | "cloud-upload" | "cloud-upload-outline" | "cog" | "cog-outline" | "cube-outline" | "download" | "download-outline" | "earth" | "ellipse-outline" | "eye" | "eye-off-outline" | "filter-outline" | "flash" | "folder" | "folder-open-outline" | "folder-outline" | "gift" | "gift-outline" | "heart" | "heart-outline" | "help-circle" | "help-circle-outline" | "image-outline" | "information" | "information-outline" | "leaf" | "library" | "mail" | "pencil-outline" | "play" | "pulse" | "receipt-outline" | "resize" | "rocket" | "school-outline" | "server" | "share-outline" | "shield" | "star" | "sync" | "trophy" | "trophy-outline" | "volume-off" | "wallet-outline" | "watch" | "wifi" | "delete" | "cancel" | "account-circle" | "account-cog-outline" | "account-eye-outline" | "account-group" | "account-multiple" | "account-outline" | "account-plus" | "account-search" | "account-switch" | "account-voice" | "archive-arrow-down" | "arrow-left" | "bell" | "bell-outline" | "bullhorn" | "cake-variant" | "cake-variant-outline" | "cellphone" | "cellphone-basic" | "cellphone-message" | "cellphone-screenshot" | "chart-line" | "check-all" | "check-circle" | "chip" | "circle-outline" | "clock" | "clock-outline" | "code-tags" | "contain" | "content-copy" | "controller" | "cookie" | "credit-card" | "database-outline" | "delete-outline" | "dots-horizontal" | "email-outline" | "file" | "file-document" | "file-document-edit-outline" | "file-document-outline" | "file-excel-outline" | "file-outline" | "file-pdf-box" | "folder-image" | "folder-zip-outline" | "forward" | "ghost" | "history" | "image-multiple-outline" | "inbox" | "link-variant" | "lock-outline" | "magnify" | "map-marker" | "map-marker-multiple" | "map-marker-outline" | "message-outline" | "minus-circle" | "motion" | "music-note-outline" | "null" | "open-in-app" | "openid" | "palette" | "palette-outline" | "pan" | "phone-outline" | "plus" | "plus-circle" | "post" | "react" | "read" | "shield-account-outline" | "shield-check" | "shield-search" | "signature" | "sort-alphabetical-variant" | "sort-numeric-variant" | "store" | "tag" | "tag-outline" | "text-box-outline" | "theme-light-dark" | "transfer" | "trash-can-outline" | "tray-arrow-down" | "upload" | "video-outline" | "wifi-off" | "wrench" | "xml", "OxyServicesMaterialCommunityIcons">;
2
+ declare const MaterialCommunityIcons: import("@expo/vector-icons/build/createIconSet").Icon<"function" | "android" | "web" | "account" | "message" | "email" | "bio" | "phone" | "key" | "network" | "logout" | "label" | "group" | "loading" | "link" | "solid" | "text" | "translate" | "scale" | "wrap" | "ellipse" | "image" | "card" | "alert" | "radio" | "grid" | "presentation" | "numeric" | "decimal" | "alert-circle" | "alert-circle-outline" | "apps" | "archive" | "arrow-down" | "arrow-up" | "at" | "briefcase-outline" | "bug" | "calendar" | "calendar-outline" | "camera" | "camera-outline" | "card-outline" | "cart-outline" | "chevron-down" | "chevron-up" | "close" | "close-circle" | "cloud-outline" | "cloud-upload" | "cloud-upload-outline" | "cog" | "cog-outline" | "cube-outline" | "download" | "download-outline" | "earth" | "ellipse-outline" | "eye" | "eye-off-outline" | "filter-outline" | "flash" | "folder" | "folder-open-outline" | "folder-outline" | "gift" | "gift-outline" | "heart" | "heart-outline" | "help-circle" | "help-circle-outline" | "image-outline" | "information" | "information-outline" | "leaf" | "library" | "mail" | "pencil-outline" | "play" | "pulse" | "receipt-outline" | "resize" | "rocket" | "school-outline" | "server" | "share-outline" | "shield" | "star" | "sync" | "trophy" | "trophy-outline" | "volume-off" | "wallet-outline" | "watch" | "wifi" | "delete" | "cancel" | "account-circle" | "account-cog-outline" | "account-eye-outline" | "account-group" | "account-multiple" | "account-outline" | "account-plus" | "account-search" | "account-switch" | "account-voice" | "archive-arrow-down" | "arrow-left" | "bell" | "bell-outline" | "bullhorn" | "cake-variant" | "cake-variant-outline" | "cellphone" | "cellphone-basic" | "cellphone-message" | "cellphone-screenshot" | "chart-line" | "check-all" | "check-circle" | "chip" | "circle-outline" | "clock" | "clock-outline" | "code-tags" | "contain" | "content-copy" | "controller" | "cookie" | "credit-card" | "database-outline" | "delete-outline" | "dots-horizontal" | "email-outline" | "file" | "file-document" | "file-document-edit-outline" | "file-document-outline" | "file-excel-outline" | "file-outline" | "file-pdf-box" | "folder-image" | "folder-zip-outline" | "forward" | "ghost" | "history" | "image-multiple-outline" | "inbox" | "link-variant" | "lock-outline" | "magnify" | "map-marker" | "map-marker-multiple" | "map-marker-outline" | "message-outline" | "minus-circle" | "motion" | "music-note-outline" | "null" | "open-in-app" | "openid" | "palette" | "palette-outline" | "pan" | "phone-outline" | "plus" | "plus-circle" | "post" | "qrcode" | "react" | "read" | "shield-account-outline" | "shield-check" | "shield-search" | "signature" | "sort-alphabetical-variant" | "sort-numeric-variant" | "store" | "tag" | "tag-outline" | "text-box-outline" | "theme-light-dark" | "transfer" | "trash-can-outline" | "tray-arrow-down" | "upload" | "video-outline" | "wifi-off" | "wrench" | "xml", "OxyServicesMaterialCommunityIcons">;
3
3
  export default MaterialCommunityIcons;
4
4
  //# sourceMappingURL=MaterialCommunityIcons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MaterialCommunityIcons.d.ts","sourceRoot":"","sources":["../../../../../src/ui/icons/MaterialCommunityIcons.ts"],"names":[],"mappings":"AAKA,yFAAyF;AACzF,QAAA,MAAM,sBAAsB,25FAG3B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
1
+ {"version":3,"file":"MaterialCommunityIcons.d.ts","sourceRoot":"","sources":["../../../../../src/ui/icons/MaterialCommunityIcons.ts"],"names":[],"mappings":"AAKA,yFAAyF;AACzF,QAAA,MAAM,sBAAsB,s6FAG3B,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
@@ -285,6 +285,7 @@ export declare const materialCommunityIconsGlyphMap: {
285
285
  readonly post: 987144;
286
286
  readonly presentation: 984104;
287
287
  readonly pulse: 984112;
288
+ readonly qrcode: 984114;
288
289
  readonly radio: 984121;
289
290
  readonly react: 984840;
290
291
  readonly read: 984135;
@@ -1 +1 @@
1
- {"version":3,"file":"subsetGlyphMaps.d.ts","sourceRoot":"","sources":["../../../../../src/ui/icons/subsetGlyphMaps.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0InB,CAAC;AAEX,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+LjC,CAAC"}
1
+ {"version":3,"file":"subsetGlyphMaps.d.ts","sourceRoot":"","sources":["../../../../../src/ui/icons/subsetGlyphMaps.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0InB,CAAC;AAEX,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgMjC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxy.so/services",
3
- "version": "15.1.0",
3
+ "version": "15.1.1",
4
4
  "description": "OxyHQ Expo/React Native SDK — UI components, screens, and native features",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",
@@ -178,7 +178,9 @@
178
178
  "dependencies": {
179
179
  "@oxy.so/contracts": "^7.8.0",
180
180
  "color": "^5.0.3",
181
- "@peable.to/sdk": "^4.0.0"
181
+ "@peable.to/sdk": "^4.0.0",
182
+ "qrcode": "^1.5.4",
183
+ "@types/qrcode": "^1.5.6"
182
184
  },
183
185
  "devDependencies": {
184
186
  "@expo/app-integrity": "~58.0.2",
@@ -150,8 +150,8 @@
150
150
  "materialCommunityIcons": {
151
151
  "fontFamily": "OxyServicesMaterialCommunityIcons",
152
152
  "file": "src/assets/fonts/icons/OxyServicesMaterialCommunityIcons.ttf",
153
- "bytes": 28516,
154
- "sha256": "c5e7314182886fe878bce3d789010c102104bf5c92d2ecadad95d63cb3b78393",
153
+ "bytes": 28720,
154
+ "sha256": "575a808944902da9b8f54140aa33a17a95db27b3a14b8832d02923c230e974a7",
155
155
  "names": [
156
156
  "account",
157
157
  "account-circle",
@@ -300,6 +300,7 @@
300
300
  "post",
301
301
  "presentation",
302
302
  "pulse",
303
+ "qrcode",
303
304
  "radio",
304
305
  "react",
305
306
  "read",
@@ -347,5 +348,5 @@
347
348
  }
348
349
  },
349
350
  "glyphMapsFile": "src/ui/icons/subsetGlyphMaps.ts",
350
- "glyphMapsSha256": "75fe9abf0e02566d876c15fd5612284e7ab604c95f9b670df849f680f1129296"
351
+ "glyphMapsSha256": "df4256ee3243433eed204ca00896198f7960a91f5d45f74bb4052ba4fb5ce364"
351
352
  }
@@ -30,7 +30,7 @@
30
30
  import type React from 'react';
31
31
  import { useEffect } from 'react';
32
32
  import { StyleSheet, View } from 'react-native';
33
- import QRCode from 'react-native-qrcode-svg';
33
+ import { QRCode } from './QRCode';
34
34
  import { Button } from '@oxy.so/bloom/button';
35
35
  import { Code } from '@oxy.so/bloom/code';
36
36
  import { RiCheckboxCircleLine } from '@oxy.so/bloom/icons/RiCheckboxCircleLine';
@@ -0,0 +1,67 @@
1
+ import { create } from 'qrcode';
2
+ import { useMemo } from 'react';
3
+ import Svg, { G, Path, Rect } from 'react-native-svg';
4
+
5
+ export interface QRCodeProps {
6
+ /** The text the code holds. */
7
+ value: string;
8
+ /** Width and height, in points. */
9
+ size?: number;
10
+ /** The modules' colour. */
11
+ color?: string;
12
+ /** The plate behind them. */
13
+ backgroundColor?: string;
14
+ }
15
+
16
+ /**
17
+ * The QR matrix as one stroked path: a horizontal run per row of dark modules, each `cellSize` wide.
18
+ * Exactly what react-native-qrcode-svg 6.3 drew (`genMatrix` and `transformMatrixIntoPath`, MIT), at
19
+ * error correction level M on the same `qrcode` encoder, so a code is the same pixels. That package
20
+ * is not imported: its logo support links `react-native-svg/css` (css-tree, css-select, entities:
21
+ * about 200 KB of every Android bundle) whether or not a logo is drawn.
22
+ */
23
+ export function qrCodePath(value: string, size: number): { path: string; cellSize: number } {
24
+ const { modules } = create(value, { errorCorrectionLevel: 'M' });
25
+ const count = modules.size;
26
+ const cellSize = size / count;
27
+ let path = '';
28
+ for (let i = 0; i < count; i++) {
29
+ const y = cellSize / 2 + cellSize * i;
30
+ let drawing = false;
31
+ for (let j = 0; j < count; j++) {
32
+ if (modules.get(i, j)) {
33
+ if (!drawing) {
34
+ path += `M${cellSize * j} ${y} `;
35
+ drawing = true;
36
+ }
37
+ if (j === count - 1) path += `L${cellSize * (j + 1)} ${y} `;
38
+ } else if (drawing) {
39
+ path += `L${cellSize * j} ${y} `;
40
+ drawing = false;
41
+ }
42
+ }
43
+ }
44
+ return { path, cellSize };
45
+ }
46
+
47
+ /** A QR code drawn with react-native-svg, on its plate. */
48
+ export function QRCode({
49
+ value,
50
+ size = 100,
51
+ color = 'black',
52
+ backgroundColor = 'white',
53
+ }: QRCodeProps) {
54
+ const { path, cellSize } = useMemo(() => qrCodePath(value, size), [value, size]);
55
+ return (
56
+ <Svg viewBox={`0 0 ${size} ${size}`} width={size} height={size}>
57
+ <G>
58
+ <Rect x={0} y={0} width={size} height={size} fill={backgroundColor} />
59
+ </G>
60
+ <G>
61
+ <Path d={path} strokeLinecap="butt" stroke={color} strokeWidth={cellSize} />
62
+ </G>
63
+ </Svg>
64
+ );
65
+ }
66
+
67
+ export default QRCode;
@@ -15,7 +15,7 @@
15
15
  import type React from 'react';
16
16
  import { View } from 'react-native';
17
17
  import MaterialCommunityIcons from '../../icons/MaterialCommunityIcons';
18
- import QRCode from 'react-native-qrcode-svg';
18
+ import { QRCode } from '../QRCode';
19
19
  import { Button } from '@oxy.so/bloom/button';
20
20
  import { Loading } from '@oxy.so/bloom/loading';
21
21
  import { Text } from '@oxy.so/bloom/typography';
@@ -23,7 +23,7 @@ interface PaymentDetailsStepProps {
23
23
  qrSize: number;
24
24
  onBack: () => void;
25
25
  onNext: () => void;
26
- QRCodeComponent?: React.ComponentType<{ value?: string; size?: number }>;
26
+ QRCodeComponent?: React.ComponentType<{ value: string; size?: number }>;
27
27
  }
28
28
 
29
29
  const PaymentDetailsStep: React.FC<PaymentDetailsStepProps> = ({
@@ -16,7 +16,7 @@
16
16
  import type React from 'react';
17
17
  import { useEffect, useState } from 'react';
18
18
  import { StyleSheet, View } from 'react-native';
19
- import QRCode from 'react-native-qrcode-svg';
19
+ import { QRCode } from '../QRCode';
20
20
  import { Button } from '@oxy.so/bloom/button';
21
21
  import { RiCheckboxCircleLine } from '@oxy.so/bloom/icons/RiCheckboxCircleLine';
22
22
  import { RiRefreshLine } from '@oxy.so/bloom/icons/RiRefreshLine';
@@ -14,7 +14,7 @@
14
14
  import type React from 'react';
15
15
  import { useState } from 'react';
16
16
  import { StyleSheet, View } from 'react-native';
17
- import QRCode from 'react-native-qrcode-svg';
17
+ import { QRCode } from '../QRCode';
18
18
  import { CodeBlock } from '@oxy.so/bloom/code';
19
19
  import { useTheme } from '@oxy.so/bloom/theme';
20
20
  import { toast } from '@oxy.so/bloom/toast';
@@ -15,7 +15,7 @@
15
15
  import type React from 'react';
16
16
  import { useCallback, useEffect, useRef, useState } from 'react';
17
17
  import { StyleSheet, View } from 'react-native';
18
- import QRCode from 'react-native-qrcode-svg';
18
+ import { QRCode } from '../QRCode';
19
19
  import { Button } from '@oxy.so/bloom/button';
20
20
  import { Loading } from '@oxy.so/bloom/loading';
21
21
  import { useTheme } from '@oxy.so/bloom/theme';
@@ -286,6 +286,7 @@ export const materialCommunityIconsGlyphMap = {
286
286
  "post": 987144,
287
287
  "presentation": 984104,
288
288
  "pulse": 984112,
289
+ "qrcode": 984114,
289
290
  "radio": 984121,
290
291
  "react": 984840,
291
292
  "read": 984135,
@@ -8,7 +8,7 @@ import { H4, Text } from '@oxy.so/bloom/typography';
8
8
  import Ionicons from '../icons/Ionicons';
9
9
  import { useI18n } from '../hooks/useI18n';
10
10
  import { useSurfaceHeader } from '../hooks/useSurfaceHeader';
11
- import QRCode from 'react-native-qrcode-svg';
11
+ import { QRCode } from '../components/QRCode';
12
12
 
13
13
  import PaymentSummaryStep from '../components/payment/PaymentSummaryStep';
14
14
  import PaymentMethodStep from '../components/payment/PaymentMethodStep';