@cleartrip/talos-chat-time-stamp 1.1.0-beta-260712-1.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.
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import type { IWidgetProps } from "@cleartrip/talos-widget-types";
3
+ import type { IChatTimeStampProps } from "./type";
4
+ declare const ChatTimeStamp: ({ data }: IWidgetProps<IChatTimeStampProps>) => import("react").JSX.Element;
5
+ export default ChatTimeStamp;
6
+ //# sourceMappingURL=ChatTimeStamp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatTimeStamp.d.ts","sourceRoot":"","sources":["../packages/components/chat-time-stamp/src/ChatTimeStamp.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAElD,QAAA,MAAM,aAAa,aAAc,aAAa,mBAAmB,CAAC,gCAIjE,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as ChatTimeStamp } from "./ChatTimeStamp";
2
+ export * from "./type";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../packages/components/chat-time-stamp/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,2 @@
1
+ "use strict";var t=require("react/jsx-runtime"),e=require("@cleartrip/talos-chat-timestamp"),r=require("@cleartrip/talos-general-utils");exports.ChatTimeStamp=function(a){var i=a.data,s=(null!=i?i:{}).createdAt;return t.jsx(e.ChatTimestamp,{createdAt:r.formatISOTime(s)})};
2
+ //# sourceMappingURL=talos-chat-time-stamp.browser.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"talos-chat-time-stamp.browser.cjs.js","sources":["../packages/components/chat-time-stamp/src/ChatTimeStamp.tsx"],"sourcesContent":[null],"names":["_a","data","createdAt","_jsx","ChatTimestamp","formatISOTime"],"mappings":"+JAKsB,SAACA,GAAE,IAAAC,EAAID,EAAAC,KACjBC,GAAcD,QAAAA,EAAQ,CAAE,GAAAC,UAEhC,OAAOC,EAAAA,IAACC,EAAAA,cAAa,CAACF,UAAWG,EAAAA,cAAcH,IACnD"}
@@ -0,0 +1,2 @@
1
+ import{jsx as t}from"react/jsx-runtime";import{ChatTimestamp as r}from"@cleartrip/talos-chat-timestamp";import{formatISOTime as a}from"@cleartrip/talos-general-utils";var e=function(e){var o=e.data,i=(null!=o?o:{}).createdAt;return t(r,{createdAt:a(i)})};export{e as ChatTimeStamp};
2
+ //# sourceMappingURL=talos-chat-time-stamp.browser.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"talos-chat-time-stamp.browser.esm.js","sources":["../packages/components/chat-time-stamp/src/ChatTimeStamp.tsx"],"sourcesContent":[null],"names":["ChatTimeStamp","_a","data","createdAt","_jsx","ChatTimestamp","formatISOTime"],"mappings":"uKAKM,IAAAA,EAAgB,SAACC,GAAE,IAAAC,EAAID,EAAAC,KACjBC,GAAcD,QAAAA,EAAQ,CAAE,GAAAC,UAEhC,OAAOC,EAACC,EAAa,CAACF,UAAWG,EAAcH,IACnD"}
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var talosChatTimestamp = require('@cleartrip/talos-chat-timestamp');
5
+ var talosGeneralUtils = require('@cleartrip/talos-general-utils');
6
+
7
+ var ChatTimeStamp = function (_a) {
8
+ var data = _a.data;
9
+ var createdAt = (data !== null && data !== void 0 ? data : {}).createdAt;
10
+ return jsxRuntime.jsx(talosChatTimestamp.ChatTimestamp, { createdAt: talosGeneralUtils.formatISOTime(createdAt) });
11
+ };
12
+
13
+ exports.ChatTimeStamp = ChatTimeStamp;
14
+ //# sourceMappingURL=talos-chat-time-stamp.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"talos-chat-time-stamp.cjs.js","sources":["../packages/components/chat-time-stamp/src/ChatTimeStamp.tsx"],"sourcesContent":[null],"names":["_jsx","ChatTimestamp","formatISOTime"],"mappings":";;;;;;AAKM,IAAA,aAAa,GAAG,UAAC,EAA2C,EAAA;AAAzC,IAAA,IAAA,IAAI,GAAA,EAAA,CAAA,IAAA,CAAA;AACjB,IAAA,IAAA,SAAS,GAAK,CAAA,IAAI,KAAJ,IAAA,IAAA,IAAI,KAAJ,KAAA,CAAA,GAAA,IAAI,GAAI,EAAE,EAAA,SAAf,CAAgB;IAEjC,OAAOA,cAAA,CAACC,gCAAa,EAAA,EAAC,SAAS,EAAEC,+BAAa,CAAC,SAAS,CAAC,EAAA,CAAI,CAAC;AAClE;;;;"}
@@ -0,0 +1,12 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { ChatTimestamp } from '@cleartrip/talos-chat-timestamp';
3
+ import { formatISOTime } from '@cleartrip/talos-general-utils';
4
+
5
+ var ChatTimeStamp = function (_a) {
6
+ var data = _a.data;
7
+ var createdAt = (data !== null && data !== void 0 ? data : {}).createdAt;
8
+ return jsx(ChatTimestamp, { createdAt: formatISOTime(createdAt) });
9
+ };
10
+
11
+ export { ChatTimeStamp };
12
+ //# sourceMappingURL=talos-chat-time-stamp.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"talos-chat-time-stamp.esm.js","sources":["../packages/components/chat-time-stamp/src/ChatTimeStamp.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;AAKM,IAAA,aAAa,GAAG,UAAC,EAA2C,EAAA;AAAzC,IAAA,IAAA,IAAI,GAAA,EAAA,CAAA,IAAA,CAAA;AACjB,IAAA,IAAA,SAAS,GAAK,CAAA,IAAI,KAAJ,IAAA,IAAA,IAAI,KAAJ,KAAA,CAAA,GAAA,IAAI,GAAI,EAAE,EAAA,SAAf,CAAgB;IAEjC,OAAOA,GAAA,CAAC,aAAa,EAAA,EAAC,SAAS,EAAE,aAAa,CAAC,SAAS,CAAC,EAAA,CAAI,CAAC;AAClE;;;;"}
@@ -0,0 +1,84 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('@cleartrip/talos-chat-timestamp'), require('@cleartrip/talos-general-utils')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'react', '@cleartrip/talos-chat-timestamp', '@cleartrip/talos-general-utils'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.TalosChatTimeStamp = {}, global.React, global.talosChatTimestamp, global.talosGeneralUtils));
5
+ })(this, (function (exports, require$$0, talosChatTimestamp, talosGeneralUtils) { 'use strict';
6
+
7
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
+
9
+ var require$$0__default = /*#__PURE__*/_interopDefault(require$$0);
10
+
11
+ var jsxRuntimeExports = {};
12
+ var jsxRuntime = {
13
+ get exports(){ return jsxRuntimeExports; },
14
+ set exports(v){ jsxRuntimeExports = v; },
15
+ };
16
+
17
+ var reactJsxRuntime_production_min = {};
18
+
19
+ /**
20
+ * @license React
21
+ * react-jsx-runtime.production.min.js
22
+ *
23
+ * Copyright (c) Facebook, Inc. and its affiliates.
24
+ *
25
+ * This source code is licensed under the MIT license found in the
26
+ * LICENSE file in the root directory of this source tree.
27
+ */
28
+ var hasRequiredReactJsxRuntime_production_min;
29
+ function requireReactJsxRuntime_production_min() {
30
+ if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
31
+ hasRequiredReactJsxRuntime_production_min = 1;
32
+ var f = require$$0__default.default,
33
+ k = Symbol.for("react.element"),
34
+ l = Symbol.for("react.fragment"),
35
+ m = Object.prototype.hasOwnProperty,
36
+ n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
37
+ p = {
38
+ key: !0,
39
+ ref: !0,
40
+ __self: !0,
41
+ __source: !0
42
+ };
43
+ function q(c, a, g) {
44
+ var b,
45
+ d = {},
46
+ e = null,
47
+ h = null;
48
+ void 0 !== g && (e = "" + g);
49
+ void 0 !== a.key && (e = "" + a.key);
50
+ void 0 !== a.ref && (h = a.ref);
51
+ for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
52
+ if (c && c.defaultProps) for (b in a = c.defaultProps, a) void 0 === d[b] && (d[b] = a[b]);
53
+ return {
54
+ $$typeof: k,
55
+ type: c,
56
+ key: e,
57
+ ref: h,
58
+ props: d,
59
+ _owner: n.current
60
+ };
61
+ }
62
+ reactJsxRuntime_production_min.Fragment = l;
63
+ reactJsxRuntime_production_min.jsx = q;
64
+ reactJsxRuntime_production_min.jsxs = q;
65
+ return reactJsxRuntime_production_min;
66
+ }
67
+
68
+ (function (module) {
69
+
70
+ {
71
+ module.exports = requireReactJsxRuntime_production_min();
72
+ }
73
+ })(jsxRuntime);
74
+
75
+ var ChatTimeStamp = function (_a) {
76
+ var data = _a.data;
77
+ var createdAt = (data !== null && data !== void 0 ? data : {}).createdAt;
78
+ return jsxRuntimeExports.jsx(talosChatTimestamp.ChatTimestamp, { createdAt: talosGeneralUtils.formatISOTime(createdAt) });
79
+ };
80
+
81
+ exports.ChatTimeStamp = ChatTimeStamp;
82
+
83
+ }));
84
+ //# sourceMappingURL=talos-chat-time-stamp.umd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"talos-chat-time-stamp.umd.js","sources":["../../../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js","../../../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js","../packages/components/chat-time-stamp/src/ChatTimeStamp.tsx"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n",null],"names":["f","require$$0","k","Symbol","for","l","m","Object","prototype","hasOwnProperty","n","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","key","ref","__self","__source","q","c","a","g","b","d","e","h","call","defaultProps","$$typeof","type","props","_owner","current","reactJsxRuntime_production_min","jsx","jsxs","module","exports","_jsx","ChatTimestamp","formatISOTime"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASa,IAAIA,CAAC,GAACC,2BAAgB;EAACC,IAAAA,CAAC,GAACC,MAAM,CAACC,GAAG,CAAC,eAAe,CAAC;EAACC,IAAAA,CAAC,GAACF,MAAM,CAACC,GAAG,CAAC,gBAAgB,CAAC;EAACE,IAAAA,CAAC,GAACC,MAAM,CAACC,SAAS,CAACC,cAAc;EAACC,IAAAA,CAAC,GAACV,CAAC,CAACW,kDAAkD,CAACC,iBAAiB;EAACC,IAAAA,CAAC,GAAC;QAACC,GAAG,EAAC,CAAC,CAAC;QAACC,GA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C,CAACsB,OAAAA;OAAQ,CAAA;EAAA,GAAA;IAACC,uCAAgB,GAAC5B,CAAC,CAAA;IAAC4B,8BAAW,CAAAC,GAAA,GAAChB,CAAC,CAAA;IAACe,8BAAA,CAAAE,IAAY,GAACjB,CAAC,CAAA;;;;;;ECR3W,EAA2C;EACzCkB,IAAAA,MAAA,CAAAC,OAAA,GAAiBpC,uCAAoD,CAAA;EACvE,GAEA;;;ACDM,MAAA,aAAa,GAAG,UAAC,EAA2C,EAAA;EAAzC,IAAA,IAAA,IAAI,GAAA,EAAA,CAAA,IAAA,CAAA;EACjB,IAAA,IAAA,SAAS,GAAK,CAAA,IAAI,KAAJ,IAAA,IAAA,IAAI,KAAJ,KAAA,CAAA,GAAA,IAAI,GAAI,EAAE,EAAA,SAAf,CAAgB;MAEjC,OAAOqC,qBAAA,CAACC,gCAAa,EAAA,EAAC,SAAS,EAAEC,+BAAa,CAAC,SAAS,CAAC,EAAA,CAAI,CAAC;EAClE;;;;;;;;","x_google_ignoreList":[0,1]}
package/dist/type.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ export interface IChatTimeStampProps {
2
+ createdAt: string;
3
+ }
4
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../packages/components/chat-time-stamp/src/type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAChC,SAAS,EAAE,MAAM,CAAC;CACrB"}
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "@cleartrip/talos-chat-time-stamp",
3
+ "version": "1.1.0-beta-260712-1.0",
4
+ "description": "Chat Time Stamp Widget",
5
+ "types": "dist/index.d.ts",
6
+ "main": "dist/talos-chat-time-stamp.cjs.js",
7
+ "jsnext:main": "dist/talos-chat-time-stamp.esm.js",
8
+ "module": "dist/talos-chat-time-stamp.esm.js",
9
+ "sideEffects": false,
10
+ "browser": {
11
+ "./dist/talos-chat-time-stamp.esm.js": "./dist/talos-chat-time-stamp.browser.esm.js",
12
+ "./dist/talos-chat-time-stamp.cjs.js": "./dist/talos-chat-time-stamp.browser.cjs.js"
13
+ },
14
+ "files": [
15
+ "dist"
16
+ ],
17
+ "dependencies": {
18
+ "@cleartrip/talos-chat-timestamp": "1.5.0",
19
+ "@cleartrip/talos-widget-types": "1.6.0-beta-260712-1.0",
20
+ "@cleartrip/talos-general-utils": "1.6.0-beta-260712-1.0"
21
+ },
22
+ "publishConfig": {
23
+ "access": "public"
24
+ },
25
+ "author": "Cleartrip",
26
+ "license": "ISC",
27
+ "scripts": {
28
+ "test": "echo \"Error: no test specified\" && exit 1",
29
+ "watch-package": "rollup -c -w",
30
+ "build-package": "rollup -c",
31
+ "build-package:clean": "rm -rf dist && rollup -c"
32
+ }
33
+ }