@stridge/kit 0.1.0-alpha.3 → 0.1.0-alpha.30

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 (179) hide show
  1. package/README.md +22 -6
  2. package/dist/KitProvider.d.ts +29 -0
  3. package/dist/KitProvider.js +1 -1
  4. package/dist/_internal/withdraw/driver/index.d.ts +2 -2
  5. package/dist/deposit/compound/index.d.ts +2 -2
  6. package/dist/drivers/stridge/createStridgeDepositDriver.js +1 -1
  7. package/dist/drivers/stridge/createStridgeWithdrawDriver.d.ts +10 -12
  8. package/dist/drivers/stridge/createStridgeWithdrawDriver.js +1 -1
  9. package/dist/drivers/stridge/internal/metadata.js +1 -1
  10. package/dist/drivers/stridge/types.d.ts +7 -4
  11. package/dist/drivers/stridge-mock/createStridgeMockWithdrawDriver.d.ts +3 -3
  12. package/dist/drivers/stridge-mock/createStridgeMockWithdrawDriver.js +1 -1
  13. package/dist/drivers/stridge-mock/fixtures.d.ts +7 -5
  14. package/dist/drivers/stridge-mock/fixtures.js +1 -1
  15. package/dist/flows/deposit/dialog/DepositDialog.js +1 -1
  16. package/dist/flows/deposit/orchestrator/controller.js +1 -1
  17. package/dist/flows/deposit/orchestrator/types.d.ts +30 -1
  18. package/dist/flows/deposit/orchestrator/useDeposit.d.ts +18 -1
  19. package/dist/flows/deposit/orchestrator/useDeposit.js +1 -1
  20. package/dist/flows/deposit/widgets/deposit/Deposit.js +1 -1
  21. package/dist/flows/deposit/widgets/deposit/compound/components/Method.d.ts +6 -0
  22. package/dist/flows/deposit/widgets/deposit/compound/components/Method.js +1 -1
  23. package/dist/flows/deposit/widgets/deposit/compound/types.d.ts +6 -3
  24. package/dist/flows/deposit/widgets/deposit-status-banner/DepositStatusBanner.d.ts +7 -0
  25. package/dist/flows/deposit/widgets/deposit-status-banner/DepositStatusBanner.js +1 -1
  26. package/dist/flows/deposit/widgets/deposit-status-banner/compound/DepositStatusBanner.js +1 -1
  27. package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/Hero.js +1 -1
  28. package/dist/flows/deposit/widgets/deposit-status-banner/compound/components/PrimaryAction.js +1 -1
  29. package/dist/flows/deposit/widgets/processing-state/ProcessingState.js +1 -1
  30. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Address.js +1 -1
  31. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Disclosure.d.ts +2 -1
  32. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/Disclosure.js +1 -1
  33. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/QrCode.d.ts +4 -10
  34. package/dist/flows/deposit/widgets/transfer-crypto/compound/components/QrCode.js +1 -1
  35. package/dist/flows/shared/transformers/pickRelevantSettlement.js +1 -1
  36. package/dist/flows/withdraw/bindings/WithdrawBindings.d.ts +92 -0
  37. package/dist/flows/withdraw/bindings/WithdrawBindings.js +1 -0
  38. package/dist/flows/withdraw/bindings/index.d.ts +1 -0
  39. package/dist/flows/withdraw/bindings/index.js +1 -0
  40. package/dist/flows/withdraw/dialog/WithdrawDialog.d.ts +58 -12
  41. package/dist/flows/withdraw/dialog/WithdrawDialog.js +1 -1
  42. package/dist/flows/withdraw/driver/payloads.d.ts +16 -1
  43. package/dist/flows/withdraw/driver/transformers/settlementToWithdrawalPayload.js +1 -1
  44. package/dist/flows/withdraw/driver/transformers/supportedAssetsToReceiveOptionsPayload.js +1 -1
  45. package/dist/flows/withdraw/driver/types.d.ts +53 -11
  46. package/dist/flows/withdraw/orchestrator/controller.js +1 -1
  47. package/dist/flows/withdraw/orchestrator/index.d.ts +1 -1
  48. package/dist/flows/withdraw/orchestrator/reducer.js +1 -1
  49. package/dist/flows/withdraw/orchestrator/types.d.ts +106 -32
  50. package/dist/flows/withdraw/orchestrator/useWithdraw.d.ts +18 -1
  51. package/dist/flows/withdraw/orchestrator/useWithdraw.js +1 -1
  52. package/dist/flows/withdraw/widgets/withdraw-form/WithdrawForm.js +1 -1
  53. package/dist/flows/withdraw/widgets/withdraw-form/compound/WithdrawForm.js +1 -1
  54. package/dist/flows/withdraw/widgets/withdraw-form/compound/components/RecipientField.d.ts +7 -5
  55. package/dist/flows/withdraw/widgets/withdraw-form/compound/components/RecipientField.js +1 -1
  56. package/dist/flows/withdraw/widgets/withdraw-form/compound/types.d.ts +15 -5
  57. package/dist/flows/withdraw/widgets/withdraw-form/validation.js +1 -1
  58. package/dist/flows/withdraw/widgets/withdraw-in-progress/WithdrawInProgress.d.ts +2 -1
  59. package/dist/flows/withdraw/widgets/withdraw-in-progress/WithdrawInProgress.js +1 -1
  60. package/dist/i18n/index.d.ts +5 -4
  61. package/dist/i18n/index.js +1 -1
  62. package/dist/i18n/locales/ar.js +1 -1
  63. package/dist/i18n/locales/es.js +1 -1
  64. package/dist/i18n/locales/source-keys.d.ts +12 -0
  65. package/dist/i18n/locales/source-keys.js +0 -0
  66. package/dist/icons/index.d.ts +2 -1
  67. package/dist/icons/index.js +1 -1
  68. package/dist/index.d.ts +12 -8
  69. package/dist/index.js +1 -1
  70. package/dist/package.js +1 -0
  71. package/dist/scope/KitPortalScope.js +1 -1
  72. package/dist/scope/KitScope.d.ts +18 -1
  73. package/dist/scope/KitScope.js +1 -1
  74. package/dist/scope/context.d.ts +17 -1
  75. package/dist/scope/index.d.ts +1 -1
  76. package/dist/shared/attribution/Attribution.js +1 -0
  77. package/dist/shared/attribution/Attribution.slots.js +1 -0
  78. package/dist/shared/attribution/Attribution.styles.js +1 -0
  79. package/dist/shared/attribution/index.js +1 -0
  80. package/dist/shared/chains/index.d.ts +48 -29
  81. package/dist/shared/chains/index.js +1 -1
  82. package/dist/shared/constants/brand-intercom.js +1 -0
  83. package/dist/shared/cuer/Cuer.js +1 -0
  84. package/dist/shared/cuer/QrCode.js +1 -0
  85. package/dist/shared/cuer/index.js +1 -0
  86. package/dist/shared/dialog/Frame.js +1 -1
  87. package/dist/shared/dialog/StepTransition.js +1 -1
  88. package/dist/shared/driver/types.d.ts +4 -3
  89. package/dist/shared/i18n/KitI18nProvider.d.ts +11 -8
  90. package/dist/shared/i18n/KitI18nProvider.js +1 -1
  91. package/dist/shared/i18n/createKitI18n.d.ts +79 -16
  92. package/dist/shared/i18n/createKitI18n.js +1 -1
  93. package/dist/shared/i18n/useLingui.d.ts +11 -3
  94. package/dist/shared/icons/LogoIcon.d.ts +13 -0
  95. package/dist/shared/icons/LogoIcon.js +1 -0
  96. package/dist/shared/orchestrator/useSettlementWatcher.js +1 -1
  97. package/dist/shared/primitives/TxHashValue/TxHashValue.js +1 -1
  98. package/dist/shared/support/SupportButton.d.ts +1 -0
  99. package/dist/shared/support/SupportButton.js +1 -0
  100. package/dist/shared/support/SupportConfigContext.d.ts +1 -0
  101. package/dist/shared/support/SupportConfigContext.js +1 -0
  102. package/dist/shared/support/SupportLink.d.ts +1 -0
  103. package/dist/shared/support/SupportLink.js +1 -0
  104. package/dist/shared/support/SupportSpinner.d.ts +1 -0
  105. package/dist/shared/support/SupportSpinner.js +1 -0
  106. package/dist/shared/support/index.d.ts +2 -0
  107. package/dist/shared/support/index.js +1 -0
  108. package/dist/shared/support/intercom-loader.d.ts +17 -0
  109. package/dist/shared/support/intercom-loader.js +1 -0
  110. package/dist/shared/support/resolveSupport.d.ts +1 -0
  111. package/dist/shared/support/resolveSupport.js +1 -0
  112. package/dist/shared/support/types.d.ts +43 -0
  113. package/dist/shared/support/useIntercomMerchantContext.d.ts +27 -0
  114. package/dist/shared/support/useIntercomMerchantContext.js +1 -0
  115. package/dist/shared/support/useIntercomShutdownOnUnmount.js +1 -0
  116. package/dist/shared/support/useMerchantContext.d.ts +1 -0
  117. package/dist/shared/support/useMerchantContext.js +1 -0
  118. package/dist/shared/support/useSupportTrigger.js +1 -0
  119. package/dist/shared/terms/TermsButton.d.ts +1 -0
  120. package/dist/shared/terms/TermsButton.js +1 -0
  121. package/dist/shared/terms/TermsConfigContext.d.ts +1 -0
  122. package/dist/shared/terms/TermsConfigContext.js +1 -0
  123. package/dist/shared/terms/TermsLink.d.ts +1 -0
  124. package/dist/shared/terms/TermsLink.js +1 -0
  125. package/dist/shared/terms/index.d.ts +1 -0
  126. package/dist/shared/terms/index.js +1 -0
  127. package/dist/shared/terms/resolveTerms.d.ts +1 -0
  128. package/dist/shared/terms/resolveTerms.js +1 -0
  129. package/dist/shared/terms/types.d.ts +43 -0
  130. package/dist/shared/ui/Card/Card.styles.js +1 -1
  131. package/dist/shared/ui/Details/Details.d.ts +9 -1
  132. package/dist/shared/ui/Details/Details.styles.js +1 -1
  133. package/dist/shared/ui/Dialog/Dialog.js +1 -1
  134. package/dist/shared/ui/Dialog/Dialog.styles.js +1 -1
  135. package/dist/shared/ui/ExternalLink/ExternalLink.js +1 -1
  136. package/dist/shared/ui/Select/Select.js +1 -1
  137. package/dist/shared/ui/WalletRow/WalletRow.d.ts +1 -1
  138. package/dist/shared/ui/WalletRow/WalletRow.js +1 -1
  139. package/dist/shared/widgets/amount-entry/compound/components/Hero/Hero.js +1 -1
  140. package/dist/shared/widgets/amount-entry/compound/components/Hero/SwapBackdrop.js +1 -1
  141. package/dist/shared/widgets/confirm-transfer/compound/components/Disclaimer.d.ts +4 -3
  142. package/dist/shared/widgets/confirm-transfer/compound/components/Disclaimer.js +1 -1
  143. package/dist/shared/widgets/error-state/compound/components/AssetValue.js +1 -1
  144. package/dist/shared/widgets/error-state/compound/components/HelpInfo.js +1 -1
  145. package/dist/shared/widgets/error-state/compound/components/StatusValue.js +1 -1
  146. package/dist/shared/widgets/processing-state/compound/ProcessingState.d.ts +1 -5
  147. package/dist/shared/widgets/processing-state/compound/ProcessingState.js +1 -1
  148. package/dist/shared/widgets/processing-state/compound/ProcessingState.slots.d.ts +0 -1
  149. package/dist/shared/widgets/processing-state/compound/ProcessingState.slots.js +1 -1
  150. package/dist/shared/widgets/processing-state/compound/ProcessingState.styles.js +1 -1
  151. package/dist/shared/widgets/processing-state/compound/components/Details.d.ts +6 -1
  152. package/dist/shared/widgets/processing-state/compound/components/Details.js +1 -1
  153. package/dist/shared/widgets/processing-state/compound/components/Header.d.ts +4 -3
  154. package/dist/shared/widgets/processing-state/compound/components/Header.js +1 -1
  155. package/dist/shared/widgets/processing-state/compound/components/Hero.d.ts +11 -7
  156. package/dist/shared/widgets/processing-state/compound/components/Hero.js +1 -1
  157. package/dist/shared/widgets/processing-state/compound/components/Rows.js +1 -1
  158. package/dist/shared/widgets/processing-state/compound/components/StatusPill.js +1 -1
  159. package/dist/shared/widgets/processing-state/compound/components/splitAmount.js +1 -0
  160. package/dist/shared/widgets/processing-state/compound/index.d.ts +1 -1
  161. package/dist/shared/widgets/processing-state/compound/types.d.ts +7 -26
  162. package/dist/shared/widgets/success-state/compound/components/Actions.js +1 -1
  163. package/dist/shared/widgets/success-state/compound/components/AssetValue.js +1 -1
  164. package/dist/shared/widgets/success-state/compound/components/RouteValue.js +1 -1
  165. package/dist/shared/widgets/success-state/compound/components/StatusPill.js +1 -1
  166. package/dist/stridge/StridgeProvider.d.ts +147 -15
  167. package/dist/stridge/StridgeProvider.js +1 -1
  168. package/dist/stridge/optionalWagmi.js +1 -0
  169. package/dist/stridge/stubs.js +1 -1
  170. package/dist/styles/index.css +58 -12
  171. package/dist/types.d.ts +5 -4
  172. package/dist/ui/index.js +1 -1
  173. package/dist/withdraw/compound/index.d.ts +2 -2
  174. package/dist/withdraw/dialog/index.d.ts +3 -1
  175. package/package.json +10 -11
  176. package/dist/kit/package.js +0 -1
  177. package/dist/shared/widgets/processing-state/compound/components/Actions.d.ts +0 -17
  178. package/dist/shared/widgets/processing-state/compound/components/Actions.js +0 -1
  179. /package/dist/{utils/src/use-copy-to-clipboard.js → shared/utils/useCopyToClipboard.js} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stridge/kit",
3
- "version": "0.1.0-alpha.3",
3
+ "version": "0.1.0-alpha.30",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "files": [
@@ -119,10 +119,9 @@
119
119
  "typescript": "6.0.3",
120
120
  "viem": "2.48.1",
121
121
  "vite-plugin-babel": "^1.6.0",
122
- "vitest": "4.1.2",
122
+ "vitest": "4.1.5",
123
123
  "wagmi": "3.6.3",
124
- "@stridge/kit-typescript": "0.0.0",
125
- "@stridge/utils": "0.1.0-alpha.2"
124
+ "@stridge/kit-typescript": "0.0.0"
126
125
  },
127
126
  "dependencies": {
128
127
  "@base-ui/react": "1.4.0",
@@ -130,14 +129,14 @@
130
129
  "@lingui/message-utils": "^6.0.1",
131
130
  "@lingui/react": "^6.0.1",
132
131
  "@stylexjs/stylex": "^0.18.3",
133
- "cuer": "0.0.3",
134
132
  "motion": "^12.38.0",
135
- "@stridge/sdk": "0.1.0-alpha.3"
133
+ "qr": "0.6.0",
134
+ "@stridge/sdk": "0.1.0-alpha.4"
136
135
  },
137
136
  "scripts": {
138
137
  "build": "pnpm run i18n:compile && tsdown",
139
- "check:api": "api-extractor run",
140
- "check:api:update": "api-extractor run --local",
138
+ "check:api": "api-extractor run && api-extractor run --config api-extractor.i18n.json",
139
+ "check:api:update": "api-extractor run --local && api-extractor run --local --config api-extractor.i18n.json",
141
140
  "check:attw": "attw --pack . --profile esm-only --exclude-entrypoints ./styles.css",
142
141
  "check:isolation": "depcruise src",
143
142
  "check:publint": "publint",
@@ -145,9 +144,9 @@
145
144
  "check:size": "size-limit",
146
145
  "check:size:why": "size-limit --why",
147
146
  "dev": "pnpm run i18n:compile && tsdown --watch",
148
- "i18n:extract": "lingui extract --clean",
149
- "i18n:compile": "lingui compile --typescript",
150
- "i18n:check": "lingui extract --clean && git diff --exit-code -- src/shared/i18n/locales",
147
+ "i18n:extract": "lingui extract --clean && node scripts/codegen-source-keys.mjs",
148
+ "i18n:compile": "lingui compile --typescript && node scripts/codegen-source-keys.mjs",
149
+ "i18n:check": "lingui extract --clean && node scripts/codegen-source-keys.mjs && git diff --exit-code -- src/shared/i18n/locales",
151
150
  "test": "pnpm run i18n:compile && vitest --run",
152
151
  "test:coverage": "pnpm run i18n:compile && vitest --run --coverage",
153
152
  "test:watch": "pnpm run i18n:compile && vitest",
@@ -1 +0,0 @@
1
- var e=`0.1.0-alpha.3`;export{e as version};
@@ -1,17 +0,0 @@
1
- import { ProcessingStateActionsProps } from "../types.js";
2
- import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
-
4
- //#region src/shared/widgets/processing-state/compound/components/Actions.d.ts
5
- /**
6
- * Action row with the primary "Close — we'll notify you" CTA. Rendered as a quiet/subdued button rather than the
7
- * accent fill, since dismiss during an in-flight credit is a soft action.
8
- *
9
- * Reads `onClose` and `closeLabel` from the {@link ProcessingState} root
10
- * by default; pass props to override per-instance.
11
- */
12
- declare function ProcessingStateActions({
13
- onClose,
14
- closeLabel
15
- }?: ProcessingStateActionsProps): _$react_jsx_runtime0.JSX.Element;
16
- //#endregion
17
- export { ProcessingStateActions };
@@ -1 +0,0 @@
1
- "use client";import{useLingui as e}from"../../../../i18n/useLingui.js";import"../../../../../i18n/index.js";import{MailIcon as t}from"../../../../icons/MailIcon.js";import"../../../../../icons/index.js";import{Button as n}from"../../../../ui/Button/Button.js";import"../../../../ui/Button/index.js";import{text as r}from"../../../../ui/Text/Text.js";import"../../../../../ui/index.js";import{useProcessingStateContext as i}from"../context.js";import{PROCESSING_STATE_SLOTS as a}from"../ProcessingState.slots.js";import{styles as o}from"../ProcessingState.styles.js";import{jsx as s}from"react/jsx-runtime";import*as c from"@stylexjs/stylex";function l({onClose:l,closeLabel:u}={}){let d=i(`ProcessingState.Actions`),{_:f}=e(),p=l??d.onClose,m=u??d.closeLabel??f({id:`HfPDJV`,message:`Close — we'll notify you`}),h=typeof p==`function`;return s(`div`,{"data-stridge-slot":a.actions,...c.props(o.actions),children:s(n,{size:`cta`,variant:`secondary`,prefix:s(t,{"aria-hidden":!0}),onClick:h?p:void 0,...c.props(o.closeCta,h?o.closeCtaInteractive:o.closeCtaInert),children:s(r.span,{size:`callout`,fontWeight:`semibold`,leading:`tight`,tracking:`tight`,color:`inherit`,children:m})})})}export{l as ProcessingStateActions};