@whop/embedded-components-vanilla-js 0.0.13-beta.8 → 1.0.0

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/url.js CHANGED
@@ -24,10 +24,13 @@ __export(url_exports, {
24
24
  getScriptUrl: () => getScriptUrl
25
25
  });
26
26
  module.exports = __toCommonJS(url_exports);
27
- const getOrigin = () => "https://0-0-13-beta-8.elements.whop.com/";
27
+ const getOrigin = () => "https://apollo.elements.whop.com/";
28
28
  const getScriptUrl = () => {
29
29
  return new URL(`/release/elements.js`, getOrigin()).toString();
30
30
  };
31
- const ORIGIN = "https://0-0-13-beta-8.elements.whop.com/";
32
- const SCRIPT_URL = new URL(`/release/elements.js`, "https://0-0-13-beta-8.elements.whop.com/").toString();
31
+ const ORIGIN = "https://apollo.elements.whop.com/";
32
+ const SCRIPT_URL = new URL(
33
+ `/release/elements.js`,
34
+ "https://apollo.elements.whop.com/"
35
+ ).toString();
33
36
  //# sourceMappingURL=url.js.map
package/dist/url.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/url.ts"],"sourcesContent":["declare const _ELEMENTS_ORIGIN: string;\n\nexport const getOrigin = (): string => _ELEMENTS_ORIGIN;\n\nexport const getScriptUrl = (): string => {\n\treturn new URL(`/release/elements.js`, getOrigin()).toString();\n};\n\n// Backwards compatibility exports\nexport const ORIGIN = _ELEMENTS_ORIGIN;\nexport const SCRIPT_URL = new URL(`/release/elements.js`, _ELEMENTS_ORIGIN).toString();\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,MAAM,YAAY,MAAc;AAEhC,MAAM,eAAe,MAAc;AACzC,SAAO,IAAI,IAAI,wBAAwB,UAAU,CAAC,EAAE,SAAS;AAC9D;AAGO,MAAM,SAAS;AACf,MAAM,aAAa,IAAI,IAAI,wBAAwB,0CAAgB,EAAE,SAAS;","names":[]}
1
+ {"version":3,"sources":["../src/url.ts"],"sourcesContent":["declare const _ELEMENTS_ORIGIN: string;\n\nexport const getOrigin = (): string => _ELEMENTS_ORIGIN;\n\nexport const getScriptUrl = (): string => {\n\treturn new URL(`/release/elements.js`, getOrigin()).toString();\n};\n\n// Backwards compatibility exports\nexport const ORIGIN = _ELEMENTS_ORIGIN;\nexport const SCRIPT_URL = new URL(\n\t`/release/elements.js`,\n\t_ELEMENTS_ORIGIN,\n).toString();\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEO,MAAM,YAAY,MAAc;AAEhC,MAAM,eAAe,MAAc;AACzC,SAAO,IAAI,IAAI,wBAAwB,UAAU,CAAC,EAAE,SAAS;AAC9D;AAGO,MAAM,SAAS;AACf,MAAM,aAAa,IAAI;AAAA,EAC7B;AAAA,EACA;AACD,EAAE,SAAS;","names":[]}
package/dist/url.mjs CHANGED
@@ -1,7 +1,7 @@
1
- const getOrigin = ()=>"https://0-0-13-beta-8.elements.whop.com/";
1
+ const getOrigin = ()=>"https://apollo.elements.whop.com/";
2
2
  const getScriptUrl = ()=>{
3
3
  return new URL(`/release/elements.js`, getOrigin()).toString();
4
4
  };
5
- const ORIGIN = "https://0-0-13-beta-8.elements.whop.com/";
6
- const SCRIPT_URL = new URL(`/release/elements.js`, "https://0-0-13-beta-8.elements.whop.com/").toString();
5
+ const ORIGIN = "https://apollo.elements.whop.com/";
6
+ const SCRIPT_URL = new URL(`/release/elements.js`, "https://apollo.elements.whop.com/").toString();
7
7
  export { ORIGIN, SCRIPT_URL, getOrigin, getScriptUrl };
package/dist/url.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/url.ts"],"sourcesContent":["declare const _ELEMENTS_ORIGIN: string;\n\nexport const getOrigin = (): string => _ELEMENTS_ORIGIN;\n\nexport const getScriptUrl = (): string => {\n\treturn new URL(`/release/elements.js`, getOrigin()).toString();\n};\n\n// Backwards compatibility exports\nexport const ORIGIN = _ELEMENTS_ORIGIN;\nexport const SCRIPT_URL = new URL(`/release/elements.js`, _ELEMENTS_ORIGIN).toString();\n"],"mappings":"AAEO,MAAM,YAAY,MAAc;AAEhC,MAAM,eAAe,MAAc;AACzC,SAAO,IAAI,IAAI,wBAAwB,UAAU,CAAC,EAAE,SAAS;AAC9D;AAGO,MAAM,SAAS;AACf,MAAM,aAAa,IAAI,IAAI,wBAAwB,0CAAgB,EAAE,SAAS;","names":[]}
1
+ {"version":3,"sources":["../src/url.ts"],"sourcesContent":["declare const _ELEMENTS_ORIGIN: string;\n\nexport const getOrigin = (): string => _ELEMENTS_ORIGIN;\n\nexport const getScriptUrl = (): string => {\n\treturn new URL(`/release/elements.js`, getOrigin()).toString();\n};\n\n// Backwards compatibility exports\nexport const ORIGIN = _ELEMENTS_ORIGIN;\nexport const SCRIPT_URL = new URL(\n\t`/release/elements.js`,\n\t_ELEMENTS_ORIGIN,\n).toString();\n"],"mappings":"AAEO,MAAM,YAAY,MAAc;AAEhC,MAAM,eAAe,MAAc;AACzC,SAAO,IAAI,IAAI,wBAAwB,UAAU,CAAC,EAAE,SAAS;AAC9D;AAGO,MAAM,SAAS;AACf,MAAM,aAAa,IAAI;AAAA,EAC7B;AAAA,EACA;AACD,EAAE,SAAS;","names":[]}
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@whop/embedded-components-vanilla-js",
3
- "version": "0.0.13-beta.8",
3
+ "version": "1.0.0",
4
4
  "description": "Whop Elements loading utility",
5
- "main": "dist/index.js",
6
- "module": "dist/index.mjs",
7
- "jsnext:main": "dist/index.mjs",
8
- "types": "dist/index.d.ts",
9
- "typing": "dist/index.d.ts",
10
5
  "keywords": [
6
+ "Elements",
11
7
  "Whop",
12
8
  "Whop.js",
13
- "Elements",
14
9
  "embedded",
15
10
  "payments",
16
11
  "payouts"
17
12
  ],
18
- "author": "Whop (https://whop.com)",
19
13
  "license": "MIT",
14
+ "author": "Whop (https://whop.com)",
15
+ "main": "dist/index.js",
16
+ "module": "dist/index.mjs",
17
+ "types": "dist/index.d.ts",
18
+ "jsnext:main": "dist/index.mjs",
20
19
  "publishConfig": {
21
20
  "access": "public"
22
- }
21
+ },
22
+ "typing": "dist/index.d.ts"
23
23
  }