@alicloud/appflow-chat 0.0.4-beta.2 → 0.0.4-beta.4
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/appflow-chat.cjs.js +1 -1
- package/dist/appflow-chat.esm.js +1 -1
- package/dist/{dayjs.min-QTCa-wyv.cjs → dayjs.min-L7v6Rjvs.cjs} +1 -1
- package/dist/{dayjs.min-DWSn5QqA.js → dayjs.min-MIkW36mC.js} +1 -1
- package/dist/{index-cl42IZ0C.cjs → index-CsdPG_CH.cjs} +140 -141
- package/dist/{index-CtMPAAIm.js → index-DuGIPL7L.js} +4834 -4818
- package/package.json +1 -1
- package/src/components/HumanVerify/CustomParamsRenderer/TimeField.tsx +70 -79
package/dist/appflow-chat.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CsdPG_CH.cjs");exports.BubbleContent=e.BubbleContent;exports.ChatService=e.ChatService;exports.CustomParamsRenderer=e.CustomParamsRenderer;exports.DocReferences=e.DocReferences;exports.HistoryCard=e.HistoryCard;exports.HumanVerify=e.HumanVerify;exports.MarkdownRenderer=e.MarkdownRenderer;exports.MarkdownView=e.MarkdownView;exports.MessageBubble=e.MessageBubble;exports.RichBubbleContent=e.RichBubbleContent;exports.RichBubbleProvider=e.RichBubbleProvider;exports.RichMessageBubble=e.RichMessageBubble;exports.SourceContent=e.SourceContent;exports.WebSearchContent=e.WebSearchContent;exports.WebSearchPanel=e.WebSearchPanel;exports.chatService=e.chatService;exports.convertSchemaToUpperCase=e.convertSchemaToUpperCase;exports.loadEchartsScript=e.loadEchartsScript;exports.loadMermaidScript=e.loadMermaidScript;exports.useCustomParamsRenderer=e.useCustomParamsRenderer;exports.useRichBubbleContext=e.useRichBubbleContext;exports.validateCustomParams=e.validateCustomParams;
|
package/dist/appflow-chat.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as s, C as r, a as t, D as o, H as n, b as c, M as b, d as i, e as u, R as d, f as C, h, S as l, W as m, i as R, j as S, k as B, l as v, m as M, u as p, n as P, v as f } from "./index-
|
|
1
|
+
import { B as s, C as r, a as t, D as o, H as n, b as c, M as b, d as i, e as u, R as d, f as C, h, S as l, W as m, i as R, j as S, k as B, l as v, m as M, u as p, n as P, v as f } from "./index-DuGIPL7L.js";
|
|
2
2
|
export {
|
|
3
3
|
s as BubbleContent,
|
|
4
4
|
r as ChatService,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const V=require("./index-
|
|
1
|
+
"use strict";const V=require("./index-CsdPG_CH.cjs");function X(Y,F){for(var D=0;D<F.length;D++){const m=F[D];if(typeof m!="string"&&!Array.isArray(m)){for(const M in m)if(M!=="default"&&!(M in Y)){const S=Object.getOwnPropertyDescriptor(m,M);S&&Object.defineProperty(Y,M,S.get?S:{enumerable:!0,get:()=>m[M]})}}}return Object.freeze(Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"}))}var q={exports:{}};(function(Y,F){(function(D,m){Y.exports=m()})(V.commonjsGlobal,function(){var D=1e3,m=6e4,M=36e5,S="millisecond",b="second",j="minute",k="hour",g="day",L="week",y="month",J="quarter",v="year",x="date",P="Invalid Date",G=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Q=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,K={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(s){var n=["th","st","nd","rd"],t=s%100;return"["+s+(n[(t-20)%10]||n[t]||n[0])+"]"}},U=function(s,n,t){var r=String(s);return!r||r.length>=n?s:""+Array(n+1-r.length).join(t)+s},R={s:U,z:function(s){var n=-s.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+U(r,2,"0")+":"+U(e,2,"0")},m:function s(n,t){if(n.date()<t.date())return-s(t,n);var r=12*(t.year()-n.year())+(t.month()-n.month()),e=n.clone().add(r,y),i=t-e<0,u=n.clone().add(r+(i?-1:1),y);return+(-(r+(t-e)/(i?e-u:u-e))||0)},a:function(s){return s<0?Math.ceil(s)||0:Math.floor(s)},p:function(s){return{M:y,y:v,w:L,d:g,D:x,h:k,m:j,s:b,ms:S,Q:J}[s]||String(s||"").toLowerCase().replace(/s$/,"")},u:function(s){return s===void 0}},H="en",_={};_[H]=K;var Z="$isDayjsObject",z=function(s){return s instanceof I||!(!s||!s[Z])},W=function s(n,t,r){var e;if(!n)return H;if(typeof n=="string"){var i=n.toLowerCase();_[i]&&(e=i),t&&(_[i]=t,e=i);var u=n.split("-");if(!e&&u.length>1)return s(u[0])}else{var o=n.name;_[o]=n,e=o}return!r&&e&&(H=e),e||!r&&H},f=function(s,n){if(z(s))return s.clone();var t=typeof n=="object"?n:{};return t.date=s,t.args=arguments,new I(t)},a=R;a.l=W,a.i=z,a.w=function(s,n){return f(s,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var I=function(){function s(t){this.$L=W(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[Z]=!0}var n=s.prototype;return n.parse=function(t){this.$d=function(r){var e=r.date,i=r.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(G);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return i?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)}(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return a},n.isValid=function(){return this.$d.toString()!==P},n.isSame=function(t,r){var e=f(t);return this.startOf(r)<=e&&e<=this.endOf(r)},n.isAfter=function(t,r){return f(t)<this.startOf(r)},n.isBefore=function(t,r){return this.endOf(r)<f(t)},n.$g=function(t,r,e){return a.u(t)?this[r]:this.set(e,t)},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this.$d.getTime()},n.startOf=function(t,r){var e=this,i=!!a.u(r)||r,u=a.p(t),o=function(O,l){var p=a.w(e.$u?Date.UTC(e.$y,l,O):new Date(e.$y,l,O),e);return i?p:p.endOf(g)},c=function(O,l){return a.w(e.toDate()[O].apply(e.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(l)),e)},h=this.$W,d=this.$M,$=this.$D,T="set"+(this.$u?"UTC":"");switch(u){case v:return i?o(1,0):o(31,11);case y:return i?o(1,d):o(0,d+1);case L:var w=this.$locale().weekStart||0,A=(h<w?h+7:h)-w;return o(i?$-A:$+(6-A),d);case g:case x:return c(T+"Hours",0);case k:return c(T+"Minutes",1);case j:return c(T+"Seconds",2);case b:return c(T+"Milliseconds",3);default:return this.clone()}},n.endOf=function(t){return this.startOf(t,!1)},n.$set=function(t,r){var e,i=a.p(t),u="set"+(this.$u?"UTC":""),o=(e={},e[g]=u+"Date",e[x]=u+"Date",e[y]=u+"Month",e[v]=u+"FullYear",e[k]=u+"Hours",e[j]=u+"Minutes",e[b]=u+"Seconds",e[S]=u+"Milliseconds",e)[i],c=i===g?this.$D+(r-this.$W):r;if(i===y||i===v){var h=this.clone().set(x,1);h.$d[o](c),h.init(),this.$d=h.set(x,Math.min(this.$D,h.daysInMonth())).$d}else o&&this.$d[o](c);return this.init(),this},n.set=function(t,r){return this.clone().$set(t,r)},n.get=function(t){return this[a.p(t)]()},n.add=function(t,r){var e,i=this;t=Number(t);var u=a.p(r),o=function(d){var $=f(i);return a.w($.date($.date()+Math.round(d*t)),i)};if(u===y)return this.set(y,this.$M+t);if(u===v)return this.set(v,this.$y+t);if(u===g)return o(1);if(u===L)return o(7);var c=(e={},e[j]=m,e[k]=M,e[b]=D,e)[u]||1,h=this.$d.getTime()+t*c;return a.w(h,this)},n.subtract=function(t,r){return this.add(-1*t,r)},n.format=function(t){var r=this,e=this.$locale();if(!this.isValid())return e.invalidDate||P;var i=t||"YYYY-MM-DDTHH:mm:ssZ",u=a.z(this),o=this.$H,c=this.$m,h=this.$M,d=e.weekdays,$=e.months,T=e.meridiem,w=function(l,p,C,N){return l&&(l[p]||l(r,i))||C[p].slice(0,N)},A=function(l){return a.s(o%12||12,l,"0")},O=T||function(l,p,C){var N=l<12?"AM":"PM";return C?N.toLowerCase():N};return i.replace(Q,function(l,p){return p||function(C){switch(C){case"YY":return String(r.$y).slice(-2);case"YYYY":return a.s(r.$y,4,"0");case"M":return h+1;case"MM":return a.s(h+1,2,"0");case"MMM":return w(e.monthsShort,h,$,3);case"MMMM":return w($,h);case"D":return r.$D;case"DD":return a.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return w(e.weekdaysMin,r.$W,d,2);case"ddd":return w(e.weekdaysShort,r.$W,d,3);case"dddd":return d[r.$W];case"H":return String(o);case"HH":return a.s(o,2,"0");case"h":return A(1);case"hh":return A(2);case"a":return O(o,c,!0);case"A":return O(o,c,!1);case"m":return String(c);case"mm":return a.s(c,2,"0");case"s":return String(r.$s);case"ss":return a.s(r.$s,2,"0");case"SSS":return a.s(r.$ms,3,"0");case"Z":return u}return null}(l)||u.replace(":","")})},n.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},n.diff=function(t,r,e){var i,u=this,o=a.p(r),c=f(t),h=(c.utcOffset()-this.utcOffset())*m,d=this-c,$=function(){return a.m(u,c)};switch(o){case v:i=$()/12;break;case y:i=$();break;case J:i=$()/3;break;case L:i=(d-h)/6048e5;break;case g:i=(d-h)/864e5;break;case k:i=d/M;break;case j:i=d/m;break;case b:i=d/D;break;default:i=d}return e?i:a.a(i)},n.daysInMonth=function(){return this.endOf(y).$D},n.$locale=function(){return _[this.$L]},n.locale=function(t,r){if(!t)return this.$L;var e=this.clone(),i=W(t,r,!0);return i&&(e.$L=i),e},n.clone=function(){return a.w(this.$d,this)},n.toDate=function(){return new Date(this.valueOf())},n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toISOString=function(){return this.$d.toISOString()},n.toString=function(){return this.$d.toUTCString()},s}(),E=I.prototype;return f.prototype=E,[["$ms",S],["$s",b],["$m",j],["$H",k],["$W",g],["$M",y],["$y",v],["$D",x]].forEach(function(s){E[s[1]]=function(n){return this.$g(n,s[0],s[1])}}),f.extend=function(s,n){return s.$i||(s(n,I,f),s.$i=!0),f},f.locale=W,f.isDayjs=z,f.unix=function(s){return f(1e3*s)},f.en=_[H],f.Ls=_,f.p={},f})})(q);var B=q.exports;const tt=V.getDefaultExportFromCjs(B),et=X({__proto__:null,default:tt},[B]);exports.dayjs_min=et;
|