@elliemae/ds-chat-bubble 3.28.1-rc.2 → 3.29.0-next.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/cjs/typescript-testing/typescript-chat-bubble-valid.js +0 -4
- package/dist/cjs/typescript-testing/typescript-chat-bubble-valid.js.map +2 -2
- package/dist/esm/typescript-testing/typescript-chat-bubble-valid.js +0 -4
- package/dist/esm/typescript-testing/typescript-chat-bubble-valid.js.map +2 -2
- package/package.json +6 -6
|
@@ -82,10 +82,6 @@ const testDefinitionAsConst = {
|
|
|
82
82
|
body: "sum dolor sit amet, consectetur adipiscing elit. Sed nisi orci, eleifend quis dui nec",
|
|
83
83
|
time: "4:50pm"
|
|
84
84
|
};
|
|
85
|
-
const onSingleValueChange = (value) => {
|
|
86
|
-
};
|
|
87
|
-
const onMultipleValueChange = (value) => {
|
|
88
|
-
};
|
|
89
85
|
const ExampleUsageComponent = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
90
86
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ChatBubble, { ...testExplicitDefinition }),
|
|
91
87
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ChatBubble, { ...testInferedTypeCompatibility }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/typescript-chat-bubble-valid.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { BUBBLE_TYPES, ChatBubble } from '../index.js';\nimport type { DSChatBubbleT } from '../index.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSChatBubbleT.Props;\ntype ComponentPropsInternals = DSChatBubbleT.InternalProps;\ntype ComponentPropsDefaultProps = DSChatBubbleT.DefaultProps;\ntype ComponentPropsOptionalProps = DSChatBubbleT.OptionalProps;\ntype ComponentPropsRequiredProps = DSChatBubbleT.RequiredProps;\n\nconst testRequiredProps: ComponentPropsRequiredProps = {\n dsId: '',\n};\nconst testOptionalProps: ComponentPropsOptionalProps = {\n errorMessage: 'an error occurred',\n helpMessage: 'delivered',\n};\n\n// difference Props and InternalProps is that InternalProps has all the default props filled in\n//
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAuB;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { BUBBLE_TYPES, ChatBubble } from '../index.js';\nimport type { DSChatBubbleT } from '../index.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSChatBubbleT.Props;\ntype ComponentPropsInternals = DSChatBubbleT.InternalProps;\ntype ComponentPropsDefaultProps = DSChatBubbleT.DefaultProps;\ntype ComponentPropsOptionalProps = DSChatBubbleT.OptionalProps;\ntype ComponentPropsRequiredProps = DSChatBubbleT.RequiredProps;\n\nconst testRequiredProps: ComponentPropsRequiredProps = {\n dsId: '',\n};\n\nconst testOptionalProps: ComponentPropsOptionalProps = {\n errorMessage: 'an error occurred',\n helpMessage: 'delivered',\n};\n\n// difference Props and InternalProps is that InternalProps has all the default props filled in\n// Props allows for partial defaults\nconst testPartialDefaults: Partial<ComponentPropsDefaultProps> = {\n type: BUBBLE_TYPES.SENDER,\n time: '4:50pm',\n};\n\nconst testProps: ComponentPropsForApp = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n};\n\nconst testPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n} as ComponentPropsForApp;\n\n// InternalProps requires all defaults to be filled in\nconst testCompleteDefaults: Required<ComponentPropsDefaultProps> = {\n type: BUBBLE_TYPES.SENDER,\n title: 'Title',\n body: 'sum dolor sit amet, consectetur adipiscing elit. Sed nisi orci, eleifend quis dui nec',\n time: '4:50pm',\n};\n\nconst testInternalProps: ComponentPropsInternals = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n};\n\nconst testInternalPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n} as ComponentPropsInternals;\n\n// using the explicit type definition, if there is an error, it will be marked on the key that is wrong\nconst testExplicitDefinition: ComponentPropsForApp = {\n dsId: '1',\n type: BUBBLE_TYPES.SENDER,\n title: 'Title',\n body: 'sum dolor sit amet, consectetur adipiscing elit. Sed nisi orci, eleifend quis dui nec',\n time: '4:50pm',\n};\n\n// using the \"as\" syntax, if there is an error, it will be marking the whole object as wrong because it is not compatible with the type\nconst testInferedTypeCompatibility = {\n dsId: '2',\n type: BUBBLE_TYPES.SENDER,\n title: 'Title',\n body: 'sum dolor sit amet, consectetur adipiscing elit. Sed nisi orci, eleifend quis dui nec',\n time: '4:50pm',\n} as ComponentPropsForApp;\n\nconst testDefinitionAsConst = {\n dsId: '3',\n type: BUBBLE_TYPES.SENDER,\n title: 'Title',\n body: 'sum dolor sit amet, consectetur adipiscing elit. Sed nisi orci, eleifend quis dui nec',\n time: '4:50pm',\n} as const;\n\nconst ExampleUsageComponent = () => (\n <>\n {/* works with explicitly casted props, all syntaxes */}\n <ChatBubble {...testExplicitDefinition} />\n <ChatBubble {...testInferedTypeCompatibility} />\n <ChatBubble {...testDefinitionAsConst} />\n {/* works with inline values */}\n <ChatBubble\n type={BUBBLE_TYPES.RECIPIENT}\n dsId=\"9999\"\n title=\"Amanda Yates\"\n time=\"4:50pm\"\n body={\n <>\n Text body with links{' '}\n <a href=\"http://google.com\" target=\"_blank\">\n Website\n </a>\n </>\n }\n helpMessage=\"delivered\"\n />\n </>\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAuB;ACwFnB;AAvFJ,eAAy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;AAAA,QACqB;AAAA,QACrB,4CAAC,OAAE,MAAK,qBAAoB,QAAO,UAAS,qBAE5C;AAAA,SACF;AAAA,MAEF,aAAY;AAAA;AAAA,EACd;AAAA,GACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -59,10 +59,6 @@ const testDefinitionAsConst = {
|
|
|
59
59
|
body: "sum dolor sit amet, consectetur adipiscing elit. Sed nisi orci, eleifend quis dui nec",
|
|
60
60
|
time: "4:50pm"
|
|
61
61
|
};
|
|
62
|
-
const onSingleValueChange = (value) => {
|
|
63
|
-
};
|
|
64
|
-
const onMultipleValueChange = (value) => {
|
|
65
|
-
};
|
|
66
62
|
const ExampleUsageComponent = () => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
67
63
|
/* @__PURE__ */ jsx(ChatBubble, { ...testExplicitDefinition }),
|
|
68
64
|
/* @__PURE__ */ jsx(ChatBubble, { ...testInferedTypeCompatibility }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/typescript-chat-bubble-valid.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { BUBBLE_TYPES, ChatBubble } from '../index.js';\nimport type { DSChatBubbleT } from '../index.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSChatBubbleT.Props;\ntype ComponentPropsInternals = DSChatBubbleT.InternalProps;\ntype ComponentPropsDefaultProps = DSChatBubbleT.DefaultProps;\ntype ComponentPropsOptionalProps = DSChatBubbleT.OptionalProps;\ntype ComponentPropsRequiredProps = DSChatBubbleT.RequiredProps;\n\nconst testRequiredProps: ComponentPropsRequiredProps = {\n dsId: '',\n};\nconst testOptionalProps: ComponentPropsOptionalProps = {\n errorMessage: 'an error occurred',\n helpMessage: 'delivered',\n};\n\n// difference Props and InternalProps is that InternalProps has all the default props filled in\n//
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { BUBBLE_TYPES, ChatBubble } from '../index.js';\nimport type { DSChatBubbleT } from '../index.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSChatBubbleT.Props;\ntype ComponentPropsInternals = DSChatBubbleT.InternalProps;\ntype ComponentPropsDefaultProps = DSChatBubbleT.DefaultProps;\ntype ComponentPropsOptionalProps = DSChatBubbleT.OptionalProps;\ntype ComponentPropsRequiredProps = DSChatBubbleT.RequiredProps;\n\nconst testRequiredProps: ComponentPropsRequiredProps = {\n dsId: '',\n};\n\nconst testOptionalProps: ComponentPropsOptionalProps = {\n errorMessage: 'an error occurred',\n helpMessage: 'delivered',\n};\n\n// difference Props and InternalProps is that InternalProps has all the default props filled in\n// Props allows for partial defaults\nconst testPartialDefaults: Partial<ComponentPropsDefaultProps> = {\n type: BUBBLE_TYPES.SENDER,\n time: '4:50pm',\n};\n\nconst testProps: ComponentPropsForApp = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n};\n\nconst testPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n} as ComponentPropsForApp;\n\n// InternalProps requires all defaults to be filled in\nconst testCompleteDefaults: Required<ComponentPropsDefaultProps> = {\n type: BUBBLE_TYPES.SENDER,\n title: 'Title',\n body: 'sum dolor sit amet, consectetur adipiscing elit. Sed nisi orci, eleifend quis dui nec',\n time: '4:50pm',\n};\n\nconst testInternalProps: ComponentPropsInternals = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n};\n\nconst testInternalPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n} as ComponentPropsInternals;\n\n// using the explicit type definition, if there is an error, it will be marked on the key that is wrong\nconst testExplicitDefinition: ComponentPropsForApp = {\n dsId: '1',\n type: BUBBLE_TYPES.SENDER,\n title: 'Title',\n body: 'sum dolor sit amet, consectetur adipiscing elit. Sed nisi orci, eleifend quis dui nec',\n time: '4:50pm',\n};\n\n// using the \"as\" syntax, if there is an error, it will be marking the whole object as wrong because it is not compatible with the type\nconst testInferedTypeCompatibility = {\n dsId: '2',\n type: BUBBLE_TYPES.SENDER,\n title: 'Title',\n body: 'sum dolor sit amet, consectetur adipiscing elit. Sed nisi orci, eleifend quis dui nec',\n time: '4:50pm',\n} as ComponentPropsForApp;\n\nconst testDefinitionAsConst = {\n dsId: '3',\n type: BUBBLE_TYPES.SENDER,\n title: 'Title',\n body: 'sum dolor sit amet, consectetur adipiscing elit. Sed nisi orci, eleifend quis dui nec',\n time: '4:50pm',\n} as const;\n\nconst ExampleUsageComponent = () => (\n <>\n {/* works with explicitly casted props, all syntaxes */}\n <ChatBubble {...testExplicitDefinition} />\n <ChatBubble {...testInferedTypeCompatibility} />\n <ChatBubble {...testDefinitionAsConst} />\n {/* works with inline values */}\n <ChatBubble\n type={BUBBLE_TYPES.RECIPIENT}\n dsId=\"9999\"\n title=\"Amanda Yates\"\n time=\"4:50pm\"\n body={\n <>\n Text body with links{' '}\n <a href=\"http://google.com\" target=\"_blank\">\n Website\n </a>\n </>\n }\n helpMessage=\"delivered\"\n />\n </>\n);\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACwFnB,SAUI,UAVJ,KAUI,YAVJ;AAvFJ,SAAS,cAAc,kBAAkB;AAUzC,MAAM,oBAAiD;AAAA,EACrD,MAAM;AACR;AAEA,MAAM,oBAAiD;AAAA,EACrD,cAAc;AAAA,EACd,aAAa;AACf;AAIA,MAAM,sBAA2D;AAAA,EAC/D,MAAM,aAAa;AAAA,EACnB,MAAM;AACR;AAEA,MAAM,YAAkC;AAAA,EACtC,GAAG;AAAA,EACH,GAAG;AAAA,EAC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at-bubble",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.29.0-next.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Chat",
|
|
6
6
|
"files": [
|
|
@@ -52,15 +52,15 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"uid": "2.0.1",
|
|
55
|
-
"@elliemae/ds-grid": "3.
|
|
56
|
-
"@elliemae/ds-icons": "3.
|
|
57
|
-
"@elliemae/ds-
|
|
58
|
-
"@elliemae/ds-
|
|
55
|
+
"@elliemae/ds-grid": "3.29.0-next.2",
|
|
56
|
+
"@elliemae/ds-icons": "3.29.0-next.2",
|
|
57
|
+
"@elliemae/ds-system": "3.29.0-next.2",
|
|
58
|
+
"@elliemae/ds-props-helpers": "3.29.0-next.2"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@elliemae/pui-cli": "~9.0.0-next.31",
|
|
62
62
|
"styled-components": "~5.3.9",
|
|
63
|
-
"@elliemae/ds-monorepo-devops": "3.
|
|
63
|
+
"@elliemae/ds-monorepo-devops": "3.29.0-next.2"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"lodash": "^4.17.21",
|