@elliemae/ds-app-picker 3.26.1-rc.1 → 3.27.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.
@@ -0,0 +1,78 @@
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 testOptionalProps = {};
28
+ const testPartialDefaults = {
29
+ apps: [],
30
+ customApps: [],
31
+ sectionTitle: "",
32
+ customSectionTitle: "",
33
+ icon: () => null
34
+ };
35
+ const testProps = {
36
+ ...testOptionalProps,
37
+ ...testPartialDefaults
38
+ };
39
+ const testPropsAsSyntax = {
40
+ ...testOptionalProps,
41
+ ...testPartialDefaults
42
+ };
43
+ const testCompleteDefaults = {
44
+ apps: [],
45
+ customApps: [],
46
+ sectionTitle: "",
47
+ customSectionTitle: "",
48
+ icon: () => null
49
+ };
50
+ const testInternalProps = {
51
+ ...testOptionalProps,
52
+ ...testCompleteDefaults
53
+ };
54
+ const testInternalPropsAsSyntax = {
55
+ ...testOptionalProps,
56
+ ...testCompleteDefaults
57
+ };
58
+ const testExplicitDefinition = {
59
+ apps: [],
60
+ customApps: [],
61
+ sectionTitle: "",
62
+ customSectionTitle: "",
63
+ icon: () => null
64
+ };
65
+ const testInferedTypeCompatibility = {
66
+ apps: [],
67
+ customApps: [],
68
+ sectionTitle: "",
69
+ customSectionTitle: "",
70
+ icon: () => null
71
+ };
72
+ const ExampleUsageComponent = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
73
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DSAppPicker, { ...testExplicitDefinition }),
74
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DSAppPicker, { ...testInferedTypeCompatibility }),
75
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DSAppPicker, { apps: [], customApps: [], sectionTitle: "", customSectionTitle: "", icon: () => null }),
76
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.DSAppPicker, { apps: [], customApps: [], sectionTitle: "", customSectionTitle: "", icon: () => null })
77
+ ] });
78
+ //# sourceMappingURL=typescript-app-picker-valid.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/typescript-app-picker-valid.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { DSAppPicker } from '../index.js';\nimport type { DSAppPickerT } from '../index.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSAppPickerT.Props;\ntype ComponentPropsInternals = DSAppPickerT.InternalProps;\ntype ComponentPropsDefaultProps = DSAppPickerT.DefaultProps;\ntype ComponentPropsOptionalProps = DSAppPickerT.OptionalProps;\n\nconst testOptionalProps: ComponentPropsOptionalProps = {};\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 apps: [],\n customApps: [],\n sectionTitle: '',\n customSectionTitle: '',\n icon: () => null,\n};\n\nconst testProps: ComponentPropsForApp = {\n ...testOptionalProps,\n ...testPartialDefaults,\n};\nconst testPropsAsSyntax = {\n ...testOptionalProps,\n ...testPartialDefaults,\n} as ComponentPropsForApp;\n// InternalProps requires all defaults to be filled in\nconst testCompleteDefaults: Required<ComponentPropsDefaultProps> = {\n apps: [],\n customApps: [],\n sectionTitle: '',\n customSectionTitle: '',\n icon: () => null,\n};\n\nconst testInternalProps: ComponentPropsInternals = {\n ...testOptionalProps,\n ...testCompleteDefaults,\n};\nconst testInternalPropsAsSyntax = {\n ...testOptionalProps,\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 apps: [],\n customApps: [],\n sectionTitle: '',\n customSectionTitle: '',\n icon: () => null,\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 apps: [],\n customApps: [],\n sectionTitle: '',\n customSectionTitle: '',\n icon: () => null,\n} as ComponentPropsForApp;\n\nconst ExampleUsageComponent = () => (\n <>\n {/* works with explicitly casted props, all syntaxes */}\n <DSAppPicker {...testExplicitDefinition} />\n <DSAppPicker {...testInferedTypeCompatibility} />\n {/* works with inline values */}\n <DSAppPicker apps={[]} customApps={[]} sectionTitle=\"\" customSectionTitle=\"\" icon={() => null} />\n {/* multiple auto inference works */}\n <DSAppPicker apps={[]} customApps={[]} sectionTitle=\"\" customSectionTitle=\"\" icon={() => null} />\n {/* works with partial defaults */}\n </>\n);\n"],
5
+ "mappings": ";;;;;;;;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+ import * as React from "react";
2
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
+ import { DSAppPicker } from "../index.js";
4
+ const testOptionalProps = {};
5
+ const testPartialDefaults = {
6
+ apps: [],
7
+ customApps: [],
8
+ sectionTitle: "",
9
+ customSectionTitle: "",
10
+ icon: () => null
11
+ };
12
+ const testProps = {
13
+ ...testOptionalProps,
14
+ ...testPartialDefaults
15
+ };
16
+ const testPropsAsSyntax = {
17
+ ...testOptionalProps,
18
+ ...testPartialDefaults
19
+ };
20
+ const testCompleteDefaults = {
21
+ apps: [],
22
+ customApps: [],
23
+ sectionTitle: "",
24
+ customSectionTitle: "",
25
+ icon: () => null
26
+ };
27
+ const testInternalProps = {
28
+ ...testOptionalProps,
29
+ ...testCompleteDefaults
30
+ };
31
+ const testInternalPropsAsSyntax = {
32
+ ...testOptionalProps,
33
+ ...testCompleteDefaults
34
+ };
35
+ const testExplicitDefinition = {
36
+ apps: [],
37
+ customApps: [],
38
+ sectionTitle: "",
39
+ customSectionTitle: "",
40
+ icon: () => null
41
+ };
42
+ const testInferedTypeCompatibility = {
43
+ apps: [],
44
+ customApps: [],
45
+ sectionTitle: "",
46
+ customSectionTitle: "",
47
+ icon: () => null
48
+ };
49
+ const ExampleUsageComponent = () => /* @__PURE__ */ jsxs(Fragment, { children: [
50
+ /* @__PURE__ */ jsx(DSAppPicker, { ...testExplicitDefinition }),
51
+ /* @__PURE__ */ jsx(DSAppPicker, { ...testInferedTypeCompatibility }),
52
+ /* @__PURE__ */ jsx(DSAppPicker, { apps: [], customApps: [], sectionTitle: "", customSectionTitle: "", icon: () => null }),
53
+ /* @__PURE__ */ jsx(DSAppPicker, { apps: [], customApps: [], sectionTitle: "", customSectionTitle: "", icon: () => null })
54
+ ] });
55
+ //# sourceMappingURL=typescript-app-picker-valid.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/typescript-app-picker-valid.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { DSAppPicker } from '../index.js';\nimport type { DSAppPickerT } from '../index.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSAppPickerT.Props;\ntype ComponentPropsInternals = DSAppPickerT.InternalProps;\ntype ComponentPropsDefaultProps = DSAppPickerT.DefaultProps;\ntype ComponentPropsOptionalProps = DSAppPickerT.OptionalProps;\n\nconst testOptionalProps: ComponentPropsOptionalProps = {};\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 apps: [],\n customApps: [],\n sectionTitle: '',\n customSectionTitle: '',\n icon: () => null,\n};\n\nconst testProps: ComponentPropsForApp = {\n ...testOptionalProps,\n ...testPartialDefaults,\n};\nconst testPropsAsSyntax = {\n ...testOptionalProps,\n ...testPartialDefaults,\n} as ComponentPropsForApp;\n// InternalProps requires all defaults to be filled in\nconst testCompleteDefaults: Required<ComponentPropsDefaultProps> = {\n apps: [],\n customApps: [],\n sectionTitle: '',\n customSectionTitle: '',\n icon: () => null,\n};\n\nconst testInternalProps: ComponentPropsInternals = {\n ...testOptionalProps,\n ...testCompleteDefaults,\n};\nconst testInternalPropsAsSyntax = {\n ...testOptionalProps,\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 apps: [],\n customApps: [],\n sectionTitle: '',\n customSectionTitle: '',\n icon: () => null,\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 apps: [],\n customApps: [],\n sectionTitle: '',\n customSectionTitle: '',\n icon: () => null,\n} as ComponentPropsForApp;\n\nconst ExampleUsageComponent = () => (\n <>\n {/* works with explicitly casted props, all syntaxes */}\n <DSAppPicker {...testExplicitDefinition} />\n <DSAppPicker {...testInferedTypeCompatibility} />\n {/* works with inline values */}\n <DSAppPicker apps={[]} customApps={[]} sectionTitle=\"\" customSectionTitle=\"\" icon={() => null} />\n {/* multiple auto inference works */}\n <DSAppPicker apps={[]} customApps={[]} sectionTitle=\"\" customSectionTitle=\"\" icon={() => null} />\n {/* works with partial defaults */}\n </>\n);\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACmErB,mBAEE,KAFF;AAlEF,SAAS,mBAAmB;AAS5B,MAAM,oBAAiD,CAAC;AAIxD,MAAM,sBAA2D;AAAA,EAC/D,MAAM,CAAC;AAAA,EACP,YAAY,CAAC;AAAA,EACb,cAAc;AAAA,EACd,oBAAoB;AAAA,EACpB,MAAM,MAAM;AACd;AAEA,MAAM,YAAkC;AAAA,EACtC,GAAG;AAAA,EACH,GAAG;AACL;AACA,MAAM,oBAAoB;AAAA,EACxB,GAAG;AAAA,EACH,GAAG;AACL;AAEA,MAAM,uBAA6D;AAAA,EACjE,MAAM,CAAC;AAAA,EACP,YAAY,CAAC;AAAA,EACb,cAAc;AAAA,EACd,oBAAoB;AAAA,EACpB,MAAM,MAAM;AACd;AAEA,MAAM,oBAA6C;AAAA,EACjD,GAAG;AAAA,EACH,GAAG;AACL;AACA,MAAM,4BAA4B;AAAA,EAChC,GAAG;AAAA,EACH,GAAG;AACL;AAGA,MAAM,yBAA+C;AAAA,EACnD,MAAM,CAAC;AAAA,EACP,YAAY,CAAC;AAAA,EACb,cAAc;AAAA,EACd,oBAAoB;AAAA,EACpB,MAAM,MAAM;AACd;AAGA,MAAM,+BAA+B;AAAA,EACnC,MAAM,CAAC;AAAA,EACP,YAAY,CAAC;AAAA,EACb,cAAc;AAAA,EACd,oBAAoB;AAAA,EACpB,MAAM,MAAM;AACd;AAEA,MAAM,wBAAwB,MAC5B,iCAEE;AAAA,sBAAC,eAAa,GAAG,wBAAwB;AAAA,EACzC,oBAAC,eAAa,GAAG,8BAA8B;AAAA,EAE/C,oBAAC,eAAY,MAAM,CAAC,GAAG,YAAY,CAAC,GAAG,cAAa,IAAG,oBAAmB,IAAG,MAAM,MAAM,MAAM;AAAA,EAE/F,oBAAC,eAAY,MAAM,CAAC,GAAG,YAAY,CAAC,GAAG,cAAa,IAAG,oBAAmB,IAAG,MAAM,MAAM,MAAM;AAAA,GAEjG;",
6
+ "names": []
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-app-picker",
3
- "version": "3.26.1-rc.1",
3
+ "version": "3.27.0-next.2",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - App Picker",
6
6
  "files": [
@@ -59,19 +59,19 @@
59
59
  "indent": 4
60
60
  },
61
61
  "dependencies": {
62
- "@elliemae/ds-button-v2": "3.26.1-rc.1",
63
- "@elliemae/ds-chip": "3.26.1-rc.1",
64
- "@elliemae/ds-grid": "3.26.1-rc.1",
65
- "@elliemae/ds-icons": "3.26.1-rc.1",
66
- "@elliemae/ds-popover": "3.26.1-rc.1",
67
- "@elliemae/ds-props-helpers": "3.26.1-rc.1",
68
- "@elliemae/ds-system": "3.26.1-rc.1",
69
- "@elliemae/ds-utilities": "3.26.1-rc.1"
62
+ "@elliemae/ds-button-v2": "3.27.0-next.2",
63
+ "@elliemae/ds-popover": "3.27.0-next.2",
64
+ "@elliemae/ds-icons": "3.27.0-next.2",
65
+ "@elliemae/ds-props-helpers": "3.27.0-next.2",
66
+ "@elliemae/ds-system": "3.27.0-next.2",
67
+ "@elliemae/ds-utilities": "3.27.0-next.2",
68
+ "@elliemae/ds-grid": "3.27.0-next.2",
69
+ "@elliemae/ds-chip": "3.27.0-next.2"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@elliemae/pui-cli": "~9.0.0-next.31",
73
73
  "styled-components": "~5.3.9",
74
- "@elliemae/ds-monorepo-devops": "3.26.1-rc.1"
74
+ "@elliemae/ds-monorepo-devops": "3.27.0-next.2"
75
75
  },
76
76
  "peerDependencies": {
77
77
  "lodash": "^4.17.21",
@@ -81,7 +81,7 @@
81
81
  },
82
82
  "publishConfig": {
83
83
  "access": "public",
84
- "typeSafety": false
84
+ "typeSafety": true
85
85
  },
86
86
  "scripts": {
87
87
  "dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",