@elliemae/ds-layout-provider 3.49.0-rc.8 → 3.49.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.
@@ -29,7 +29,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
29
29
  var constants_exports = {};
30
30
  __export(constants_exports, {
31
31
  DSLayoutProviderName: () => DSLayoutProviderName,
32
- EXAMPLE_CONSTANTS: () => EXAMPLE_CONSTANTS,
33
32
  LAYOUT_PROVIDER_DATA_TESTID: () => LAYOUT_PROVIDER_DATA_TESTID,
34
33
  LAYOUT_PROVIDER_SLOTS: () => LAYOUT_PROVIDER_SLOTS,
35
34
  LAYOUT_PROVIDER_TYPES: () => LAYOUT_PROVIDER_TYPES
@@ -37,11 +36,7 @@ __export(constants_exports, {
37
36
  module.exports = __toCommonJS(constants_exports);
38
37
  var React = __toESM(require("react"));
39
38
  var import_ds_system = require("@elliemae/ds-system");
40
- const DSLayoutProviderName = "DSLayoutProvider";
41
- const EXAMPLE_CONSTANTS = {
42
- HELLO: "WORLD",
43
- FOO: "BAR"
44
- };
39
+ const DSLayoutProviderName = "DSLayoutprovider";
45
40
  const LAYOUT_PROVIDER_SLOTS = {
46
41
  ROOT: "root"
47
42
  };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/constants/index.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import { slotObjectToDataTestIds } from '@elliemae/ds-system';\n\nexport const DSLayoutProviderName = 'DSLayoutProvider';\n\nexport const EXAMPLE_CONSTANTS = {\n HELLO: 'WORLD',\n FOO: 'BAR',\n} as const;\n\n// we are naming this with the ${component_name}_slots convention to namespace & avoid errors on duplicate exports variables in aggregators\nexport const LAYOUT_PROVIDER_SLOTS = {\n ROOT: 'root',\n} as const;\n\n// we are naming this with the ${component_name}_data_testid convention to namespace & avoid errors on duplicate exports variables in aggregators\nexport const LAYOUT_PROVIDER_DATA_TESTID = slotObjectToDataTestIds(DSLayoutProviderName, LAYOUT_PROVIDER_SLOTS);\n\nexport const LAYOUT_PROVIDER_TYPES = {\n L: 'l',\n M: 'm',\n S: 's',\n XS: 'xs',\n} as const;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAwC;AAEjC,MAAM,uBAAuB;AAE7B,MAAM,oBAAoB;AAAA,EAC/B,OAAO;AAAA,EACP,KAAK;AACP;AAGO,MAAM,wBAAwB;AAAA,EACnC,MAAM;AACR;AAGO,MAAM,kCAA8B,0CAAwB,sBAAsB,qBAAqB;AAEvG,MAAM,wBAAwB;AAAA,EACnC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AACN;",
4
+ "sourcesContent": ["import { slotObjectToDataTestIds } from '@elliemae/ds-system';\n\nexport const DSLayoutProviderName = 'DSLayoutprovider';\n\n// we are naming this with the ${component_name}_slots convention to namespace & avoid errors on duplicate exports variables in aggregators\nexport const LAYOUT_PROVIDER_SLOTS = {\n ROOT: 'root',\n} as const;\n\n// we are naming this with the ${component_name}_data_testid convention to namespace & avoid errors on duplicate exports variables in aggregators\nexport const LAYOUT_PROVIDER_DATA_TESTID = slotObjectToDataTestIds(DSLayoutProviderName, LAYOUT_PROVIDER_SLOTS);\n\nexport const LAYOUT_PROVIDER_TYPES = {\n L: 'l',\n M: 'm',\n S: 's',\n XS: 'xs',\n} as const;\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAwC;AAEjC,MAAM,uBAAuB;AAG7B,MAAM,wBAAwB;AAAA,EACnC,MAAM;AACR;AAGO,MAAM,kCAA8B,0CAAwB,sBAAsB,qBAAqB;AAEvG,MAAM,wBAAwB;AAAA,EACnC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AACN;",
6
6
  "names": []
7
7
  }
package/dist/cjs/index.js CHANGED
@@ -31,10 +31,13 @@ __export(src_exports, {
31
31
  DSLayoutProvider: () => import_DSLayoutProvider.DSLayoutProvider,
32
32
  DSLayoutProviderWithSchema: () => import_DSLayoutProvider.DSLayoutProviderWithSchema,
33
33
  LAYOUT_PROVIDER_DATA_TESTID: () => import_constants.LAYOUT_PROVIDER_DATA_TESTID,
34
- LAYOUT_PROVIDER_SLOTS: () => import_constants.LAYOUT_PROVIDER_SLOTS
34
+ LAYOUT_PROVIDER_SLOTS: () => import_constants.LAYOUT_PROVIDER_SLOTS,
35
+ LAYOUT_PROVIDER_TYPES: () => import_constants.LAYOUT_PROVIDER_TYPES,
36
+ useGetCurrentLayout: () => import_useGetCurrentLayout.useGetCurrentLayout
35
37
  });
36
38
  module.exports = __toCommonJS(src_exports);
37
39
  var React = __toESM(require("react"));
38
40
  var import_DSLayoutProvider = require("./DSLayoutProvider.js");
39
41
  var import_constants = require("./constants/index.js");
42
+ var import_useGetCurrentLayout = require("./useGetCurrentLayout.js");
40
43
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.ts", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["// this is a workaround to typescript error TS2742\n// https://github.com/microsoft/TypeScript/issues/47663\nimport type {} from '@xstyled/system';\nexport { DSLayoutProvider, DSLayoutProviderWithSchema } from './DSLayoutProvider.js';\nexport { type DSLayoutProviderT } from './react-desc-prop-types.js';\nexport { LAYOUT_PROVIDER_SLOTS, LAYOUT_PROVIDER_DATA_TESTID } from './constants/index.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,8BAA6D;AAE7D,uBAAmE;",
4
+ "sourcesContent": ["// this is a workaround to typescript error TS2742\n// https://github.com/microsoft/TypeScript/issues/47663\nimport type {} from '@xstyled/system';\nexport { DSLayoutProvider, DSLayoutProviderWithSchema } from './DSLayoutProvider.js';\nexport { LAYOUT_PROVIDER_DATA_TESTID, LAYOUT_PROVIDER_SLOTS, LAYOUT_PROVIDER_TYPES } from './constants/index.js';\nexport { type DSLayoutProviderT } from './react-desc-prop-types.js';\nexport { useGetCurrentLayout } from './useGetCurrentLayout.js';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,8BAA6D;AAC7D,uBAA0F;AAE1F,iCAAoC;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,37 @@
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
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var useGetCurrentLayout_exports = {};
30
+ __export(useGetCurrentLayout_exports, {
31
+ useGetCurrentLayout: () => useGetCurrentLayout
32
+ });
33
+ module.exports = __toCommonJS(useGetCurrentLayout_exports);
34
+ var React = __toESM(require("react"));
35
+ var import_styled_components = require("styled-components");
36
+ const useGetCurrentLayout = () => (0, import_styled_components.useTheme)().layoutMode ?? "l";
37
+ //# sourceMappingURL=useGetCurrentLayout.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/useGetCurrentLayout.ts", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["import { useTheme } from 'styled-components';\nimport type { DSLayoutProviderT } from './react-desc-prop-types.js';\n\nexport const useGetCurrentLayout = (): DSLayoutProviderT.LAYOUT_MODES => useTheme().layoutMode ?? 'l';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,+BAAyB;AAGlB,MAAM,sBAAsB,UAAsC,mCAAS,EAAE,cAAc;",
6
+ "names": []
7
+ }
@@ -1,10 +1,6 @@
1
1
  import * as React from "react";
2
2
  import { slotObjectToDataTestIds } from "@elliemae/ds-system";
3
- const DSLayoutProviderName = "DSLayoutProvider";
4
- const EXAMPLE_CONSTANTS = {
5
- HELLO: "WORLD",
6
- FOO: "BAR"
7
- };
3
+ const DSLayoutProviderName = "DSLayoutprovider";
8
4
  const LAYOUT_PROVIDER_SLOTS = {
9
5
  ROOT: "root"
10
6
  };
@@ -17,7 +13,6 @@ const LAYOUT_PROVIDER_TYPES = {
17
13
  };
18
14
  export {
19
15
  DSLayoutProviderName,
20
- EXAMPLE_CONSTANTS,
21
16
  LAYOUT_PROVIDER_DATA_TESTID,
22
17
  LAYOUT_PROVIDER_SLOTS,
23
18
  LAYOUT_PROVIDER_TYPES
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/constants/index.ts"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { slotObjectToDataTestIds } from '@elliemae/ds-system';\n\nexport const DSLayoutProviderName = 'DSLayoutProvider';\n\nexport const EXAMPLE_CONSTANTS = {\n HELLO: 'WORLD',\n FOO: 'BAR',\n} as const;\n\n// we are naming this with the ${component_name}_slots convention to namespace & avoid errors on duplicate exports variables in aggregators\nexport const LAYOUT_PROVIDER_SLOTS = {\n ROOT: 'root',\n} as const;\n\n// we are naming this with the ${component_name}_data_testid convention to namespace & avoid errors on duplicate exports variables in aggregators\nexport const LAYOUT_PROVIDER_DATA_TESTID = slotObjectToDataTestIds(DSLayoutProviderName, LAYOUT_PROVIDER_SLOTS);\n\nexport const LAYOUT_PROVIDER_TYPES = {\n L: 'l',\n M: 'm',\n S: 's',\n XS: 'xs',\n} as const;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,+BAA+B;AAEjC,MAAM,uBAAuB;AAE7B,MAAM,oBAAoB;AAAA,EAC/B,OAAO;AAAA,EACP,KAAK;AACP;AAGO,MAAM,wBAAwB;AAAA,EACnC,MAAM;AACR;AAGO,MAAM,8BAA8B,wBAAwB,sBAAsB,qBAAqB;AAEvG,MAAM,wBAAwB;AAAA,EACnC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AACN;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { slotObjectToDataTestIds } from '@elliemae/ds-system';\n\nexport const DSLayoutProviderName = 'DSLayoutprovider';\n\n// we are naming this with the ${component_name}_slots convention to namespace & avoid errors on duplicate exports variables in aggregators\nexport const LAYOUT_PROVIDER_SLOTS = {\n ROOT: 'root',\n} as const;\n\n// we are naming this with the ${component_name}_data_testid convention to namespace & avoid errors on duplicate exports variables in aggregators\nexport const LAYOUT_PROVIDER_DATA_TESTID = slotObjectToDataTestIds(DSLayoutProviderName, LAYOUT_PROVIDER_SLOTS);\n\nexport const LAYOUT_PROVIDER_TYPES = {\n L: 'l',\n M: 'm',\n S: 's',\n XS: 'xs',\n} as const;\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,+BAA+B;AAEjC,MAAM,uBAAuB;AAG7B,MAAM,wBAAwB;AAAA,EACnC,MAAM;AACR;AAGO,MAAM,8BAA8B,wBAAwB,sBAAsB,qBAAqB;AAEvG,MAAM,wBAAwB;AAAA,EACnC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AACN;",
6
6
  "names": []
7
7
  }
package/dist/esm/index.js CHANGED
@@ -1,10 +1,13 @@
1
1
  import * as React from "react";
2
2
  import { DSLayoutProvider, DSLayoutProviderWithSchema } from "./DSLayoutProvider.js";
3
- import { LAYOUT_PROVIDER_SLOTS, LAYOUT_PROVIDER_DATA_TESTID } from "./constants/index.js";
3
+ import { LAYOUT_PROVIDER_DATA_TESTID, LAYOUT_PROVIDER_SLOTS, LAYOUT_PROVIDER_TYPES } from "./constants/index.js";
4
+ import { useGetCurrentLayout } from "./useGetCurrentLayout.js";
4
5
  export {
5
6
  DSLayoutProvider,
6
7
  DSLayoutProviderWithSchema,
7
8
  LAYOUT_PROVIDER_DATA_TESTID,
8
- LAYOUT_PROVIDER_SLOTS
9
+ LAYOUT_PROVIDER_SLOTS,
10
+ LAYOUT_PROVIDER_TYPES,
11
+ useGetCurrentLayout
9
12
  };
10
13
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/index.ts"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "// this is a workaround to typescript error TS2742\n// https://github.com/microsoft/TypeScript/issues/47663\nimport type {} from '@xstyled/system';\nexport { DSLayoutProvider, DSLayoutProviderWithSchema } from './DSLayoutProvider.js';\nexport { type DSLayoutProviderT } from './react-desc-prop-types.js';\nexport { LAYOUT_PROVIDER_SLOTS, LAYOUT_PROVIDER_DATA_TESTID } from './constants/index.js';\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACGvB,SAAS,kBAAkB,kCAAkC;AAE7D,SAAS,uBAAuB,mCAAmC;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "// this is a workaround to typescript error TS2742\n// https://github.com/microsoft/TypeScript/issues/47663\nimport type {} from '@xstyled/system';\nexport { DSLayoutProvider, DSLayoutProviderWithSchema } from './DSLayoutProvider.js';\nexport { LAYOUT_PROVIDER_DATA_TESTID, LAYOUT_PROVIDER_SLOTS, LAYOUT_PROVIDER_TYPES } from './constants/index.js';\nexport { type DSLayoutProviderT } from './react-desc-prop-types.js';\nexport { useGetCurrentLayout } from './useGetCurrentLayout.js';\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACGvB,SAAS,kBAAkB,kCAAkC;AAC7D,SAAS,6BAA6B,uBAAuB,6BAA6B;AAE1F,SAAS,2BAA2B;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,7 @@
1
+ import * as React from "react";
2
+ import { useTheme } from "styled-components";
3
+ const useGetCurrentLayout = () => useTheme().layoutMode ?? "l";
4
+ export {
5
+ useGetCurrentLayout
6
+ };
7
+ //# sourceMappingURL=useGetCurrentLayout.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/useGetCurrentLayout.ts"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { useTheme } from 'styled-components';\nimport type { DSLayoutProviderT } from './react-desc-prop-types.js';\n\nexport const useGetCurrentLayout = (): DSLayoutProviderT.LAYOUT_MODES => useTheme().layoutMode ?? 'l';\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,gBAAgB;AAGlB,MAAM,sBAAsB,MAAsC,SAAS,EAAE,cAAc;",
6
+ "names": []
7
+ }
@@ -1,8 +1,4 @@
1
- export declare const DSLayoutProviderName = "DSLayoutProvider";
2
- export declare const EXAMPLE_CONSTANTS: {
3
- readonly HELLO: "WORLD";
4
- readonly FOO: "BAR";
5
- };
1
+ export declare const DSLayoutProviderName = "DSLayoutprovider";
6
2
  export declare const LAYOUT_PROVIDER_SLOTS: {
7
3
  readonly ROOT: "root";
8
4
  };
@@ -1,3 +1,4 @@
1
1
  export { DSLayoutProvider, DSLayoutProviderWithSchema } from './DSLayoutProvider.js';
2
+ export { LAYOUT_PROVIDER_DATA_TESTID, LAYOUT_PROVIDER_SLOTS, LAYOUT_PROVIDER_TYPES } from './constants/index.js';
2
3
  export { type DSLayoutProviderT } from './react-desc-prop-types.js';
3
- export { LAYOUT_PROVIDER_SLOTS, LAYOUT_PROVIDER_DATA_TESTID } from './constants/index.js';
4
+ export { useGetCurrentLayout } from './useGetCurrentLayout.js';
@@ -1,3 +1,4 @@
1
+ /// <reference types="prop-types" />
1
2
  import type { GlobalAttributesT, XstyledProps, DSPropTypesSchema, ValidationMap } from '@elliemae/ds-props-helpers';
2
3
  import { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';
3
4
  import type { DefaultTheme as XstyledDefaultTheme } from 'styled-components';
@@ -0,0 +1,2 @@
1
+ import type { DSLayoutProviderT } from './react-desc-prop-types.js';
2
+ export declare const useGetCurrentLayout: () => DSLayoutProviderT.LAYOUT_MODES;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-layout-provider",
3
- "version": "3.49.0-rc.8",
3
+ "version": "3.49.0",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Layout Provider",
6
6
  "files": [
@@ -25,8 +25,8 @@
25
25
  "url": "https://git.elliemae.io/platform-ui/dimsum.git"
26
26
  },
27
27
  "engines": {
28
- "pnpm": ">=6",
29
- "node": ">=16"
28
+ "pnpm": ">=9",
29
+ "node": ">=22"
30
30
  },
31
31
  "author": "ICE MT",
32
32
  "jestSonar": {
@@ -37,16 +37,18 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@xstyled/styled-components": "~3.6.0",
40
- "@elliemae/ds-grid": "3.49.0-rc.8",
41
- "@elliemae/ds-hooks-on-blur-out": "3.49.0-rc.8",
42
- "@elliemae/ds-props-helpers": "3.49.0-rc.8",
43
- "@elliemae/ds-system": "3.49.0-rc.8"
40
+ "@elliemae/ds-hooks-on-blur-out": "3.49.0",
41
+ "@elliemae/ds-system": "3.49.0",
42
+ "@elliemae/ds-grid": "3.49.0",
43
+ "@elliemae/ds-props-helpers": "3.49.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@elliemae/pui-cli": "9.0.0-next.50",
47
+ "jest": "~29.7.0",
48
+ "jest-cli": "~29.7.0",
47
49
  "styled-components": "~5.3.9",
48
- "@elliemae/ds-monorepo-devops": "3.49.0-rc.8",
49
- "@elliemae/ds-typescript-helpers": "3.49.0-rc.8"
50
+ "@elliemae/ds-monorepo-devops": "3.49.0",
51
+ "@elliemae/ds-typescript-helpers": "3.49.0"
50
52
  },
51
53
  "peerDependencies": {
52
54
  "@testing-library/jest-dom": "~5.16.4",