@elliemae/ds-chat-empty-state 3.22.0-next.3 → 3.22.0-next.31

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,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/ChatEmptyState.tsx", "../../../../scripts/build/transpile/react-shim.js"],
3
+ "sources": ["../../src/ChatEmptyState.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import type { WeakValidationMap } from 'react';\nimport React, { useMemo } from 'react';\nimport { describe, useValidateTypescriptPropTypes, useMemoMergePropsWithDefault } from '@elliemae/ds-props-helpers';\nimport { Grid } from '@elliemae/ds-grid';\nimport { Communications } from '@elliemae/ds-icons';\nimport type { DSChatEmptyStateT } from './react-desc-prop-types.js';\nimport { emptyStateProps, defaultProps } from './react-desc-prop-types.js';\nimport { ChatEmptyStateWrapper, MessageWrapper } from './styled.js';\nimport { DSChatEmptyStateName } from './DSChatEmptyStateDefinitions.js';\n\nconst ChatEmptyState: React.ComponentType<DSChatEmptyStateT.Props> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault<DSChatEmptyStateT.Props>(props, defaultProps);\n useValidateTypescriptPropTypes(propsWithDefault, emptyStateProps, DSChatEmptyStateName);\n\n const { label, action } = propsWithDefault;\n const MainContent = useMemo(\n () => (\n <Grid alignItems=\"center\" justifyContent=\"center\">\n <Grid alignItems=\"center\" justifyContent=\"center\">\n <Communications size=\"xxl\" color={['neutral', '400']} />\n </Grid>\n <Grid alignItems=\"center\" justifyContent=\"center\">\n <MessageWrapper>{label}</MessageWrapper>\n </Grid>\n <Grid alignItems=\"center\" justifyContent=\"center\">\n {action}\n </Grid>\n </Grid>\n ),\n [label, action],\n );\n return (\n <ChatEmptyStateWrapper alignItems=\"center\" justifyContent=\"center\">\n {MainContent}\n </ChatEmptyStateWrapper>\n );\n};\n\nChatEmptyState.propTypes = emptyStateProps as WeakValidationMap<unknown>;\nChatEmptyState.displayName = DSChatEmptyStateName;\nconst ChatEmptyStateWithSchema = describe(ChatEmptyState);\nChatEmptyStateWithSchema.propTypes = emptyStateProps as WeakValidationMap<unknown>;\n\nexport { ChatEmptyState, ChatEmptyStateWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADiBjB;AAhBN,mBAA+B;AAC/B,8BAAuF;AACvF,qBAAqB;AACrB,sBAA+B;AAE/B,mCAA8C;AAC9C,oBAAsD;AACtD,yCAAqC;AAErC,MAAM,iBAA+D,CAAC,UAAU;AAC9E,QAAM,uBAAmB,sDAAsD,OAAO,yCAAY;AAClG,8DAA+B,kBAAkB,8CAAiB,uDAAoB;AAEtF,QAAM,EAAE,OAAO,OAAO,IAAI;AAC1B,QAAM,kBAAc;AAAA,IAClB,MACE,6CAAC,uBAAK,YAAW,UAAS,gBAAe,UACvC;AAAA,kDAAC,uBAAK,YAAW,UAAS,gBAAe,UACvC,sDAAC,kCAAe,MAAK,OAAM,OAAO,CAAC,WAAW,KAAK,GAAG,GACxD;AAAA,MACA,4CAAC,uBAAK,YAAW,UAAS,gBAAe,UACvC,sDAAC,gCAAgB,iBAAM,GACzB;AAAA,MACA,4CAAC,uBAAK,YAAW,UAAS,gBAAe,UACtC,kBACH;AAAA,OACF;AAAA,IAEF,CAAC,OAAO,MAAM;AAAA,EAChB;AACA,SACE,4CAAC,uCAAsB,YAAW,UAAS,gBAAe,UACvD,uBACH;AAEJ;AAEA,eAAe,YAAY;AAC3B,eAAe,cAAc;AAC7B,MAAM,+BAA2B,kCAAS,cAAc;AACxD,yBAAyB,YAAY;",
6
6
  "names": []
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/DSChatEmptyStateDefinitions.tsx", "../../../../scripts/build/transpile/react-shim.js"],
3
+ "sources": ["../../src/DSChatEmptyStateDefinitions.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["export const DSChatEmptyStateName = 'DSChatEmptyState';\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,uBAAuB;",
6
6
  "names": []
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/index.tsx", "../../../../scripts/build/transpile/react-shim.js"],
3
+ "sources": ["../../src/index.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import type {} from '@elliemae/ds-props-helpers';\nexport { ChatEmptyState, ChatEmptyStateWithSchema } from './ChatEmptyState.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,4BAAyD;",
6
6
  "names": []
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/react-desc-prop-types.tsx", "../../../../scripts/build/transpile/react-shim.js"],
3
+ "sources": ["../../src/react-desc-prop-types.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import { PropTypes } from '@elliemae/ds-props-helpers';\n\nexport declare namespace DSChatEmptyStateT {\n export interface DefaultProps {\n label: string;\n }\n\n export interface OptionalProps {\n action: JSX.Element;\n }\n\n export interface Props extends DefaultProps, OptionalProps {}\n}\n\nexport const defaultProps: DSChatEmptyStateT.DefaultProps = {\n label: 'No Messages Yet',\n};\n\nexport const emptyStateProps = {\n label: PropTypes.string.description('No Message to show text helper').defaultValue(defaultProps.label),\n action: PropTypes.node.description('action element'),\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,8BAA0B;AAcnB,MAAM,eAA+C;AAAA,EAC1D,OAAO;AACT;AAEO,MAAM,kBAAkB;AAAA,EAC7B,OAAO,kCAAU,OAAO,YAAY,gCAAgC,EAAE,aAAa,aAAa,KAAK;AAAA,EACrG,QAAQ,kCAAU,KAAK,YAAY,gBAAgB;AACrD;",
6
6
  "names": []
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/styled.tsx", "../../../../scripts/build/transpile/react-shim.js"],
3
+ "sources": ["../../src/styled.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import { styled } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\n\nexport const CONTAINER_WIDTH = 300;\n\nexport const ChatEmptyStateWrapper = styled(Grid)`\n height: 100%;\n overflow: hidden;\n`;\n\nexport const MessageWrapper = styled.p`\n font-size: 18px;\n margin-bottom: 0px;\n`;\n", "import * as React from 'react';\nexport { React };\n"],
5
5
  "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAuB;AACvB,qBAAqB;AAEd,MAAM,kBAAkB;AAExB,MAAM,4BAAwB,yBAAO,mBAAI;AAAA;AAAA;AAAA;AAKzC,MAAM,iBAAiB,wBAAO;AAAA;AAAA;AAAA;",
6
6
  "names": []
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/ChatEmptyState.tsx"],
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/ChatEmptyState.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type { WeakValidationMap } from 'react';\nimport React, { useMemo } from 'react';\nimport { describe, useValidateTypescriptPropTypes, useMemoMergePropsWithDefault } from '@elliemae/ds-props-helpers';\nimport { Grid } from '@elliemae/ds-grid';\nimport { Communications } from '@elliemae/ds-icons';\nimport type { DSChatEmptyStateT } from './react-desc-prop-types.js';\nimport { emptyStateProps, defaultProps } from './react-desc-prop-types.js';\nimport { ChatEmptyStateWrapper, MessageWrapper } from './styled.js';\nimport { DSChatEmptyStateName } from './DSChatEmptyStateDefinitions.js';\n\nconst ChatEmptyState: React.ComponentType<DSChatEmptyStateT.Props> = (props) => {\n const propsWithDefault = useMemoMergePropsWithDefault<DSChatEmptyStateT.Props>(props, defaultProps);\n useValidateTypescriptPropTypes(propsWithDefault, emptyStateProps, DSChatEmptyStateName);\n\n const { label, action } = propsWithDefault;\n const MainContent = useMemo(\n () => (\n <Grid alignItems=\"center\" justifyContent=\"center\">\n <Grid alignItems=\"center\" justifyContent=\"center\">\n <Communications size=\"xxl\" color={['neutral', '400']} />\n </Grid>\n <Grid alignItems=\"center\" justifyContent=\"center\">\n <MessageWrapper>{label}</MessageWrapper>\n </Grid>\n <Grid alignItems=\"center\" justifyContent=\"center\">\n {action}\n </Grid>\n </Grid>\n ),\n [label, action],\n );\n return (\n <ChatEmptyStateWrapper alignItems=\"center\" justifyContent=\"center\">\n {MainContent}\n </ChatEmptyStateWrapper>\n );\n};\n\nChatEmptyState.propTypes = emptyStateProps as WeakValidationMap<unknown>;\nChatEmptyState.displayName = DSChatEmptyStateName;\nconst ChatEmptyStateWithSchema = describe(ChatEmptyState);\nChatEmptyStateWithSchema.propTypes = emptyStateProps as WeakValidationMap<unknown>;\n\nexport { ChatEmptyState, ChatEmptyStateWithSchema };\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACiBjB,SAEI,KAFJ;AAhBN,SAAgB,eAAe;AAC/B,SAAS,UAAU,gCAAgC,oCAAoC;AACvF,SAAS,YAAY;AACrB,SAAS,sBAAsB;AAE/B,SAAS,iBAAiB,oBAAoB;AAC9C,SAAS,uBAAuB,sBAAsB;AACtD,SAAS,4BAA4B;AAErC,MAAM,iBAA+D,CAAC,UAAU;AAC9E,QAAM,mBAAmB,6BAAsD,OAAO,YAAY;AAClG,iCAA+B,kBAAkB,iBAAiB,oBAAoB;AAEtF,QAAM,EAAE,OAAO,OAAO,IAAI;AAC1B,QAAM,cAAc;AAAA,IAClB,MACE,qBAAC,QAAK,YAAW,UAAS,gBAAe,UACvC;AAAA,0BAAC,QAAK,YAAW,UAAS,gBAAe,UACvC,8BAAC,kBAAe,MAAK,OAAM,OAAO,CAAC,WAAW,KAAK,GAAG,GACxD;AAAA,MACA,oBAAC,QAAK,YAAW,UAAS,gBAAe,UACvC,8BAAC,kBAAgB,iBAAM,GACzB;AAAA,MACA,oBAAC,QAAK,YAAW,UAAS,gBAAe,UACtC,kBACH;AAAA,OACF;AAAA,IAEF,CAAC,OAAO,MAAM;AAAA,EAChB;AACA,SACE,oBAAC,yBAAsB,YAAW,UAAS,gBAAe,UACvD,uBACH;AAEJ;AAEA,eAAe,YAAY;AAC3B,eAAe,cAAc;AAC7B,MAAM,2BAA2B,SAAS,cAAc;AACxD,yBAAyB,YAAY;",
6
6
  "names": []
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/DSChatEmptyStateDefinitions.tsx"],
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/DSChatEmptyStateDefinitions.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const DSChatEmptyStateName = 'DSChatEmptyState';\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACAhB,MAAM,uBAAuB;",
6
6
  "names": []
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type {} from '@elliemae/ds-props-helpers';\nexport { ChatEmptyState, ChatEmptyStateWithSchema } from './ChatEmptyState.js';\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACCvB,SAAS,gBAAgB,gCAAgC;",
6
6
  "names": []
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/react-desc-prop-types.tsx"],
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/react-desc-prop-types.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes } from '@elliemae/ds-props-helpers';\n\nexport declare namespace DSChatEmptyStateT {\n export interface DefaultProps {\n label: string;\n }\n\n export interface OptionalProps {\n action: JSX.Element;\n }\n\n export interface Props extends DefaultProps, OptionalProps {}\n}\n\nexport const defaultProps: DSChatEmptyStateT.DefaultProps = {\n label: 'No Messages Yet',\n};\n\nexport const emptyStateProps = {\n label: PropTypes.string.description('No Message to show text helper').defaultValue(defaultProps.label),\n action: PropTypes.node.description('action element'),\n};\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,iBAAiB;AAcnB,MAAM,eAA+C;AAAA,EAC1D,OAAO;AACT;AAEO,MAAM,kBAAkB;AAAA,EAC7B,OAAO,UAAU,OAAO,YAAY,gCAAgC,EAAE,aAAa,aAAa,KAAK;AAAA,EACrG,QAAQ,UAAU,KAAK,YAAY,gBAAgB;AACrD;",
6
6
  "names": []
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/styled.tsx"],
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/styled.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { styled } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\n\nexport const CONTAINER_WIDTH = 300;\n\nexport const ChatEmptyStateWrapper = styled(Grid)`\n height: 100%;\n overflow: hidden;\n`;\n\nexport const MessageWrapper = styled.p`\n font-size: 18px;\n margin-bottom: 0px;\n`;\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,cAAc;AACvB,SAAS,YAAY;AAEd,MAAM,kBAAkB;AAExB,MAAM,wBAAwB,OAAO,IAAI;AAAA;AAAA;AAAA;AAKzC,MAAM,iBAAiB,OAAO;AAAA;AAAA;AAAA;",
6
6
  "names": []
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare namespace DSChatEmptyStateT {
2
3
  interface DefaultProps {
3
4
  label: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-chat-empty-state",
3
- "version": "3.22.0-next.3",
3
+ "version": "3.22.0-next.31",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Chat Empty State",
6
6
  "files": [
@@ -47,15 +47,15 @@
47
47
  "typeSafety": true
48
48
  },
49
49
  "dependencies": {
50
- "@elliemae/ds-icons": "3.22.0-next.3",
51
- "@elliemae/ds-grid": "3.22.0-next.3",
52
- "@elliemae/ds-props-helpers": "3.22.0-next.3",
53
- "@elliemae/ds-system": "3.22.0-next.3"
50
+ "@elliemae/ds-grid": "3.22.0-next.31",
51
+ "@elliemae/ds-system": "3.22.0-next.31",
52
+ "@elliemae/ds-props-helpers": "3.22.0-next.31",
53
+ "@elliemae/ds-icons": "3.22.0-next.31"
54
54
  },
55
55
  "devDependencies": {
56
- "@elliemae/pui-cli": "~9.0.0-next.17",
56
+ "@elliemae/pui-cli": "~9.0.0-next.22",
57
57
  "styled-components": "~5.3.9",
58
- "@elliemae/ds-monorepo-devops": "3.22.0-next.3"
58
+ "@elliemae/ds-monorepo-devops": "3.22.0-next.31"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "lodash": "^4.17.21",
@@ -65,13 +65,13 @@
65
65
  },
66
66
  "scripts": {
67
67
  "test": "pui-cli test --passWithNoTests",
68
- "lint": "node ../../scripts/lint.mjs",
69
- "eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../.eslintrc.js' src/",
70
- "dts": "node ../../scripts/dts.mjs",
68
+ "lint": "node ../../../scripts/lint.mjs",
69
+ "eslint:fix": "eslint --ext='.js,.jsx,.test.js,.ts,.tsx' --fix --config='../../../.eslintrc.js' src/",
70
+ "dts": "node ../../../scripts/dts.mjs",
71
71
  "dev": "node ../../scripts/build/build.js -w",
72
- "build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs",
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",
75
- "checkDeps": "npm exec ../ds-codemods -- check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
75
+ "checkDeps": "npm exec ../../util/ds-codemods -- check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
76
76
  }
77
77
  }