@elliemae/ds-chat-system-message 3.11.1-rc.0 → 3.12.0-next.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/SystemMessage.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;
|
|
4
|
+
"sourcesContent": ["import type { WeakValidationMap } from 'react';\nimport React from 'react';\nimport { describe, useValidateTypescriptPropTypes, useMemoMergePropsWithDefault } from '@elliemae/ds-utilities';\nimport { Wrapper, Header, Title, Time, Message } from './style';\nimport type { DSChatSystemMessageT } from './react-desc-prop-types';\nimport { systemMessageProps, defaultProps } from './react-desc-prop-types';\nimport { ChatSystemMessageDataTestIds } from './ChatSystemMessageDataTestIds';\nconst SystemMessage: React.ComponentType<DSChatSystemMessageT.Props> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);\n useValidateTypescriptPropTypes(propsWithDefault, systemMessageProps);\n\n const { title, time, body } = propsWithDefault;\n return (\n <Wrapper rows={['auto', 'auto']}>\n <Header cols={['1fr', 'auto', '1fr']}>\n <span />\n <Title data-testid={ChatSystemMessageDataTestIds.SYSTEM_MSG_TITLE}>{title}</Title>\n <Time data-testid={ChatSystemMessageDataTestIds.SYSTEM_MSG_TIME}>{time}</Time>\n </Header>\n <Message data-testid={ChatSystemMessageDataTestIds.SYSTEM_MSG_BODY}>{body}</Message>\n </Wrapper>\n );\n};\n\nSystemMessage.propTypes = systemMessageProps as WeakValidationMap<unknown>;\nSystemMessage.displayName = 'SystemMessage';\nconst SystemMessageWithSchema = describe(SystemMessage);\nSystemMessageWithSchema.propTypes = systemMessageProps as WeakValidationMap<unknown>;\n\nexport { SystemMessage, SystemMessageWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADcjB;AAZN,0BAAuF;AACvF,mBAAsD;AAEtD,mCAAiD;AACjD,0CAA6C;AAC7C,MAAM,gBAAiE,CAAC,UAAU;AAChF,QAAM,uBAAmB,kDAA6B,OAAO,yCAAY;AACzE,0DAA+B,kBAAkB,+CAAkB;AAEnE,QAAM,EAAE,OAAO,MAAM,KAAK,IAAI;AAC9B,SACE,6CAAC;AAAA,IAAQ,MAAM,CAAC,QAAQ,MAAM;AAAA,IAC5B;AAAA,mDAAC;AAAA,QAAO,MAAM,CAAC,OAAO,QAAQ,KAAK;AAAA,QACjC;AAAA,sDAAC,UAAK;AAAA,UACN,4CAAC;AAAA,YAAM,eAAa,iEAA6B;AAAA,YAAmB;AAAA,WAAM;AAAA,UAC1E,4CAAC;AAAA,YAAK,eAAa,iEAA6B;AAAA,YAAkB;AAAA,WAAK;AAAA;AAAA,OACzE;AAAA,MACA,4CAAC;AAAA,QAAQ,eAAa,iEAA6B;AAAA,QAAkB;AAAA,OAAK;AAAA;AAAA,GAC5E;AAEJ;AAEA,cAAc,YAAY;AAC1B,cAAc,cAAc;AAC5B,MAAM,8BAA0B,8BAAS,aAAa;AACtD,wBAAwB,YAAY;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -26,7 +26,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
26
26
|
var src_exports = {};
|
|
27
27
|
__export(src_exports, {
|
|
28
28
|
ChatSystemMessageDataTestIds: () => import_ChatSystemMessageDataTestIds.ChatSystemMessageDataTestIds,
|
|
29
|
-
DSChatSystemMessageT: () => import_react_desc_prop_types.DSChatSystemMessageT,
|
|
30
29
|
SystemMessage: () => import_SystemMessage.SystemMessage,
|
|
31
30
|
SystemMessageWithSchema: () => import_SystemMessage.SystemMessageWithSchema
|
|
32
31
|
});
|
|
@@ -35,5 +34,4 @@ var React = __toESM(require("react"));
|
|
|
35
34
|
var import_SystemMessage = require("./SystemMessage");
|
|
36
35
|
var import_ChatSystemMessageDataTestIds = require("./ChatSystemMessageDataTestIds");
|
|
37
36
|
__reExport(src_exports, require("./style"), module.exports);
|
|
38
|
-
var import_react_desc_prop_types = require("./react-desc-prop-types");
|
|
39
37
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["export { SystemMessage, SystemMessageWithSchema } from './SystemMessage';\nexport { ChatSystemMessageDataTestIds } from './ChatSystemMessageDataTestIds';\nexport * from './style';\nexport { DSChatSystemMessageT } from './react-desc-prop-types';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;
|
|
4
|
+
"sourcesContent": ["export { SystemMessage, SystemMessageWithSchema } from './SystemMessage';\nexport { ChatSystemMessageDataTestIds } from './ChatSystemMessageDataTestIds';\nexport * from './style';\nexport type { DSChatSystemMessageT } from './react-desc-prop-types';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,2BAAuD;AACvD,0CAA6C;AAC7C,wBAAc,oBAFd;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/SystemMessage.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type { WeakValidationMap } from 'react';\nimport React from 'react';\nimport { describe, useValidateTypescriptPropTypes, useMemoMergePropsWithDefault } from '@elliemae/ds-utilities';\nimport { Wrapper, Header, Title, Time, Message } from './style';\nimport type { DSChatSystemMessageT } from './react-desc-prop-types';\nimport { systemMessageProps, defaultProps } from './react-desc-prop-types';\nimport { ChatSystemMessageDataTestIds } from './ChatSystemMessageDataTestIds';\nconst SystemMessage: React.ComponentType<DSChatSystemMessageT.Props> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);\n useValidateTypescriptPropTypes(propsWithDefault, systemMessageProps);\n\n const { title, time, body } = propsWithDefault;\n return (\n <Wrapper rows={['auto', 'auto']}>\n <Header cols={['1fr', 'auto', '1fr']}>\n <span />\n <Title data-testid={ChatSystemMessageDataTestIds.SYSTEM_MSG_TITLE}>{title}</Title>\n <Time data-testid={ChatSystemMessageDataTestIds.SYSTEM_MSG_TIME}>{time}</Time>\n </Header>\n <Message data-testid={ChatSystemMessageDataTestIds.SYSTEM_MSG_BODY}>{body}</Message>\n </Wrapper>\n );\n};\n\nSystemMessage.propTypes = systemMessageProps as WeakValidationMap<unknown>;\nSystemMessage.displayName = 'SystemMessage';\nconst SystemMessageWithSchema = describe(SystemMessage);\nSystemMessageWithSchema.propTypes = systemMessageProps as WeakValidationMap<unknown>;\n\nexport { SystemMessage, SystemMessageWithSchema };\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACcjB,SACE,KADF;AAZN,SAAS,UAAU,gCAAgC,oCAAoC;AACvF,SAAS,SAAS,QAAQ,OAAO,MAAM,eAAe;AAEtD,SAAS,oBAAoB,oBAAoB;AACjD,SAAS,oCAAoC;AAC7C,MAAM,gBAAiE,CAAC,UAAU;AAChF,QAAM,mBAAmB,6BAA6B,OAAO,YAAY;AACzE,iCAA+B,kBAAkB,kBAAkB;AAEnE,QAAM,EAAE,OAAO,MAAM,KAAK,IAAI;AAC9B,SACE,qBAAC;AAAA,IAAQ,MAAM,CAAC,QAAQ,MAAM;AAAA,IAC5B;AAAA,2BAAC;AAAA,QAAO,MAAM,CAAC,OAAO,QAAQ,KAAK;AAAA,QACjC;AAAA,8BAAC,UAAK;AAAA,UACN,oBAAC;AAAA,YAAM,eAAa,6BAA6B;AAAA,YAAmB;AAAA,WAAM;AAAA,UAC1E,oBAAC;AAAA,YAAK,eAAa,6BAA6B;AAAA,YAAkB;AAAA,WAAK;AAAA;AAAA,OACzE;AAAA,MACA,oBAAC;AAAA,QAAQ,eAAa,6BAA6B;AAAA,QAAkB;AAAA,OAAK;AAAA;AAAA,GAC5E;AAEJ;AAEA,cAAc,YAAY;AAC1B,cAAc,cAAc;AAC5B,MAAM,0BAA0B,SAAS,aAAa;AACtD,wBAAwB,YAAY;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -2,10 +2,8 @@ import * as React from "react";
|
|
|
2
2
|
import { SystemMessage, SystemMessageWithSchema } from "./SystemMessage";
|
|
3
3
|
import { ChatSystemMessageDataTestIds } from "./ChatSystemMessageDataTestIds";
|
|
4
4
|
export * from "./style";
|
|
5
|
-
import { DSChatSystemMessageT } from "./react-desc-prop-types";
|
|
6
5
|
export {
|
|
7
6
|
ChatSystemMessageDataTestIds,
|
|
8
|
-
DSChatSystemMessageT,
|
|
9
7
|
SystemMessage,
|
|
10
8
|
SystemMessageWithSchema
|
|
11
9
|
};
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { SystemMessage, SystemMessageWithSchema } from './SystemMessage';\nexport { ChatSystemMessageDataTestIds } from './ChatSystemMessageDataTestIds';\nexport * from './style';\nexport { DSChatSystemMessageT } from './react-desc-prop-types';\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,eAAe,+BAA+B;AACvD,SAAS,oCAAoC;AAC7C,cAAc;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { SystemMessage, SystemMessageWithSchema } from './SystemMessage';\nexport { ChatSystemMessageDataTestIds } from './ChatSystemMessageDataTestIds';\nexport * from './style';\nexport type { DSChatSystemMessageT } from './react-desc-prop-types';\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,eAAe,+BAA+B;AACvD,SAAS,oCAAoC;AAC7C,cAAc;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-chat-system-message",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.0-next.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Chat System Message",
|
|
6
6
|
"files": [
|
|
@@ -47,17 +47,11 @@
|
|
|
47
47
|
"typeSafety": true
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@elliemae/ds-grid": "3.
|
|
51
|
-
"@elliemae/ds-
|
|
52
|
-
"@elliemae/ds-
|
|
53
|
-
"@elliemae/ds-tooltip": "3.11.1-rc.0",
|
|
54
|
-
"@elliemae/ds-utilities": "3.11.1-rc.0"
|
|
50
|
+
"@elliemae/ds-grid": "3.12.0-next.0",
|
|
51
|
+
"@elliemae/ds-system": "3.12.0-next.0",
|
|
52
|
+
"@elliemae/ds-utilities": "3.12.0-next.0"
|
|
55
53
|
},
|
|
56
54
|
"devDependencies": {
|
|
57
|
-
"@testing-library/dom": "~8.13.0",
|
|
58
|
-
"@testing-library/jest-dom": "~5.16.4",
|
|
59
|
-
"@testing-library/react": "~12.1.3",
|
|
60
|
-
"@testing-library/user-event": "~13.5.0",
|
|
61
55
|
"styled-components": "~5.3.5"
|
|
62
56
|
},
|
|
63
57
|
"peerDependencies": {
|
|
@@ -69,9 +63,12 @@
|
|
|
69
63
|
"scripts": {
|
|
70
64
|
"test": "node ../../scripts/testing/test.mjs",
|
|
71
65
|
"lint": "node ../../scripts/lint.mjs",
|
|
66
|
+
"eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../.eslintrc.js' src/",
|
|
72
67
|
"dts": "node ../../scripts/dts.mjs",
|
|
73
68
|
"dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
|
|
74
69
|
"build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs",
|
|
70
|
+
"dev:build": "pnpm --filter {.}... build && pnpm --filter {.}... dts",
|
|
71
|
+
"dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
|
|
75
72
|
"checkDeps": "npx -yes ../ds-codemods check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
|
|
76
73
|
}
|
|
77
74
|
}
|