@elliemae/ds-imagelibrarymodal 3.57.0-next.7 → 3.57.0-next.9

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,7 +34,6 @@ __export(DSImageLibraryModal_exports, {
34
34
  module.exports = __toCommonJS(DSImageLibraryModal_exports);
35
35
  var React = __toESM(require("react"));
36
36
  var import_jsx_runtime = require("react/jsx-runtime");
37
- var import_prop_types = __toESM(require("prop-types"));
38
37
  var import_ds_modal = require("@elliemae/ds-modal");
39
38
  var import_ds_shared = require("@elliemae/ds-shared");
40
39
  var import_ImageLibraryModalImpl = __toESM(require("./components/ImageLibraryModalImpl.js"));
@@ -76,17 +75,5 @@ const DSImageLibraryModal = ({
76
75
  ...rest
77
76
  }
78
77
  );
79
- DSImageLibraryModal.propTypes = {
80
- containerProps: import_prop_types.default.shape({}),
81
- /** List of images src */
82
- imagesData: import_prop_types.default.arrayOf(
83
- import_prop_types.default.shape({
84
- url: import_prop_types.default.string,
85
- name: import_prop_types.default.string
86
- })
87
- ),
88
- /** Handler when user selects an image */
89
- onSelect: import_prop_types.default.func
90
- };
91
78
  var DSImageLibraryModal_default = DSImageLibraryModal;
92
79
  //# sourceMappingURL=DSImageLibraryModal.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/DSImageLibraryModal.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { MODAL_TYPE } from '@elliemae/ds-modal';\nimport { sizeOptions } from '@elliemae/ds-shared';\nimport ImageLibraryModalImpl from './components/ImageLibraryModalImpl.js';\n\nconst modalTypes = Object.values(MODAL_TYPE);\n\nconst DSImageLibraryModal = ({\n containerProps = {},\n confirmLabel = 'Add',\n disableDoubleClick = false,\n isOpen = true,\n modalTitle = 'Add Image',\n modalType = modalTypes[2],\n rejectLabel = 'Cancel',\n shouldCloseOnOverlayClick = true,\n size = sizeOptions[3],\n imagesData = [\n {\n url: 'https://www.freeiconspng.com/minicovers/no-image-icon-6.png',\n name: 'no image',\n createdBy: 'user:John Doe',\n createdDate: '0000-01-01 00:00 AM UTC',\n },\n ],\n onSelect = () => null,\n ...rest\n}) => (\n <ImageLibraryModalImpl\n confirmLabel={confirmLabel}\n containerProps={containerProps}\n disableDoubleClick={disableDoubleClick}\n imagesData={imagesData}\n isOpen={isOpen}\n modalTitle={modalTitle}\n modalType={modalType}\n onSelect={onSelect}\n rejectLabel={rejectLabel}\n shouldCloseOnOverlayClick={shouldCloseOnOverlayClick}\n size={size}\n {...rest}\n />\n);\n\n/** Inherits DSModal props */\nDSImageLibraryModal.propTypes = {\n containerProps: PropTypes.shape({}),\n /** List of images src */\n imagesData: PropTypes.arrayOf(\n PropTypes.shape({\n url: PropTypes.string,\n name: PropTypes.string,\n }),\n ),\n /** Handler when user selects an image */\n onSelect: PropTypes.func,\n};\n\nexport { DSImageLibraryModal };\nexport default DSImageLibraryModal;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;AD6BrB;AA5BF,wBAAsB;AACtB,sBAA2B;AAC3B,uBAA4B;AAC5B,mCAAkC;AAElC,MAAM,aAAa,OAAO,OAAO,0BAAU;AAE3C,MAAM,sBAAsB,CAAC;AAAA,EAC3B,iBAAiB,CAAC;AAAA,EAClB,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,SAAS;AAAA,EACT,aAAa;AAAA,EACb,YAAY,WAAW,CAAC;AAAA,EACxB,cAAc;AAAA,EACd,4BAA4B;AAAA,EAC5B,OAAO,6BAAY,CAAC;AAAA,EACpB,aAAa;AAAA,IACX;AAAA,MACE,KAAK;AAAA,MACL,MAAM;AAAA,MACN,WAAW;AAAA,MACX,aAAa;AAAA,IACf;AAAA,EACF;AAAA,EACA,WAAW,MAAM;AAAA,EACjB,GAAG;AACL,MACE;AAAA,EAAC,6BAAAA;AAAA,EAAA;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACC,GAAG;AAAA;AACN;AAIF,oBAAoB,YAAY;AAAA,EAC9B,gBAAgB,kBAAAC,QAAU,MAAM,CAAC,CAAC;AAAA;AAAA,EAElC,YAAY,kBAAAA,QAAU;AAAA,IACpB,kBAAAA,QAAU,MAAM;AAAA,MACd,KAAK,kBAAAA,QAAU;AAAA,MACf,MAAM,kBAAAA,QAAU;AAAA,IAClB,CAAC;AAAA,EACH;AAAA;AAAA,EAEA,UAAU,kBAAAA,QAAU;AACtB;AAGA,IAAO,8BAAQ;",
6
- "names": ["ImageLibraryModalImpl", "PropTypes"]
4
+ "sourcesContent": ["/* eslint-disable no-bitwise */\n/* eslint-disable react/no-unused-class-component-methods */\n/* eslint-disable react/jsx-no-bind */\n/* eslint-disable import/no-unresolved */\n/* eslint-disable max-lines */\n/* eslint-disable @typescript-eslint/no-unsafe-argument, max-params */\n/* eslint-disable @typescript-eslint/ban-ts-comment, @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any */\n/* eslint-disable complexity, @typescript-eslint/no-unsafe-call */\n/* eslint-disable no-unused-vars, @typescript-eslint/no-unsafe-member-access */\n/* eslint-disable @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-assignment */\n/* tslint:disable */\n// @ts-nocheck\n// What's with all the above disables?\n// this is what a legacy 7 year old codebase looks like.\nimport { MODAL_TYPE } from '@elliemae/ds-modal';\nimport { sizeOptions } from '@elliemae/ds-shared';\nimport ImageLibraryModalImpl from './components/ImageLibraryModalImpl.js';\n\nconst modalTypes = Object.values(MODAL_TYPE);\n\nconst DSImageLibraryModal = ({\n containerProps = {},\n confirmLabel = 'Add',\n disableDoubleClick = false,\n isOpen = true,\n modalTitle = 'Add Image',\n modalType = modalTypes[2],\n rejectLabel = 'Cancel',\n shouldCloseOnOverlayClick = true,\n size = sizeOptions[3],\n imagesData = [\n {\n url: 'https://www.freeiconspng.com/minicovers/no-image-icon-6.png',\n name: 'no image',\n createdBy: 'user:John Doe',\n createdDate: '0000-01-01 00:00 AM UTC',\n },\n ],\n onSelect = () => null,\n ...rest\n}) => (\n <ImageLibraryModalImpl\n confirmLabel={confirmLabel}\n containerProps={containerProps}\n disableDoubleClick={disableDoubleClick}\n imagesData={imagesData}\n isOpen={isOpen}\n modalTitle={modalTitle}\n modalType={modalType}\n onSelect={onSelect}\n rejectLabel={rejectLabel}\n shouldCloseOnOverlayClick={shouldCloseOnOverlayClick}\n size={size}\n {...rest}\n />\n);\n\nexport { DSImageLibraryModal };\nexport default DSImageLibraryModal;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADyCrB;AA3BF,sBAA2B;AAC3B,uBAA4B;AAC5B,mCAAkC;AAElC,MAAM,aAAa,OAAO,OAAO,0BAAU;AAE3C,MAAM,sBAAsB,CAAC;AAAA,EAC3B,iBAAiB,CAAC;AAAA,EAClB,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,SAAS;AAAA,EACT,aAAa;AAAA,EACb,YAAY,WAAW,CAAC;AAAA,EACxB,cAAc;AAAA,EACd,4BAA4B;AAAA,EAC5B,OAAO,6BAAY,CAAC;AAAA,EACpB,aAAa;AAAA,IACX;AAAA,MACE,KAAK;AAAA,MACL,MAAM;AAAA,MACN,WAAW;AAAA,MACX,aAAa;AAAA,IACf;AAAA,EACF;AAAA,EACA,WAAW,MAAM;AAAA,EACjB,GAAG;AACL,MACE;AAAA,EAAC,6BAAAA;AAAA,EAAA;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACC,GAAG;AAAA;AACN;AAIF,IAAO,8BAAQ;",
6
+ "names": ["ImageLibraryModalImpl"]
7
7
  }
@@ -1,6 +1,5 @@
1
1
  import * as React from "react";
2
2
  import { jsx } from "react/jsx-runtime";
3
- import PropTypes from "prop-types";
4
3
  import { MODAL_TYPE } from "@elliemae/ds-modal";
5
4
  import { sizeOptions } from "@elliemae/ds-shared";
6
5
  import ImageLibraryModalImpl from "./components/ImageLibraryModalImpl.js";
@@ -42,18 +41,6 @@ const DSImageLibraryModal = ({
42
41
  ...rest
43
42
  }
44
43
  );
45
- DSImageLibraryModal.propTypes = {
46
- containerProps: PropTypes.shape({}),
47
- /** List of images src */
48
- imagesData: PropTypes.arrayOf(
49
- PropTypes.shape({
50
- url: PropTypes.string,
51
- name: PropTypes.string
52
- })
53
- ),
54
- /** Handler when user selects an image */
55
- onSelect: PropTypes.func
56
- };
57
44
  var DSImageLibraryModal_default = DSImageLibraryModal;
58
45
  export {
59
46
  DSImageLibraryModal,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/DSImageLibraryModal.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport PropTypes from 'prop-types';\nimport { MODAL_TYPE } from '@elliemae/ds-modal';\nimport { sizeOptions } from '@elliemae/ds-shared';\nimport ImageLibraryModalImpl from './components/ImageLibraryModalImpl.js';\n\nconst modalTypes = Object.values(MODAL_TYPE);\n\nconst DSImageLibraryModal = ({\n containerProps = {},\n confirmLabel = 'Add',\n disableDoubleClick = false,\n isOpen = true,\n modalTitle = 'Add Image',\n modalType = modalTypes[2],\n rejectLabel = 'Cancel',\n shouldCloseOnOverlayClick = true,\n size = sizeOptions[3],\n imagesData = [\n {\n url: 'https://www.freeiconspng.com/minicovers/no-image-icon-6.png',\n name: 'no image',\n createdBy: 'user:John Doe',\n createdDate: '0000-01-01 00:00 AM UTC',\n },\n ],\n onSelect = () => null,\n ...rest\n}) => (\n <ImageLibraryModalImpl\n confirmLabel={confirmLabel}\n containerProps={containerProps}\n disableDoubleClick={disableDoubleClick}\n imagesData={imagesData}\n isOpen={isOpen}\n modalTitle={modalTitle}\n modalType={modalType}\n onSelect={onSelect}\n rejectLabel={rejectLabel}\n shouldCloseOnOverlayClick={shouldCloseOnOverlayClick}\n size={size}\n {...rest}\n />\n);\n\n/** Inherits DSModal props */\nDSImageLibraryModal.propTypes = {\n containerProps: PropTypes.shape({}),\n /** List of images src */\n imagesData: PropTypes.arrayOf(\n PropTypes.shape({\n url: PropTypes.string,\n name: PropTypes.string,\n }),\n ),\n /** Handler when user selects an image */\n onSelect: PropTypes.func,\n};\n\nexport { DSImageLibraryModal };\nexport default DSImageLibraryModal;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;AC6BrB;AA5BF,OAAO,eAAe;AACtB,SAAS,kBAAkB;AAC3B,SAAS,mBAAmB;AAC5B,OAAO,2BAA2B;AAElC,MAAM,aAAa,OAAO,OAAO,UAAU;AAE3C,MAAM,sBAAsB,CAAC;AAAA,EAC3B,iBAAiB,CAAC;AAAA,EAClB,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,SAAS;AAAA,EACT,aAAa;AAAA,EACb,YAAY,WAAW,CAAC;AAAA,EACxB,cAAc;AAAA,EACd,4BAA4B;AAAA,EAC5B,OAAO,YAAY,CAAC;AAAA,EACpB,aAAa;AAAA,IACX;AAAA,MACE,KAAK;AAAA,MACL,MAAM;AAAA,MACN,WAAW;AAAA,MACX,aAAa;AAAA,IACf;AAAA,EACF;AAAA,EACA,WAAW,MAAM;AAAA,EACjB,GAAG;AACL,MACE;AAAA,EAAC;AAAA;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACC,GAAG;AAAA;AACN;AAIF,oBAAoB,YAAY;AAAA,EAC9B,gBAAgB,UAAU,MAAM,CAAC,CAAC;AAAA;AAAA,EAElC,YAAY,UAAU;AAAA,IACpB,UAAU,MAAM;AAAA,MACd,KAAK,UAAU;AAAA,MACf,MAAM,UAAU;AAAA,IAClB,CAAC;AAAA,EACH;AAAA;AAAA,EAEA,UAAU,UAAU;AACtB;AAGA,IAAO,8BAAQ;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable no-bitwise */\n/* eslint-disable react/no-unused-class-component-methods */\n/* eslint-disable react/jsx-no-bind */\n/* eslint-disable import/no-unresolved */\n/* eslint-disable max-lines */\n/* eslint-disable @typescript-eslint/no-unsafe-argument, max-params */\n/* eslint-disable @typescript-eslint/ban-ts-comment, @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any */\n/* eslint-disable complexity, @typescript-eslint/no-unsafe-call */\n/* eslint-disable no-unused-vars, @typescript-eslint/no-unsafe-member-access */\n/* eslint-disable @typescript-eslint/no-unsafe-return, @typescript-eslint/no-unsafe-assignment */\n/* tslint:disable */\n// @ts-nocheck\n// What's with all the above disables?\n// this is what a legacy 7 year old codebase looks like.\nimport { MODAL_TYPE } from '@elliemae/ds-modal';\nimport { sizeOptions } from '@elliemae/ds-shared';\nimport ImageLibraryModalImpl from './components/ImageLibraryModalImpl.js';\n\nconst modalTypes = Object.values(MODAL_TYPE);\n\nconst DSImageLibraryModal = ({\n containerProps = {},\n confirmLabel = 'Add',\n disableDoubleClick = false,\n isOpen = true,\n modalTitle = 'Add Image',\n modalType = modalTypes[2],\n rejectLabel = 'Cancel',\n shouldCloseOnOverlayClick = true,\n size = sizeOptions[3],\n imagesData = [\n {\n url: 'https://www.freeiconspng.com/minicovers/no-image-icon-6.png',\n name: 'no image',\n createdBy: 'user:John Doe',\n createdDate: '0000-01-01 00:00 AM UTC',\n },\n ],\n onSelect = () => null,\n ...rest\n}) => (\n <ImageLibraryModalImpl\n confirmLabel={confirmLabel}\n containerProps={containerProps}\n disableDoubleClick={disableDoubleClick}\n imagesData={imagesData}\n isOpen={isOpen}\n modalTitle={modalTitle}\n modalType={modalType}\n onSelect={onSelect}\n rejectLabel={rejectLabel}\n shouldCloseOnOverlayClick={shouldCloseOnOverlayClick}\n size={size}\n {...rest}\n />\n);\n\nexport { DSImageLibraryModal };\nexport default DSImageLibraryModal;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACyCrB;AA3BF,SAAS,kBAAkB;AAC3B,SAAS,mBAAmB;AAC5B,OAAO,2BAA2B;AAElC,MAAM,aAAa,OAAO,OAAO,UAAU;AAE3C,MAAM,sBAAsB,CAAC;AAAA,EAC3B,iBAAiB,CAAC;AAAA,EAClB,eAAe;AAAA,EACf,qBAAqB;AAAA,EACrB,SAAS;AAAA,EACT,aAAa;AAAA,EACb,YAAY,WAAW,CAAC;AAAA,EACxB,cAAc;AAAA,EACd,4BAA4B;AAAA,EAC5B,OAAO,YAAY,CAAC;AAAA,EACpB,aAAa;AAAA,IACX;AAAA,MACE,KAAK;AAAA,MACL,MAAM;AAAA,MACN,WAAW;AAAA,MACX,aAAa;AAAA,IACf;AAAA,EACF;AAAA,EACA,WAAW,MAAM;AAAA,EACjB,GAAG;AACL,MACE;AAAA,EAAC;AAAA;AAAA,IACC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACC,GAAG;AAAA;AACN;AAIF,IAAO,8BAAQ;",
6
6
  "names": []
7
7
  }
@@ -1,35 +1,21 @@
1
- import PropTypes from 'prop-types';
2
- declare const DSImageLibraryModal: {
3
- ({ containerProps, confirmLabel, disableDoubleClick, isOpen, modalTitle, modalType, rejectLabel, shouldCloseOnOverlayClick, size, imagesData, onSelect, ...rest }: {
4
- [x: string]: any;
5
- containerProps?: {} | undefined;
6
- confirmLabel?: string | undefined;
7
- disableDoubleClick?: boolean | undefined;
8
- isOpen?: boolean | undefined;
9
- modalTitle?: string | undefined;
10
- modalType?: string | undefined;
11
- rejectLabel?: string | undefined;
12
- shouldCloseOnOverlayClick?: boolean | undefined;
13
- size?: string | undefined;
14
- imagesData?: {
15
- url: string;
16
- name: string;
17
- createdBy: string;
18
- createdDate: string;
19
- }[] | undefined;
20
- onSelect?: (() => null) | undefined;
21
- }): import("react/jsx-runtime.js").JSX.Element;
22
- /** Inherits DSModal props */
23
- propTypes: {
24
- containerProps: PropTypes.Requireable<PropTypes.InferProps<{}>>;
25
- /** List of images src */
26
- imagesData: PropTypes.Requireable<(PropTypes.InferProps<{
27
- url: PropTypes.Requireable<string>;
28
- name: PropTypes.Requireable<string>;
29
- }> | null | undefined)[]>;
30
- /** Handler when user selects an image */
31
- onSelect: PropTypes.Requireable<(...args: any[]) => any>;
32
- };
33
- };
1
+ declare const DSImageLibraryModal: ({ containerProps, confirmLabel, disableDoubleClick, isOpen, modalTitle, modalType, rejectLabel, shouldCloseOnOverlayClick, size, imagesData, onSelect, ...rest }: {
2
+ [x: string]: any;
3
+ containerProps?: {} | undefined;
4
+ confirmLabel?: string | undefined;
5
+ disableDoubleClick?: boolean | undefined;
6
+ isOpen?: boolean | undefined;
7
+ modalTitle?: string | undefined;
8
+ modalType?: string | undefined;
9
+ rejectLabel?: string | undefined;
10
+ shouldCloseOnOverlayClick?: boolean | undefined;
11
+ size?: string | undefined;
12
+ imagesData?: {
13
+ url: string;
14
+ name: string;
15
+ createdBy: string;
16
+ createdDate: string;
17
+ }[] | undefined;
18
+ onSelect?: (() => null) | undefined;
19
+ }) => import("react/jsx-runtime.js").JSX.Element;
34
20
  export { DSImageLibraryModal };
35
21
  export default DSImageLibraryModal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-imagelibrarymodal",
3
- "version": "3.57.0-next.7",
3
+ "version": "3.57.0-next.9",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Image Library Modal",
6
6
  "files": [
@@ -36,19 +36,18 @@
36
36
  "indent": 4
37
37
  },
38
38
  "dependencies": {
39
- "prop-types": "~15.8.1",
40
39
  "react-loading-image": "~0.5.0",
41
- "@elliemae/ds-icon": "3.57.0-next.7",
42
- "@elliemae/ds-modal": "3.57.0-next.7",
43
- "@elliemae/ds-icons": "3.57.0-next.7",
44
- "@elliemae/ds-shared": "3.57.0-next.7",
45
- "@elliemae/ds-spinner": "3.57.0-next.7"
40
+ "@elliemae/ds-icon": "3.57.0-next.9",
41
+ "@elliemae/ds-icons": "3.57.0-next.9",
42
+ "@elliemae/ds-modal": "3.57.0-next.9",
43
+ "@elliemae/ds-shared": "3.57.0-next.9",
44
+ "@elliemae/ds-spinner": "3.57.0-next.9"
46
45
  },
47
46
  "devDependencies": {
48
47
  "@elliemae/pui-cli": "9.0.0-next.65",
49
48
  "jest": "~29.7.0",
50
49
  "styled-components": "~5.3.9",
51
- "@elliemae/ds-monorepo-devops": "3.57.0-next.7"
50
+ "@elliemae/ds-monorepo-devops": "3.57.0-next.9"
52
51
  },
53
52
  "peerDependencies": {
54
53
  "lodash-es": "^4.17.21",