@whop/embedded-components-react-js 0.0.13-beta.6 → 1.0.0-beta.11

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 (61) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/chat/elements/index.d.ts +1 -0
  3. package/dist/chat/elements/index.js +3 -1
  4. package/dist/chat/elements/index.js.map +1 -1
  5. package/dist/chat/elements/index.mjs +2 -1
  6. package/dist/chat/elements/index.mjs.map +1 -1
  7. package/dist/{payouts/elements/total-balance-breakdown.d.ts → chat/elements/search-element.d.ts} +3 -3
  8. package/dist/{payouts/elements/total-balance-breakdown.js → chat/elements/search-element.js} +8 -8
  9. package/dist/chat/elements/search-element.js.map +1 -0
  10. package/dist/chat/elements/search-element.mjs +8 -0
  11. package/dist/chat/elements/search-element.mjs.map +1 -0
  12. package/dist/chat/index.d.ts +1 -0
  13. package/dist/chat/with-fallback.js.map +1 -1
  14. package/dist/chat/with-fallback.mjs.map +1 -1
  15. package/dist/index.d.ts +9 -5
  16. package/dist/payouts/elements/{bnpl-reserve-balance-breakdown.d.ts → available-cash-breakdown.d.ts} +3 -3
  17. package/dist/payouts/elements/{bnpl-reserve-balance-breakdown.js → available-cash-breakdown.js} +8 -8
  18. package/dist/payouts/elements/available-cash-breakdown.js.map +1 -0
  19. package/dist/payouts/elements/available-cash-breakdown.mjs +8 -0
  20. package/dist/payouts/elements/available-cash-breakdown.mjs.map +1 -0
  21. package/dist/payouts/elements/{regular-reserve-balance-breakdown.d.ts → balances.d.ts} +3 -3
  22. package/dist/payouts/elements/{regular-reserve-balance-breakdown.js → balances.js} +8 -8
  23. package/dist/payouts/elements/balances.js.map +1 -0
  24. package/dist/payouts/elements/balances.mjs +8 -0
  25. package/dist/payouts/elements/balances.mjs.map +1 -0
  26. package/dist/payouts/elements/index.d.ts +8 -5
  27. package/dist/payouts/elements/index.js +8 -5
  28. package/dist/payouts/elements/index.js.map +1 -1
  29. package/dist/payouts/elements/index.mjs +8 -5
  30. package/dist/payouts/elements/index.mjs.map +1 -1
  31. package/dist/payouts/elements/pending-breakdown.d.ts +11 -0
  32. package/dist/payouts/elements/pending-breakdown.js +30 -0
  33. package/dist/payouts/elements/pending-breakdown.js.map +1 -0
  34. package/dist/payouts/elements/pending-breakdown.mjs +8 -0
  35. package/dist/payouts/elements/pending-breakdown.mjs.map +1 -0
  36. package/dist/payouts/elements/reserve-breakdown.d.ts +11 -0
  37. package/dist/payouts/elements/reserve-breakdown.js +30 -0
  38. package/dist/payouts/elements/reserve-breakdown.js.map +1 -0
  39. package/dist/payouts/elements/reserve-breakdown.mjs +8 -0
  40. package/dist/payouts/elements/reserve-breakdown.mjs.map +1 -0
  41. package/dist/payouts/elements/treasury-breakdown.d.ts +11 -0
  42. package/dist/payouts/elements/treasury-breakdown.js +30 -0
  43. package/dist/payouts/elements/treasury-breakdown.js.map +1 -0
  44. package/dist/payouts/elements/treasury-breakdown.mjs +8 -0
  45. package/dist/payouts/elements/treasury-breakdown.mjs.map +1 -0
  46. package/dist/payouts/elements/withdraw.d.ts +11 -0
  47. package/dist/payouts/elements/withdraw.js +30 -0
  48. package/dist/payouts/elements/withdraw.js.map +1 -0
  49. package/dist/payouts/elements/withdraw.mjs +8 -0
  50. package/dist/payouts/elements/withdraw.mjs.map +1 -0
  51. package/dist/payouts/index.d.ts +8 -5
  52. package/package.json +3 -3
  53. package/dist/payouts/elements/bnpl-reserve-balance-breakdown.js.map +0 -1
  54. package/dist/payouts/elements/bnpl-reserve-balance-breakdown.mjs +0 -8
  55. package/dist/payouts/elements/bnpl-reserve-balance-breakdown.mjs.map +0 -1
  56. package/dist/payouts/elements/regular-reserve-balance-breakdown.js.map +0 -1
  57. package/dist/payouts/elements/regular-reserve-balance-breakdown.mjs +0 -8
  58. package/dist/payouts/elements/regular-reserve-balance-breakdown.mjs.map +0 -1
  59. package/dist/payouts/elements/total-balance-breakdown.js.map +0 -1
  60. package/dist/payouts/elements/total-balance-breakdown.mjs +0 -8
  61. package/dist/payouts/elements/total-balance-breakdown.mjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @whop/embedded-components-react-js
2
2
 
3
+ ## 1.0.0-beta.11
4
+
5
+ ### Major Changes
6
+
7
+ - ea27ce0: New train: apollo
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [ea27ce0]
12
+ - @whop/embedded-components-vanilla-js@1.0.0-beta.11
13
+
3
14
  ## 0.0.1
4
15
 
5
16
  ### Patch Changes
@@ -1,5 +1,6 @@
1
1
  export { ChatElement } from './chat.js';
2
2
  export { DmsListElement } from './dms-list.js';
3
+ export { SearchElement } from './search-element.js';
3
4
  import '../with-fallback.js';
4
5
  import '@whop/embedded-components-vanilla-js/types';
5
6
  import 'react';
@@ -19,9 +19,11 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
19
19
  var elements_exports = {};
20
20
  __export(elements_exports, {
21
21
  ChatElement: () => import_chat.ChatElement,
22
- DmsListElement: () => import_dms_list.DmsListElement
22
+ DmsListElement: () => import_dms_list.DmsListElement,
23
+ SearchElement: () => import_search_element.SearchElement
23
24
  });
24
25
  module.exports = __toCommonJS(elements_exports);
25
26
  var import_chat = require("./chat");
26
27
  var import_dms_list = require("./dms-list");
28
+ var import_search_element = require("./search-element");
27
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/chat/elements/index.tsx"],"sourcesContent":["export { ChatElement } from \"./chat\";\nexport { DmsListElement } from \"./dms-list\";\n\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA4B;AAC5B,sBAA+B;","names":[]}
1
+ {"version":3,"sources":["../../../src/chat/elements/index.tsx"],"sourcesContent":["export { ChatElement } from \"./chat\";\nexport { DmsListElement } from \"./dms-list\";\nexport { SearchElement } from \"./search-element\";\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA4B;AAC5B,sBAA+B;AAC/B,4BAA8B;","names":[]}
@@ -1,4 +1,5 @@
1
1
  import "../../chunk-NSSMTXJJ.mjs";
2
2
  import { ChatElement } from "./chat.mjs";
3
3
  import { DmsListElement } from "./dms-list.mjs";
4
- export { ChatElement, DmsListElement };
4
+ import { SearchElement } from "./search-element.mjs";
5
+ export { ChatElement, DmsListElement, SearchElement };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/chat/elements/index.tsx"],"sourcesContent":["export { ChatElement } from \"./chat\";\nexport { DmsListElement } from \"./dms-list\";\n\n"],"mappings":";AAAA,SAAS,mBAAmB;AAC5B,SAAS,sBAAsB;","names":[]}
1
+ {"version":3,"sources":["../../../src/chat/elements/index.tsx"],"sourcesContent":["export { ChatElement } from \"./chat\";\nexport { DmsListElement } from \"./dms-list\";\nexport { SearchElement } from \"./search-element\";\n"],"mappings":";AAAA,SAAS,mBAAmB;AAC5B,SAAS,sBAAsB;AAC/B,SAAS,qBAAqB;","names":[]}
@@ -2,10 +2,10 @@ import { WithFallbackPropsOptional } from '../with-fallback.js';
2
2
  import * as _whop_embedded_components_vanilla_js_types from '@whop/embedded-components-vanilla-js/types';
3
3
  import 'react';
4
4
 
5
- declare const TotalBalanceBreakdownElement: {
6
- (props: WithFallbackPropsOptional<_whop_embedded_components_vanilla_js_types.TotalBalanceBreakdownElementOptions>): React.ReactNode;
5
+ declare const SearchElement: {
6
+ (props: WithFallbackPropsOptional<_whop_embedded_components_vanilla_js_types.SearchElementOptions>): React.ReactNode;
7
7
  displayName: string;
8
8
  type: string;
9
9
  };
10
10
 
11
- export { TotalBalanceBreakdownElement };
11
+ export { SearchElement };
@@ -17,14 +17,14 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
- var total_balance_breakdown_exports = {};
21
- __export(total_balance_breakdown_exports, {
22
- TotalBalanceBreakdownElement: () => TotalBalanceBreakdownElement
20
+ var search_element_exports = {};
21
+ __export(search_element_exports, {
22
+ SearchElement: () => SearchElement
23
23
  });
24
- module.exports = __toCommonJS(total_balance_breakdown_exports);
24
+ module.exports = __toCommonJS(search_element_exports);
25
25
  var import_with_fallback = require("../with-fallback");
26
- const TotalBalanceBreakdownElement = (0, import_with_fallback.withFallback)({
27
- displayName: "TotalBalanceBreakdownElement",
28
- type: "total-balance-breakdown-element"
26
+ const SearchElement = (0, import_with_fallback.withFallback)({
27
+ displayName: "SearchElement",
28
+ type: "search-element"
29
29
  });
30
- //# sourceMappingURL=total-balance-breakdown.js.map
30
+ //# sourceMappingURL=search-element.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/chat/elements/search-element.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../with-fallback\";\n\nexport const SearchElement = withFallback({\n\tdisplayName: \"SearchElement\",\n\ttype: \"search-element\",\n} as const);\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,2BAA6B;AAEtB,MAAM,oBAAgB,mCAAa;AAAA,EACzC,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import "../../chunk-NSSMTXJJ.mjs";
3
+ import { withFallback } from "../with-fallback.mjs";
4
+ const SearchElement = withFallback({
5
+ displayName: "SearchElement",
6
+ type: "search-element"
7
+ });
8
+ export { SearchElement };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/chat/elements/search-element.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../with-fallback\";\n\nexport const SearchElement = withFallback({\n\tdisplayName: \"SearchElement\",\n\ttype: \"search-element\",\n} as const);\n"],"mappings":";;AAEA,SAAS,oBAAoB;AAEtB,MAAM,gBAAgB,aAAa;AAAA,EACzC,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
@@ -1,5 +1,6 @@
1
1
  export { ChatElement } from './elements/chat.js';
2
2
  export { DmsListElement } from './elements/dms-list.js';
3
+ export { SearchElement } from './elements/search-element.js';
3
4
  export { ChatSession, useChatSession } from './session.js';
4
5
  import './with-fallback.js';
5
6
  import '@whop/embedded-components-vanilla-js/types';
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/chat/with-fallback.tsx"],"sourcesContent":["\"use client\";\n\nimport type {\n\tChatSessionElements,\n\tWhopElement,\n} from \"@whop/embedded-components-vanilla-js/types\";\nimport React, { useEffect, useLayoutEffect, useMemo, useRef } from \"react\";\nimport { useElementSnapshot } from \"../lib/use-element-snapshot\";\nimport { useChatSession } from \"./session\";\n\n/**\n * Valid element type strings that can be passed to createElement.\n */\ntype ElementType = keyof ChatSessionElements;\n\n/**\n * Extract the options type for a given element type using indexed access.\n * PayoutsSessionElements maps element types to [Options, Element] tuples.\n */\ntype ElementOptionsFor<T extends ElementType> = ChatSessionElements[T][0];\n\n/**\n * Base element type that all created elements conform to.\n * Using WhopElement<any, any, any> gives us access to common methods\n * (mount, unmount, on, off, updateOptions) without union type issues.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype BaseElement = WhopElement<any, any, any>;\n\n/**\n * Component definition with a constrained element type.\n * The type must be a valid element type from the SDK.\n */\ninterface ElementComponentDefinition<T extends ElementType = ElementType> {\n\tdisplayName: string;\n\ttype: T;\n}\n\ninterface WithFallbackPropsBase {\n\tclassName?: string;\n\tstyle?: React.CSSProperties;\n\tonReady?: () => void;\n\tfallback?: React.ReactNode;\n}\n\nexport interface WithFallbackPropsRequired<TOptions>\n\textends WithFallbackPropsBase {\n\toptions: TOptions;\n}\n\nexport interface WithFallbackPropsOptional<TOptions>\n\textends WithFallbackPropsBase {\n\toptions?: TOptions;\n}\n\ntype WithFallbackComponent<TOptions, TRequired extends boolean> = {\n\t(\n\t\tprops: TRequired extends true\n\t\t\t? WithFallbackPropsRequired<TOptions>\n\t\t\t: WithFallbackPropsOptional<TOptions>,\n\t): React.ReactNode;\n\tdisplayName: string;\n\ttype: string;\n};\n\n/**\n * Creates a React component that wraps an embedded element with fallback support.\n *\n * @example\n * ```tsx\n * // Type-safe: options type is inferred from the element type\n * export const ChatElement = withFallback({\n * displayName: \"ChatElement\",\n * type: \"chat-element\",\n * } as const);\n *\n * // Usage - TypeScript knows the correct options type\n * <ChatElement options={{ channelId: \"channel_xxx\" }} />\n * ```\n */\nexport function withFallback<\n\tconst T extends ElementType,\n\tTRequired extends boolean = false,\n>(\n\tComponent: ElementComponentDefinition<T>,\n): WithFallbackComponent<ElementOptionsFor<T>, TRequired> {\n\ttype TOptions = ElementOptionsFor<T>;\n\n\tfunction WrappedElement({\n\t\toptions,\n\t\tclassName,\n\t\tstyle,\n\t\tonReady,\n\t\tfallback,\n\t}: WithFallbackPropsOptional<TOptions>) {\n\t\tconst chatSession = useChatSession();\n\t\tconst ref = useRef<HTMLDivElement>(null);\n\n\t\tconst element = useMemo((): BaseElement | null => {\n\t\t\tif (!chatSession) return null;\n\t\t\t// Safe: T is constrained to valid element types, and options matches T\n\t\t\treturn chatSession.createElement(Component, options ?? {} as TOptions);\n\t\t}, [chatSession]);\n\n\t\tconst elementSnapshot = useElementSnapshot(element);\n\n\t\tconst isReady = elementSnapshot?.state === \"ready\";\n\n\t\tuseEffect(() => {\n\t\t\tif (!element) return;\n\t\t\telement.updateOptions(options ?? {});\n\t\t}, [options, element]);\n\n\t\tuseEffect(() => {\n\t\t\tif (!element || !onReady) return;\n\t\t\telement.on(\"ready\", onReady);\n\t\t\treturn () => {\n\t\t\t\telement.off(\"ready\", onReady);\n\t\t\t};\n\t\t}, [element, onReady]);\n\n\t\tuseLayoutEffect(() => {\n\t\t\tif (!element || !ref.current) return;\n\t\t\telement.mount(ref.current);\n\t\t\treturn () => {\n\t\t\t\telement.unmount();\n\t\t\t};\n\t\t}, [element, ref.current]);\n\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<div\n\t\t\t\t\tstyle={{ ...style, visibility: isReady ? undefined : \"hidden\" }}\n\t\t\t\t\tclassName={className}\n\t\t\t\t\tref={ref}\n\t\t\t\t/>\n\t\t\t\t{!isReady && (fallback ?? null)}\n\t\t\t</>\n\t\t);\n\t}\n\n\tWrappedElement.displayName = Component.displayName;\n\tWrappedElement.type = Component.type;\n\n\treturn WrappedElement as WithFallbackComponent<TOptions, TRequired>;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,mBAAmE;AACnE,kCAAmC;AACnC,qBAA+B;AAwExB,SAAS,aAIf,WACyD;AAGzD,WAAS,eAAe;AAAA,IACvB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD,GAAwC;AACvC,UAAM,kBAAc,+BAAe;AACnC,UAAM,UAAM,qBAAuB,IAAI;AAEvC,UAAM,cAAU,sBAAQ,MAA0B;AACjD,UAAI,CAAC,YAAa,QAAO;AAEzB,aAAO,YAAY,cAAc,WAAW,WAAW,CAAC,CAAa;AAAA,IACtE,GAAG,CAAC,WAAW,CAAC;AAEhB,UAAM,sBAAkB,gDAAmB,OAAO;AAElD,UAAM,UAAU,iBAAiB,UAAU;AAE3C,gCAAU,MAAM;AACf,UAAI,CAAC,QAAS;AACd,cAAQ,cAAc,WAAW,CAAC,CAAC;AAAA,IACpC,GAAG,CAAC,SAAS,OAAO,CAAC;AAErB,gCAAU,MAAM;AACf,UAAI,CAAC,WAAW,CAAC,QAAS;AAC1B,cAAQ,GAAG,SAAS,OAAO;AAC3B,aAAO,MAAM;AACZ,gBAAQ,IAAI,SAAS,OAAO;AAAA,MAC7B;AAAA,IACD,GAAG,CAAC,SAAS,OAAO,CAAC;AAErB,sCAAgB,MAAM;AACrB,UAAI,CAAC,WAAW,CAAC,IAAI,QAAS;AAC9B,cAAQ,MAAM,IAAI,OAAO;AACzB,aAAO,MAAM;AACZ,gBAAQ,QAAQ;AAAA,MACjB;AAAA,IACD,GAAG,CAAC,SAAS,IAAI,OAAO,CAAC;AAEzB,WACC,6BAAAA,QAAA,2BAAAA,QAAA,gBACC,6BAAAA,QAAA;AAAA,MAAC;AAAA;AAAA,QACA,OAAO,EAAE,GAAG,OAAO,YAAY,UAAU,SAAY,SAAS;AAAA,QAC9D;AAAA,QACA;AAAA;AAAA,IACD,GACC,CAAC,YAAY,YAAY,KAC3B;AAAA,EAEF;AAEA,iBAAe,cAAc,UAAU;AACvC,iBAAe,OAAO,UAAU;AAEhC,SAAO;AACR;","names":["React"]}
1
+ {"version":3,"sources":["../../src/chat/with-fallback.tsx"],"sourcesContent":["\"use client\";\n\nimport type {\n\tChatSessionElements,\n\tWhopElement,\n} from \"@whop/embedded-components-vanilla-js/types\";\nimport React, { useEffect, useLayoutEffect, useMemo, useRef } from \"react\";\nimport { useElementSnapshot } from \"../lib/use-element-snapshot\";\nimport { useChatSession } from \"./session\";\n\n/**\n * Valid element type strings that can be passed to createElement.\n */\ntype ElementType = keyof ChatSessionElements;\n\n/**\n * Extract the options type for a given element type using indexed access.\n * PayoutsSessionElements maps element types to [Options, Element] tuples.\n */\ntype ElementOptionsFor<T extends ElementType> = ChatSessionElements[T][0];\n\n/**\n * Base element type that all created elements conform to.\n * Using WhopElement<any, any, any> gives us access to common methods\n * (mount, unmount, on, off, updateOptions) without union type issues.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype BaseElement = WhopElement<any, any, any>;\n\n/**\n * Component definition with a constrained element type.\n * The type must be a valid element type from the SDK.\n */\ninterface ElementComponentDefinition<T extends ElementType = ElementType> {\n\tdisplayName: string;\n\ttype: T;\n}\n\ninterface WithFallbackPropsBase {\n\tclassName?: string;\n\tstyle?: React.CSSProperties;\n\tonReady?: () => void;\n\tfallback?: React.ReactNode;\n}\n\nexport interface WithFallbackPropsRequired<TOptions>\n\textends WithFallbackPropsBase {\n\toptions: TOptions;\n}\n\nexport interface WithFallbackPropsOptional<TOptions>\n\textends WithFallbackPropsBase {\n\toptions?: TOptions;\n}\n\ntype WithFallbackComponent<TOptions, TRequired extends boolean> = {\n\t(\n\t\tprops: TRequired extends true\n\t\t\t? WithFallbackPropsRequired<TOptions>\n\t\t\t: WithFallbackPropsOptional<TOptions>,\n\t): React.ReactNode;\n\tdisplayName: string;\n\ttype: string;\n};\n\n/**\n * Creates a React component that wraps an embedded element with fallback support.\n *\n * @example\n * ```tsx\n * // Type-safe: options type is inferred from the element type\n * export const ChatElement = withFallback({\n * displayName: \"ChatElement\",\n * type: \"chat-element\",\n * } as const);\n *\n * // Usage - TypeScript knows the correct options type\n * <ChatElement options={{ channelId: \"channel_xxx\" }} />\n * ```\n */\nexport function withFallback<\n\tconst T extends ElementType,\n\tTRequired extends boolean = false,\n>(\n\tComponent: ElementComponentDefinition<T>,\n): WithFallbackComponent<ElementOptionsFor<T>, TRequired> {\n\ttype TOptions = ElementOptionsFor<T>;\n\n\tfunction WrappedElement({\n\t\toptions,\n\t\tclassName,\n\t\tstyle,\n\t\tonReady,\n\t\tfallback,\n\t}: WithFallbackPropsOptional<TOptions>) {\n\t\tconst chatSession = useChatSession();\n\t\tconst ref = useRef<HTMLDivElement>(null);\n\n\t\tconst element = useMemo((): BaseElement | null => {\n\t\t\tif (!chatSession) return null;\n\t\t\t// Safe: T is constrained to valid element types, and options matches T\n\t\t\treturn chatSession.createElement(Component, options ?? ({} as TOptions));\n\t\t}, [chatSession]);\n\n\t\tconst elementSnapshot = useElementSnapshot(element);\n\n\t\tconst isReady = elementSnapshot?.state === \"ready\";\n\n\t\tuseEffect(() => {\n\t\t\tif (!element) return;\n\t\t\telement.updateOptions(options ?? {});\n\t\t}, [options, element]);\n\n\t\tuseEffect(() => {\n\t\t\tif (!element || !onReady) return;\n\t\t\telement.on(\"ready\", onReady);\n\t\t\treturn () => {\n\t\t\t\telement.off(\"ready\", onReady);\n\t\t\t};\n\t\t}, [element, onReady]);\n\n\t\tuseLayoutEffect(() => {\n\t\t\tif (!element || !ref.current) return;\n\t\t\telement.mount(ref.current);\n\t\t\treturn () => {\n\t\t\t\telement.unmount();\n\t\t\t};\n\t\t}, [element, ref.current]);\n\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<div\n\t\t\t\t\tstyle={{ ...style, visibility: isReady ? undefined : \"hidden\" }}\n\t\t\t\t\tclassName={className}\n\t\t\t\t\tref={ref}\n\t\t\t\t/>\n\t\t\t\t{!isReady && (fallback ?? null)}\n\t\t\t</>\n\t\t);\n\t}\n\n\tWrappedElement.displayName = Component.displayName;\n\tWrappedElement.type = Component.type;\n\n\treturn WrappedElement as WithFallbackComponent<TOptions, TRequired>;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,mBAAmE;AACnE,kCAAmC;AACnC,qBAA+B;AAwExB,SAAS,aAIf,WACyD;AAGzD,WAAS,eAAe;AAAA,IACvB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD,GAAwC;AACvC,UAAM,kBAAc,+BAAe;AACnC,UAAM,UAAM,qBAAuB,IAAI;AAEvC,UAAM,cAAU,sBAAQ,MAA0B;AACjD,UAAI,CAAC,YAAa,QAAO;AAEzB,aAAO,YAAY,cAAc,WAAW,WAAY,CAAC,CAAc;AAAA,IACxE,GAAG,CAAC,WAAW,CAAC;AAEhB,UAAM,sBAAkB,gDAAmB,OAAO;AAElD,UAAM,UAAU,iBAAiB,UAAU;AAE3C,gCAAU,MAAM;AACf,UAAI,CAAC,QAAS;AACd,cAAQ,cAAc,WAAW,CAAC,CAAC;AAAA,IACpC,GAAG,CAAC,SAAS,OAAO,CAAC;AAErB,gCAAU,MAAM;AACf,UAAI,CAAC,WAAW,CAAC,QAAS;AAC1B,cAAQ,GAAG,SAAS,OAAO;AAC3B,aAAO,MAAM;AACZ,gBAAQ,IAAI,SAAS,OAAO;AAAA,MAC7B;AAAA,IACD,GAAG,CAAC,SAAS,OAAO,CAAC;AAErB,sCAAgB,MAAM;AACrB,UAAI,CAAC,WAAW,CAAC,IAAI,QAAS;AAC9B,cAAQ,MAAM,IAAI,OAAO;AACzB,aAAO,MAAM;AACZ,gBAAQ,QAAQ;AAAA,MACjB;AAAA,IACD,GAAG,CAAC,SAAS,IAAI,OAAO,CAAC;AAEzB,WACC,6BAAAA,QAAA,2BAAAA,QAAA,gBACC,6BAAAA,QAAA;AAAA,MAAC;AAAA;AAAA,QACA,OAAO,EAAE,GAAG,OAAO,YAAY,UAAU,SAAY,SAAS;AAAA,QAC9D;AAAA,QACA;AAAA;AAAA,IACD,GACC,CAAC,YAAY,YAAY,KAC3B;AAAA,EAEF;AAEA,iBAAe,cAAc,UAAU;AACvC,iBAAe,OAAO,UAAU;AAEhC,SAAO;AACR;","names":["React"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/chat/with-fallback.tsx"],"sourcesContent":["\"use client\";\n\nimport type {\n\tChatSessionElements,\n\tWhopElement,\n} from \"@whop/embedded-components-vanilla-js/types\";\nimport React, { useEffect, useLayoutEffect, useMemo, useRef } from \"react\";\nimport { useElementSnapshot } from \"../lib/use-element-snapshot\";\nimport { useChatSession } from \"./session\";\n\n/**\n * Valid element type strings that can be passed to createElement.\n */\ntype ElementType = keyof ChatSessionElements;\n\n/**\n * Extract the options type for a given element type using indexed access.\n * PayoutsSessionElements maps element types to [Options, Element] tuples.\n */\ntype ElementOptionsFor<T extends ElementType> = ChatSessionElements[T][0];\n\n/**\n * Base element type that all created elements conform to.\n * Using WhopElement<any, any, any> gives us access to common methods\n * (mount, unmount, on, off, updateOptions) without union type issues.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype BaseElement = WhopElement<any, any, any>;\n\n/**\n * Component definition with a constrained element type.\n * The type must be a valid element type from the SDK.\n */\ninterface ElementComponentDefinition<T extends ElementType = ElementType> {\n\tdisplayName: string;\n\ttype: T;\n}\n\ninterface WithFallbackPropsBase {\n\tclassName?: string;\n\tstyle?: React.CSSProperties;\n\tonReady?: () => void;\n\tfallback?: React.ReactNode;\n}\n\nexport interface WithFallbackPropsRequired<TOptions>\n\textends WithFallbackPropsBase {\n\toptions: TOptions;\n}\n\nexport interface WithFallbackPropsOptional<TOptions>\n\textends WithFallbackPropsBase {\n\toptions?: TOptions;\n}\n\ntype WithFallbackComponent<TOptions, TRequired extends boolean> = {\n\t(\n\t\tprops: TRequired extends true\n\t\t\t? WithFallbackPropsRequired<TOptions>\n\t\t\t: WithFallbackPropsOptional<TOptions>,\n\t): React.ReactNode;\n\tdisplayName: string;\n\ttype: string;\n};\n\n/**\n * Creates a React component that wraps an embedded element with fallback support.\n *\n * @example\n * ```tsx\n * // Type-safe: options type is inferred from the element type\n * export const ChatElement = withFallback({\n * displayName: \"ChatElement\",\n * type: \"chat-element\",\n * } as const);\n *\n * // Usage - TypeScript knows the correct options type\n * <ChatElement options={{ channelId: \"channel_xxx\" }} />\n * ```\n */\nexport function withFallback<\n\tconst T extends ElementType,\n\tTRequired extends boolean = false,\n>(\n\tComponent: ElementComponentDefinition<T>,\n): WithFallbackComponent<ElementOptionsFor<T>, TRequired> {\n\ttype TOptions = ElementOptionsFor<T>;\n\n\tfunction WrappedElement({\n\t\toptions,\n\t\tclassName,\n\t\tstyle,\n\t\tonReady,\n\t\tfallback,\n\t}: WithFallbackPropsOptional<TOptions>) {\n\t\tconst chatSession = useChatSession();\n\t\tconst ref = useRef<HTMLDivElement>(null);\n\n\t\tconst element = useMemo((): BaseElement | null => {\n\t\t\tif (!chatSession) return null;\n\t\t\t// Safe: T is constrained to valid element types, and options matches T\n\t\t\treturn chatSession.createElement(Component, options ?? {} as TOptions);\n\t\t}, [chatSession]);\n\n\t\tconst elementSnapshot = useElementSnapshot(element);\n\n\t\tconst isReady = elementSnapshot?.state === \"ready\";\n\n\t\tuseEffect(() => {\n\t\t\tif (!element) return;\n\t\t\telement.updateOptions(options ?? {});\n\t\t}, [options, element]);\n\n\t\tuseEffect(() => {\n\t\t\tif (!element || !onReady) return;\n\t\t\telement.on(\"ready\", onReady);\n\t\t\treturn () => {\n\t\t\t\telement.off(\"ready\", onReady);\n\t\t\t};\n\t\t}, [element, onReady]);\n\n\t\tuseLayoutEffect(() => {\n\t\t\tif (!element || !ref.current) return;\n\t\t\telement.mount(ref.current);\n\t\t\treturn () => {\n\t\t\t\telement.unmount();\n\t\t\t};\n\t\t}, [element, ref.current]);\n\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<div\n\t\t\t\t\tstyle={{ ...style, visibility: isReady ? undefined : \"hidden\" }}\n\t\t\t\t\tclassName={className}\n\t\t\t\t\tref={ref}\n\t\t\t\t/>\n\t\t\t\t{!isReady && (fallback ?? null)}\n\t\t\t</>\n\t\t);\n\t}\n\n\tWrappedElement.displayName = Component.displayName;\n\tWrappedElement.type = Component.type;\n\n\treturn WrappedElement as WithFallbackComponent<TOptions, TRequired>;\n}\n"],"mappings":";;AAMA,OAAO,SAAS,WAAW,iBAAiB,SAAS,cAAc;AACnE,SAAS,0BAA0B;AACnC,SAAS,sBAAsB;AAwExB,SAAS,aAIf,WACyD;AAGzD,WAAS,eAAe;AAAA,IACvB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD,GAAwC;AACvC,UAAM,cAAc,eAAe;AACnC,UAAM,MAAM,OAAuB,IAAI;AAEvC,UAAM,UAAU,QAAQ,MAA0B;AACjD,UAAI,CAAC,YAAa,QAAO;AAEzB,aAAO,YAAY,cAAc,WAAW,WAAW,CAAC,CAAa;AAAA,IACtE,GAAG,CAAC,WAAW,CAAC;AAEhB,UAAM,kBAAkB,mBAAmB,OAAO;AAElD,UAAM,UAAU,iBAAiB,UAAU;AAE3C,cAAU,MAAM;AACf,UAAI,CAAC,QAAS;AACd,cAAQ,cAAc,WAAW,CAAC,CAAC;AAAA,IACpC,GAAG,CAAC,SAAS,OAAO,CAAC;AAErB,cAAU,MAAM;AACf,UAAI,CAAC,WAAW,CAAC,QAAS;AAC1B,cAAQ,GAAG,SAAS,OAAO;AAC3B,aAAO,MAAM;AACZ,gBAAQ,IAAI,SAAS,OAAO;AAAA,MAC7B;AAAA,IACD,GAAG,CAAC,SAAS,OAAO,CAAC;AAErB,oBAAgB,MAAM;AACrB,UAAI,CAAC,WAAW,CAAC,IAAI,QAAS;AAC9B,cAAQ,MAAM,IAAI,OAAO;AACzB,aAAO,MAAM;AACZ,gBAAQ,QAAQ;AAAA,MACjB;AAAA,IACD,GAAG,CAAC,SAAS,IAAI,OAAO,CAAC;AAEzB,WACC,0DACC;AAAA,MAAC;AAAA;AAAA,QACA,OAAO,EAAE,GAAG,OAAO,YAAY,UAAU,SAAY,SAAS;AAAA,QAC9D;AAAA,QACA;AAAA;AAAA,IACD,GACC,CAAC,YAAY,YAAY,KAC3B;AAAA,EAEF;AAEA,iBAAe,cAAc,UAAU;AACvC,iBAAe,OAAO,UAAU;AAEhC,SAAO;AACR;","names":[]}
1
+ {"version":3,"sources":["../../src/chat/with-fallback.tsx"],"sourcesContent":["\"use client\";\n\nimport type {\n\tChatSessionElements,\n\tWhopElement,\n} from \"@whop/embedded-components-vanilla-js/types\";\nimport React, { useEffect, useLayoutEffect, useMemo, useRef } from \"react\";\nimport { useElementSnapshot } from \"../lib/use-element-snapshot\";\nimport { useChatSession } from \"./session\";\n\n/**\n * Valid element type strings that can be passed to createElement.\n */\ntype ElementType = keyof ChatSessionElements;\n\n/**\n * Extract the options type for a given element type using indexed access.\n * PayoutsSessionElements maps element types to [Options, Element] tuples.\n */\ntype ElementOptionsFor<T extends ElementType> = ChatSessionElements[T][0];\n\n/**\n * Base element type that all created elements conform to.\n * Using WhopElement<any, any, any> gives us access to common methods\n * (mount, unmount, on, off, updateOptions) without union type issues.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype BaseElement = WhopElement<any, any, any>;\n\n/**\n * Component definition with a constrained element type.\n * The type must be a valid element type from the SDK.\n */\ninterface ElementComponentDefinition<T extends ElementType = ElementType> {\n\tdisplayName: string;\n\ttype: T;\n}\n\ninterface WithFallbackPropsBase {\n\tclassName?: string;\n\tstyle?: React.CSSProperties;\n\tonReady?: () => void;\n\tfallback?: React.ReactNode;\n}\n\nexport interface WithFallbackPropsRequired<TOptions>\n\textends WithFallbackPropsBase {\n\toptions: TOptions;\n}\n\nexport interface WithFallbackPropsOptional<TOptions>\n\textends WithFallbackPropsBase {\n\toptions?: TOptions;\n}\n\ntype WithFallbackComponent<TOptions, TRequired extends boolean> = {\n\t(\n\t\tprops: TRequired extends true\n\t\t\t? WithFallbackPropsRequired<TOptions>\n\t\t\t: WithFallbackPropsOptional<TOptions>,\n\t): React.ReactNode;\n\tdisplayName: string;\n\ttype: string;\n};\n\n/**\n * Creates a React component that wraps an embedded element with fallback support.\n *\n * @example\n * ```tsx\n * // Type-safe: options type is inferred from the element type\n * export const ChatElement = withFallback({\n * displayName: \"ChatElement\",\n * type: \"chat-element\",\n * } as const);\n *\n * // Usage - TypeScript knows the correct options type\n * <ChatElement options={{ channelId: \"channel_xxx\" }} />\n * ```\n */\nexport function withFallback<\n\tconst T extends ElementType,\n\tTRequired extends boolean = false,\n>(\n\tComponent: ElementComponentDefinition<T>,\n): WithFallbackComponent<ElementOptionsFor<T>, TRequired> {\n\ttype TOptions = ElementOptionsFor<T>;\n\n\tfunction WrappedElement({\n\t\toptions,\n\t\tclassName,\n\t\tstyle,\n\t\tonReady,\n\t\tfallback,\n\t}: WithFallbackPropsOptional<TOptions>) {\n\t\tconst chatSession = useChatSession();\n\t\tconst ref = useRef<HTMLDivElement>(null);\n\n\t\tconst element = useMemo((): BaseElement | null => {\n\t\t\tif (!chatSession) return null;\n\t\t\t// Safe: T is constrained to valid element types, and options matches T\n\t\t\treturn chatSession.createElement(Component, options ?? ({} as TOptions));\n\t\t}, [chatSession]);\n\n\t\tconst elementSnapshot = useElementSnapshot(element);\n\n\t\tconst isReady = elementSnapshot?.state === \"ready\";\n\n\t\tuseEffect(() => {\n\t\t\tif (!element) return;\n\t\t\telement.updateOptions(options ?? {});\n\t\t}, [options, element]);\n\n\t\tuseEffect(() => {\n\t\t\tif (!element || !onReady) return;\n\t\t\telement.on(\"ready\", onReady);\n\t\t\treturn () => {\n\t\t\t\telement.off(\"ready\", onReady);\n\t\t\t};\n\t\t}, [element, onReady]);\n\n\t\tuseLayoutEffect(() => {\n\t\t\tif (!element || !ref.current) return;\n\t\t\telement.mount(ref.current);\n\t\t\treturn () => {\n\t\t\t\telement.unmount();\n\t\t\t};\n\t\t}, [element, ref.current]);\n\n\t\treturn (\n\t\t\t<>\n\t\t\t\t<div\n\t\t\t\t\tstyle={{ ...style, visibility: isReady ? undefined : \"hidden\" }}\n\t\t\t\t\tclassName={className}\n\t\t\t\t\tref={ref}\n\t\t\t\t/>\n\t\t\t\t{!isReady && (fallback ?? null)}\n\t\t\t</>\n\t\t);\n\t}\n\n\tWrappedElement.displayName = Component.displayName;\n\tWrappedElement.type = Component.type;\n\n\treturn WrappedElement as WithFallbackComponent<TOptions, TRequired>;\n}\n"],"mappings":";;AAMA,OAAO,SAAS,WAAW,iBAAiB,SAAS,cAAc;AACnE,SAAS,0BAA0B;AACnC,SAAS,sBAAsB;AAwExB,SAAS,aAIf,WACyD;AAGzD,WAAS,eAAe;AAAA,IACvB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD,GAAwC;AACvC,UAAM,cAAc,eAAe;AACnC,UAAM,MAAM,OAAuB,IAAI;AAEvC,UAAM,UAAU,QAAQ,MAA0B;AACjD,UAAI,CAAC,YAAa,QAAO;AAEzB,aAAO,YAAY,cAAc,WAAW,WAAY,CAAC,CAAc;AAAA,IACxE,GAAG,CAAC,WAAW,CAAC;AAEhB,UAAM,kBAAkB,mBAAmB,OAAO;AAElD,UAAM,UAAU,iBAAiB,UAAU;AAE3C,cAAU,MAAM;AACf,UAAI,CAAC,QAAS;AACd,cAAQ,cAAc,WAAW,CAAC,CAAC;AAAA,IACpC,GAAG,CAAC,SAAS,OAAO,CAAC;AAErB,cAAU,MAAM;AACf,UAAI,CAAC,WAAW,CAAC,QAAS;AAC1B,cAAQ,GAAG,SAAS,OAAO;AAC3B,aAAO,MAAM;AACZ,gBAAQ,IAAI,SAAS,OAAO;AAAA,MAC7B;AAAA,IACD,GAAG,CAAC,SAAS,OAAO,CAAC;AAErB,oBAAgB,MAAM;AACrB,UAAI,CAAC,WAAW,CAAC,IAAI,QAAS;AAC9B,cAAQ,MAAM,IAAI,OAAO;AACzB,aAAO,MAAM;AACZ,gBAAQ,QAAQ;AAAA,MACjB;AAAA,IACD,GAAG,CAAC,SAAS,IAAI,OAAO,CAAC;AAEzB,WACC,0DACC;AAAA,MAAC;AAAA;AAAA,QACA,OAAO,EAAE,GAAG,OAAO,YAAY,UAAU,SAAY,SAAS;AAAA,QAC9D;AAAA,QACA;AAAA;AAAA,IACD,GACC,CAAC,YAAY,YAAY,KAC3B;AAAA,EAEF;AAEA,iBAAe,cAAc,UAAU;AACvC,iBAAe,OAAO,UAAU;AAEhC,SAAO;AACR;","names":[]}
package/dist/index.d.ts CHANGED
@@ -1,21 +1,25 @@
1
1
  export { PayoutsSession, usePayoutsSession } from './payouts/session.js';
2
2
  export { AddPayoutMethodElement } from './payouts/elements/add-payout-method.js';
3
+ export { AvailableCashBreakdownElement } from './payouts/elements/available-cash-breakdown.js';
3
4
  export { AutomaticWithdrawElement } from './payouts/elements/automatic-withdraw.js';
4
5
  export { BalanceElement } from './payouts/elements/balance.js';
6
+ export { BalancesElement } from './payouts/elements/balances.js';
5
7
  export { ChangeAccountCountryElement } from './payouts/elements/change-account-country.js';
8
+ export { GenerateWithdrawalReceiptElement } from './payouts/elements/generate-withdrawal-receipt.js';
9
+ export { PendingBreakdownElement } from './payouts/elements/pending-breakdown.js';
10
+ export { ReserveBreakdownElement } from './payouts/elements/reserve-breakdown.js';
6
11
  export { ResetAccountElement } from './payouts/elements/reset-account.js';
12
+ export { StatusBannerElement } from './payouts/elements/status-banner.js';
13
+ export { TreasuryBreakdownElement } from './payouts/elements/treasury-breakdown.js';
7
14
  export { VerifyElement } from './payouts/elements/verify.js';
15
+ export { WithdrawElement } from './payouts/elements/withdraw.js';
8
16
  export { WithdrawButtonElement } from './payouts/elements/withdraw-button.js';
9
17
  export { WithdrawalBreakdownElement } from './payouts/elements/withdrawal-breakdown.js';
10
18
  export { WithdrawalsElement } from './payouts/elements/withdrawals.js';
11
- export { TotalBalanceBreakdownElement } from './payouts/elements/total-balance-breakdown.js';
12
- export { RegularReserveBalanceBreakdownElement } from './payouts/elements/regular-reserve-balance-breakdown.js';
13
- export { BnplReserveBalanceBreakdownElement } from './payouts/elements/bnpl-reserve-balance-breakdown.js';
14
- export { GenerateWithdrawalReceiptElement } from './payouts/elements/generate-withdrawal-receipt.js';
15
- export { StatusBannerElement } from './payouts/elements/status-banner.js';
16
19
  export { usePayoutsSessionRef } from './payouts/use-session-ref.js';
17
20
  export { ChatElement } from './chat/elements/chat.js';
18
21
  export { DmsListElement } from './chat/elements/dms-list.js';
22
+ export { SearchElement } from './chat/elements/search-element.js';
19
23
  export { ChatSession, useChatSession } from './chat/session.js';
20
24
  export { useChatSessionRef } from './chat/use-session-ref.js';
21
25
  export { Elements, useElements } from './provider.js';
@@ -2,10 +2,10 @@ import { WithFallbackPropsOptional } from '../with-fallback.js';
2
2
  import * as _whop_embedded_components_vanilla_js_types from '@whop/embedded-components-vanilla-js/types';
3
3
  import 'react';
4
4
 
5
- declare const BnplReserveBalanceBreakdownElement: {
6
- (props: WithFallbackPropsOptional<_whop_embedded_components_vanilla_js_types.BnplReserveBalanceBreakdownElementOptions>): React.ReactNode;
5
+ declare const AvailableCashBreakdownElement: {
6
+ (props: WithFallbackPropsOptional<_whop_embedded_components_vanilla_js_types.AvailableCashBreakdownElementOptions>): React.ReactNode;
7
7
  displayName: string;
8
8
  type: string;
9
9
  };
10
10
 
11
- export { BnplReserveBalanceBreakdownElement };
11
+ export { AvailableCashBreakdownElement };
@@ -17,14 +17,14 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
- var bnpl_reserve_balance_breakdown_exports = {};
21
- __export(bnpl_reserve_balance_breakdown_exports, {
22
- BnplReserveBalanceBreakdownElement: () => BnplReserveBalanceBreakdownElement
20
+ var available_cash_breakdown_exports = {};
21
+ __export(available_cash_breakdown_exports, {
22
+ AvailableCashBreakdownElement: () => AvailableCashBreakdownElement
23
23
  });
24
- module.exports = __toCommonJS(bnpl_reserve_balance_breakdown_exports);
24
+ module.exports = __toCommonJS(available_cash_breakdown_exports);
25
25
  var import_with_fallback = require("../with-fallback");
26
- const BnplReserveBalanceBreakdownElement = (0, import_with_fallback.withFallback)({
27
- displayName: "BnplReserveBalanceBreakdownElement",
28
- type: "bnpl-reserve-balance-breakdown-element"
26
+ const AvailableCashBreakdownElement = (0, import_with_fallback.withFallback)({
27
+ displayName: "AvailableCashBreakdownElement",
28
+ type: "available-cash-breakdown-element"
29
29
  });
30
- //# sourceMappingURL=bnpl-reserve-balance-breakdown.js.map
30
+ //# sourceMappingURL=available-cash-breakdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/payouts/elements/available-cash-breakdown.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../with-fallback\";\n\nexport const AvailableCashBreakdownElement = withFallback({\n\tdisplayName: \"AvailableCashBreakdownElement\",\n\ttype: \"available-cash-breakdown-element\",\n} as const);\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,2BAA6B;AAEtB,MAAM,oCAAgC,mCAAa;AAAA,EACzD,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import "../../chunk-NSSMTXJJ.mjs";
3
+ import { withFallback } from "../with-fallback.mjs";
4
+ const AvailableCashBreakdownElement = withFallback({
5
+ displayName: "AvailableCashBreakdownElement",
6
+ type: "available-cash-breakdown-element"
7
+ });
8
+ export { AvailableCashBreakdownElement };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/payouts/elements/available-cash-breakdown.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../with-fallback\";\n\nexport const AvailableCashBreakdownElement = withFallback({\n\tdisplayName: \"AvailableCashBreakdownElement\",\n\ttype: \"available-cash-breakdown-element\",\n} as const);\n"],"mappings":";;AAEA,SAAS,oBAAoB;AAEtB,MAAM,gCAAgC,aAAa;AAAA,EACzD,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
@@ -2,10 +2,10 @@ import { WithFallbackPropsOptional } from '../with-fallback.js';
2
2
  import * as _whop_embedded_components_vanilla_js_types from '@whop/embedded-components-vanilla-js/types';
3
3
  import 'react';
4
4
 
5
- declare const RegularReserveBalanceBreakdownElement: {
6
- (props: WithFallbackPropsOptional<_whop_embedded_components_vanilla_js_types.RegularReserveBalanceBreakdownElementOptions>): React.ReactNode;
5
+ declare const BalancesElement: {
6
+ (props: WithFallbackPropsOptional<_whop_embedded_components_vanilla_js_types.BalancesElementOptions>): React.ReactNode;
7
7
  displayName: string;
8
8
  type: string;
9
9
  };
10
10
 
11
- export { RegularReserveBalanceBreakdownElement };
11
+ export { BalancesElement };
@@ -17,14 +17,14 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
- var regular_reserve_balance_breakdown_exports = {};
21
- __export(regular_reserve_balance_breakdown_exports, {
22
- RegularReserveBalanceBreakdownElement: () => RegularReserveBalanceBreakdownElement
20
+ var balances_exports = {};
21
+ __export(balances_exports, {
22
+ BalancesElement: () => BalancesElement
23
23
  });
24
- module.exports = __toCommonJS(regular_reserve_balance_breakdown_exports);
24
+ module.exports = __toCommonJS(balances_exports);
25
25
  var import_with_fallback = require("../with-fallback");
26
- const RegularReserveBalanceBreakdownElement = (0, import_with_fallback.withFallback)({
27
- displayName: "RegularReserveBalanceBreakdownElement",
28
- type: "regular-reserve-balance-breakdown-element"
26
+ const BalancesElement = (0, import_with_fallback.withFallback)({
27
+ displayName: "BalancesElement",
28
+ type: "balances-element"
29
29
  });
30
- //# sourceMappingURL=regular-reserve-balance-breakdown.js.map
30
+ //# sourceMappingURL=balances.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/payouts/elements/balances.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../with-fallback\";\n\nexport const BalancesElement = withFallback({\n\tdisplayName: \"BalancesElement\",\n\ttype: \"balances-element\",\n} as const);\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,2BAA6B;AAEtB,MAAM,sBAAkB,mCAAa;AAAA,EAC3C,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import "../../chunk-NSSMTXJJ.mjs";
3
+ import { withFallback } from "../with-fallback.mjs";
4
+ const BalancesElement = withFallback({
5
+ displayName: "BalancesElement",
6
+ type: "balances-element"
7
+ });
8
+ export { BalancesElement };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/payouts/elements/balances.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../with-fallback\";\n\nexport const BalancesElement = withFallback({\n\tdisplayName: \"BalancesElement\",\n\ttype: \"balances-element\",\n} as const);\n"],"mappings":";;AAEA,SAAS,oBAAoB;AAEtB,MAAM,kBAAkB,aAAa;AAAA,EAC3C,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
@@ -1,17 +1,20 @@
1
1
  export { AddPayoutMethodElement } from './add-payout-method.js';
2
+ export { AvailableCashBreakdownElement } from './available-cash-breakdown.js';
2
3
  export { AutomaticWithdrawElement } from './automatic-withdraw.js';
3
4
  export { BalanceElement } from './balance.js';
5
+ export { BalancesElement } from './balances.js';
4
6
  export { ChangeAccountCountryElement } from './change-account-country.js';
7
+ export { GenerateWithdrawalReceiptElement } from './generate-withdrawal-receipt.js';
8
+ export { PendingBreakdownElement } from './pending-breakdown.js';
9
+ export { ReserveBreakdownElement } from './reserve-breakdown.js';
5
10
  export { ResetAccountElement } from './reset-account.js';
11
+ export { StatusBannerElement } from './status-banner.js';
12
+ export { TreasuryBreakdownElement } from './treasury-breakdown.js';
6
13
  export { VerifyElement } from './verify.js';
14
+ export { WithdrawElement } from './withdraw.js';
7
15
  export { WithdrawButtonElement } from './withdraw-button.js';
8
16
  export { WithdrawalBreakdownElement } from './withdrawal-breakdown.js';
9
17
  export { WithdrawalsElement } from './withdrawals.js';
10
- export { TotalBalanceBreakdownElement } from './total-balance-breakdown.js';
11
- export { RegularReserveBalanceBreakdownElement } from './regular-reserve-balance-breakdown.js';
12
- export { BnplReserveBalanceBreakdownElement } from './bnpl-reserve-balance-breakdown.js';
13
- export { GenerateWithdrawalReceiptElement } from './generate-withdrawal-receipt.js';
14
- export { StatusBannerElement } from './status-banner.js';
15
18
  import '../with-fallback.js';
16
19
  import '@whop/embedded-components-vanilla-js/types';
17
20
  import 'react';
@@ -16,17 +16,20 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
16
16
  var elements_exports = {};
17
17
  module.exports = __toCommonJS(elements_exports);
18
18
  __reExport(elements_exports, require("./add-payout-method"), module.exports);
19
+ __reExport(elements_exports, require("./available-cash-breakdown"), module.exports);
19
20
  __reExport(elements_exports, require("./automatic-withdraw"), module.exports);
20
21
  __reExport(elements_exports, require("./balance"), module.exports);
22
+ __reExport(elements_exports, require("./balances"), module.exports);
21
23
  __reExport(elements_exports, require("./change-account-country"), module.exports);
24
+ __reExport(elements_exports, require("./generate-withdrawal-receipt"), module.exports);
25
+ __reExport(elements_exports, require("./pending-breakdown"), module.exports);
26
+ __reExport(elements_exports, require("./reserve-breakdown"), module.exports);
22
27
  __reExport(elements_exports, require("./reset-account"), module.exports);
28
+ __reExport(elements_exports, require("./status-banner"), module.exports);
29
+ __reExport(elements_exports, require("./treasury-breakdown"), module.exports);
23
30
  __reExport(elements_exports, require("./verify"), module.exports);
31
+ __reExport(elements_exports, require("./withdraw"), module.exports);
24
32
  __reExport(elements_exports, require("./withdraw-button"), module.exports);
25
33
  __reExport(elements_exports, require("./withdrawal-breakdown"), module.exports);
26
34
  __reExport(elements_exports, require("./withdrawals"), module.exports);
27
- __reExport(elements_exports, require("./total-balance-breakdown"), module.exports);
28
- __reExport(elements_exports, require("./regular-reserve-balance-breakdown"), module.exports);
29
- __reExport(elements_exports, require("./bnpl-reserve-balance-breakdown"), module.exports);
30
- __reExport(elements_exports, require("./generate-withdrawal-receipt"), module.exports);
31
- __reExport(elements_exports, require("./status-banner"), module.exports);
32
35
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/payouts/elements/index.tsx"],"sourcesContent":["export * from \"./add-payout-method\";\nexport * from \"./automatic-withdraw\";\nexport * from \"./balance\";\nexport * from \"./change-account-country\";\nexport * from \"./reset-account\";\nexport * from \"./verify\";\nexport * from \"./withdraw-button\";\nexport * from \"./withdrawal-breakdown\";\nexport * from \"./withdrawals\";\nexport * from \"./total-balance-breakdown\";\nexport * from \"./regular-reserve-balance-breakdown\";\nexport * from \"./bnpl-reserve-balance-breakdown\";\nexport * from \"./generate-withdrawal-receipt\";\nexport * from \"./status-banner\";\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,6BAAc,gCAAd;AACA,6BAAc,iCADd;AAEA,6BAAc,sBAFd;AAGA,6BAAc,qCAHd;AAIA,6BAAc,4BAJd;AAKA,6BAAc,qBALd;AAMA,6BAAc,8BANd;AAOA,6BAAc,mCAPd;AAQA,6BAAc,0BARd;AASA,6BAAc,sCATd;AAUA,6BAAc,gDAVd;AAWA,6BAAc,6CAXd;AAYA,6BAAc,0CAZd;AAaA,6BAAc,4BAbd;","names":[]}
1
+ {"version":3,"sources":["../../../src/payouts/elements/index.tsx"],"sourcesContent":["export * from \"./add-payout-method\";\nexport * from \"./available-cash-breakdown\";\nexport * from \"./automatic-withdraw\";\nexport * from \"./balance\";\nexport * from \"./balances\";\nexport * from \"./change-account-country\";\nexport * from \"./generate-withdrawal-receipt\";\nexport * from \"./pending-breakdown\";\nexport * from \"./reserve-breakdown\";\nexport * from \"./reset-account\";\nexport * from \"./status-banner\";\nexport * from \"./treasury-breakdown\";\nexport * from \"./verify\";\nexport * from \"./withdraw\";\nexport * from \"./withdraw-button\";\nexport * from \"./withdrawal-breakdown\";\nexport * from \"./withdrawals\";\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,6BAAc,gCAAd;AACA,6BAAc,uCADd;AAEA,6BAAc,iCAFd;AAGA,6BAAc,sBAHd;AAIA,6BAAc,uBAJd;AAKA,6BAAc,qCALd;AAMA,6BAAc,0CANd;AAOA,6BAAc,gCAPd;AAQA,6BAAc,gCARd;AASA,6BAAc,4BATd;AAUA,6BAAc,4BAVd;AAWA,6BAAc,iCAXd;AAYA,6BAAc,qBAZd;AAaA,6BAAc,uBAbd;AAcA,6BAAc,8BAdd;AAeA,6BAAc,mCAfd;AAgBA,6BAAc,0BAhBd;","names":[]}
@@ -1,14 +1,17 @@
1
1
  export * from "./add-payout-method.mjs";
2
+ export * from "./available-cash-breakdown.mjs";
2
3
  export * from "./automatic-withdraw.mjs";
3
4
  export * from "./balance.mjs";
5
+ export * from "./balances.mjs";
4
6
  export * from "./change-account-country.mjs";
7
+ export * from "./generate-withdrawal-receipt.mjs";
8
+ export * from "./pending-breakdown.mjs";
9
+ export * from "./reserve-breakdown.mjs";
5
10
  export * from "./reset-account.mjs";
11
+ export * from "./status-banner.mjs";
12
+ export * from "./treasury-breakdown.mjs";
6
13
  export * from "./verify.mjs";
14
+ export * from "./withdraw.mjs";
7
15
  export * from "./withdraw-button.mjs";
8
16
  export * from "./withdrawal-breakdown.mjs";
9
17
  export * from "./withdrawals.mjs";
10
- export * from "./total-balance-breakdown.mjs";
11
- export * from "./regular-reserve-balance-breakdown.mjs";
12
- export * from "./bnpl-reserve-balance-breakdown.mjs";
13
- export * from "./generate-withdrawal-receipt.mjs";
14
- export * from "./status-banner.mjs";
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/payouts/elements/index.tsx"],"sourcesContent":["export * from \"./add-payout-method\";\nexport * from \"./automatic-withdraw\";\nexport * from \"./balance\";\nexport * from \"./change-account-country\";\nexport * from \"./reset-account\";\nexport * from \"./verify\";\nexport * from \"./withdraw-button\";\nexport * from \"./withdrawal-breakdown\";\nexport * from \"./withdrawals\";\nexport * from \"./total-balance-breakdown\";\nexport * from \"./regular-reserve-balance-breakdown\";\nexport * from \"./bnpl-reserve-balance-breakdown\";\nexport * from \"./generate-withdrawal-receipt\";\nexport * from \"./status-banner\";\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
1
+ {"version":3,"sources":["../../../src/payouts/elements/index.tsx"],"sourcesContent":["export * from \"./add-payout-method\";\nexport * from \"./available-cash-breakdown\";\nexport * from \"./automatic-withdraw\";\nexport * from \"./balance\";\nexport * from \"./balances\";\nexport * from \"./change-account-country\";\nexport * from \"./generate-withdrawal-receipt\";\nexport * from \"./pending-breakdown\";\nexport * from \"./reserve-breakdown\";\nexport * from \"./reset-account\";\nexport * from \"./status-banner\";\nexport * from \"./treasury-breakdown\";\nexport * from \"./verify\";\nexport * from \"./withdraw\";\nexport * from \"./withdraw-button\";\nexport * from \"./withdrawal-breakdown\";\nexport * from \"./withdrawals\";\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
@@ -0,0 +1,11 @@
1
+ import { WithFallbackPropsOptional } from '../with-fallback.js';
2
+ import * as _whop_embedded_components_vanilla_js_types from '@whop/embedded-components-vanilla-js/types';
3
+ import 'react';
4
+
5
+ declare const PendingBreakdownElement: {
6
+ (props: WithFallbackPropsOptional<_whop_embedded_components_vanilla_js_types.PendingBreakdownElementOptions>): React.ReactNode;
7
+ displayName: string;
8
+ type: string;
9
+ };
10
+
11
+ export { PendingBreakdownElement };
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ "use client";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+ var pending_breakdown_exports = {};
21
+ __export(pending_breakdown_exports, {
22
+ PendingBreakdownElement: () => PendingBreakdownElement
23
+ });
24
+ module.exports = __toCommonJS(pending_breakdown_exports);
25
+ var import_with_fallback = require("../with-fallback");
26
+ const PendingBreakdownElement = (0, import_with_fallback.withFallback)({
27
+ displayName: "PendingBreakdownElement",
28
+ type: "pending-breakdown-element"
29
+ });
30
+ //# sourceMappingURL=pending-breakdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/payouts/elements/pending-breakdown.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../with-fallback\";\n\nexport const PendingBreakdownElement = withFallback({\n\tdisplayName: \"PendingBreakdownElement\",\n\ttype: \"pending-breakdown-element\",\n} as const);\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,2BAA6B;AAEtB,MAAM,8BAA0B,mCAAa;AAAA,EACnD,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import "../../chunk-NSSMTXJJ.mjs";
3
+ import { withFallback } from "../with-fallback.mjs";
4
+ const PendingBreakdownElement = withFallback({
5
+ displayName: "PendingBreakdownElement",
6
+ type: "pending-breakdown-element"
7
+ });
8
+ export { PendingBreakdownElement };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/payouts/elements/pending-breakdown.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../with-fallback\";\n\nexport const PendingBreakdownElement = withFallback({\n\tdisplayName: \"PendingBreakdownElement\",\n\ttype: \"pending-breakdown-element\",\n} as const);\n"],"mappings":";;AAEA,SAAS,oBAAoB;AAEtB,MAAM,0BAA0B,aAAa;AAAA,EACnD,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
@@ -0,0 +1,11 @@
1
+ import { WithFallbackPropsOptional } from '../with-fallback.js';
2
+ import * as _whop_embedded_components_vanilla_js_types from '@whop/embedded-components-vanilla-js/types';
3
+ import 'react';
4
+
5
+ declare const ReserveBreakdownElement: {
6
+ (props: WithFallbackPropsOptional<_whop_embedded_components_vanilla_js_types.ReserveBreakdownElementOptions>): React.ReactNode;
7
+ displayName: string;
8
+ type: string;
9
+ };
10
+
11
+ export { ReserveBreakdownElement };
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ "use client";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+ var reserve_breakdown_exports = {};
21
+ __export(reserve_breakdown_exports, {
22
+ ReserveBreakdownElement: () => ReserveBreakdownElement
23
+ });
24
+ module.exports = __toCommonJS(reserve_breakdown_exports);
25
+ var import_with_fallback = require("../with-fallback");
26
+ const ReserveBreakdownElement = (0, import_with_fallback.withFallback)({
27
+ displayName: "ReserveBreakdownElement",
28
+ type: "reserve-breakdown-element"
29
+ });
30
+ //# sourceMappingURL=reserve-breakdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/payouts/elements/reserve-breakdown.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../with-fallback\";\n\nexport const ReserveBreakdownElement = withFallback({\n\tdisplayName: \"ReserveBreakdownElement\",\n\ttype: \"reserve-breakdown-element\",\n} as const);\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,2BAA6B;AAEtB,MAAM,8BAA0B,mCAAa;AAAA,EACnD,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import "../../chunk-NSSMTXJJ.mjs";
3
+ import { withFallback } from "../with-fallback.mjs";
4
+ const ReserveBreakdownElement = withFallback({
5
+ displayName: "ReserveBreakdownElement",
6
+ type: "reserve-breakdown-element"
7
+ });
8
+ export { ReserveBreakdownElement };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/payouts/elements/reserve-breakdown.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../with-fallback\";\n\nexport const ReserveBreakdownElement = withFallback({\n\tdisplayName: \"ReserveBreakdownElement\",\n\ttype: \"reserve-breakdown-element\",\n} as const);\n"],"mappings":";;AAEA,SAAS,oBAAoB;AAEtB,MAAM,0BAA0B,aAAa;AAAA,EACnD,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
@@ -0,0 +1,11 @@
1
+ import { WithFallbackPropsOptional } from '../with-fallback.js';
2
+ import * as _whop_embedded_components_vanilla_js_types from '@whop/embedded-components-vanilla-js/types';
3
+ import 'react';
4
+
5
+ declare const TreasuryBreakdownElement: {
6
+ (props: WithFallbackPropsOptional<_whop_embedded_components_vanilla_js_types.TreasuryBreakdownElementOptions>): React.ReactNode;
7
+ displayName: string;
8
+ type: string;
9
+ };
10
+
11
+ export { TreasuryBreakdownElement };
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ "use client";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+ var treasury_breakdown_exports = {};
21
+ __export(treasury_breakdown_exports, {
22
+ TreasuryBreakdownElement: () => TreasuryBreakdownElement
23
+ });
24
+ module.exports = __toCommonJS(treasury_breakdown_exports);
25
+ var import_with_fallback = require("../with-fallback");
26
+ const TreasuryBreakdownElement = (0, import_with_fallback.withFallback)({
27
+ displayName: "TreasuryBreakdownElement",
28
+ type: "treasury-breakdown-element"
29
+ });
30
+ //# sourceMappingURL=treasury-breakdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/payouts/elements/treasury-breakdown.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../with-fallback\";\n\nexport const TreasuryBreakdownElement = withFallback({\n\tdisplayName: \"TreasuryBreakdownElement\",\n\ttype: \"treasury-breakdown-element\",\n} as const);\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,2BAA6B;AAEtB,MAAM,+BAA2B,mCAAa;AAAA,EACpD,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import "../../chunk-NSSMTXJJ.mjs";
3
+ import { withFallback } from "../with-fallback.mjs";
4
+ const TreasuryBreakdownElement = withFallback({
5
+ displayName: "TreasuryBreakdownElement",
6
+ type: "treasury-breakdown-element"
7
+ });
8
+ export { TreasuryBreakdownElement };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/payouts/elements/treasury-breakdown.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../with-fallback\";\n\nexport const TreasuryBreakdownElement = withFallback({\n\tdisplayName: \"TreasuryBreakdownElement\",\n\ttype: \"treasury-breakdown-element\",\n} as const);\n"],"mappings":";;AAEA,SAAS,oBAAoB;AAEtB,MAAM,2BAA2B,aAAa;AAAA,EACpD,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
@@ -0,0 +1,11 @@
1
+ import { WithFallbackPropsOptional } from '../with-fallback.js';
2
+ import * as _whop_embedded_components_vanilla_js_types from '@whop/embedded-components-vanilla-js/types';
3
+ import 'react';
4
+
5
+ declare const WithdrawElement: {
6
+ (props: WithFallbackPropsOptional<_whop_embedded_components_vanilla_js_types.WithdrawElementOptions>): React.ReactNode;
7
+ displayName: string;
8
+ type: string;
9
+ };
10
+
11
+ export { WithdrawElement };
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ "use client";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+ var withdraw_exports = {};
21
+ __export(withdraw_exports, {
22
+ WithdrawElement: () => WithdrawElement
23
+ });
24
+ module.exports = __toCommonJS(withdraw_exports);
25
+ var import_with_fallback = require("../with-fallback");
26
+ const WithdrawElement = (0, import_with_fallback.withFallback)({
27
+ displayName: "WithdrawElement",
28
+ type: "withdraw-element"
29
+ });
30
+ //# sourceMappingURL=withdraw.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/payouts/elements/withdraw.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../with-fallback\";\n\nexport const WithdrawElement = withFallback({\n\tdisplayName: \"WithdrawElement\",\n\ttype: \"withdraw-element\",\n} as const);\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,2BAA6B;AAEtB,MAAM,sBAAkB,mCAAa;AAAA,EAC3C,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
@@ -0,0 +1,8 @@
1
+ "use client";
2
+ import "../../chunk-NSSMTXJJ.mjs";
3
+ import { withFallback } from "../with-fallback.mjs";
4
+ const WithdrawElement = withFallback({
5
+ displayName: "WithdrawElement",
6
+ type: "withdraw-element"
7
+ });
8
+ export { WithdrawElement };
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/payouts/elements/withdraw.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../with-fallback\";\n\nexport const WithdrawElement = withFallback({\n\tdisplayName: \"WithdrawElement\",\n\ttype: \"withdraw-element\",\n} as const);\n"],"mappings":";;AAEA,SAAS,oBAAoB;AAEtB,MAAM,kBAAkB,aAAa;AAAA,EAC3C,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
@@ -1,18 +1,21 @@
1
1
  export { PayoutsSession, usePayoutsSession } from './session.js';
2
2
  export { AddPayoutMethodElement } from './elements/add-payout-method.js';
3
+ export { AvailableCashBreakdownElement } from './elements/available-cash-breakdown.js';
3
4
  export { AutomaticWithdrawElement } from './elements/automatic-withdraw.js';
4
5
  export { BalanceElement } from './elements/balance.js';
6
+ export { BalancesElement } from './elements/balances.js';
5
7
  export { ChangeAccountCountryElement } from './elements/change-account-country.js';
8
+ export { GenerateWithdrawalReceiptElement } from './elements/generate-withdrawal-receipt.js';
9
+ export { PendingBreakdownElement } from './elements/pending-breakdown.js';
10
+ export { ReserveBreakdownElement } from './elements/reserve-breakdown.js';
6
11
  export { ResetAccountElement } from './elements/reset-account.js';
12
+ export { StatusBannerElement } from './elements/status-banner.js';
13
+ export { TreasuryBreakdownElement } from './elements/treasury-breakdown.js';
7
14
  export { VerifyElement } from './elements/verify.js';
15
+ export { WithdrawElement } from './elements/withdraw.js';
8
16
  export { WithdrawButtonElement } from './elements/withdraw-button.js';
9
17
  export { WithdrawalBreakdownElement } from './elements/withdrawal-breakdown.js';
10
18
  export { WithdrawalsElement } from './elements/withdrawals.js';
11
- export { TotalBalanceBreakdownElement } from './elements/total-balance-breakdown.js';
12
- export { RegularReserveBalanceBreakdownElement } from './elements/regular-reserve-balance-breakdown.js';
13
- export { BnplReserveBalanceBreakdownElement } from './elements/bnpl-reserve-balance-breakdown.js';
14
- export { GenerateWithdrawalReceiptElement } from './elements/generate-withdrawal-receipt.js';
15
- export { StatusBannerElement } from './elements/status-banner.js';
16
19
  import '@whop/embedded-components-vanilla-js/types';
17
20
  import 'react';
18
21
  import './with-fallback.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whop/embedded-components-react-js",
3
- "version": "0.0.13-beta.6",
3
+ "version": "1.0.0-beta.11",
4
4
  "description": "React components for Whop.js",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -21,8 +21,8 @@
21
21
  "access": "public"
22
22
  },
23
23
  "peerDependencies": {
24
- "@whop/embedded-components-vanilla-js": "^0.0.13-beta.6",
25
24
  "react": ">=16.8.0 <20.0.0",
26
- "react-dom": ">=16.8.0 <20.0.0"
25
+ "react-dom": ">=16.8.0 <20.0.0",
26
+ "@whop/embedded-components-vanilla-js": "^1.0.0-beta.11"
27
27
  }
28
28
  }
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/payouts/elements/bnpl-reserve-balance-breakdown.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../with-fallback\";\n\nexport const BnplReserveBalanceBreakdownElement = withFallback({\n\tdisplayName: \"BnplReserveBalanceBreakdownElement\",\n\ttype: \"bnpl-reserve-balance-breakdown-element\",\n} as const);\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,2BAA6B;AAEtB,MAAM,yCAAqC,mCAAa;AAAA,EAC9D,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
@@ -1,8 +0,0 @@
1
- "use client";
2
- import "../../chunk-NSSMTXJJ.mjs";
3
- import { withFallback } from "../with-fallback.mjs";
4
- const BnplReserveBalanceBreakdownElement = withFallback({
5
- displayName: "BnplReserveBalanceBreakdownElement",
6
- type: "bnpl-reserve-balance-breakdown-element"
7
- });
8
- export { BnplReserveBalanceBreakdownElement };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/payouts/elements/bnpl-reserve-balance-breakdown.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../with-fallback\";\n\nexport const BnplReserveBalanceBreakdownElement = withFallback({\n\tdisplayName: \"BnplReserveBalanceBreakdownElement\",\n\ttype: \"bnpl-reserve-balance-breakdown-element\",\n} as const);\n"],"mappings":";;AAEA,SAAS,oBAAoB;AAEtB,MAAM,qCAAqC,aAAa;AAAA,EAC9D,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/payouts/elements/regular-reserve-balance-breakdown.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../with-fallback\";\n\nexport const RegularReserveBalanceBreakdownElement = withFallback({\n\tdisplayName: \"RegularReserveBalanceBreakdownElement\",\n\ttype: \"regular-reserve-balance-breakdown-element\",\n} as const);\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,2BAA6B;AAEtB,MAAM,4CAAwC,mCAAa;AAAA,EACjE,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
@@ -1,8 +0,0 @@
1
- "use client";
2
- import "../../chunk-NSSMTXJJ.mjs";
3
- import { withFallback } from "../with-fallback.mjs";
4
- const RegularReserveBalanceBreakdownElement = withFallback({
5
- displayName: "RegularReserveBalanceBreakdownElement",
6
- type: "regular-reserve-balance-breakdown-element"
7
- });
8
- export { RegularReserveBalanceBreakdownElement };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/payouts/elements/regular-reserve-balance-breakdown.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../with-fallback\";\n\nexport const RegularReserveBalanceBreakdownElement = withFallback({\n\tdisplayName: \"RegularReserveBalanceBreakdownElement\",\n\ttype: \"regular-reserve-balance-breakdown-element\",\n} as const);\n"],"mappings":";;AAEA,SAAS,oBAAoB;AAEtB,MAAM,wCAAwC,aAAa;AAAA,EACjE,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/payouts/elements/total-balance-breakdown.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../with-fallback\";\n\nexport const TotalBalanceBreakdownElement = withFallback({\n\tdisplayName: \"TotalBalanceBreakdownElement\",\n\ttype: \"total-balance-breakdown-element\",\n} as const);\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,2BAA6B;AAEtB,MAAM,mCAA+B,mCAAa;AAAA,EACxD,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}
@@ -1,8 +0,0 @@
1
- "use client";
2
- import "../../chunk-NSSMTXJJ.mjs";
3
- import { withFallback } from "../with-fallback.mjs";
4
- const TotalBalanceBreakdownElement = withFallback({
5
- displayName: "TotalBalanceBreakdownElement",
6
- type: "total-balance-breakdown-element"
7
- });
8
- export { TotalBalanceBreakdownElement };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/payouts/elements/total-balance-breakdown.tsx"],"sourcesContent":["\"use client\";\n\nimport { withFallback } from \"../with-fallback\";\n\nexport const TotalBalanceBreakdownElement = withFallback({\n\tdisplayName: \"TotalBalanceBreakdownElement\",\n\ttype: \"total-balance-breakdown-element\",\n} as const);\n"],"mappings":";;AAEA,SAAS,oBAAoB;AAEtB,MAAM,+BAA+B,aAAa;AAAA,EACxD,aAAa;AAAA,EACb,MAAM;AACP,CAAU;","names":[]}