@orangecheck/me-client 0.31.0 → 0.32.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.
package/dist/index.mjs CHANGED
@@ -1,6 +1,3 @@
1
- import * as React from 'react';
2
- import { jsxs, jsx } from 'react/jsx-runtime';
3
-
4
1
  var __defProp = Object.defineProperty;
5
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -157,75 +154,6 @@ async function invalidate(sessionId) {
157
154
  });
158
155
  }
159
156
  var session = { create, refresh, invalidate };
160
- function OcSignInButton({
161
- scope: scope2,
162
- sessionPolicy,
163
- returnTo,
164
- onSignin,
165
- onSignInError,
166
- label = "sign in with oc",
167
- children,
168
- onClick,
169
- style,
170
- ...rest
171
- }) {
172
- const [pending, setPending] = React.useState(false);
173
- return /* @__PURE__ */ jsxs(
174
- "button",
175
- {
176
- type: "button",
177
- onClick: async (event2) => {
178
- onClick?.(event2);
179
- if (event2.defaultPrevented) return;
180
- setPending(true);
181
- try {
182
- const result = await session.create({ scope: scope2, sessionPolicy, returnTo });
183
- onSignin?.(result);
184
- } catch (err) {
185
- onSignInError?.(err instanceof Error ? err : new Error(String(err)));
186
- } finally {
187
- setPending(false);
188
- }
189
- },
190
- style: {
191
- display: "inline-flex",
192
- alignItems: "center",
193
- gap: 8,
194
- padding: "10px 16px",
195
- fontSize: 13,
196
- fontWeight: 600,
197
- fontFamily: 'ui-monospace, "JetBrains Mono", "SF Mono", Menlo, monospace',
198
- letterSpacing: "0.18em",
199
- textTransform: "uppercase",
200
- background: "#f97316",
201
- color: "#0b0909",
202
- border: "1px solid #f97316",
203
- borderRadius: 4,
204
- cursor: pending ? "progress" : "pointer",
205
- opacity: pending ? 0.7 : 1,
206
- ...style ?? {}
207
- },
208
- disabled: pending || rest.disabled,
209
- "data-oc-signin": true,
210
- ...rest,
211
- children: [
212
- /* @__PURE__ */ jsx(
213
- "span",
214
- {
215
- "aria-hidden": true,
216
- style: {
217
- display: "inline-block",
218
- width: 12,
219
- height: 12,
220
- background: "#0b0909"
221
- }
222
- }
223
- ),
224
- children ?? (pending ? "opening\u2026" : label)
225
- ]
226
- }
227
- );
228
- }
229
157
 
230
158
  // src/payment.ts
231
159
  async function authorize(opts) {
@@ -1557,6 +1485,6 @@ var oc = {
1557
1485
  identity
1558
1486
  };
1559
1487
 
1560
- export { ALL_EVENT_SUBTYPES, ARCHETYPE_TEMPLATES, EVENT_SUBTYPES, MAX_DROP_WINDOW_DAYS, MIN_INTEGRATOR_PRICE_SATS, MeClientError, OcSignInButton, PLATFORM_FEE_POLICY, clearBearerToken, computeFees, config, fromTemplate as configFromTemplate, event, family, federations, getArchetypeTemplate, getBearerToken, getOrigin, identity, oc, onTelemetry, parseTrustAttestationCount, payingAt, payment, refreshEnvelopeJwks, scope, session, setBearerToken, setOrigin, subtypesForClass, validateIntegratorConfig, verifyActivityAttestation, webhook, withRateLimitRetry };
1488
+ export { ALL_EVENT_SUBTYPES, ARCHETYPE_TEMPLATES, EVENT_SUBTYPES, MAX_DROP_WINDOW_DAYS, MIN_INTEGRATOR_PRICE_SATS, MeClientError, PLATFORM_FEE_POLICY, clearBearerToken, computeFees, config, fromTemplate as configFromTemplate, event, family, federations, getArchetypeTemplate, getBearerToken, getOrigin, identity, oc, onTelemetry, parseTrustAttestationCount, payingAt, payment, refreshEnvelopeJwks, scope, session, setBearerToken, setOrigin, subtypesForClass, validateIntegratorConfig, verifyActivityAttestation, webhook, withRateLimitRetry };
1561
1489
  //# sourceMappingURL=index.mjs.map
1562
1490
  //# sourceMappingURL=index.mjs.map