@onekeyfe/inpage-providers-hub 2.1.1 → 2.1.2

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.
@@ -39,7 +39,7 @@ exports.styleContent = `
39
39
  display: flex;
40
40
  align-items: flex-end;
41
41
  flex-direction: column;
42
- z-index: 100000;
42
+ z-index: 2147483647;
43
43
  box-sizing: border-box;
44
44
  }
45
45
  .onekey-inject-modal-container {
@@ -16,6 +16,7 @@ const cross_inpage_provider_core_1 = require("@onekeyfe/cross-inpage-provider-co
16
16
  const onekey_sui_provider_1 = require("@onekeyfe/onekey-sui-provider");
17
17
  const onekey_webln_provider_1 = require("@onekeyfe/onekey-webln-provider");
18
18
  const onekey_scdo_provider_1 = require("@onekeyfe/onekey-scdo-provider");
19
+ const onekey_ton_provider_1 = require("@onekeyfe/onekey-ton-provider");
19
20
  const onekey_nostr_provider_1 = require("@onekeyfe/onekey-nostr-provider");
20
21
  const onekey_btc_provider_1 = require("@onekeyfe/onekey-btc-provider");
21
22
  const onekey_algo_provider_1 = require("@onekeyfe/onekey-algo-provider");
@@ -55,6 +56,9 @@ function injectWeb3Provider() {
55
56
  const cardano = new onekey_cardano_provider_1.ProviderCardano({
56
57
  bridge,
57
58
  });
59
+ const tonconnect = new onekey_ton_provider_1.ProviderTon({
60
+ bridge,
61
+ });
58
62
  const cosmos = new onekey_cosmos_provider_1.ProviderCosmos({
59
63
  bridge,
60
64
  });
@@ -80,13 +84,14 @@ function injectWeb3Provider() {
80
84
  // starcoin,
81
85
  aptos: martian, conflux,
82
86
  tron, sollet: null, sui,
87
+ tonconnect,
83
88
  cardano,
84
89
  cosmos,
85
90
  scdo,
86
91
  webln,
87
92
  nostr,
88
93
  btc, btcwallet: btcWallet, algorand });
89
- (0, cross_inpage_provider_core_1.defineWindowProperty)('$onekey', $onekey, { enumerable: true });
94
+ (0, cross_inpage_provider_core_1.defineWindowProperty)('$onekey', $onekey, { enumerable: true, alwaysInject: true });
90
95
  const martianProxy = new Proxy(martian, {
91
96
  get: (target, property, ...args) => {
92
97
  if (property === 'aptosProviderType') {
@@ -119,6 +124,9 @@ function injectWeb3Provider() {
119
124
  (0, cross_inpage_provider_core_1.defineWindowProperty)('conflux', conflux);
120
125
  (0, cross_inpage_provider_core_1.defineWindowProperty)('tronLink', tron);
121
126
  (0, cross_inpage_provider_core_1.defineWindowProperty)('suiWallet', sui);
127
+ (0, cross_inpage_provider_core_1.defineWindowProperty)('tonkeeper', {
128
+ tonconnect,
129
+ });
122
130
  (0, cross_inpage_provider_core_1.defineWindowProperty)('unisat', btc);
123
131
  (0, cross_inpage_provider_core_1.defineWindowProperty)('scdo', scdo);
124
132
  (0, cross_inpage_provider_core_1.defineWindowProperty)('algorand', algorand);
@@ -1 +1 @@
1
- export declare const styleContent = "\n.onekey-inject-font {\n\tfont-family: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;\n\tfont-style: normal;\n\tletter-spacing: -0.32px;\n\tcolor: rgba(0, 0, 0, 0.88);\n}\n.onekey-inject-headingXl {\n\t/* headingXl */\n\tfont-size: 20px;\n\tfont-weight: 600;\n\tline-height: 28px; /* 140% */\n\tletter-spacing: 0.38px;\n}\n.onekey-inject-bodyLg {\n\t/* bodyLg */\n\tfont-size: 16px;\n\tfont-weight: 400;\n\tline-height: 24px; /* 150% */\n}\n.onekey-inject-bodyLg-medium {\n\t/* bodyLg-medium */\n\tfont-size: 16px;\n\tfont-weight: 500;\n\tline-height: 24px; /* 150% */\n\tcolor: rgba(255, 255, 255, 0.93);\n}\n.onekey-inject-overlay {\n\tposition: fixed;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100vw;\n\theight: 100%;\n\tpadding: 20px;\n\tbackground-color: rgba(0, 0, 0, 0.27);\n\tdisplay: flex;\n\talign-items: flex-end;\n\tflex-direction: column;\n\tz-index: 100000;\n\tbox-sizing: border-box;\n}\n.onekey-inject-modal-container {\n\tdisplay: flex;\n\tmax-width: 384px;\n\tflex-direction: column;\n\talign-items: flex-start;\n\tborder-radius: 24px;\n\tbackground: #FFF;\n\tbox-shadow: 0px 12px 24px 0px rgba(0, 0, 0, 0.09);\n}\n.onekey-inject-modal {\n\tdisplay: flex;\n\tmax-width: 384px;\n\tflex-direction: column;\n\talign-items: flex-start;\n\tborder-radius: 24px;\n\tbackground: #FFF;\n\tpadding: 20px 20px 0 16px;\n}\n.onekey-inject-error-icon {\n\tbackground-image: url('data:image/svg+xml;utf8,<svg width=\"20\" height=\"18\" viewBox=\"0 0 20 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M10.9995 7.01917C10.9995 6.46689 10.5518 6.01917 9.9995 6.01917C9.44722 6.01917 8.9995 6.46689 8.9995 7.01917V10.0134C8.9995 10.5657 9.44722 11.0134 9.9995 11.0134C10.5518 11.0134 10.9995 10.5657 10.9995 10.0134V7.01917Z\" fill=\"%23FF858A\"/><path d=\"M9.99951 11.75C9.30916 11.75 8.74951 12.3096 8.74951 13C8.74951 13.6904 9.30916 14.25 9.99951 14.25C10.6899 14.25 11.2495 13.6904 11.2495 13C11.2495 12.3096 10.6899 11.75 9.99951 11.75Z\" fill=\"%23FF858A\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12.5869 1.48664C11.4311 -0.495548 8.56789 -0.495543 7.41208 1.48664L0.410446 13.4943C-0.753887 15.4911 0.685449 18 2.99786 18H17.0011C19.3135 18 20.7529 15.4911 19.5886 13.4943L12.5869 1.48664ZM9.13982 2.49408C9.52394 1.83531 10.4751 1.83531 10.8592 2.49407L17.8608 14.5017C18.2484 15.1664 17.7687 16 17.0011 16H2.99786C2.23028 16 1.75059 15.1665 2.13818 14.5017L9.13982 2.49408Z\" fill=\"%23FF858A\"/></svg>');\n width: 20px; /* SVG width */\n height: 18px; /* SVG height */\n margin-right: 12px;\n display: block;\n}\n.onekey-inject-error-icon > img {\n width: 24px;\n height: 24px;\n}\n.onekey-inject-title {\n\tdisplay: flex;\n\talign-items: center;\n}\n.onekey-inject-risk-warning {\n\tmargin-bottom: 20px;\n}\n.onekey-inject-text-wrap {\n\tmargin: 0;\n\tmargin-top: 20px;\n}\n.onekey-inject-text-subdued {\n margin-top: 8px;\n margin-bottom: 0px;\n\tcolor: rgba(0, 0, 0, 0.61);\n}\n.onekey-inject-continue-link {\n\ttext-decoration: underline;\n\tcursor: pointer;\n}\n.onekey-inject-continue-link:hover {\n\tcolor: rgba(0, 0, 0, 0.7);\n}\n.onekey-inject-continue-link:active {\n\tcolor: rgba(0, 0, 0, 0.5);\n}\n.onekey-inject-footer {\n\tdisplay: flex;\n\tpadding:16px 20px;\n\tflex-direction: row;\n\tjustify-content: center;\n\talign-items: center;\n\tgap: 8px;\n\talign-self: stretch;\n\theight: 56px;\n\tbackground: #F9F9F9;\n\tborder-radius: 0 0 24px 24px;\n\tbox-sizing: border-box;\n\tcolor: rgba(0, 0, 0, 0.61);\n}\n.onekey-inject-logo {\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n\tcolor: rgba(0, 0, 0, 0.88);\n\tfont-weight: 600;\n}\n.onekey-inject-logo-content {\n\twidth: 20px;\n\theight: 20px;\n\tmargin-right: 6px;\n\tbackground-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 21 21' fill='none'%3E%3Cpath d='M10.4987 14.4595C11.3758 14.4595 12.0867 13.7485 12.0867 12.8715C12.0867 11.9945 11.3758 11.2836 10.4987 11.2836C9.62174 11.2836 8.91078 11.9945 8.91078 12.8715C8.91078 13.7485 9.62174 14.4595 10.4987 14.4595Z' fill='black' fill-opacity='0.875'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10.4987 19.6668C16.827 19.6668 19.6654 16.8284 19.6654 10.5002C19.6654 4.1719 16.827 1.3335 10.4987 1.3335C4.17044 1.3335 1.33203 4.1719 1.33203 10.5002C1.33203 16.8284 4.17044 19.6668 10.4987 19.6668ZM8.77681 5.22049H11.3269V9.42284H9.74582V6.57329H8.32942L8.77681 5.22049ZM10.4988 15.7798C12.105 15.7798 13.407 14.4778 13.407 12.8715C13.407 11.2653 12.105 9.96325 10.4988 9.96325C8.89255 9.96325 7.59046 11.2653 7.59046 12.8715C7.59046 14.4778 8.89255 15.7798 10.4988 15.7798Z' fill='black' fill-opacity='0.875'/%3E%3C/svg%3E\");\n}\n\n/* Dark Mode */\n@media (prefers-color-scheme: dark) {\n\t.onekey-inject-font {\n\t\tcolor: rgba(255, 255, 255, 0.93);\n\t}\n\t.onekey-inject-bodyLg-medium {\n\t\tcolor: rgba(0, 0, 0, 0.88);\n\t}\n\t.onekey-inject-bodyLg {\n\t\tcolor: rgba(255, 255, 255, 0.93);\n\t}\n\t.onekey-inject-modal-container {\n\t\tbackground: #1B1B1B;\n\t}\n\t.onekey-inject-modal {\n\t\tbackground: #1B1B1B;\n\t}\n\t.onekey-inject-footer {\n\t\tbackground: #1B1B1B;\n\t}\n\t.onekey-inject-text-subdued {\n\t\tcolor: rgba(255, 255, 255, 0.66);\n\t}\n\t.onekey-inject-continue-link:hover {\n\t\tcolor: rgba(255, 255, 255, 0.7);\n\t}\n\t.onekey-inject-continue-link:active {\n\t\tcolor: rgba(255, 255, 255, 0.5);\n\t}\n\t.onekey-inject-footer {\n\t\tcolor: rgba(255, 255, 255, 0.66);\n\t}\n\t.onekey-inject-logo {\n\t\tcolor: rgba(255, 255, 255, 0.93);\n\t}\n\t.onekey-inject-error-icon-content {\n\t\tbackground-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"33\" viewBox=\"0 0 32 33\" fill=\"none\"><path d=\"M17.3327 12.5254C17.3327 11.789 16.7357 11.1921 15.9993 11.1921C15.263 11.1921 14.666 11.789 14.666 12.5254V16.5177C14.666 17.2541 15.263 17.8511 15.9993 17.8511C16.7357 17.8511 17.3327 17.2541 17.3327 16.5177V12.5254Z\" fill=\"%23FF858A\"/><path d=\"M15.9993 18.8332C15.0789 18.8332 14.3327 19.5794 14.3327 20.4998C14.3327 21.4203 15.0789 22.1665 15.9993 22.1665C16.9198 22.1665 17.666 21.4203 17.666 20.4998C17.666 19.5794 16.9198 18.8332 15.9993 18.8332Z\" fill=\"%23FF858A\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M19.4492 5.14869C17.9081 2.50577 14.0905 2.50578 12.5494 5.14869L3.21393 21.1589C1.66148 23.8213 3.5806 27.1665 6.66382 27.1665H25.3348C28.4181 27.1665 30.3372 23.8213 28.7847 21.1589L19.4492 5.14869ZM14.8531 6.49194C15.3653 5.61358 16.6334 5.61358 17.1456 6.49194L26.4811 22.5022C26.9979 23.3884 26.3583 24.4998 25.3348 24.4998H6.66382C5.64037 24.4998 5.00079 23.3884 5.51758 22.5022L14.8531 6.49194Z\" fill=\"%23FF858A\"/></svg>');\n\t}\n\t.onekey-inject-logo-content {\n\t\tbackground-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 21 21' fill='none'%3E%3Cpath d='M10.4987 14.4595C11.3758 14.4595 12.0867 13.7485 12.0867 12.8715C12.0867 11.9945 11.3758 11.2836 10.4987 11.2836C9.62174 11.2836 8.91078 11.9945 8.91078 12.8715C8.91078 13.7485 9.62174 14.4595 10.4987 14.4595Z' fill='white' fill-opacity='0.926'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10.4987 19.6668C16.827 19.6668 19.6654 16.8284 19.6654 10.5002C19.6654 4.1719 16.827 1.3335 10.4987 1.3335C4.17044 1.3335 1.33203 4.1719 1.33203 10.5002C1.33203 16.8284 4.17044 19.6668 10.4987 19.6668ZM8.77681 5.22049H11.3269V9.42284H9.74582V6.57329H8.32942L8.77681 5.22049ZM10.4988 15.7798C12.105 15.7798 13.407 14.4778 13.407 12.8715C13.407 11.2653 12.105 9.96325 10.4988 9.96325C8.89255 9.96325 7.59046 11.2653 7.59046 12.8715C7.59046 14.4778 8.89255 15.7798 10.4988 15.7798Z' fill='white' fill-opacity='0.926'/%3E%3C/svg%3E\");\n\t}\n}\n";
1
+ export declare const styleContent = "\n.onekey-inject-font {\n\tfont-family: ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;\n\tfont-style: normal;\n\tletter-spacing: -0.32px;\n\tcolor: rgba(0, 0, 0, 0.88);\n}\n.onekey-inject-headingXl {\n\t/* headingXl */\n\tfont-size: 20px;\n\tfont-weight: 600;\n\tline-height: 28px; /* 140% */\n\tletter-spacing: 0.38px;\n}\n.onekey-inject-bodyLg {\n\t/* bodyLg */\n\tfont-size: 16px;\n\tfont-weight: 400;\n\tline-height: 24px; /* 150% */\n}\n.onekey-inject-bodyLg-medium {\n\t/* bodyLg-medium */\n\tfont-size: 16px;\n\tfont-weight: 500;\n\tline-height: 24px; /* 150% */\n\tcolor: rgba(255, 255, 255, 0.93);\n}\n.onekey-inject-overlay {\n\tposition: fixed;\n\ttop: 0;\n\tleft: 0;\n\twidth: 100vw;\n\theight: 100%;\n\tpadding: 20px;\n\tbackground-color: rgba(0, 0, 0, 0.27);\n\tdisplay: flex;\n\talign-items: flex-end;\n\tflex-direction: column;\n\tz-index: 2147483647;\n\tbox-sizing: border-box;\n}\n.onekey-inject-modal-container {\n\tdisplay: flex;\n\tmax-width: 384px;\n\tflex-direction: column;\n\talign-items: flex-start;\n\tborder-radius: 24px;\n\tbackground: #FFF;\n\tbox-shadow: 0px 12px 24px 0px rgba(0, 0, 0, 0.09);\n}\n.onekey-inject-modal {\n\tdisplay: flex;\n\tmax-width: 384px;\n\tflex-direction: column;\n\talign-items: flex-start;\n\tborder-radius: 24px;\n\tbackground: #FFF;\n\tpadding: 20px 20px 0 16px;\n}\n.onekey-inject-error-icon {\n\tbackground-image: url('data:image/svg+xml;utf8,<svg width=\"20\" height=\"18\" viewBox=\"0 0 20 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M10.9995 7.01917C10.9995 6.46689 10.5518 6.01917 9.9995 6.01917C9.44722 6.01917 8.9995 6.46689 8.9995 7.01917V10.0134C8.9995 10.5657 9.44722 11.0134 9.9995 11.0134C10.5518 11.0134 10.9995 10.5657 10.9995 10.0134V7.01917Z\" fill=\"%23FF858A\"/><path d=\"M9.99951 11.75C9.30916 11.75 8.74951 12.3096 8.74951 13C8.74951 13.6904 9.30916 14.25 9.99951 14.25C10.6899 14.25 11.2495 13.6904 11.2495 13C11.2495 12.3096 10.6899 11.75 9.99951 11.75Z\" fill=\"%23FF858A\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12.5869 1.48664C11.4311 -0.495548 8.56789 -0.495543 7.41208 1.48664L0.410446 13.4943C-0.753887 15.4911 0.685449 18 2.99786 18H17.0011C19.3135 18 20.7529 15.4911 19.5886 13.4943L12.5869 1.48664ZM9.13982 2.49408C9.52394 1.83531 10.4751 1.83531 10.8592 2.49407L17.8608 14.5017C18.2484 15.1664 17.7687 16 17.0011 16H2.99786C2.23028 16 1.75059 15.1665 2.13818 14.5017L9.13982 2.49408Z\" fill=\"%23FF858A\"/></svg>');\n width: 20px; /* SVG width */\n height: 18px; /* SVG height */\n margin-right: 12px;\n display: block;\n}\n.onekey-inject-error-icon > img {\n width: 24px;\n height: 24px;\n}\n.onekey-inject-title {\n\tdisplay: flex;\n\talign-items: center;\n}\n.onekey-inject-risk-warning {\n\tmargin-bottom: 20px;\n}\n.onekey-inject-text-wrap {\n\tmargin: 0;\n\tmargin-top: 20px;\n}\n.onekey-inject-text-subdued {\n margin-top: 8px;\n margin-bottom: 0px;\n\tcolor: rgba(0, 0, 0, 0.61);\n}\n.onekey-inject-continue-link {\n\ttext-decoration: underline;\n\tcursor: pointer;\n}\n.onekey-inject-continue-link:hover {\n\tcolor: rgba(0, 0, 0, 0.7);\n}\n.onekey-inject-continue-link:active {\n\tcolor: rgba(0, 0, 0, 0.5);\n}\n.onekey-inject-footer {\n\tdisplay: flex;\n\tpadding:16px 20px;\n\tflex-direction: row;\n\tjustify-content: center;\n\talign-items: center;\n\tgap: 8px;\n\talign-self: stretch;\n\theight: 56px;\n\tbackground: #F9F9F9;\n\tborder-radius: 0 0 24px 24px;\n\tbox-sizing: border-box;\n\tcolor: rgba(0, 0, 0, 0.61);\n}\n.onekey-inject-logo {\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n\tcolor: rgba(0, 0, 0, 0.88);\n\tfont-weight: 600;\n}\n.onekey-inject-logo-content {\n\twidth: 20px;\n\theight: 20px;\n\tmargin-right: 6px;\n\tbackground-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 21 21' fill='none'%3E%3Cpath d='M10.4987 14.4595C11.3758 14.4595 12.0867 13.7485 12.0867 12.8715C12.0867 11.9945 11.3758 11.2836 10.4987 11.2836C9.62174 11.2836 8.91078 11.9945 8.91078 12.8715C8.91078 13.7485 9.62174 14.4595 10.4987 14.4595Z' fill='black' fill-opacity='0.875'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10.4987 19.6668C16.827 19.6668 19.6654 16.8284 19.6654 10.5002C19.6654 4.1719 16.827 1.3335 10.4987 1.3335C4.17044 1.3335 1.33203 4.1719 1.33203 10.5002C1.33203 16.8284 4.17044 19.6668 10.4987 19.6668ZM8.77681 5.22049H11.3269V9.42284H9.74582V6.57329H8.32942L8.77681 5.22049ZM10.4988 15.7798C12.105 15.7798 13.407 14.4778 13.407 12.8715C13.407 11.2653 12.105 9.96325 10.4988 9.96325C8.89255 9.96325 7.59046 11.2653 7.59046 12.8715C7.59046 14.4778 8.89255 15.7798 10.4988 15.7798Z' fill='black' fill-opacity='0.875'/%3E%3C/svg%3E\");\n}\n\n/* Dark Mode */\n@media (prefers-color-scheme: dark) {\n\t.onekey-inject-font {\n\t\tcolor: rgba(255, 255, 255, 0.93);\n\t}\n\t.onekey-inject-bodyLg-medium {\n\t\tcolor: rgba(0, 0, 0, 0.88);\n\t}\n\t.onekey-inject-bodyLg {\n\t\tcolor: rgba(255, 255, 255, 0.93);\n\t}\n\t.onekey-inject-modal-container {\n\t\tbackground: #1B1B1B;\n\t}\n\t.onekey-inject-modal {\n\t\tbackground: #1B1B1B;\n\t}\n\t.onekey-inject-footer {\n\t\tbackground: #1B1B1B;\n\t}\n\t.onekey-inject-text-subdued {\n\t\tcolor: rgba(255, 255, 255, 0.66);\n\t}\n\t.onekey-inject-continue-link:hover {\n\t\tcolor: rgba(255, 255, 255, 0.7);\n\t}\n\t.onekey-inject-continue-link:active {\n\t\tcolor: rgba(255, 255, 255, 0.5);\n\t}\n\t.onekey-inject-footer {\n\t\tcolor: rgba(255, 255, 255, 0.66);\n\t}\n\t.onekey-inject-logo {\n\t\tcolor: rgba(255, 255, 255, 0.93);\n\t}\n\t.onekey-inject-error-icon-content {\n\t\tbackground-image: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"33\" viewBox=\"0 0 32 33\" fill=\"none\"><path d=\"M17.3327 12.5254C17.3327 11.789 16.7357 11.1921 15.9993 11.1921C15.263 11.1921 14.666 11.789 14.666 12.5254V16.5177C14.666 17.2541 15.263 17.8511 15.9993 17.8511C16.7357 17.8511 17.3327 17.2541 17.3327 16.5177V12.5254Z\" fill=\"%23FF858A\"/><path d=\"M15.9993 18.8332C15.0789 18.8332 14.3327 19.5794 14.3327 20.4998C14.3327 21.4203 15.0789 22.1665 15.9993 22.1665C16.9198 22.1665 17.666 21.4203 17.666 20.4998C17.666 19.5794 16.9198 18.8332 15.9993 18.8332Z\" fill=\"%23FF858A\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M19.4492 5.14869C17.9081 2.50577 14.0905 2.50578 12.5494 5.14869L3.21393 21.1589C1.66148 23.8213 3.5806 27.1665 6.66382 27.1665H25.3348C28.4181 27.1665 30.3372 23.8213 28.7847 21.1589L19.4492 5.14869ZM14.8531 6.49194C15.3653 5.61358 16.6334 5.61358 17.1456 6.49194L26.4811 22.5022C26.9979 23.3884 26.3583 24.4998 25.3348 24.4998H6.66382C5.64037 24.4998 5.00079 23.3884 5.51758 22.5022L14.8531 6.49194Z\" fill=\"%23FF858A\"/></svg>');\n\t}\n\t.onekey-inject-logo-content {\n\t\tbackground-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='21' height='21' viewBox='0 0 21 21' fill='none'%3E%3Cpath d='M10.4987 14.4595C11.3758 14.4595 12.0867 13.7485 12.0867 12.8715C12.0867 11.9945 11.3758 11.2836 10.4987 11.2836C9.62174 11.2836 8.91078 11.9945 8.91078 12.8715C8.91078 13.7485 9.62174 14.4595 10.4987 14.4595Z' fill='white' fill-opacity='0.926'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M10.4987 19.6668C16.827 19.6668 19.6654 16.8284 19.6654 10.5002C19.6654 4.1719 16.827 1.3335 10.4987 1.3335C4.17044 1.3335 1.33203 4.1719 1.33203 10.5002C1.33203 16.8284 4.17044 19.6668 10.4987 19.6668ZM8.77681 5.22049H11.3269V9.42284H9.74582V6.57329H8.32942L8.77681 5.22049ZM10.4988 15.7798C12.105 15.7798 13.407 14.4778 13.407 12.8715C13.407 11.2653 12.105 9.96325 10.4988 9.96325C8.89255 9.96325 7.59046 11.2653 7.59046 12.8715C7.59046 14.4778 8.89255 15.7798 10.4988 15.7798Z' fill='white' fill-opacity='0.926'/%3E%3C/svg%3E\");\n\t}\n}\n";
@@ -36,7 +36,7 @@ export const styleContent = `
36
36
  display: flex;
37
37
  align-items: flex-end;
38
38
  flex-direction: column;
39
- z-index: 100000;
39
+ z-index: 2147483647;
40
40
  box-sizing: border-box;
41
41
  }
42
42
  .onekey-inject-modal-container {
@@ -8,6 +8,7 @@ import { ProviderCosmos } from '@onekeyfe/onekey-cosmos-provider';
8
8
  import { ProviderSui } from '@onekeyfe/onekey-sui-provider';
9
9
  import { ProviderWebln } from '@onekeyfe/onekey-webln-provider';
10
10
  import { ProviderScdo } from '@onekeyfe/onekey-scdo-provider';
11
+ import { ProviderTon } from '@onekeyfe/onekey-ton-provider';
11
12
  import { ProviderNostr } from '@onekeyfe/onekey-nostr-provider';
12
13
  import { ProviderBtc, ProviderBtcWallet } from '@onekeyfe/onekey-btc-provider';
13
14
  export type IWindowOneKeyHub = {
@@ -26,6 +27,7 @@ export type IWindowOneKeyHub = {
26
27
  keplr?: ProviderCosmos;
27
28
  webln?: ProviderWebln;
28
29
  nostr?: ProviderNostr;
30
+ ton?: ProviderTon;
29
31
  unisat?: ProviderBtc;
30
32
  btcwallet?: ProviderBtcWallet;
31
33
  scdo?: ProviderScdo;
@@ -13,6 +13,7 @@ import { defineWindowProperty, checkWalletSwitchEnable, } from '@onekeyfe/cross-
13
13
  import { ProviderSui, registerSuiWallet } from '@onekeyfe/onekey-sui-provider';
14
14
  import { ProviderWebln } from '@onekeyfe/onekey-webln-provider';
15
15
  import { ProviderScdo } from '@onekeyfe/onekey-scdo-provider';
16
+ import { ProviderTon } from '@onekeyfe/onekey-ton-provider';
16
17
  import { ProviderNostr } from '@onekeyfe/onekey-nostr-provider';
17
18
  import { ProviderBtc, ProviderBtcWallet } from '@onekeyfe/onekey-btc-provider';
18
19
  import { ProviderAlgo } from '@onekeyfe/onekey-algo-provider';
@@ -52,6 +53,9 @@ function injectWeb3Provider() {
52
53
  const cardano = new ProviderCardano({
53
54
  bridge,
54
55
  });
56
+ const tonconnect = new ProviderTon({
57
+ bridge,
58
+ });
55
59
  const cosmos = new ProviderCosmos({
56
60
  bridge,
57
61
  });
@@ -77,13 +81,14 @@ function injectWeb3Provider() {
77
81
  // starcoin,
78
82
  aptos: martian, conflux,
79
83
  tron, sollet: null, sui,
84
+ tonconnect,
80
85
  cardano,
81
86
  cosmos,
82
87
  scdo,
83
88
  webln,
84
89
  nostr,
85
90
  btc, btcwallet: btcWallet, algorand });
86
- defineWindowProperty('$onekey', $onekey, { enumerable: true });
91
+ defineWindowProperty('$onekey', $onekey, { enumerable: true, alwaysInject: true });
87
92
  const martianProxy = new Proxy(martian, {
88
93
  get: (target, property, ...args) => {
89
94
  if (property === 'aptosProviderType') {
@@ -116,6 +121,9 @@ function injectWeb3Provider() {
116
121
  defineWindowProperty('conflux', conflux);
117
122
  defineWindowProperty('tronLink', tron);
118
123
  defineWindowProperty('suiWallet', sui);
124
+ defineWindowProperty('tonkeeper', {
125
+ tonconnect,
126
+ });
119
127
  defineWindowProperty('unisat', btc);
120
128
  defineWindowProperty('scdo', scdo);
121
129
  defineWindowProperty('algorand', algorand);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/inpage-providers-hub",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "keywords": [
5
5
  "cross-inpage-provider"
6
6
  ],
@@ -30,24 +30,25 @@
30
30
  "start": "tsc --watch"
31
31
  },
32
32
  "dependencies": {
33
- "@onekeyfe/cross-inpage-provider-core": "2.1.1",
34
- "@onekeyfe/cross-inpage-provider-types": "2.1.1",
35
- "@onekeyfe/onekey-algo-provider": "2.1.1",
36
- "@onekeyfe/onekey-aptos-provider": "2.1.1",
37
- "@onekeyfe/onekey-btc-provider": "2.1.1",
38
- "@onekeyfe/onekey-cardano-provider": "2.1.1",
39
- "@onekeyfe/onekey-conflux-provider": "2.1.1",
40
- "@onekeyfe/onekey-cosmos-provider": "2.1.1",
41
- "@onekeyfe/onekey-eth-provider": "2.1.1",
42
- "@onekeyfe/onekey-nostr-provider": "2.1.1",
43
- "@onekeyfe/onekey-polkadot-provider": "2.1.1",
44
- "@onekeyfe/onekey-private-external-account-provider": "2.1.1",
45
- "@onekeyfe/onekey-private-provider": "2.1.1",
46
- "@onekeyfe/onekey-scdo-provider": "2.1.1",
47
- "@onekeyfe/onekey-solana-provider": "2.1.1",
48
- "@onekeyfe/onekey-sui-provider": "2.1.1",
49
- "@onekeyfe/onekey-tron-provider": "2.1.1",
50
- "@onekeyfe/onekey-webln-provider": "2.1.1",
33
+ "@onekeyfe/cross-inpage-provider-core": "2.1.2",
34
+ "@onekeyfe/cross-inpage-provider-types": "2.1.2",
35
+ "@onekeyfe/onekey-algo-provider": "2.1.2",
36
+ "@onekeyfe/onekey-aptos-provider": "2.1.2",
37
+ "@onekeyfe/onekey-btc-provider": "2.1.2",
38
+ "@onekeyfe/onekey-cardano-provider": "2.1.2",
39
+ "@onekeyfe/onekey-conflux-provider": "2.1.2",
40
+ "@onekeyfe/onekey-cosmos-provider": "2.1.2",
41
+ "@onekeyfe/onekey-eth-provider": "2.1.2",
42
+ "@onekeyfe/onekey-nostr-provider": "2.1.2",
43
+ "@onekeyfe/onekey-polkadot-provider": "2.1.2",
44
+ "@onekeyfe/onekey-private-external-account-provider": "2.1.2",
45
+ "@onekeyfe/onekey-private-provider": "2.1.2",
46
+ "@onekeyfe/onekey-scdo-provider": "2.1.2",
47
+ "@onekeyfe/onekey-solana-provider": "2.1.2",
48
+ "@onekeyfe/onekey-sui-provider": "2.1.2",
49
+ "@onekeyfe/onekey-ton-provider": "2.1.2",
50
+ "@onekeyfe/onekey-tron-provider": "2.1.2",
51
+ "@onekeyfe/onekey-webln-provider": "2.1.2",
51
52
  "web3": "^1.7.3"
52
53
  },
53
54
  "devDependencies": {
@@ -55,5 +56,5 @@
55
56
  "@types/node": "^20.12.7",
56
57
  "playwright": "^1.43.1"
57
58
  },
58
- "gitHead": "14446b61e0a399bd1bc3a3fb4593c55bba3d28cb"
59
+ "gitHead": "18c5992b3eb11029f807d9488d2bb8a378e9b503"
59
60
  }