@wix/himalaya-cli 0.1724.0 → 0.1726.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.
Files changed (69) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/wix-payments-contract.d.ts +6 -4
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/location/src/index.d.ts +5 -3
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/on-device-ai/src/index.d.ts +19 -7
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/sdk-types/src/capabilities.generated.d.ts +1 -1
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/checkout-source.d.ts +3 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/iap-verticals/videos.d.ts +31 -1
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/iap-checkout/src/index.d.ts +1 -1
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/audio-record.mjs +1 -1
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calendar.mjs +1 -1
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calls.mjs +1 -1
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/contacts.mjs +1 -1
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap-checkout.mjs +83 -9
  13. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/location.mjs +1 -1
  14. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/motion.mjs +1 -1
  15. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/on-device-ai.mjs +49 -3
  16. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/photos.mjs +1 -1
  17. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +92 -2
  18. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdk-types.mjs +1 -1
  19. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/tasks.mjs +1 -1
  20. package/dist/browser-plane/assets.json +7 -7
  21. package/dist/browser-plane/preview-deferred/{a6e25c06d2a17ab2b5e34bf2b5965fa3ddd76ce3da32a036e546a60938130d7b.bin → 2df92277f550d6bf34ff43d15ae4a9082d012643a6bff39bd78724115505b716.bin} +1 -1
  22. package/dist/browser-plane/sw.js +8 -8
  23. package/dist/browser-plane/t5-frame.html +16 -0
  24. package/dist/browser-plane/t5-worker-frame.html +16 -0
  25. package/dist/cli.mjs +1830 -1480
  26. package/dist/preview-assets.generated.bin +0 -0
  27. package/fixtures/wix-canned.json +51 -0
  28. package/guides/capabilities.md +2 -2
  29. package/guides/headless-loop.md +2 -1
  30. package/guides/iap-products.md +2 -2
  31. package/guides/iap-screen-adoption.md +1 -1
  32. package/guides/one-app-section-mappings.md +2 -2
  33. package/guides/sdk-reference.json +36 -8
  34. package/guides/skill.md +1 -1
  35. package/guides/testing-himi-apps.md +4 -3
  36. package/guides/web-page-sdk-reference.md +1 -1
  37. package/package.json +2 -2
  38. package/templates/beauty-salon/l10n/en.json +2 -2
  39. package/templates/beauty-salon/tier5-src/_shared/branded-lite-hosted.ts +3 -2
  40. package/templates/branded-lite/config.ts +14 -1
  41. package/templates/branded-lite/dev/index.ts +729 -2
  42. package/templates/branded-lite/himalaya.content.json +3 -0
  43. package/templates/branded-lite/l10n/en.json +93 -2
  44. package/templates/branded-lite/l10n/he.json +173 -0
  45. package/templates/branded-lite/tier5-src/_shared/branded-lite-hosted.ts +3 -2
  46. package/templates/branded-lite/tier5-src/_shared/wix-file-share.ts +332 -0
  47. package/templates/branded-lite/tier5-src/himi-branded-lite-file-share/index.ts +635 -0
  48. package/templates/branded-lite/tier5-src/himi-branded-lite-video/index.ts +82 -12
  49. package/templates/community-club/l10n/en.json +2 -2
  50. package/templates/community-club/tier5-src/_shared/branded-lite-hosted.ts +3 -2
  51. package/templates/conference/tier5-src/_shared/branded-lite-hosted.ts +3 -2
  52. package/templates/events-meetups/l10n/en.json +2 -2
  53. package/templates/events-meetups/tier5-src/_shared/branded-lite-hosted.ts +3 -2
  54. package/templates/gym-fitness/l10n/en.json +2 -2
  55. package/templates/gym-fitness/tier5-src/_shared/branded-lite-hosted.ts +3 -2
  56. package/templates/nonprofit-cause/l10n/en.json +2 -2
  57. package/templates/nonprofit-cause/tier5-src/_shared/branded-lite-hosted.ts +3 -2
  58. package/templates/podcast-creator/l10n/en.json +2 -2
  59. package/templates/podcast-creator/tier5-src/_shared/branded-lite-hosted.ts +3 -2
  60. package/templates/portfolio-creative/l10n/en.json +2 -2
  61. package/templates/portfolio-creative/tier5-src/_shared/branded-lite-hosted.ts +3 -2
  62. package/templates/restaurant/l10n/en.json +2 -2
  63. package/templates/restaurant/tier5-src/_shared/branded-lite-hosted.ts +3 -2
  64. package/templates/retail-store/l10n/en.json +2 -2
  65. package/templates/retail-store/tier5-src/_shared/branded-lite-hosted.ts +3 -2
  66. package/templates/salon-spa/tier5-src/_shared/branded-lite-hosted.ts +3 -2
  67. package/templates/wholesale-store/tier5-src/_shared/branded-lite-hosted.ts +3 -2
  68. package/templates/yoga-studio/l10n/en.json +2 -2
  69. package/templates/yoga-studio/tier5-src/_shared/branded-lite-hosted.ts +3 -2
@@ -5,6 +5,8 @@ var port;var protocol="himi.t5.frame/1";var chunks={runtime:[],bundle:[],handler
5
5
  var CHUNK_CHARS=12288;var CHUNK_AT=20480;var CHUNK_MAX=4194304;var CHUNK_PARTS=1024;
6
6
  var inCid="",inRid=undefined,inParts=null,inFilled=0,inBytes=0,outCid=0;
7
7
  var kv=Object.create(null),kvPending=Object.create(null),kvSeq=0;
8
+ // RFC 0054 §5 — the realm's private catalog setter; only the lookup is global.
9
+ var l10nInstall=null;
8
10
  // The SAME conservative UTF-8 measure protocol.ts's `utf8Budget` uses. This realm
9
11
  // has no TextEncoder, and a budget the two sides compute differently is a budget
10
12
  // one side silently violates.
@@ -189,6 +191,19 @@ function boot(p){
189
191
  if(!runtime||!bundle||!complete(chunks.runtime)||!complete(chunks.bundle)){send("error","incomplete frame source");return;}
190
192
  try{
191
193
  installBridges(p.storage,p.observe,p.webview===true);
194
+ if(p.l10n&&typeof p.l10n==="object"){var l10n=((function(data,granted){
195
+ var stringify=JSON.stringify,has=Object.prototype.hasOwnProperty,maxKey=4096,maxMessage=524288,denied="capability not declared: l10n";
196
+ var holder={data:data};
197
+ function pick(c,k){if(!c||typeof c!=="object"||!has.call(c,k))return undefined;var v=c[k];return typeof v==="string"&&v&&v.length<=maxMessage?v:undefined;}
198
+ function lookup(key){
199
+ if(!granted)throw new Error(denied);
200
+ var d=holder.data,locale=d&&typeof d.locale==="string"&&d.locale?d.locale:"en";
201
+ var env={locale:locale,dir:d&&d.dir==="rtl"?"rtl":"ltr"};
202
+ if(typeof key==="string"&&key&&key.length<=maxKey&&d){var m=pick(d.active,key);if(m===undefined)m=pick(d.source,key);if(m)env.message=m;}
203
+ return stringify(env);
204
+ }
205
+ return {lookup:lookup,install:function(next){holder.data=next&&typeof next==="object"?next:null;}};
206
+ }))(p.l10n.data||null,p.l10n.granted===true);l10nInstall=l10n.install;globalThis.__himalaya_l10n=l10n.lookup;}
192
207
  // W3a — the last-known state the runtime's defineService overlays (plain JSON, structured-cloned).
193
208
  if(p.persistedState&&typeof p.persistedState==="object"&&!Array.isArray(p.persistedState))globalThis.__himalaya_persisted_state=p.persistedState;
194
209
  // Evaluation is intentionally confined to this opaque, network-denied realm.
@@ -255,6 +270,7 @@ function command(data){
255
270
  // the write, or a listener overwrote it); adopt it unless a later own write is in flight.
256
271
  if(p.op==="storage_ack"){var ak=String(p.key||"");if(typeof p.value==="string"&&kvPending[ak]===p.seq){if(p.value)kv[ak]=p.value;else delete kv[ak];}kvApplied(p.seq);return;}
257
272
  if(p.op==="storage_seed"){kvSeed(p.values,p.seq);return;}
273
+ if(p.op==="l10n_seed"){if(l10nInstall&&p.granted===true)l10nInstall(p.data||null);return;}
258
274
  // Our write numbered seq never reached the store. If it is still this key's latest
259
275
  // own write, the copy holds a value nothing else does: ask for the store's.
260
276
  if(p.op==="storage_refused"){var rk=null;for(var k in kvPending){if(kvPending[k]===p.seq)rk=k;}kvApplied(p.seq);if(rk!==null)bridge("storage_resync",{key:rk});return;}
@@ -5,6 +5,8 @@ var port;var protocol="himi.t5.frame/1";var chunks={runtime:[],bundle:[],handler
5
5
  var CHUNK_CHARS=12288;var CHUNK_AT=20480;var CHUNK_MAX=4194304;var CHUNK_PARTS=1024;
6
6
  var inCid="",inRid=undefined,inParts=null,inFilled=0,inBytes=0,outCid=0;
7
7
  var kv=Object.create(null),kvPending=Object.create(null),kvSeq=0;
8
+ // RFC 0054 §5 — the realm's private catalog setter; only the lookup is global.
9
+ var l10nInstall=null;
8
10
  // The SAME conservative UTF-8 measure protocol.ts's `utf8Budget` uses. This realm
9
11
  // has no TextEncoder, and a budget the two sides compute differently is a budget
10
12
  // one side silently violates.
@@ -189,6 +191,19 @@ function boot(p){
189
191
  if(!runtime||!bundle||!complete(chunks.runtime)||!complete(chunks.bundle)){send("error","incomplete frame source");return;}
190
192
  try{
191
193
  installBridges(p.storage,p.observe,p.webview===true);
194
+ if(p.l10n&&typeof p.l10n==="object"){var l10n=((function(data,granted){
195
+ var stringify=JSON.stringify,has=Object.prototype.hasOwnProperty,maxKey=4096,maxMessage=524288,denied="capability not declared: l10n";
196
+ var holder={data:data};
197
+ function pick(c,k){if(!c||typeof c!=="object"||!has.call(c,k))return undefined;var v=c[k];return typeof v==="string"&&v&&v.length<=maxMessage?v:undefined;}
198
+ function lookup(key){
199
+ if(!granted)throw new Error(denied);
200
+ var d=holder.data,locale=d&&typeof d.locale==="string"&&d.locale?d.locale:"en";
201
+ var env={locale:locale,dir:d&&d.dir==="rtl"?"rtl":"ltr"};
202
+ if(typeof key==="string"&&key&&key.length<=maxKey&&d){var m=pick(d.active,key);if(m===undefined)m=pick(d.source,key);if(m)env.message=m;}
203
+ return stringify(env);
204
+ }
205
+ return {lookup:lookup,install:function(next){holder.data=next&&typeof next==="object"?next:null;}};
206
+ }))(p.l10n.data||null,p.l10n.granted===true);l10nInstall=l10n.install;globalThis.__himalaya_l10n=l10n.lookup;}
192
207
  // W3a — the last-known state the runtime's defineService overlays (plain JSON, structured-cloned).
193
208
  if(p.persistedState&&typeof p.persistedState==="object"&&!Array.isArray(p.persistedState))globalThis.__himalaya_persisted_state=p.persistedState;
194
209
  // Evaluation is intentionally confined to this opaque, network-denied realm.
@@ -255,6 +270,7 @@ function command(data){
255
270
  // the write, or a listener overwrote it); adopt it unless a later own write is in flight.
256
271
  if(p.op==="storage_ack"){var ak=String(p.key||"");if(typeof p.value==="string"&&kvPending[ak]===p.seq){if(p.value)kv[ak]=p.value;else delete kv[ak];}kvApplied(p.seq);return;}
257
272
  if(p.op==="storage_seed"){kvSeed(p.values,p.seq);return;}
273
+ if(p.op==="l10n_seed"){if(l10nInstall&&p.granted===true)l10nInstall(p.data||null);return;}
258
274
  // Our write numbered seq never reached the store. If it is still this key's latest
259
275
  // own write, the copy holds a value nothing else does: ask for the store's.
260
276
  if(p.op==="storage_refused"){var rk=null;for(var k in kvPending){if(kvPending[k]===p.seq)rk=k;}kvApplied(p.seq);if(rk!==null)bridge("storage_resync",{key:rk});return;}