dynamic-mui 4.0.1 → 4.0.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.
- package/dist/dynamic-mui.cjs.js +1 -1
- package/dist/dynamic-mui.es.js +4 -4
- package/dist/index-BJUf5iG7.js +1 -0
- package/dist/index-CZwPjzNR.js +428 -0
- package/dist/index-DueLYDEh.mjs +165 -0
- package/dist/{index-C6FETa-1.mjs → index-Nx4sGg5x.mjs} +32173 -31554
- package/dist/loadCognitoIdentity-aCnxH9ka.mjs +834 -0
- package/dist/loadCognitoIdentity-nV_2nvxn.js +1 -0
- package/package.json +15 -12
- package/dist/index-BmRDKUhx.js +0 -1
- package/dist/index-D2FS0pfd.js +0 -446
- package/dist/index-sj0peQxt.mjs +0 -153
- package/dist/loadCognitoIdentity-Ci_Avy-k.js +0 -1
- package/dist/loadCognitoIdentity-LoAuduOp.mjs +0 -879
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-CZwPjzNR.js");class oe extends r.HttpProtocol{async serializeRequest(t,e,s){const i=this.serializer,a={},o={},d=await s.endpoint(),c=r.NormalizedSchema.of(t?.input),m=c.getSchema();let f;const u=e&&typeof e=="object"?e:{},p=new r.HttpRequest({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:a,headers:o,body:void 0});if(d&&(this.updateServiceEndpoint(p,d),this.setHostPrefix(p,t,u)),u){const l=c.getEventStreamMember();if(l){if(u[l]){const g={};for(const[x,z]of c.structIterator())x!==l&&u[x]&&(i.write(z,u[x]),g[x]=i.flush());f=await this.serializeEventStream({eventStream:u[l],requestSchema:c,initialRequest:g})}}else i.write(m,u),f=i.flush()}return p.headers=Object.assign(p.headers,o),p.query=a,p.body=f,p.method="POST",p}async deserializeResponse(t,e,s){const i=this.deserializer,a=r.NormalizedSchema.of(t.output),o={};if(s.statusCode>=300){const c=await r.collectBody(s.body,e);throw c.byteLength>0&&Object.assign(o,await i.read(15,c)),await this.handleError(t,e,s,o,this.deserializeMetadata(s)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const c in s.headers){const m=s.headers[c];delete s.headers[c],s.headers[c.toLowerCase()]=m}const d=a.getEventStreamMember();if(d)o[d]=await this.deserializeEventStream({response:s,responseSchema:a,initialResponseContainer:o});else{const c=await r.collectBody(s.body,e);c.byteLength>0&&Object.assign(o,await i.read(a,c))}return o.$metadata=this.deserializeMetadata(s),o}}class ae{async sign(t,e,s){return t}}function ce(n,t,e){if(e?.source){const s=e.source;if(typeof t=="number"&&(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER||s!==String(t)))return s.includes(".")?new r.NumericValue(s,"bigDecimal"):BigInt(s)}return t}const de=(n,t)=>r.collectBody(n,t).then(e=>(t?.utf8Encoder??r.toUtf8)(e)),ue=(n,t)=>de(n,t).then(e=>{if(e.length)try{return JSON.parse(e)}catch(s){throw s?.name==="SyntaxError"&&Object.defineProperty(s,"$responseBodyText",{value:e}),s}return{}}),q=(n,t)=>Object.keys(n).find(e=>e.toLowerCase()===t.toLowerCase()),D=n=>{let t=n;return typeof t=="number"&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},pe=(n,t)=>{const e=q(n.headers,"x-amzn-errortype");if(e!==void 0)return D(n.headers[e]);if(t&&typeof t=="object"){const s=q(t,"code");if(s&&t[s]!==void 0)return D(t[s]);if(t.__type!==void 0)return D(t.__type)}};class me extends r.SerdeContextConfig{settings;constructor(t){super(),this.settings=t}async read(t,e){return this._read(t,typeof e=="string"?JSON.parse(e,ce):await ue(e,this.serdeContext))}readObject(t,e){return this._read(t,e)}_read(t,e){const s=e!==null&&typeof e=="object",i=r.NormalizedSchema.of(t);if(s){if(i.isStructSchema()){const o=e,d=i.isUnionSchema(),c={};let m;const{jsonName:f}=this.settings;f&&(m={});let u;d&&(u=new r.UnionSerde(o,c));for(const[p,l]of i.structIterator()){let g=p;f&&(g=l.getMergedTraits().jsonName??g,m[g]=p),d&&u.mark(g),o[g]!=null&&(c[p]=this._read(l,o[g]))}if(d)u.writeUnknown();else if(typeof o.__type=="string")for(const p in o){const l=o[p],g=f?m[p]??p:p;g in c||(c[g]=l)}return c}if(Array.isArray(e)&&i.isListSchema()){const o=i.getValueSchema(),d=[];for(const c of e)d.push(this._read(o,c));return d}if(i.isMapSchema()){const o=i.getValueSchema(),d={};for(const c in e)d[c]=this._read(o,e[c]);return d}}if(i.isBlobSchema()&&typeof e=="string")return r.fromBase64(e);const a=i.getMergedTraits().mediaType;if(i.isStringSchema()&&typeof e=="string"&&a)return a==="application/json"||a.endsWith("+json")?r.LazyJsonString.from(e):e;if(i.isTimestampSchema()&&e!=null)switch(r.determineTimestampFormat(i,this.settings)){case 5:return r.parseRfc3339DateTimeWithOffset(e);case 6:return r.parseRfc7231DateTime(e);case 7:return r.parseEpochTimestamp(e);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",e),new Date(e)}if(i.isBigIntegerSchema()&&(typeof e=="number"||typeof e=="string"))return BigInt(e);if(i.isBigDecimalSchema()&&e!=null){if(e instanceof r.NumericValue)return e;const o=e;return o.type==="bigDecimal"&&"string"in o?new r.NumericValue(o.string,o.type):new r.NumericValue(String(e),"bigDecimal")}if(i.isNumericSchema()&&typeof e=="string"){switch(e){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return e}if(i.isDocumentSchema())if(s){const o=Array.isArray(e)?[]:{};for(const d in e){const c=e[d];c instanceof r.NumericValue?o[d]=c:o[d]=this._read(i,c)}return o}else return structuredClone(e);return e}}const V="Ν";class le{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(t,e)=>{if(e instanceof r.NumericValue){const s=`${V+"nv"+this.counter++}_`+e.string;return this.values.set(`"${s}"`,e.string),s}if(typeof e=="bigint"){const s=e.toString(),i=`${V+"b"+this.counter++}_`+s;return this.values.set(`"${i}"`,s),i}return e}}replaceInJson(t){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return t;for(const[e,s]of this.values)t=t.replace(e,s);return t}}class he extends r.SerdeContextConfig{settings;buffer;useReplacer=!1;rootSchema;constructor(t){super(),this.settings=t}write(t,e){this.rootSchema=r.NormalizedSchema.of(t),this.buffer=this._write(this.rootSchema,e)}flush(){const{rootSchema:t,useReplacer:e}=this;if(this.rootSchema=void 0,this.useReplacer=!1,t?.isStructSchema()||t?.isDocumentSchema()){if(!e)return JSON.stringify(this.buffer);const s=new le;return s.replaceInJson(JSON.stringify(this.buffer,s.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(t,e){this.write(t,e),typeof this.buffer=="object"&&(this.buffer.__type=r.NormalizedSchema.of(t).getName(!0))}_write(t,e,s){const i=e!==null&&typeof e=="object",a=r.NormalizedSchema.of(t);if(i){if(a.isStructSchema()){const o=e,d={},{jsonName:c}=this.settings;let m;c&&(m={});let f=0;for(const[u,p]of a.structIterator()){const l=this._write(p,o[u],a);if(l!==void 0){let g=u;c&&(g=p.getMergedTraits().jsonName??u,m[u]=g),d[g]=l,f++}}if(a.isUnionSchema()&&f===0){const{$unknown:u}=o;if(Array.isArray(u)){const[p,l]=u;d[p]=this._write(15,l)}}else if(typeof o.__type=="string")for(const u in o){const p=o[u],l=c?m[u]??u:u;l in d||(d[l]=this._write(15,p))}return d}if(Array.isArray(e)&&a.isListSchema()){const o=a.getValueSchema(),d=[],c=!!a.getMergedTraits().sparse;for(const m of e)(c||m!=null)&&d.push(this._write(o,m));return d}if(a.isMapSchema()){const o=a.getValueSchema(),d={},c=!!a.getMergedTraits().sparse;for(const m in e){const f=e[m];(c||f!=null)&&(d[m]=this._write(o,f))}return d}if(e instanceof Uint8Array&&(a.isBlobSchema()||a.isDocumentSchema()))return a===this.rootSchema?e:(this.serdeContext?.base64Encoder??r.toBase64)(e);if(e instanceof Date&&(a.isTimestampSchema()||a.isDocumentSchema()))switch(r.determineTimestampFormat(a,this.settings)){case 5:return e.toISOString().replace(".000Z","Z");case 6:return r.dateToUtcString(e);case 7:return e.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",e),e.getTime()/1e3}e instanceof r.NumericValue&&(this.useReplacer=!0)}if(!(e===null&&s?.isStructSchema())){if(a.isStringSchema()){if(typeof e>"u"&&a.isIdempotencyToken())return r.v4();const o=a.getMergedTraits().mediaType;return e!=null&&o&&(o==="application/json"||o.endsWith("+json"))?r.LazyJsonString.from(e):e}if(typeof e=="number"&&a.isNumericSchema())return Math.abs(e)===1/0||isNaN(e)?String(e):e;if(typeof e=="string"&&a.isBlobSchema())return a===this.rootSchema?e:(this.serdeContext?.base64Encoder??r.toBase64)(e);if(typeof e=="bigint"&&(this.useReplacer=!0),a.isDocumentSchema())if(i){const o=Array.isArray(e)?[]:{};for(const d in e){const c=e[d];c instanceof r.NumericValue?(this.useReplacer=!0,o[d]=c):o[d]=this._write(a,c)}return o}else return structuredClone(e);return e}}}class fe extends r.SerdeContextConfig{settings;constructor(t){super(),this.settings=t}createSerializer(){const t=new he(this.settings);return t.setSerdeContext(this.serdeContext),t}createDeserializer(){const t=new me(this.settings);return t.setSerdeContext(this.serdeContext),t}}class ge extends oe{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:t,errorTypeRegistries:e,serviceTarget:s,awsQueryCompatible:i,jsonCodec:a}){super({defaultNamespace:t,errorTypeRegistries:e}),this.serviceTarget=s,this.codec=a??new fe({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!i,this.mixin=new r.ProtocolLib(this.awsQueryCompatible)}async serializeRequest(t,e,s){const i=await super.serializeRequest(t,e,s);return i.path.endsWith("/")||(i.path+="/"),i.headers["content-type"]=`application/x-amz-json-${this.getJsonRpcVersion()}`,i.headers["x-amz-target"]=`${this.serviceTarget}.${t.name}`,this.awsQueryCompatible&&(i.headers["x-amzn-query-mode"]="true"),(r.deref(t.input)==="unit"||!i.body)&&(i.body="{}"),i}getPayloadCodec(){return this.codec}async handleError(t,e,s,i,a){this.awsQueryCompatible&&this.mixin.setQueryCompatError(i,s);const o=pe(s,i)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,o,this.options.defaultNamespace);const{errorSchema:d,errorMetadata:c}=await this.mixin.getErrorSchemaOrThrowBaseException(o,this.options.defaultNamespace,s,i,a,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),m=r.NormalizedSchema.of(d),f=i.message??i.Message??"UnknownError",u=this.compositeErrorRegistry.getErrorCtor(d)??Error,p=new u(f),l={},g=this.codec.createDeserializer();for(const[x,z]of m.structIterator())i[x]!=null&&(l[x]=g.readObject(z,i[x]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(i,l),this.mixin.decorateServiceException(Object.assign(p,c,{$fault:m.getMergedTraits().error,message:f},l),i)}}class ye extends ge{constructor({defaultNamespace:t,errorTypeRegistries:e,serviceTarget:s,awsQueryCompatible:i,jsonCodec:a}){super({defaultNamespace:t,errorTypeRegistries:e,serviceTarget:s,awsQueryCompatible:i,jsonCodec:a})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}const Se=async(n,t,e)=>({operation:r.getSmithyContext(t).operation,region:await r.normalizeProvider(n.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function Ee(n){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-identity",region:n.region},propertiesExtractor:(t,e)=>({signingProperties:{config:t,context:e}})}}function K(n){return{schemeId:"smithy.api#noAuth"}}const Ie=n=>{const t=[];switch(n.operation){case"GetCredentialsForIdentity":{t.push(K());break}case"GetId":{t.push(K());break}default:t.push(Ee(n))}return t},Ce=n=>{const t=r.resolveAwsSdkSigV4Config(n);return Object.assign(t,{authSchemePreference:r.normalizeProvider(n.authSchemePreference??[])})},we=n=>Object.assign(n,{useDualstackEndpoint:n.useDualstackEndpoint??!1,useFipsEndpoint:n.useFipsEndpoint??!1,defaultSigningName:"cognito-identity"}),Y={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},xe="3.997.1",Pe={version:xe},v="ref",_=-1,N=!0,Q="isSet",ee="PartitionResult",T="booleanEquals",k="getAttr",R="stringEquals",W={[v]:"Endpoint"},M={[v]:ee},A={[v]:"Region"},E={},X=[A],Z={conditions:[[Q,[W]],[Q,X],["aws.partition",X,ee],[T,[{[v]:"UseFIPS"},N]],[T,[{fn:k,argv:[M,"supportsFIPS"]},N]],[T,[{[v]:"UseDualStack"},N]],[T,[{fn:k,argv:[M,"supportsDualStack"]},N]],[R,[{fn:k,argv:[M,"name"]},"aws"]],[R,[A,"us-east-1"]],[R,[A,"us-east-2"]],[R,[A,"us-west-1"]],[R,[A,"us-west-2"]]],results:[[_],[_,"Invalid Configuration: FIPS and custom endpoint are not supported"],[_,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[W,E],["https://cognito-identity-fips.us-east-1.amazonaws.com",E],["https://cognito-identity-fips.us-east-2.amazonaws.com",E],["https://cognito-identity-fips.us-west-1.amazonaws.com",E],["https://cognito-identity-fips.us-west-2.amazonaws.com",E],["https://cognito-identity-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",E],[_,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://cognito-identity-fips.{Region}.{PartitionResult#dnsSuffix}",E],[_,"FIPS is enabled but this partition does not support FIPS"],["https://cognito-identity.{Region}.amazonaws.com",E],["https://cognito-identity.{Region}.{PartitionResult#dualStackDnsSuffix}",E],[_,"DualStack is enabled but this partition does not support DualStack"],["https://cognito-identity.{Region}.{PartitionResult#dnsSuffix}",E],[_,"Invalid Configuration: Missing Region"]]},be=2,y=1e8,_e=new Int32Array([-1,1,-1,0,17,3,1,4,y+16,2,5,y+16,3,9,6,5,7,y+15,6,8,y+14,7,y+12,y+13,4,11,10,5,y+9,y+11,5,12,y+10,6,13,y+9,8,y+4,14,9,y+5,15,10,y+6,16,11,y+7,y+8,3,y+1,18,5,y+2,y+3]),Re=r.BinaryDecisionDiagram.from(_e,be,Z.conditions,Z.results),Ae=new r.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),ve=(n,t={})=>Ae.get(n,()=>r.decideEndpoint(Re,{endpointParams:n,logger:t.logger}));r.customEndpointFunctions.aws=r.awsEndpointFunctions;class S extends r.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,S.prototype)}}class F extends S{name="ExternalServiceException";$fault="client";constructor(t){super({name:"ExternalServiceException",$fault:"client",...t}),Object.setPrototypeOf(this,F.prototype)}}class O extends S{name="InternalErrorException";$fault="server";constructor(t){super({name:"InternalErrorException",$fault:"server",...t}),Object.setPrototypeOf(this,O.prototype)}}class $ extends S{name="InvalidIdentityPoolConfigurationException";$fault="client";constructor(t){super({name:"InvalidIdentityPoolConfigurationException",$fault:"client",...t}),Object.setPrototypeOf(this,$.prototype)}}class j extends S{name="InvalidParameterException";$fault="client";constructor(t){super({name:"InvalidParameterException",$fault:"client",...t}),Object.setPrototypeOf(this,j.prototype)}}class L extends S{name="NotAuthorizedException";$fault="client";constructor(t){super({name:"NotAuthorizedException",$fault:"client",...t}),Object.setPrototypeOf(this,L.prototype)}}class U extends S{name="ResourceConflictException";$fault="client";constructor(t){super({name:"ResourceConflictException",$fault:"client",...t}),Object.setPrototypeOf(this,U.prototype)}}class G extends S{name="ResourceNotFoundException";$fault="client";constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,G.prototype)}}class H extends S{name="TooManyRequestsException";$fault="client";constructor(t){super({name:"TooManyRequestsException",$fault:"client",...t}),Object.setPrototypeOf(this,H.prototype)}}class J extends S{name="LimitExceededException";$fault="client";constructor(t){super({name:"LimitExceededException",$fault:"client",...t}),Object.setPrototypeOf(this,J.prototype)}}const Ne="AccountId",Te="AccessKeyId",te="Credentials",ze="CustomRoleArn",De="Expiration",ke="ExternalServiceException",Me="GetCredentialsForIdentity",Fe="GetCredentialsForIdentityInput",Oe="GetCredentialsForIdentityResponse",$e="GetId",je="GetIdInput",Le="GetIdResponse",Ue="InternalErrorException",B="IdentityId",Ge="InvalidIdentityPoolConfigurationException",He="InvalidParameterException",Je="IdentityPoolId",Be="IdentityProviderToken",re="Logins",qe="LimitExceededException",Ve="LoginsMap",Ke="NotAuthorizedException",Qe="ResourceConflictException",We="ResourceNotFoundException",Xe="SecretKey",Ze="SecretKeyString",Ye="SessionToken",et="TooManyRequestsException",P="client",C="error",b="httpError",w="message",ne="smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity",tt="server",h="com.amazonaws.cognitoidentity",se=r.TypeRegistry.for(ne);var rt=[-3,ne,"CognitoIdentityServiceException",0,[],[]];se.registerError(rt,S);const I=r.TypeRegistry.for(h);var nt=[-3,h,ke,{[C]:P,[b]:400},[w],[0]];I.registerError(nt,F);var st=[-3,h,Ue,{[C]:tt},[w],[0]];I.registerError(st,O);var it=[-3,h,Ge,{[C]:P,[b]:400},[w],[0]];I.registerError(it,$);var ot=[-3,h,He,{[C]:P,[b]:400},[w],[0]];I.registerError(ot,j);var at=[-3,h,qe,{[C]:P,[b]:400},[w],[0]];I.registerError(at,J);var ct=[-3,h,Ke,{[C]:P,[b]:403},[w],[0]];I.registerError(ct,L);var dt=[-3,h,Qe,{[C]:P,[b]:409},[w],[0]];I.registerError(dt,U);var ut=[-3,h,We,{[C]:P,[b]:404},[w],[0]];I.registerError(ut,G);var pt=[-3,h,et,{[C]:P,[b]:429},[w],[0]];I.registerError(pt,H);const mt=[se,I];var lt=[0,h,Be,8,0],ht=[0,h,Ze,8,0],ft=[3,h,te,0,[Te,Xe,Ye,De],[0,[()=>ht,0],0,4]],gt=[3,h,Fe,0,[B,re,ze],[0,[()=>ie,0],0],1],yt=[3,h,Oe,0,[B,te],[0,[()=>ft,0]]],St=[3,h,je,0,[Je,Ne,re],[0,0,[()=>ie,0]],1],Et=[3,h,Le,0,[B],[0]],ie=[2,h,Ve,0,[0,0],[()=>lt,0]],It=[9,h,Me,0,()=>gt,()=>yt],Ct=[9,h,$e,0,()=>St,()=>Et];const wt=n=>({apiVersion:"2014-06-30",base64Decoder:n?.base64Decoder??r.fromBase64,base64Encoder:n?.base64Encoder??r.toBase64,disableHostPrefix:n?.disableHostPrefix??!1,endpointProvider:n?.endpointProvider??ve,extensions:n?.extensions??[],httpAuthSchemeProvider:n?.httpAuthSchemeProvider??Ie,httpAuthSchemes:n?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new r.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new ae}],logger:n?.logger??new r.NoOpLogger,protocol:n?.protocol??ye,protocolSettings:n?.protocolSettings??{defaultNamespace:"com.amazonaws.cognitoidentity",errorTypeRegistries:mt,xmlNamespace:"http://cognito-identity.amazonaws.com/doc/2014-06-30/",version:"2014-06-30",serviceTarget:"AWSCognitoIdentityService"},serviceId:n?.serviceId??"Cognito Identity",urlParser:n?.urlParser??r.parseUrl,utf8Decoder:n?.utf8Decoder??r.fromUtf8,utf8Encoder:n?.utf8Encoder??r.toUtf8}),xt=n=>{const t=r.resolveDefaultsModeConfig(n),e=()=>t().then(r.loadConfigsForDefaultMode),s=wt(n);return{...s,...n,runtime:"browser",defaultsMode:t,bodyLengthChecker:n?.bodyLengthChecker??r.calculateBodyLength,defaultUserAgentProvider:n?.defaultUserAgentProvider??r.createDefaultUserAgentProvider({serviceId:s.serviceId,clientVersion:Pe.version}),maxAttempts:n?.maxAttempts??r.DEFAULT_MAX_ATTEMPTS,region:n?.region??r.invalidProvider("Region is missing"),requestHandler:r.FetchHttpHandler.create(n?.requestHandler??e),retryMode:n?.retryMode??(async()=>(await e()).retryMode||r.DEFAULT_RETRY_MODE),sha256:n?.sha256??r.Sha256,streamCollector:n?.streamCollector??r.streamCollector,useDualstackEndpoint:n?.useDualstackEndpoint??(()=>Promise.resolve(r.DEFAULT_USE_DUALSTACK_ENDPOINT)),useFipsEndpoint:n?.useFipsEndpoint??(()=>Promise.resolve(r.DEFAULT_USE_FIPS_ENDPOINT))}},Pt=n=>{const t=n.httpAuthSchemes;let e=n.httpAuthSchemeProvider,s=n.credentials;return{setHttpAuthScheme(i){const a=t.findIndex(o=>o.schemeId===i.schemeId);a===-1?t.push(i):t.splice(a,1,i)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(i){e=i},httpAuthSchemeProvider(){return e},setCredentials(i){s=i},credentials(){return s}}},bt=n=>({httpAuthSchemes:n.httpAuthSchemes(),httpAuthSchemeProvider:n.httpAuthSchemeProvider(),credentials:n.credentials()}),_t=(n,t)=>{const e=Object.assign(r.getAwsRegionExtensionConfiguration(n),r.getDefaultExtensionConfiguration(n),r.getHttpHandlerExtensionConfiguration(n),Pt(n));return t.forEach(s=>s.configure(e)),Object.assign(n,r.resolveAwsRegionExtensionConfiguration(e),r.resolveDefaultRuntimeConfig(e),r.resolveHttpHandlerRuntimeConfig(e),bt(e))};class Rt extends r.Client{config;constructor(...[t]){const e=xt(t||{});super(e),this.initConfig=e;const s=we(e),i=r.resolveUserAgentConfig(s),a=r.resolveRetryConfig(i),o=r.resolveRegionConfig(a),d=r.resolveHostHeaderConfig(o),c=r.resolveEndpointConfig(d),m=Ce(c),f=_t(m,t?.extensions||[]);this.config=f,this.middlewareStack.use(r.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(r.getUserAgentPlugin(this.config)),this.middlewareStack.use(r.getRetryPlugin(this.config)),this.middlewareStack.use(r.getContentLengthPlugin(this.config)),this.middlewareStack.use(r.getHostHeaderPlugin(this.config)),this.middlewareStack.use(r.getLoggerPlugin(this.config)),this.middlewareStack.use(r.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(r.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:Se,identityProviderConfigProvider:async u=>new r.DefaultIdentityProviderConfig({"aws.auth#sigv4":u.credentials})})),this.middlewareStack.use(r.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class At extends r.Command.classBuilder().ep(Y).m(function(t,e,s,i){return[r.getEndpointPlugin(s,t.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetCredentialsForIdentity",{}).n("CognitoIdentityClient","GetCredentialsForIdentityCommand").sc(It).build(){}class vt extends r.Command.classBuilder().ep(Y).m(function(t,e,s,i){return[r.getEndpointPlugin(s,t.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityService","GetId",{}).n("CognitoIdentityClient","GetIdCommand").sc(Ct).build(){}exports.CognitoIdentityClient=Rt;exports.GetCredentialsForIdentityCommand=At;exports.GetIdCommand=vt;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dynamic-mui",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"author": "Dinakaran S",
|
|
5
5
|
"user": "dinakarans",
|
|
6
6
|
"repository": {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@aws-sdk/client-s3": "^3.
|
|
40
|
-
"@aws-sdk/credential-providers": "^3.
|
|
39
|
+
"@aws-sdk/client-s3": "^3.1034.0",
|
|
40
|
+
"@aws-sdk/credential-providers": "^3.1034.0",
|
|
41
41
|
"@dnd-kit/core": "^6.3.1",
|
|
42
42
|
"dayjs": "^1.11.20",
|
|
43
43
|
"lodash": "^4.18.1",
|
|
@@ -68,15 +68,18 @@
|
|
|
68
68
|
"last 1 safari version"
|
|
69
69
|
]
|
|
70
70
|
},
|
|
71
|
+
"resolutions": {
|
|
72
|
+
"vite": "^7.3.2"
|
|
73
|
+
},
|
|
71
74
|
"devDependencies": {
|
|
72
75
|
"@emotion/react": "^11.14.0",
|
|
73
76
|
"@emotion/styled": "^11.14.1",
|
|
74
77
|
"@eslint/js": "^10.0.1",
|
|
75
78
|
"@mui/icons-material": "^9.0.0",
|
|
76
79
|
"@mui/material": "^9.0.0",
|
|
77
|
-
"@mui/x-charts": "^9.0.
|
|
78
|
-
"@mui/x-data-grid": "^9.0.
|
|
79
|
-
"@mui/x-date-pickers": "^9.0.
|
|
80
|
+
"@mui/x-charts": "^9.0.2",
|
|
81
|
+
"@mui/x-data-grid": "^9.0.2",
|
|
82
|
+
"@mui/x-date-pickers": "^9.0.2",
|
|
80
83
|
"@testing-library/dom": "^10.4.1",
|
|
81
84
|
"@testing-library/jest-dom": "^6.9.1",
|
|
82
85
|
"@testing-library/react": "^16.3.2",
|
|
@@ -87,19 +90,19 @@
|
|
|
87
90
|
"@types/validator": "^13.15.10",
|
|
88
91
|
"@vitejs/plugin-react": "^5.1.4",
|
|
89
92
|
"ajv": "^8.18.0",
|
|
90
|
-
"eslint": "^10.2.
|
|
93
|
+
"eslint": "^10.2.1",
|
|
91
94
|
"eslint-plugin-import": "^2.32.0",
|
|
92
95
|
"eslint-plugin-react": "^7.37.5",
|
|
93
|
-
"eslint-plugin-react-hooks": "^7.
|
|
96
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
94
97
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
95
98
|
"globals": "^17.5.0",
|
|
96
99
|
"jsdom": "^29.0.2",
|
|
97
100
|
"react": "^19.2.5",
|
|
98
101
|
"react-dom": "^19.2.5",
|
|
99
|
-
"typescript": "^6.0.
|
|
100
|
-
"typescript-eslint": "^8.
|
|
101
|
-
"vite": "^7.3.
|
|
102
|
+
"typescript": "^6.0.3",
|
|
103
|
+
"typescript-eslint": "^8.59.0",
|
|
104
|
+
"vite": "^7.3.2",
|
|
102
105
|
"vite-plugin-dts": "^4.5.4",
|
|
103
|
-
"vitest": "^4.
|
|
106
|
+
"vitest": "^4.1.5"
|
|
104
107
|
}
|
|
105
108
|
}
|
package/dist/index-BmRDKUhx.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("./index-D2FS0pfd.js");class E{marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:i,serializer:n,deserializer:o,serdeContext:c,defaultContentType:d}){this.marshaller=i,this.serializer=n,this.deserializer=o,this.serdeContext=c,this.defaultContentType=d}async serializeEventStream({eventStream:i,requestSchema:n,initialRequest:o}){const c=this.marshaller,d=n.getEventStreamMember(),b=n.getMemberSchema(d),y=this.serializer,f=this.defaultContentType,h=Symbol("initialRequestMarker"),S={async*[Symbol.asyncIterator](){if(o){const r={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:f}};y.write(n,o);const t=y.flush();yield{[h]:!0,headers:r,body:t}}for await(const r of i)yield r}};return c.serialize(S,r=>{if(r[h])return{headers:r.headers,body:r.body};const t=Object.keys(r).find(s=>s!=="__type")??"",{additionalHeaders:e,body:a,eventType:l,explicitPayloadContentType:m}=this.writeEventBody(t,b,r);return{headers:{":event-type":{type:"string",value:l},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:m??f},...e},body:a}})}async deserializeEventStream({response:i,responseSchema:n,initialResponseContainer:o}){const c=this.marshaller,d=n.getEventStreamMember(),y=n.getMemberSchema(d).getMemberSchemas(),f=Symbol("initialResponseMarker"),h=c.deserialize(i.body,async t=>{const e=Object.keys(t).find(l=>l!=="__type")??"",a=t[e].body;if(e==="initial-response"){const l=await this.deserializer.read(n,a);return delete l[d],{[f]:!0,...l}}else if(e in y){const l=y[e];if(l.isStructSchema()){const m={};let u=!1;for(const[s,g]of l.structIterator()){const{eventHeader:v,eventPayload:w}=g.getMergedTraits();if(u=u||!!(v||w),w)g.isBlobSchema()?m[s]=a:g.isStringSchema()?m[s]=(this.serdeContext?.utf8Encoder??z.toUtf8)(a):g.isStructSchema()&&(m[s]=await this.deserializer.read(g,a));else if(v){const p=t[e].headers[s]?.value;p!=null&&(g.isNumericSchema()?p&&typeof p=="object"&&"bytes"in p?m[s]=BigInt(p.toString()):m[s]=Number(p):m[s]=p)}}if(u)return{[e]:m};if(a.byteLength===0)return{[e]:{}}}return{[e]:await this.deserializer.read(l,a)}}else return{$unknown:t}}),S=h[Symbol.asyncIterator](),r=await S.next();if(r.done)return h;if(r.value?.[f]){if(!n)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(const[t,e]of Object.entries(r.value))o[t]=e}return{async*[Symbol.asyncIterator](){for(r?.value?.[f]||(yield r.value);;){const{done:t,value:e}=await S.next();if(t)break;yield e}}}}writeEventBody(i,n,o){const c=this.serializer;let d=i,b=null,y;const f=n.getSchema()[4].includes(i),h={};if(f){const t=n.getMemberSchema(i);if(t.isStructSchema()){for(const[e,a]of t.structIterator()){const{eventHeader:l,eventPayload:m}=a.getMergedTraits();if(m)b=e;else if(l){const u=o[i][e];let s="binary";a.isNumericSchema()?(-2)**31<=u&&u<=2**31-1?s="integer":s="long":a.isTimestampSchema()?s="timestamp":a.isStringSchema()?s="string":a.isBooleanSchema()&&(s="boolean"),u!=null&&(h[e]={type:s,value:u},delete o[i][e])}}if(b!==null){const e=t.getMemberSchema(b);e.isBlobSchema()?y="application/octet-stream":e.isStringSchema()&&(y="text/plain"),c.write(e,o[i][b])}else c.write(t,o[i])}else if(t.isUnitSchema())c.write(t,{});else throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}else{const[t,e]=o[i];d=t,c.write(15,e)}const S=c.flush()??new Uint8Array;return{body:typeof S=="string"?(this.serdeContext?.utf8Decoder??z.fromUtf8)(S):S,eventType:d,explicitPayloadContentType:y,additionalHeaders:h}}}exports.EventStreamSerde=E;
|