@elliemae/ds-chat-container-header 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/index.js.map +1 -1
- package/dist/cjs/react-desc-prop-types.js.map +1 -1
- package/dist/cjs/typescript-testing/typescript-chat-container-header-valid.js +60 -0
- package/dist/cjs/typescript-testing/typescript-chat-container-header-valid.js.map +7 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/react-desc-prop-types.js.map +1 -1
- package/dist/esm/typescript-testing/typescript-chat-container-header-valid.js +37 -0
- package/dist/esm/typescript-testing/typescript-chat-container-header-valid.js.map +7 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/react-desc-prop-types.d.ts +1 -1
- package/dist/types/typescript-testing/typescript-chat-container-header-valid.d.ts +1 -0
- package/package.json +8 -8
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 { ChatContainerHeader, ChatContainerHeaderWithSchema } from './ChatContainerHeader.js';\nexport { ChatContainerHeaderDataTestIds } from './ChatContainerHeaderDataTestIds.js';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
4
|
+
"sourcesContent": ["export { ChatContainerHeader, ChatContainerHeaderWithSchema } from './ChatContainerHeader.js';\nexport { ChatContainerHeaderDataTestIds } from './ChatContainerHeaderDataTestIds.js';\nexport type { DSChatContainerHeaderT } from './react-desc-prop-types.js';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,iCAAmE;AACnE,4CAA+C;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/react-desc-prop-types.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import type React from 'react';\nimport { PropTypes } from '@elliemae/ds-props-helpers';\n\nexport declare namespace DSChatContainerHeaderT {\n export interface RequiredProps {\n title: string;\n }\n\n export interface OptionalProps {\n children?: React.
|
|
4
|
+
"sourcesContent": ["import type React from 'react';\nimport { PropTypes } from '@elliemae/ds-props-helpers';\n\nexport declare namespace DSChatContainerHeaderT {\n export interface RequiredProps {\n title: string;\n }\n\n export interface OptionalProps {\n children?: React.ReactNode;\n }\n\n export interface Props extends RequiredProps, OptionalProps, Record<string, unknown> {}\n}\n\nexport const propTypes = {\n title: PropTypes.string.isRequired.description(`Card's title`),\n children: PropTypes.node.description('Childrens'),\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,8BAA0B;AAcnB,MAAM,YAAY;AAAA,EACvB,OAAO,kCAAU,OAAO,WAAW,YAAY,cAAc;AAAA,EAC7D,UAAU,kCAAU,KAAK,YAAY,WAAW;AAClD;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
12
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
+
}
|
|
14
|
+
return to;
|
|
15
|
+
};
|
|
16
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
19
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
24
|
+
var React = __toESM(require("react"));
|
|
25
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
26
|
+
var import__ = require("../index.js");
|
|
27
|
+
const MockChildren = () => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {});
|
|
28
|
+
const testRequiredProps = {
|
|
29
|
+
title: ""
|
|
30
|
+
};
|
|
31
|
+
const testOptionalProps = {
|
|
32
|
+
children: MockChildren()
|
|
33
|
+
};
|
|
34
|
+
const testProps = {
|
|
35
|
+
...testRequiredProps,
|
|
36
|
+
...testOptionalProps
|
|
37
|
+
};
|
|
38
|
+
const testPropsAsSyntax = {
|
|
39
|
+
...testRequiredProps,
|
|
40
|
+
...testOptionalProps
|
|
41
|
+
};
|
|
42
|
+
const testExplicitDefinition = {
|
|
43
|
+
title: "",
|
|
44
|
+
children: MockChildren()
|
|
45
|
+
};
|
|
46
|
+
const testInferedTypeCompatibility = {
|
|
47
|
+
title: "",
|
|
48
|
+
children: MockChildren()
|
|
49
|
+
};
|
|
50
|
+
const testDefinitionAsConst = {
|
|
51
|
+
title: "",
|
|
52
|
+
children: MockChildren()
|
|
53
|
+
};
|
|
54
|
+
const ExampleUsageComponent = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
55
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ChatContainerHeader, { ...testExplicitDefinition }),
|
|
56
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ChatContainerHeader, { ...testInferedTypeCompatibility }),
|
|
57
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ChatContainerHeader, { ...testDefinitionAsConst }),
|
|
58
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ChatContainerHeader, { title: "", children: MockChildren() })
|
|
59
|
+
] });
|
|
60
|
+
//# sourceMappingURL=typescript-chat-container-header-valid.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/typescript-chat-container-header-valid.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { ChatContainerHeader } from '../index.js';\nimport type { DSChatContainerHeaderT } from '../index.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSChatContainerHeaderT.Props;\ntype ComponentPropsOptionalProps = DSChatContainerHeaderT.OptionalProps;\ntype ComponentPropsRequiredProps = DSChatContainerHeaderT.RequiredProps;\n\nconst MockChildren = () => <div></div>;\n\nconst testRequiredProps: ComponentPropsRequiredProps = {\n title: '',\n};\n\nconst testOptionalProps: ComponentPropsOptionalProps = {\n children: MockChildren(),\n};\n\n// difference Props and InternalProps is that InternalProps has all the default props filled in\n// Props allows for partial defaults\n\nconst testProps: ComponentPropsForApp = {\n ...testRequiredProps,\n ...testOptionalProps,\n};\n\nconst testPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n} as ComponentPropsForApp;\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 title: '',\n children: MockChildren(),\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 title: '',\n children: MockChildren(),\n} as ComponentPropsForApp;\n\nconst testDefinitionAsConst = {\n title: '',\n children: MockChildren(),\n} as const;\n\nconst ExampleUsageComponent = () => (\n <>\n {/* works with explicitly casted props, all syntaxes */}\n <ChatContainerHeader {...testExplicitDefinition} />\n <ChatContainerHeader {...testInferedTypeCompatibility} />\n <ChatContainerHeader {...testDefinitionAsConst} />\n {/* works with inline values */}\n <ChatContainerHeader title=\"\" children={MockChildren()} />\n </>\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAuB;ACSI;AAR3B,eAAoC;AAQpC,MAAM,eAAe,MAAM,4CAAC,SAAI;AAEhC,MAAM,oBAAiD;AAAA,EACrD,OAAO;AACT;AAEA,MAAM,oBAAiD;AAAA,EACrD,UAAU,aAAa;AACzB;AAKA,MAAM,YAAkC;AAAA,EACtC,GAAG;AAAA,EACH,GAAG;AACL;AAEA,MAAM,oBAAoB;AAAA,EACxB,GAAG;AAAA,EACH,GAAG;AACL;AAGA,MAAM,yBAA+C;AAAA,EACnD,OAAO;AAAA,EACP,UAAU,aAAa;AACzB;AAGA,MAAM,+BAA+B;AAAA,EACnC,OAAO;AAAA,EACP,UAAU,aAAa;AACzB;AAEA,MAAM,wBAAwB;AAAA,EAC5B,OAAO;AAAA,EACP,UAAU,aAAa;AACzB;AAEA,MAAM,wBAAwB,MAC5B,4EAEE;AAAA,8CAAC,gCAAqB,GAAG,wBAAwB;AAAA,EACjD,4CAAC,gCAAqB,GAAG,8BAA8B;AAAA,EACvD,4CAAC,gCAAqB,GAAG,uBAAuB;AAAA,EAEhD,4CAAC,gCAAoB,OAAM,IAAG,UAAU,aAAa,GAAG;AAAA,GAC1D;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
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 { ChatContainerHeader, ChatContainerHeaderWithSchema } from './ChatContainerHeader.js';\nexport { ChatContainerHeaderDataTestIds } from './ChatContainerHeaderDataTestIds.js';\n"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export { ChatContainerHeader, ChatContainerHeaderWithSchema } from './ChatContainerHeader.js';\nexport { ChatContainerHeaderDataTestIds } from './ChatContainerHeaderDataTestIds.js';\nexport type { DSChatContainerHeaderT } from './react-desc-prop-types.js';\n"],
|
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,qBAAqB,qCAAqC;AACnE,SAAS,sCAAsC;",
|
|
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/react-desc-prop-types.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type React from 'react';\nimport { PropTypes } from '@elliemae/ds-props-helpers';\n\nexport declare namespace DSChatContainerHeaderT {\n export interface RequiredProps {\n title: string;\n }\n\n export interface OptionalProps {\n children?: React.
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type React from 'react';\nimport { PropTypes } from '@elliemae/ds-props-helpers';\n\nexport declare namespace DSChatContainerHeaderT {\n export interface RequiredProps {\n title: string;\n }\n\n export interface OptionalProps {\n children?: React.ReactNode;\n }\n\n export interface Props extends RequiredProps, OptionalProps, Record<string, unknown> {}\n}\n\nexport const propTypes = {\n title: PropTypes.string.isRequired.description(`Card's title`),\n children: PropTypes.node.description('Childrens'),\n};\n"],
|
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;ACCvB,SAAS,iBAAiB;AAcnB,MAAM,YAAY;AAAA,EACvB,OAAO,UAAU,OAAO,WAAW,YAAY,cAAc;AAAA,EAC7D,UAAU,UAAU,KAAK,YAAY,WAAW;AAClD;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { ChatContainerHeader } from "../index.js";
|
|
4
|
+
const MockChildren = () => /* @__PURE__ */ jsx("div", {});
|
|
5
|
+
const testRequiredProps = {
|
|
6
|
+
title: ""
|
|
7
|
+
};
|
|
8
|
+
const testOptionalProps = {
|
|
9
|
+
children: MockChildren()
|
|
10
|
+
};
|
|
11
|
+
const testProps = {
|
|
12
|
+
...testRequiredProps,
|
|
13
|
+
...testOptionalProps
|
|
14
|
+
};
|
|
15
|
+
const testPropsAsSyntax = {
|
|
16
|
+
...testRequiredProps,
|
|
17
|
+
...testOptionalProps
|
|
18
|
+
};
|
|
19
|
+
const testExplicitDefinition = {
|
|
20
|
+
title: "",
|
|
21
|
+
children: MockChildren()
|
|
22
|
+
};
|
|
23
|
+
const testInferedTypeCompatibility = {
|
|
24
|
+
title: "",
|
|
25
|
+
children: MockChildren()
|
|
26
|
+
};
|
|
27
|
+
const testDefinitionAsConst = {
|
|
28
|
+
title: "",
|
|
29
|
+
children: MockChildren()
|
|
30
|
+
};
|
|
31
|
+
const ExampleUsageComponent = () => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
32
|
+
/* @__PURE__ */ jsx(ChatContainerHeader, { ...testExplicitDefinition }),
|
|
33
|
+
/* @__PURE__ */ jsx(ChatContainerHeader, { ...testInferedTypeCompatibility }),
|
|
34
|
+
/* @__PURE__ */ jsx(ChatContainerHeader, { ...testDefinitionAsConst }),
|
|
35
|
+
/* @__PURE__ */ jsx(ChatContainerHeader, { title: "", children: MockChildren() })
|
|
36
|
+
] });
|
|
37
|
+
//# sourceMappingURL=typescript-chat-container-header-valid.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/typescript-chat-container-header-valid.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { ChatContainerHeader } from '../index.js';\nimport type { DSChatContainerHeaderT } from '../index.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSChatContainerHeaderT.Props;\ntype ComponentPropsOptionalProps = DSChatContainerHeaderT.OptionalProps;\ntype ComponentPropsRequiredProps = DSChatContainerHeaderT.RequiredProps;\n\nconst MockChildren = () => <div></div>;\n\nconst testRequiredProps: ComponentPropsRequiredProps = {\n title: '',\n};\n\nconst testOptionalProps: ComponentPropsOptionalProps = {\n children: MockChildren(),\n};\n\n// difference Props and InternalProps is that InternalProps has all the default props filled in\n// Props allows for partial defaults\n\nconst testProps: ComponentPropsForApp = {\n ...testRequiredProps,\n ...testOptionalProps,\n};\n\nconst testPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n} as ComponentPropsForApp;\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 title: '',\n children: MockChildren(),\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 title: '',\n children: MockChildren(),\n} as ComponentPropsForApp;\n\nconst testDefinitionAsConst = {\n title: '',\n children: MockChildren(),\n} as const;\n\nconst ExampleUsageComponent = () => (\n <>\n {/* works with explicitly casted props, all syntaxes */}\n <ChatContainerHeader {...testExplicitDefinition} />\n <ChatContainerHeader {...testInferedTypeCompatibility} />\n <ChatContainerHeader {...testDefinitionAsConst} />\n {/* works with inline values */}\n <ChatContainerHeader title=\"\" children={MockChildren()} />\n </>\n);\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACSI,SAyCzB,UAzCyB,KAyCzB,YAzCyB;AAR3B,SAAS,2BAA2B;AAQpC,MAAM,eAAe,MAAM,oBAAC,SAAI;AAEhC,MAAM,oBAAiD;AAAA,EACrD,OAAO;AACT;AAEA,MAAM,oBAAiD;AAAA,EACrD,UAAU,aAAa;AACzB;AAKA,MAAM,YAAkC;AAAA,EACtC,GAAG;AAAA,EACH,GAAG;AACL;AAEA,MAAM,oBAAoB;AAAA,EACxB,GAAG;AAAA,EACH,GAAG;AACL;AAGA,MAAM,yBAA+C;AAAA,EACnD,OAAO;AAAA,EACP,UAAU,aAAa;AACzB;AAGA,MAAM,+BAA+B;AAAA,EACnC,OAAO;AAAA,EACP,UAAU,aAAa;AACzB;AAEA,MAAM,wBAAwB;AAAA,EAC5B,OAAO;AAAA,EACP,UAAU,aAAa;AACzB;AAEA,MAAM,wBAAwB,MAC5B,iCAEE;AAAA,sBAAC,uBAAqB,GAAG,wBAAwB;AAAA,EACjD,oBAAC,uBAAqB,GAAG,8BAA8B;AAAA,EACvD,oBAAC,uBAAqB,GAAG,uBAAuB;AAAA,EAEhD,oBAAC,uBAAoB,OAAM,IAAG,UAAU,aAAa,GAAG;AAAA,GAC1D;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-chat-container-header",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.29.0-next.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Chat Container Header",
|
|
6
6
|
"files": [
|
|
@@ -44,18 +44,18 @@
|
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public",
|
|
47
|
-
"typeSafety":
|
|
47
|
+
"typeSafety": true
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@elliemae/ds-grid": "3.
|
|
51
|
-
"@elliemae/ds-props-helpers": "3.
|
|
52
|
-
"@elliemae/ds-system": "3.
|
|
53
|
-
"@elliemae/ds-truncated-tooltip-text": "3.
|
|
50
|
+
"@elliemae/ds-grid": "3.29.0-next.2",
|
|
51
|
+
"@elliemae/ds-props-helpers": "3.29.0-next.2",
|
|
52
|
+
"@elliemae/ds-system": "3.29.0-next.2",
|
|
53
|
+
"@elliemae/ds-truncated-tooltip-text": "3.29.0-next.2"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@elliemae/pui-cli": "~9.0.0-next.31",
|
|
57
57
|
"styled-components": "~5.3.9",
|
|
58
|
-
"@elliemae/ds-monorepo-devops": "3.
|
|
58
|
+
"@elliemae/ds-monorepo-devops": "3.29.0-next.2"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"lodash": "^4.17.21",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"lint": "node ../../../scripts/lint.mjs",
|
|
69
69
|
"eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../../.eslintrc.js' src/",
|
|
70
70
|
"dts": "node ../../../scripts/dts.mjs",
|
|
71
|
-
"dev": "node
|
|
71
|
+
"dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
|
|
72
72
|
"build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
|
|
73
73
|
"dev:build": "pnpm --filter {.}... build",
|
|
74
74
|
"dev:install": "pnpm --filter {.}... i --no-lockfile && pnpm run dev:build",
|