@elliemae/ds-chat-floating-button 3.52.0-rc.9 → 3.52.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.
@@ -34,10 +34,10 @@ __export(react_desc_prop_types_exports, {
34
34
  module.exports = __toCommonJS(react_desc_prop_types_exports);
35
35
  var React = __toESM(require("react"));
36
36
  var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
37
- var import_lodash = require("lodash");
37
+ var import_lodash_es = require("lodash-es");
38
38
  const defaultFloatingButton = {
39
- onClick: import_lodash.noop,
40
- onFocus: import_lodash.noop
39
+ onClick: import_lodash_es.noop,
40
+ onFocus: import_lodash_es.noop
41
41
  };
42
42
  const propsFloatingButton = {
43
43
  onClick: import_ds_props_helpers.PropTypes.func.description("The function to call when the chat is opened via the footer").defaultValue(defaultFloatingButton.onClick),
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/react-desc-prop-types.ts", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import { PropTypes } from '@elliemae/ds-props-helpers';\nimport { noop } from 'lodash';\nimport type React from 'react';\n\nexport declare namespace DSChatFloatingButtonT {\n export interface DefaultProps {\n onClick: () => void;\n onFocus: () => void;\n innerRef: React.RefObject<HTMLButtonElement>;\n }\n\n export interface Props extends Partial<DefaultProps> {}\n\n export interface InternalProps extends DefaultProps {}\n}\n\nexport const defaultFloatingButton: DSChatFloatingButtonT.Props = {\n onClick: noop,\n onFocus: noop,\n};\n\nexport const propsFloatingButton = {\n onClick: PropTypes.func\n .description('The function to call when the chat is opened via the footer')\n .defaultValue(defaultFloatingButton.onClick),\n onFocus: PropTypes.func\n .description('The function to call when button is being focused')\n .defaultValue(defaultFloatingButton.onFocus),\n innerRef: PropTypes.object.description('Ref to the component container').defaultValue(null),\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAA0B;AAC1B,oBAAqB;AAed,MAAM,wBAAqD;AAAA,EAChE,SAAS;AAAA,EACT,SAAS;AACX;AAEO,MAAM,sBAAsB;AAAA,EACjC,SAAS,kCAAU,KAChB,YAAY,6DAA6D,EACzE,aAAa,sBAAsB,OAAO;AAAA,EAC7C,SAAS,kCAAU,KAChB,YAAY,mDAAmD,EAC/D,aAAa,sBAAsB,OAAO;AAAA,EAC7C,UAAU,kCAAU,OAAO,YAAY,gCAAgC,EAAE,aAAa,IAAI;AAC5F;",
4
+ "sourcesContent": ["import { PropTypes } from '@elliemae/ds-props-helpers';\nimport { noop } from 'lodash-es';\nimport type React from 'react';\n\nexport declare namespace DSChatFloatingButtonT {\n export interface DefaultProps {\n onClick: () => void;\n onFocus: () => void;\n innerRef: React.RefObject<HTMLButtonElement>;\n }\n\n export interface Props extends Partial<DefaultProps> {}\n\n export interface InternalProps extends DefaultProps {}\n}\n\nexport const defaultFloatingButton: DSChatFloatingButtonT.Props = {\n onClick: noop,\n onFocus: noop,\n};\n\nexport const propsFloatingButton = {\n onClick: PropTypes.func\n .description('The function to call when the chat is opened via the footer')\n .defaultValue(defaultFloatingButton.onClick),\n onFocus: PropTypes.func\n .description('The function to call when button is being focused')\n .defaultValue(defaultFloatingButton.onFocus),\n innerRef: PropTypes.object.description('Ref to the component container').defaultValue(null),\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAA0B;AAC1B,uBAAqB;AAed,MAAM,wBAAqD;AAAA,EAChE,SAAS;AAAA,EACT,SAAS;AACX;AAEO,MAAM,sBAAsB;AAAA,EACjC,SAAS,kCAAU,KAChB,YAAY,6DAA6D,EACzE,aAAa,sBAAsB,OAAO;AAAA,EAC7C,SAAS,kCAAU,KAChB,YAAY,mDAAmD,EAC/D,aAAa,sBAAsB,OAAO;AAAA,EAC7C,UAAU,kCAAU,OAAO,YAAY,gCAAgC,EAAE,aAAa,IAAI;AAC5F;",
6
6
  "names": []
7
7
  }
@@ -24,11 +24,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  var React = __toESM(require("react"));
25
25
  var import_jsx_runtime = require("react/jsx-runtime");
26
26
  var import_react = require("react");
27
- var import_lodash = require("lodash");
27
+ var import_lodash_es = require("lodash-es");
28
28
  var import__ = require("../index.js");
29
29
  const ref = (0, import_react.createRef)();
30
30
  const testPartialDefaults = {
31
- onClick: import_lodash.noop
31
+ onClick: import_lodash_es.noop
32
32
  };
33
33
  const testProps = {
34
34
  ...testPartialDefaults
@@ -37,8 +37,8 @@ const testPropsAsSyntax = {
37
37
  ...testPartialDefaults
38
38
  };
39
39
  const testCompleteDefaults = {
40
- onClick: import_lodash.noop,
41
- onFocus: import_lodash.noop,
40
+ onClick: import_lodash_es.noop,
41
+ onFocus: import_lodash_es.noop,
42
42
  innerRef: ref
43
43
  };
44
44
  const testInternalProps = {
@@ -48,24 +48,24 @@ const testInternalPropsAsSyntax = {
48
48
  ...testCompleteDefaults
49
49
  };
50
50
  const testExplicitDefinition = {
51
- onClick: import_lodash.noop,
52
- onFocus: import_lodash.noop,
51
+ onClick: import_lodash_es.noop,
52
+ onFocus: import_lodash_es.noop,
53
53
  innerRef: ref
54
54
  };
55
55
  const testInferedTypeCompatibility = {
56
- onClick: import_lodash.noop,
57
- onFocus: import_lodash.noop,
56
+ onClick: import_lodash_es.noop,
57
+ onFocus: import_lodash_es.noop,
58
58
  innerRef: ref
59
59
  };
60
60
  const testDefinitionAsConst = {
61
- onClick: import_lodash.noop,
62
- onFocus: import_lodash.noop,
61
+ onClick: import_lodash_es.noop,
62
+ onFocus: import_lodash_es.noop,
63
63
  innerRef: ref
64
64
  };
65
65
  const ExampleUsageComponent = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
66
66
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.FloatingButton, { ...testExplicitDefinition }),
67
67
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.FloatingButton, { ...testInferedTypeCompatibility }),
68
68
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.FloatingButton, { ...testDefinitionAsConst }),
69
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.FloatingButton, { onClick: import_lodash.noop, onFocus: import_lodash.noop, innerRef: ref })
69
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.FloatingButton, { onClick: import_lodash_es.noop, onFocus: import_lodash_es.noop, innerRef: ref })
70
70
  ] });
71
71
  //# sourceMappingURL=typescript-chat-floating-button-valid.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/typescript-chat-floating-button-valid.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { createRef } from 'react';\nimport { noop } from 'lodash';\nimport { FloatingButton } from '../index.js';\nimport type { DSChatFloatingButtonT } from '../index.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSChatFloatingButtonT.Props;\ntype ComponentPropsInternals = DSChatFloatingButtonT.InternalProps;\ntype ComponentPropsDefaultProps = DSChatFloatingButtonT.DefaultProps;\n\nconst ref = createRef<HTMLButtonElement>();\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 onClick: noop,\n};\n\nconst testProps: ComponentPropsForApp = {\n ...testPartialDefaults,\n};\n\nconst testPropsAsSyntax = {\n ...testPartialDefaults,\n} as ComponentPropsForApp;\n\n// InternalProps requires all defaults to be filled in\nconst testCompleteDefaults: Required<ComponentPropsDefaultProps> = {\n onClick: noop,\n onFocus: noop,\n innerRef: ref,\n};\n\nconst testInternalProps: ComponentPropsInternals = {\n ...testCompleteDefaults,\n};\n\nconst testInternalPropsAsSyntax = {\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 onClick: noop,\n onFocus: noop,\n innerRef: ref,\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 onClick: noop,\n onFocus: noop,\n innerRef: ref,\n} as ComponentPropsForApp;\n\nconst testDefinitionAsConst = {\n onClick: noop,\n onFocus: noop,\n innerRef: ref,\n} as const;\n\nconst ExampleUsageComponent = () => (\n <>\n {/* works with explicitly casted props, all syntaxes */}\n <FloatingButton {...testExplicitDefinition} />\n <FloatingButton {...testInferedTypeCompatibility} />\n <FloatingButton {...testDefinitionAsConst} />\n {/* works with inline values */}\n <FloatingButton onClick={noop} onFocus={noop} innerRef={ref} />\n </>\n);\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAuB;AC+DrB;AA9DF,mBAA0B;AAC1B,oBAAqB;AACrB,eAA+B;AAQ/B,MAAM,UAAM,wBAA6B;AAIzC,MAAM,sBAA2D;AAAA,EAC/D,SAAS;AACX;AAEA,MAAM,YAAkC;AAAA,EACtC,GAAG;AACL;AAEA,MAAM,oBAAoB;AAAA,EACxB,GAAG;AACL;AAGA,MAAM,uBAA6D;AAAA,EACjE,SAAS;AAAA,EACT,SAAS;AAAA,EACT,UAAU;AACZ;AAEA,MAAM,oBAA6C;AAAA,EACjD,GAAG;AACL;AAEA,MAAM,4BAA4B;AAAA,EAChC,GAAG;AACL;AAGA,MAAM,yBAA+C;AAAA,EACnD,SAAS;AAAA,EACT,SAAS;AAAA,EACT,UAAU;AACZ;AAGA,MAAM,+BAA+B;AAAA,EACnC,SAAS;AAAA,EACT,SAAS;AAAA,EACT,UAAU;AACZ;AAEA,MAAM,wBAAwB;AAAA,EAC5B,SAAS;AAAA,EACT,SAAS;AAAA,EACT,UAAU;AACZ;AAEA,MAAM,wBAAwB,MAC5B,4EAEE;AAAA,8CAAC,2BAAgB,GAAG,wBAAwB;AAAA,EAC5C,4CAAC,2BAAgB,GAAG,8BAA8B;AAAA,EAClD,4CAAC,2BAAgB,GAAG,uBAAuB;AAAA,EAE3C,4CAAC,2BAAe,SAAS,oBAAM,SAAS,oBAAM,UAAU,KAAK;AAAA,GAC/D;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { createRef } from 'react';\nimport { noop } from 'lodash-es';\nimport { FloatingButton } from '../index.js';\nimport type { DSChatFloatingButtonT } from '../index.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSChatFloatingButtonT.Props;\ntype ComponentPropsInternals = DSChatFloatingButtonT.InternalProps;\ntype ComponentPropsDefaultProps = DSChatFloatingButtonT.DefaultProps;\n\nconst ref = createRef<HTMLButtonElement>();\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 onClick: noop,\n};\n\nconst testProps: ComponentPropsForApp = {\n ...testPartialDefaults,\n};\n\nconst testPropsAsSyntax = {\n ...testPartialDefaults,\n} as ComponentPropsForApp;\n\n// InternalProps requires all defaults to be filled in\nconst testCompleteDefaults: Required<ComponentPropsDefaultProps> = {\n onClick: noop,\n onFocus: noop,\n innerRef: ref,\n};\n\nconst testInternalProps: ComponentPropsInternals = {\n ...testCompleteDefaults,\n};\n\nconst testInternalPropsAsSyntax = {\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 onClick: noop,\n onFocus: noop,\n innerRef: ref,\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 onClick: noop,\n onFocus: noop,\n innerRef: ref,\n} as ComponentPropsForApp;\n\nconst testDefinitionAsConst = {\n onClick: noop,\n onFocus: noop,\n innerRef: ref,\n} as const;\n\nconst ExampleUsageComponent = () => (\n <>\n {/* works with explicitly casted props, all syntaxes */}\n <FloatingButton {...testExplicitDefinition} />\n <FloatingButton {...testInferedTypeCompatibility} />\n <FloatingButton {...testDefinitionAsConst} />\n {/* works with inline values */}\n <FloatingButton onClick={noop} onFocus={noop} innerRef={ref} />\n </>\n);\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAuB;AC+DrB;AA9DF,mBAA0B;AAC1B,uBAAqB;AACrB,eAA+B;AAQ/B,MAAM,UAAM,wBAA6B;AAIzC,MAAM,sBAA2D;AAAA,EAC/D,SAAS;AACX;AAEA,MAAM,YAAkC;AAAA,EACtC,GAAG;AACL;AAEA,MAAM,oBAAoB;AAAA,EACxB,GAAG;AACL;AAGA,MAAM,uBAA6D;AAAA,EACjE,SAAS;AAAA,EACT,SAAS;AAAA,EACT,UAAU;AACZ;AAEA,MAAM,oBAA6C;AAAA,EACjD,GAAG;AACL;AAEA,MAAM,4BAA4B;AAAA,EAChC,GAAG;AACL;AAGA,MAAM,yBAA+C;AAAA,EACnD,SAAS;AAAA,EACT,SAAS;AAAA,EACT,UAAU;AACZ;AAGA,MAAM,+BAA+B;AAAA,EACnC,SAAS;AAAA,EACT,SAAS;AAAA,EACT,UAAU;AACZ;AAEA,MAAM,wBAAwB;AAAA,EAC5B,SAAS;AAAA,EACT,SAAS;AAAA,EACT,UAAU;AACZ;AAEA,MAAM,wBAAwB,MAC5B,4EAEE;AAAA,8CAAC,2BAAgB,GAAG,wBAAwB;AAAA,EAC5C,4CAAC,2BAAgB,GAAG,8BAA8B;AAAA,EAClD,4CAAC,2BAAgB,GAAG,uBAAuB;AAAA,EAE3C,4CAAC,2BAAe,SAAS,uBAAM,SAAS,uBAAM,UAAU,KAAK;AAAA,GAC/D;",
6
6
  "names": []
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { PropTypes } from "@elliemae/ds-props-helpers";
3
- import { noop } from "lodash";
3
+ import { noop } from "lodash-es";
4
4
  const defaultFloatingButton = {
5
5
  onClick: noop,
6
6
  onFocus: noop
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/react-desc-prop-types.ts"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from '@elliemae/ds-props-helpers';\nimport { noop } from 'lodash';\nimport type React from 'react';\n\nexport declare namespace DSChatFloatingButtonT {\n export interface DefaultProps {\n onClick: () => void;\n onFocus: () => void;\n innerRef: React.RefObject<HTMLButtonElement>;\n }\n\n export interface Props extends Partial<DefaultProps> {}\n\n export interface InternalProps extends DefaultProps {}\n}\n\nexport const defaultFloatingButton: DSChatFloatingButtonT.Props = {\n onClick: noop,\n onFocus: noop,\n};\n\nexport const propsFloatingButton = {\n onClick: PropTypes.func\n .description('The function to call when the chat is opened via the footer')\n .defaultValue(defaultFloatingButton.onClick),\n onFocus: PropTypes.func\n .description('The function to call when button is being focused')\n .defaultValue(defaultFloatingButton.onFocus),\n innerRef: PropTypes.object.description('Ref to the component container').defaultValue(null),\n};\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from '@elliemae/ds-props-helpers';\nimport { noop } from 'lodash-es';\nimport type React from 'react';\n\nexport declare namespace DSChatFloatingButtonT {\n export interface DefaultProps {\n onClick: () => void;\n onFocus: () => void;\n innerRef: React.RefObject<HTMLButtonElement>;\n }\n\n export interface Props extends Partial<DefaultProps> {}\n\n export interface InternalProps extends DefaultProps {}\n}\n\nexport const defaultFloatingButton: DSChatFloatingButtonT.Props = {\n onClick: noop,\n onFocus: noop,\n};\n\nexport const propsFloatingButton = {\n onClick: PropTypes.func\n .description('The function to call when the chat is opened via the footer')\n .defaultValue(defaultFloatingButton.onClick),\n onFocus: PropTypes.func\n .description('The function to call when button is being focused')\n .defaultValue(defaultFloatingButton.onFocus),\n innerRef: PropTypes.object.description('Ref to the component container').defaultValue(null),\n};\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,iBAAiB;AAC1B,SAAS,YAAY;AAed,MAAM,wBAAqD;AAAA,EAChE,SAAS;AAAA,EACT,SAAS;AACX;AAEO,MAAM,sBAAsB;AAAA,EACjC,SAAS,UAAU,KAChB,YAAY,6DAA6D,EACzE,aAAa,sBAAsB,OAAO;AAAA,EAC7C,SAAS,UAAU,KAChB,YAAY,mDAAmD,EAC/D,aAAa,sBAAsB,OAAO;AAAA,EAC7C,UAAU,UAAU,OAAO,YAAY,gCAAgC,EAAE,aAAa,IAAI;AAC5F;",
6
6
  "names": []
7
7
  }
@@ -1,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
3
  import { createRef } from "react";
4
- import { noop } from "lodash";
4
+ import { noop } from "lodash-es";
5
5
  import { FloatingButton } from "../index.js";
6
6
  const ref = createRef();
7
7
  const testPartialDefaults = {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/typescript-chat-floating-button-valid.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { createRef } from 'react';\nimport { noop } from 'lodash';\nimport { FloatingButton } from '../index.js';\nimport type { DSChatFloatingButtonT } from '../index.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSChatFloatingButtonT.Props;\ntype ComponentPropsInternals = DSChatFloatingButtonT.InternalProps;\ntype ComponentPropsDefaultProps = DSChatFloatingButtonT.DefaultProps;\n\nconst ref = createRef<HTMLButtonElement>();\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 onClick: noop,\n};\n\nconst testProps: ComponentPropsForApp = {\n ...testPartialDefaults,\n};\n\nconst testPropsAsSyntax = {\n ...testPartialDefaults,\n} as ComponentPropsForApp;\n\n// InternalProps requires all defaults to be filled in\nconst testCompleteDefaults: Required<ComponentPropsDefaultProps> = {\n onClick: noop,\n onFocus: noop,\n innerRef: ref,\n};\n\nconst testInternalProps: ComponentPropsInternals = {\n ...testCompleteDefaults,\n};\n\nconst testInternalPropsAsSyntax = {\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 onClick: noop,\n onFocus: noop,\n innerRef: ref,\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 onClick: noop,\n onFocus: noop,\n innerRef: ref,\n} as ComponentPropsForApp;\n\nconst testDefinitionAsConst = {\n onClick: noop,\n onFocus: noop,\n innerRef: ref,\n} as const;\n\nconst ExampleUsageComponent = () => (\n <>\n {/* works with explicitly casted props, all syntaxes */}\n <FloatingButton {...testExplicitDefinition} />\n <FloatingButton {...testInferedTypeCompatibility} />\n <FloatingButton {...testDefinitionAsConst} />\n {/* works with inline values */}\n <FloatingButton onClick={noop} onFocus={noop} innerRef={ref} />\n </>\n);\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { createRef } from 'react';\nimport { noop } from 'lodash-es';\nimport { FloatingButton } from '../index.js';\nimport type { DSChatFloatingButtonT } from '../index.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSChatFloatingButtonT.Props;\ntype ComponentPropsInternals = DSChatFloatingButtonT.InternalProps;\ntype ComponentPropsDefaultProps = DSChatFloatingButtonT.DefaultProps;\n\nconst ref = createRef<HTMLButtonElement>();\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 onClick: noop,\n};\n\nconst testProps: ComponentPropsForApp = {\n ...testPartialDefaults,\n};\n\nconst testPropsAsSyntax = {\n ...testPartialDefaults,\n} as ComponentPropsForApp;\n\n// InternalProps requires all defaults to be filled in\nconst testCompleteDefaults: Required<ComponentPropsDefaultProps> = {\n onClick: noop,\n onFocus: noop,\n innerRef: ref,\n};\n\nconst testInternalProps: ComponentPropsInternals = {\n ...testCompleteDefaults,\n};\n\nconst testInternalPropsAsSyntax = {\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 onClick: noop,\n onFocus: noop,\n innerRef: ref,\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 onClick: noop,\n onFocus: noop,\n innerRef: ref,\n} as ComponentPropsForApp;\n\nconst testDefinitionAsConst = {\n onClick: noop,\n onFocus: noop,\n innerRef: ref,\n} as const;\n\nconst ExampleUsageComponent = () => (\n <>\n {/* works with explicitly casted props, all syntaxes */}\n <FloatingButton {...testExplicitDefinition} />\n <FloatingButton {...testInferedTypeCompatibility} />\n <FloatingButton {...testDefinitionAsConst} />\n {/* works with inline values */}\n <FloatingButton onClick={noop} onFocus={noop} innerRef={ref} />\n </>\n);\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;AC+DrB,mBAEE,KAFF;AA9DF,SAAS,iBAAiB;AAC1B,SAAS,YAAY;AACrB,SAAS,sBAAsB;AAQ/B,MAAM,MAAM,UAA6B;AAIzC,MAAM,sBAA2D;AAAA,EAC/D,SAAS;AACX;AAEA,MAAM,YAAkC;AAAA,EACtC,GAAG;AACL;AAEA,MAAM,oBAAoB;AAAA,EACxB,GAAG;AACL;AAGA,MAAM,uBAA6D;AAAA,EACjE,SAAS;AAAA,EACT,SAAS;AAAA,EACT,UAAU;AACZ;AAEA,MAAM,oBAA6C;AAAA,EACjD,GAAG;AACL;AAEA,MAAM,4BAA4B;AAAA,EAChC,GAAG;AACL;AAGA,MAAM,yBAA+C;AAAA,EACnD,SAAS;AAAA,EACT,SAAS;AAAA,EACT,UAAU;AACZ;AAGA,MAAM,+BAA+B;AAAA,EACnC,SAAS;AAAA,EACT,SAAS;AAAA,EACT,UAAU;AACZ;AAEA,MAAM,wBAAwB;AAAA,EAC5B,SAAS;AAAA,EACT,SAAS;AAAA,EACT,UAAU;AACZ;AAEA,MAAM,wBAAwB,MAC5B,iCAEE;AAAA,sBAAC,kBAAgB,GAAG,wBAAwB;AAAA,EAC5C,oBAAC,kBAAgB,GAAG,8BAA8B;AAAA,EAClD,oBAAC,kBAAgB,GAAG,uBAAuB;AAAA,EAE3C,oBAAC,kBAAe,SAAS,MAAM,SAAS,MAAM,UAAU,KAAK;AAAA,GAC/D;",
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.52.0-rc.9",
3
+ "version": "3.52.0",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Chat Floating Button",
6
6
  "files": [
@@ -36,19 +36,19 @@
36
36
  "typeSafety": true
37
37
  },
38
38
  "dependencies": {
39
- "@elliemae/ds-grid": "3.52.0-rc.9",
40
- "@elliemae/ds-props-helpers": "3.52.0-rc.9",
41
- "@elliemae/ds-system": "3.52.0-rc.9",
42
- "@elliemae/ds-icons": "3.52.0-rc.9"
39
+ "@elliemae/ds-grid": "3.52.0",
40
+ "@elliemae/ds-props-helpers": "3.52.0",
41
+ "@elliemae/ds-system": "3.52.0",
42
+ "@elliemae/ds-icons": "3.52.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@elliemae/pui-cli": "9.0.0-next.55",
45
+ "@elliemae/pui-cli": "9.0.0-next.63",
46
46
  "jest": "~29.7.0",
47
47
  "styled-components": "~5.3.9",
48
- "@elliemae/ds-monorepo-devops": "3.52.0-rc.9"
48
+ "@elliemae/ds-monorepo-devops": "3.52.0"
49
49
  },
50
50
  "peerDependencies": {
51
- "lodash": "^4.17.21",
51
+ "lodash-es": "^4.17.21",
52
52
  "react": "^18.3.1",
53
53
  "react-dom": "^18.3.1",
54
54
  "styled-components": "~5.3.9"