@elliemae/ds-chat-floating-button 3.12.0-rc.1 → 3.12.0-rc.3
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/DSChatFloatingButtonDefinitions.js +32 -0
- package/dist/cjs/DSChatFloatingButtonDefinitions.js.map +7 -0
- package/dist/cjs/FloatingButton.js +4 -11
- package/dist/cjs/FloatingButton.js.map +2 -2
- package/dist/esm/DSChatFloatingButtonDefinitions.js +6 -0
- package/dist/esm/DSChatFloatingButtonDefinitions.js.map +7 -0
- package/dist/esm/FloatingButton.js +4 -11
- package/dist/esm/FloatingButton.js.map +2 -2
- package/package.json +5 -5
|
@@ -0,0 +1,32 @@
|
|
|
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 __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
22
|
+
mod
|
|
23
|
+
));
|
|
24
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
|
+
var DSChatFloatingButtonDefinitions_exports = {};
|
|
26
|
+
__export(DSChatFloatingButtonDefinitions_exports, {
|
|
27
|
+
DSChatFloatingButtonName: () => DSChatFloatingButtonName
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(DSChatFloatingButtonDefinitions_exports);
|
|
30
|
+
var React = __toESM(require("react"));
|
|
31
|
+
const DSChatFloatingButtonName = "DSChatFloatingButton";
|
|
32
|
+
//# sourceMappingURL=DSChatFloatingButtonDefinitions.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/DSChatFloatingButtonDefinitions.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
+
"sourcesContent": ["export const DSChatFloatingButtonName = 'DSChatFloatingButton';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,2BAA2B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -34,22 +34,15 @@ var import_ds_utilities = require("@elliemae/ds-utilities");
|
|
|
34
34
|
var import_ds_icons = require("@elliemae/ds-icons");
|
|
35
35
|
var import_styled = require("./styled");
|
|
36
36
|
var import_react_desc_prop_types = require("./react-desc-prop-types");
|
|
37
|
+
var import_DSChatFloatingButtonDefinitions = require("./DSChatFloatingButtonDefinitions");
|
|
37
38
|
const FloatingButton = (props) => {
|
|
38
39
|
const propsWithDefault = (0, import_ds_utilities.useMemoMergePropsWithDefault)(props, import_react_desc_prop_types.defaultFloatingButton);
|
|
39
|
-
(0, import_ds_utilities.useValidateTypescriptPropTypes)(propsWithDefault, import_react_desc_prop_types.propsFloatingButton);
|
|
40
|
+
(0, import_ds_utilities.useValidateTypescriptPropTypes)(propsWithDefault, import_react_desc_prop_types.propsFloatingButton, import_DSChatFloatingButtonDefinitions.DSChatFloatingButtonName);
|
|
40
41
|
const { onFocus, innerRef, onClick } = propsWithDefault;
|
|
41
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyledFloatingButton, {
|
|
42
|
-
onFocus,
|
|
43
|
-
ref: innerRef,
|
|
44
|
-
"data-testid": "chat-floating-button",
|
|
45
|
-
onClick,
|
|
46
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.Comments, {
|
|
47
|
-
size: "l"
|
|
48
|
-
})
|
|
49
|
-
});
|
|
42
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled.StyledFloatingButton, { onFocus, ref: innerRef, "data-testid": "chat-floating-button", onClick, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.Comments, { size: "l" }) });
|
|
50
43
|
};
|
|
51
44
|
FloatingButton.propTypes = import_react_desc_prop_types.propsFloatingButton;
|
|
52
|
-
FloatingButton.displayName =
|
|
45
|
+
FloatingButton.displayName = import_DSChatFloatingButtonDefinitions.DSChatFloatingButtonName;
|
|
53
46
|
const FloatingButtonWithSchema = (0, import_ds_utilities.describe)(FloatingButton);
|
|
54
47
|
FloatingButtonWithSchema.propTypes = import_react_desc_prop_types.propsFloatingButton;
|
|
55
48
|
//# sourceMappingURL=FloatingButton.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/FloatingButton.tsx", "../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import type { WeakValidationMap } from 'react';\nimport React from 'react';\nimport { describe, useValidateTypescriptPropTypes, useMemoMergePropsWithDefault } from '@elliemae/ds-utilities';\n\nimport { Comments } from '@elliemae/ds-icons';\nimport { StyledFloatingButton } from './styled';\nimport type { FloatingButtonProps } from './react-desc-prop-types';\nimport { defaultFloatingButton, propsFloatingButton } from './react-desc-prop-types';\n\nconst FloatingButton: React.ComponentType<FloatingButtonProps> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault(props, defaultFloatingButton);\n useValidateTypescriptPropTypes(propsWithDefault, propsFloatingButton);\n const { onFocus, innerRef, onClick } = propsWithDefault;\n return (\n <StyledFloatingButton onFocus={onFocus} ref={innerRef} data-testid=\"chat-floating-button\" onClick={onClick}>\n <Comments size=\"l\" />\n </StyledFloatingButton>\n );\n};\n\nFloatingButton.propTypes = propsFloatingButton as WeakValidationMap<unknown>;\nFloatingButton.displayName =
|
|
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';\n\nimport { Comments } from '@elliemae/ds-icons';\nimport { StyledFloatingButton } from './styled';\nimport type { FloatingButtonProps } from './react-desc-prop-types';\nimport { defaultFloatingButton, propsFloatingButton } from './react-desc-prop-types';\nimport { DSChatFloatingButtonName } from './DSChatFloatingButtonDefinitions';\n\nconst FloatingButton: React.ComponentType<FloatingButtonProps> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault(props, defaultFloatingButton);\n useValidateTypescriptPropTypes(propsWithDefault, propsFloatingButton, DSChatFloatingButtonName);\n const { onFocus, innerRef, onClick } = propsWithDefault;\n return (\n <StyledFloatingButton onFocus={onFocus} ref={innerRef} data-testid=\"chat-floating-button\" onClick={onClick}>\n <Comments size=\"l\" />\n </StyledFloatingButton>\n );\n};\n\nFloatingButton.propTypes = propsFloatingButton as WeakValidationMap<unknown>;\nFloatingButton.displayName = DSChatFloatingButtonName;\nconst FloatingButtonWithSchema = describe(FloatingButton);\nFloatingButtonWithSchema.propTypes = propsFloatingButton as WeakValidationMap<unknown>;\n\nexport { FloatingButton, FloatingButtonWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADgBjB;AAdN,0BAAuF;AAEvF,sBAAyB;AACzB,oBAAqC;AAErC,mCAA2D;AAC3D,6CAAyC;AAEzC,MAAM,iBAA2D,CAAC,UAAU;AAC1E,QAAM,uBAAmB,kDAA6B,OAAO,kDAAqB;AAClF,0DAA+B,kBAAkB,kDAAqB,+DAAwB;AAC9F,QAAM,EAAE,SAAS,UAAU,QAAQ,IAAI;AACvC,SACE,4CAAC,sCAAqB,SAAkB,KAAK,UAAU,eAAY,wBAAuB,SACxF,sDAAC,4BAAS,MAAK,KAAI,GACrB;AAEJ;AAEA,eAAe,YAAY;AAC3B,eAAe,cAAc;AAC7B,MAAM,+BAA2B,8BAAS,cAAc;AACxD,yBAAyB,YAAY;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSChatFloatingButtonDefinitions.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const DSChatFloatingButtonName = 'DSChatFloatingButton';\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAhB,MAAM,2BAA2B;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -4,22 +4,15 @@ import { describe, useValidateTypescriptPropTypes, useMemoMergePropsWithDefault
|
|
|
4
4
|
import { Comments } from "@elliemae/ds-icons";
|
|
5
5
|
import { StyledFloatingButton } from "./styled";
|
|
6
6
|
import { defaultFloatingButton, propsFloatingButton } from "./react-desc-prop-types";
|
|
7
|
+
import { DSChatFloatingButtonName } from "./DSChatFloatingButtonDefinitions";
|
|
7
8
|
const FloatingButton = (props) => {
|
|
8
9
|
const propsWithDefault = useMemoMergePropsWithDefault(props, defaultFloatingButton);
|
|
9
|
-
useValidateTypescriptPropTypes(propsWithDefault, propsFloatingButton);
|
|
10
|
+
useValidateTypescriptPropTypes(propsWithDefault, propsFloatingButton, DSChatFloatingButtonName);
|
|
10
11
|
const { onFocus, innerRef, onClick } = propsWithDefault;
|
|
11
|
-
return /* @__PURE__ */ jsx(StyledFloatingButton, {
|
|
12
|
-
onFocus,
|
|
13
|
-
ref: innerRef,
|
|
14
|
-
"data-testid": "chat-floating-button",
|
|
15
|
-
onClick,
|
|
16
|
-
children: /* @__PURE__ */ jsx(Comments, {
|
|
17
|
-
size: "l"
|
|
18
|
-
})
|
|
19
|
-
});
|
|
12
|
+
return /* @__PURE__ */ jsx(StyledFloatingButton, { onFocus, ref: innerRef, "data-testid": "chat-floating-button", onClick, children: /* @__PURE__ */ jsx(Comments, { size: "l" }) });
|
|
20
13
|
};
|
|
21
14
|
FloatingButton.propTypes = propsFloatingButton;
|
|
22
|
-
FloatingButton.displayName =
|
|
15
|
+
FloatingButton.displayName = DSChatFloatingButtonName;
|
|
23
16
|
const FloatingButtonWithSchema = describe(FloatingButton);
|
|
24
17
|
FloatingButtonWithSchema.propTypes = propsFloatingButton;
|
|
25
18
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/FloatingButton.tsx"],
|
|
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';\n\nimport { Comments } from '@elliemae/ds-icons';\nimport { StyledFloatingButton } from './styled';\nimport type { FloatingButtonProps } from './react-desc-prop-types';\nimport { defaultFloatingButton, propsFloatingButton } from './react-desc-prop-types';\n\nconst FloatingButton: React.ComponentType<FloatingButtonProps> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault(props, defaultFloatingButton);\n useValidateTypescriptPropTypes(propsWithDefault, propsFloatingButton);\n const { onFocus, innerRef, onClick } = propsWithDefault;\n return (\n <StyledFloatingButton onFocus={onFocus} ref={innerRef} data-testid=\"chat-floating-button\" onClick={onClick}>\n <Comments size=\"l\" />\n </StyledFloatingButton>\n );\n};\n\nFloatingButton.propTypes = propsFloatingButton as WeakValidationMap<unknown>;\nFloatingButton.displayName =
|
|
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';\n\nimport { Comments } from '@elliemae/ds-icons';\nimport { StyledFloatingButton } from './styled';\nimport type { FloatingButtonProps } from './react-desc-prop-types';\nimport { defaultFloatingButton, propsFloatingButton } from './react-desc-prop-types';\nimport { DSChatFloatingButtonName } from './DSChatFloatingButtonDefinitions';\n\nconst FloatingButton: React.ComponentType<FloatingButtonProps> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault(props, defaultFloatingButton);\n useValidateTypescriptPropTypes(propsWithDefault, propsFloatingButton, DSChatFloatingButtonName);\n const { onFocus, innerRef, onClick } = propsWithDefault;\n return (\n <StyledFloatingButton onFocus={onFocus} ref={innerRef} data-testid=\"chat-floating-button\" onClick={onClick}>\n <Comments size=\"l\" />\n </StyledFloatingButton>\n );\n};\n\nFloatingButton.propTypes = propsFloatingButton as WeakValidationMap<unknown>;\nFloatingButton.displayName = DSChatFloatingButtonName;\nconst FloatingButtonWithSchema = describe(FloatingButton);\nFloatingButtonWithSchema.propTypes = propsFloatingButton as WeakValidationMap<unknown>;\n\nexport { FloatingButton, FloatingButtonWithSchema };\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACgBjB;AAdN,SAAS,UAAU,gCAAgC,oCAAoC;AAEvF,SAAS,gBAAgB;AACzB,SAAS,4BAA4B;AAErC,SAAS,uBAAuB,2BAA2B;AAC3D,SAAS,gCAAgC;AAEzC,MAAM,iBAA2D,CAAC,UAAU;AAC1E,QAAM,mBAAmB,6BAA6B,OAAO,qBAAqB;AAClF,iCAA+B,kBAAkB,qBAAqB,wBAAwB;AAC9F,QAAM,EAAE,SAAS,UAAU,QAAQ,IAAI;AACvC,SACE,oBAAC,wBAAqB,SAAkB,KAAK,UAAU,eAAY,wBAAuB,SACxF,8BAAC,YAAS,MAAK,KAAI,GACrB;AAEJ;AAEA,eAAe,YAAY;AAC3B,eAAe,cAAc;AAC7B,MAAM,2BAA2B,SAAS,cAAc;AACxD,yBAAyB,YAAY;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-chat-floating-button",
|
|
3
|
-
"version": "3.12.0-rc.
|
|
3
|
+
"version": "3.12.0-rc.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Chat Floating Button",
|
|
6
6
|
"files": [
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"typeSafety": true
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@elliemae/ds-grid": "3.12.0-rc.
|
|
51
|
-
"@elliemae/ds-icons": "3.12.0-rc.
|
|
52
|
-
"@elliemae/ds-system": "3.12.0-rc.
|
|
53
|
-
"@elliemae/ds-utilities": "3.12.0-rc.
|
|
50
|
+
"@elliemae/ds-grid": "3.12.0-rc.3",
|
|
51
|
+
"@elliemae/ds-icons": "3.12.0-rc.3",
|
|
52
|
+
"@elliemae/ds-system": "3.12.0-rc.3",
|
|
53
|
+
"@elliemae/ds-utilities": "3.12.0-rc.3"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"styled-components": "~5.3.6"
|