veo-sdk 0.4.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ export { attachDesignManipulator, createBuilderSession, initBuilderMode, startElementPicker, stopElementPicker } from './chunk-ULH64GMX.mjs';
2
+ import './chunk-F2ZWZUTR.mjs';
3
+ import './chunk-PTG3BTJE.mjs';
4
+ //# sourceMappingURL=builder-S6ZODU2M.mjs.map
5
+ //# sourceMappingURL=builder-S6ZODU2M.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"builder-ZDNVF6KG.mjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"builder-S6ZODU2M.mjs"}
package/dist/builder.cjs CHANGED
@@ -20,7 +20,7 @@ var BUILDER_GUIDE_PARAM = "veoGuide";
20
20
  // src/core/builder-token.ts
21
21
  var CTX_KEY = "veo:builder_ctx";
22
22
  var LS_PREFIX = "veo:builder_ctx:";
23
- var PERSIST_TTL_MS = 12 * 60 * 60 * 1e3;
23
+ var PERSIST_TTL_MS = 30 * 60 * 1e3;
24
24
  function session() {
25
25
  try {
26
26
  return window.sessionStorage;
@@ -83,7 +83,11 @@ function readFreshFromLocal() {
83
83
  }
84
84
  function urlParams() {
85
85
  try {
86
- return new URLSearchParams(window.location.search);
86
+ const search = new URLSearchParams(window.location.search);
87
+ if (search.get(BUILDER_TOKEN_PARAM)) return search;
88
+ const hash = window.location.hash.replace(/^#/, "");
89
+ if (hash.includes(`${BUILDER_TOKEN_PARAM}=`)) return new URLSearchParams(hash);
90
+ return search;
87
91
  } catch {
88
92
  return null;
89
93
  }