@reventlessdev/reventless-host-shell 3.0.0-alpha.52 → 3.0.0-alpha.53

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.
@@ -1 +1 @@
1
- import{G as z,H as k}from"./index-CKkRuIyz.js";import"./virtualExposes-DN39MDG_.js";import"./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__reventless_host_shell__remoteEntry-_hash_-TJtk2Lkb.js";import"./preload-helper-BlTxHScW.js";import"./_virtual_mf___mfe_internal__reventless_host_shell__loadShare__react_mf_2_dom_mf_1_client__loadShare__.mjs-BzAfciYp.js";import"./__virtual_mf___mfe_internal__reventless_host_shell__loadShare__react_mf_2_dom__loadShare__.mjs_commonjs-proxy-BUE6rcGI.js";import"./__virtual_mf___mfe_internal__reventless_host_shell__loadShare__react__loadShare__.mjs_commonjs-proxy-CfkhEoF5.js";import"./_virtual_mf___mfe_internal__reventless_host_shell__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs-hre-5-8f.js";import"./_virtual_mf___mfe_internal__reventless_host_shell__loadShare__react__loadShare__.mjs-CuPed97e.js";import"./_virtual_mf___mfe_internal__reventless_host_shell__loadShare__react_mf_2_dom__loadShare__.mjs-Df1FMNLk.js";class _{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:s,serializer:n,deserializer:l,serdeContext:c,defaultContentType:y}){this.marshaller=s,this.serializer=n,this.deserializer=l,this.serdeContext=c,this.defaultContentType=y}async serializeEventStream({eventStream:s,requestSchema:n,initialRequest:l}){const c=this.marshaller,y=n.getEventStreamMember(),S=n.getMemberSchema(y),d=this.serializer,h=this.defaultContentType,u=Symbol("initialRequestMarker"),p={async*[Symbol.asyncIterator](){if(l){const r={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:h}};d.write(n,l);const e=d.flush();yield{[u]:!0,headers:r,body:e}}for await(const r of s)yield r}};return c.serialize(p,r=>{if(r[u])return{headers:r.headers,body:r.body};let e="";for(const i in r)if(i!=="__type"){e=i;break}const{additionalHeaders:t,body:a,eventType:o,explicitPayloadContentType:m}=this.writeEventBody(e,S,r);return{headers:{":event-type":{type:"string",value:o},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:m??h},...t},body:a}})}async deserializeEventStream({response:s,responseSchema:n,initialResponseContainer:l}){const c=this.marshaller,y=n.getEventStreamMember(),d=n.getMemberSchema(y).getMemberSchemas(),h=Symbol("initialResponseMarker"),u=c.deserialize(s.body,async e=>{let t="";for(const o in e)if(o!=="__type"){t=o;break}const a=e[t].body;if(t==="initial-response"){const o=await this.deserializer.read(n,a);return delete o[y],{[h]:!0,...o}}else if(t in d){const o=d[t];if(o.isStructSchema()){const m={};let f=!1;for(const[i,g]of o.structIterator()){const{eventHeader:v,eventPayload:w}=g.getMergedTraits();if(f=f||!!(v||w),w)g.isBlobSchema()?m[i]=a:g.isStringSchema()?m[i]=(this.serdeContext?.utf8Encoder??z)(a):g.isStructSchema()&&(m[i]=await this.deserializer.read(g,a));else if(v){const b=e[t].headers[i]?.value;b!=null&&(g.isNumericSchema()?b&&typeof b=="object"&&"bytes"in b?m[i]=BigInt(b.toString()):m[i]=Number(b):m[i]=b)}}if(f)return{[t]:m};if(a.byteLength===0)return{[t]:{}}}return{[t]:await this.deserializer.read(o,a)}}else return{$unknown:e}}),p=u[Symbol.asyncIterator](),r=await p.next();if(r.done)return u;if(r.value?.[h]){if(!n)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(const e in r.value)l[e]=r.value[e]}return{async*[Symbol.asyncIterator](){for(r?.value?.[h]||(yield r.value);;){const{done:e,value:t}=await p.next();if(e)break;yield t}}}}writeEventBody(s,n,l){const c=this.serializer;let y=s,S=null,d;const h=n.getSchema()[4].includes(s),u={};if(h){const e=n.getMemberSchema(s);if(e.isStructSchema()){for(const[t,a]of e.structIterator()){const{eventHeader:o,eventPayload:m}=a.getMergedTraits();if(m)S=t;else if(o){const f=l[s][t];let i="binary";a.isNumericSchema()?(-2)**31<=f&&f<=2**31-1?i="integer":i="long":a.isTimestampSchema()?i="timestamp":a.isStringSchema()?i="string":a.isBooleanSchema()&&(i="boolean"),f!=null&&(u[t]={type:i,value:f},delete l[s][t])}}if(S!==null){const t=e.getMemberSchema(S);t.isBlobSchema()?d="application/octet-stream":t.isStringSchema()&&(d="text/plain"),c.write(t,l[s][S])}else c.write(e,l[s])}else if(e.isUnitSchema())c.write(e,{});else throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}else{const[e,t]=l[s];y=e,c.write(15,t)}const p=c.flush()??new Uint8Array;return{body:typeof p=="string"?(this.serdeContext?.utf8Decoder??k)(p):p,eventType:y,explicitPayloadContentType:d,additionalHeaders:u}}}export{_ as EventStreamSerde};
1
+ import{F as z,G as k}from"./index-B708Gr2B.js";import"./virtualExposes-DN39MDG_.js";import"./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__reventless_host_shell__remoteEntry-_hash_-TJtk2Lkb.js";import"./preload-helper-BlTxHScW.js";import"./_virtual_mf___mfe_internal__reventless_host_shell__loadShare__react_mf_2_dom_mf_1_client__loadShare__.mjs-BzAfciYp.js";import"./__virtual_mf___mfe_internal__reventless_host_shell__loadShare__react_mf_2_dom__loadShare__.mjs_commonjs-proxy-BUE6rcGI.js";import"./__virtual_mf___mfe_internal__reventless_host_shell__loadShare__react__loadShare__.mjs_commonjs-proxy-CfkhEoF5.js";import"./_virtual_mf___mfe_internal__reventless_host_shell__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.mjs-hre-5-8f.js";import"./_virtual_mf___mfe_internal__reventless_host_shell__loadShare__react__loadShare__.mjs-CuPed97e.js";import"./_virtual_mf___mfe_internal__reventless_host_shell__loadShare__react_mf_2_dom__loadShare__.mjs-Df1FMNLk.js";class _{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:s,serializer:n,deserializer:l,serdeContext:c,defaultContentType:y}){this.marshaller=s,this.serializer=n,this.deserializer=l,this.serdeContext=c,this.defaultContentType=y}async serializeEventStream({eventStream:s,requestSchema:n,initialRequest:l}){const c=this.marshaller,y=n.getEventStreamMember(),S=n.getMemberSchema(y),d=this.serializer,h=this.defaultContentType,u=Symbol("initialRequestMarker"),p={async*[Symbol.asyncIterator](){if(l){const r={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:h}};d.write(n,l);const e=d.flush();yield{[u]:!0,headers:r,body:e}}for await(const r of s)yield r}};return c.serialize(p,r=>{if(r[u])return{headers:r.headers,body:r.body};let e="";for(const i in r)if(i!=="__type"){e=i;break}const{additionalHeaders:t,body:a,eventType:o,explicitPayloadContentType:m}=this.writeEventBody(e,S,r);return{headers:{":event-type":{type:"string",value:o},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:m??h},...t},body:a}})}async deserializeEventStream({response:s,responseSchema:n,initialResponseContainer:l}){const c=this.marshaller,y=n.getEventStreamMember(),d=n.getMemberSchema(y).getMemberSchemas(),h=Symbol("initialResponseMarker"),u=c.deserialize(s.body,async e=>{let t="";for(const o in e)if(o!=="__type"){t=o;break}const a=e[t].body;if(t==="initial-response"){const o=await this.deserializer.read(n,a);return delete o[y],{[h]:!0,...o}}else if(t in d){const o=d[t];if(o.isStructSchema()){const m={};let f=!1;for(const[i,g]of o.structIterator()){const{eventHeader:v,eventPayload:w}=g.getMergedTraits();if(f=f||!!(v||w),w)g.isBlobSchema()?m[i]=a:g.isStringSchema()?m[i]=(this.serdeContext?.utf8Encoder??z)(a):g.isStructSchema()&&(m[i]=await this.deserializer.read(g,a));else if(v){const b=e[t].headers[i]?.value;b!=null&&(g.isNumericSchema()?b&&typeof b=="object"&&"bytes"in b?m[i]=BigInt(b.toString()):m[i]=Number(b):m[i]=b)}}if(f)return{[t]:m};if(a.byteLength===0)return{[t]:{}}}return{[t]:await this.deserializer.read(o,a)}}else return{$unknown:e}}),p=u[Symbol.asyncIterator](),r=await p.next();if(r.done)return u;if(r.value?.[h]){if(!n)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(const e in r.value)l[e]=r.value[e]}return{async*[Symbol.asyncIterator](){for(r?.value?.[h]||(yield r.value);;){const{done:e,value:t}=await p.next();if(e)break;yield t}}}}writeEventBody(s,n,l){const c=this.serializer;let y=s,S=null,d;const h=n.getSchema()[4].includes(s),u={};if(h){const e=n.getMemberSchema(s);if(e.isStructSchema()){for(const[t,a]of e.structIterator()){const{eventHeader:o,eventPayload:m}=a.getMergedTraits();if(m)S=t;else if(o){const f=l[s][t];let i="binary";a.isNumericSchema()?(-2)**31<=f&&f<=2**31-1?i="integer":i="long":a.isTimestampSchema()?i="timestamp":a.isStringSchema()?i="string":a.isBooleanSchema()&&(i="boolean"),f!=null&&(u[t]={type:i,value:f},delete l[s][t])}}if(S!==null){const t=e.getMemberSchema(S);t.isBlobSchema()?d="application/octet-stream":t.isStringSchema()&&(d="text/plain"),c.write(t,l[s][S])}else c.write(e,l[s])}else if(e.isUnitSchema())c.write(e,{});else throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}else{const[e,t]=l[s];y=e,c.write(15,t)}const p=c.flush()??new Uint8Array;return{body:typeof p=="string"?(this.serdeContext?.utf8Decoder??k)(p):p,eventType:y,explicitPayloadContentType:d,additionalHeaders:u}}}export{_ as EventStreamSerde};
package/dist/config.json CHANGED
@@ -2,7 +2,6 @@
2
2
  "apiEndpoint": "/graphql",
3
3
  "platformApiEndpoint": "/platform-graphql",
4
4
  "authMode": "local",
5
- "uploadEndpoint": "/__inmemory/upload",
6
5
  "domainApiEventsEndpoint": "/events",
7
6
  "clientEventsNamespace": "client",
8
7
  "viewModes": []
@@ -14,4 +14,4 @@ const __mfImport = (src) =>
14
14
  const runtime = await initHost();
15
15
  const __mfRemotePreloads = [];
16
16
  await Promise.all(__mfRemotePreloads);
17
- })().then(() => __mfImport("/assets/index-CKkRuIyz.js"));
17
+ })().then(() => __mfImport("/assets/index-B708Gr2B.js"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reventlessdev/reventless-host-shell",
3
- "version": "3.0.0-alpha.52",
3
+ "version": "3.0.0-alpha.53",
4
4
  "description": "Reventless host shell SPA — loads plugin UI fragments at runtime via Module Federation",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "bin": {
@@ -28,10 +28,10 @@
28
28
  "@aws-sdk/client-cognito-identity-provider": "^3.658.0",
29
29
  "@module-federation/runtime": "^0.18.0",
30
30
  "@rescript/react": "^0.13.1",
31
- "@reventlessdev/reventless-graph": "0.1.0-alpha.9",
32
- "@reventlessdev/reventless-map": "0.1.0-alpha.9",
31
+ "@reventlessdev/reventless-graph": "0.1.0-alpha.10",
32
+ "@reventlessdev/reventless-map": "0.1.0-alpha.10",
33
33
  "@reventlessdev/reventless-routes": "3.0.0-alpha.11",
34
- "@reventlesslab/reventless-ui": "3.0.0-alpha.48",
34
+ "@reventlesslab/reventless-ui": "3.0.0-alpha.49",
35
35
  "graphql-ws": "^5.16.0",
36
36
  "jwt-decode": "^4.0.0",
37
37
  "react": "^18.3.1",
@@ -46,5 +46,5 @@
46
46
  "registry": "https://registry.npmjs.org",
47
47
  "access": "public"
48
48
  },
49
- "gitHead": "53e8edddc87a87bffde2e05d0e98e767afdfb9ad"
49
+ "gitHead": "448c59128e72d2b24d4a6df54064aead8f8f3430"
50
50
  }
package/vite.config.mjs CHANGED
@@ -33,13 +33,13 @@ const proxy = {
33
33
  },
34
34
  // Auth_InMemory's POST /__inmemory/login + /logout endpoints (Stage A4
35
35
  // in reventless-core). Same origin as /graphql so the host-shell's
36
- // AuthProvider can hit them without a separate base URL. Also covers the
37
- // served-bucket presign route POST /__inmemory/upload.
36
+ // AuthProvider can hit them without a separate base URL.
38
37
  "/__inmemory": "http://localhost:4000",
39
38
  // Served-bucket read/write path: the local platform stores uploaded objects
40
39
  // in LocalObjectStore and serves them same-origin at /uploads/{key}. The
41
- // FileDropzone adapter PUTs bytes here after presign, and rendered <img>
42
- // tags GET them back — both proxy to the dev domain server on 4000.
40
+ // FileDropzone adapter PUTs bytes here after minting a target over /graphql,
41
+ // and rendered <img> tags GET them back — both proxy to the dev domain
42
+ // server on 4000.
43
43
  "/uploads": "http://localhost:4000",
44
44
  // Local AppSync Events transport on the dev domain server: POST /events
45
45
  // publishes on client channels, and /events/realtime is the subscribe