@elliemae/ds-floating-context 3.57.3 → 3.57.5
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.
|
@@ -35,7 +35,7 @@ var React = __toESM(require("react"));
|
|
|
35
35
|
const getDocumentMainLandmarkOrBody = () => {
|
|
36
36
|
const main = document.querySelector("main");
|
|
37
37
|
if (!main) {
|
|
38
|
-
console.
|
|
38
|
+
console.log(
|
|
39
39
|
'No "main" element found in the document. Using body instead.\nNot having a main element is usually the start of accessibility issues related to landmarks.\nIf this is actually intentional, you should provide the correct DOM element to host the portal via portalDOMContainer'
|
|
40
40
|
);
|
|
41
41
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/utils/getDocumentMainLandmarkOrBody.ts", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["export const getDocumentMainLandmarkOrBody = () => {\n const main = document.querySelector('main');\n if (!main) {\n // eslint-disable-next-line no-console\n console.
|
|
4
|
+
"sourcesContent": ["export const getDocumentMainLandmarkOrBody = () => {\n const main = document.querySelector('main');\n if (!main) {\n // eslint-disable-next-line no-console\n console.log(\n 'No \"main\" element found in the document. Using body instead.' +\n '\\nNot having a main element is usually the start of accessibility issues related to landmarks.' +\n '\\nIf this is actually intentional, you should provide the correct DOM element to host the portal via portalDOMContainer',\n );\n }\n return main || document.body;\n};\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,gCAAgC,MAAM;AACjD,QAAM,OAAO,SAAS,cAAc,MAAM;AAC1C,MAAI,CAAC,MAAM;AAET,YAAQ;AAAA,MACN;AAAA,IAGF;AAAA,EACF;AACA,SAAO,QAAQ,SAAS;AAC1B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -2,7 +2,7 @@ import * as React from "react";
|
|
|
2
2
|
const getDocumentMainLandmarkOrBody = () => {
|
|
3
3
|
const main = document.querySelector("main");
|
|
4
4
|
if (!main) {
|
|
5
|
-
console.
|
|
5
|
+
console.log(
|
|
6
6
|
'No "main" element found in the document. Using body instead.\nNot having a main element is usually the start of accessibility issues related to landmarks.\nIf this is actually intentional, you should provide the correct DOM element to host the portal via portalDOMContainer'
|
|
7
7
|
);
|
|
8
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/utils/getDocumentMainLandmarkOrBody.ts"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const getDocumentMainLandmarkOrBody = () => {\n const main = document.querySelector('main');\n if (!main) {\n // eslint-disable-next-line no-console\n console.
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const getDocumentMainLandmarkOrBody = () => {\n const main = document.querySelector('main');\n if (!main) {\n // eslint-disable-next-line no-console\n console.log(\n 'No \"main\" element found in the document. Using body instead.' +\n '\\nNot having a main element is usually the start of accessibility issues related to landmarks.' +\n '\\nIf this is actually intentional, you should provide the correct DOM element to host the portal via portalDOMContainer',\n );\n }\n return main || document.body;\n};\n"],
|
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;ACAhB,MAAM,gCAAgC,MAAM;AACjD,QAAM,OAAO,SAAS,cAAc,MAAM;AAC1C,MAAI,CAAC,MAAM;AAET,YAAQ;AAAA,MACN;AAAA,IAGF;AAAA,EACF;AACA,SAAO,QAAQ,SAAS;AAC1B;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-floating-context",
|
|
3
|
-
"version": "3.57.
|
|
3
|
+
"version": "3.57.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Popper Hook",
|
|
6
6
|
"files": [
|
|
@@ -35,36 +35,35 @@
|
|
|
35
35
|
"reportFile": "tests.xml",
|
|
36
36
|
"indent": 4
|
|
37
37
|
},
|
|
38
|
-
"scripts": {
|
|
39
|
-
"dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
|
|
40
|
-
"test": "playwright test -c ./playwright.config.mjs && pui-cli test --passWithNoTests --coverage=\"false\"",
|
|
41
|
-
"lint": "node ../../../scripts/lint.mjs --fix",
|
|
42
|
-
"lint:strict": "node ../../../scripts/lint-strict.mjs",
|
|
43
|
-
"dts": "node ../../../scripts/dts.mjs",
|
|
44
|
-
"build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
|
|
45
|
-
"checkDeps": "npm exec ../../util/ds-codemods -- check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
|
|
46
|
-
},
|
|
47
38
|
"dependencies": {
|
|
48
|
-
"@elliemae/ds-hooks-headless-tooltip": "3.57.
|
|
49
|
-
"@elliemae/ds-
|
|
50
|
-
"@elliemae/ds-
|
|
51
|
-
"@elliemae/ds-typescript-helpers": "3.57.
|
|
39
|
+
"@elliemae/ds-hooks-headless-tooltip": "3.57.5",
|
|
40
|
+
"@elliemae/ds-system": "3.57.5",
|
|
41
|
+
"@elliemae/ds-props-helpers": "3.57.5",
|
|
42
|
+
"@elliemae/ds-typescript-helpers": "3.57.5"
|
|
52
43
|
},
|
|
53
44
|
"devDependencies": {
|
|
54
|
-
"@elliemae/
|
|
55
|
-
"
|
|
56
|
-
"
|
|
45
|
+
"@elliemae/pui-cli": "9.0.0-next.65",
|
|
46
|
+
"jest": "~29.7.0",
|
|
47
|
+
"@elliemae/ds-monorepo-devops": "3.57.5"
|
|
57
48
|
},
|
|
58
49
|
"peerDependencies": {
|
|
59
|
-
"lodash-es": "
|
|
60
|
-
"react": "
|
|
61
|
-
"react-dom": "
|
|
62
|
-
"styled-components": "
|
|
63
|
-
"styled-system": "
|
|
50
|
+
"lodash-es": "^4.17.21",
|
|
51
|
+
"react": "^18.3.1",
|
|
52
|
+
"react-dom": "^18.3.1",
|
|
53
|
+
"styled-components": "~5.3.9",
|
|
54
|
+
"styled-system": "^5.1.5"
|
|
64
55
|
},
|
|
65
56
|
"publishConfig": {
|
|
66
57
|
"access": "public",
|
|
67
58
|
"typeSafety": false
|
|
68
59
|
},
|
|
69
|
-
"
|
|
70
|
-
|
|
60
|
+
"scripts": {
|
|
61
|
+
"dev": "cross-env NODE_ENV=development node ../../../scripts/build/build.mjs --watch",
|
|
62
|
+
"test": "playwright test -c ./playwright.config.mjs && pui-cli test --passWithNoTests --coverage=\"false\"",
|
|
63
|
+
"lint": "node ../../../scripts/lint.mjs --fix",
|
|
64
|
+
"lint:strict": "node ../../../scripts/lint-strict.mjs",
|
|
65
|
+
"dts": "node ../../../scripts/dts.mjs",
|
|
66
|
+
"build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
|
|
67
|
+
"checkDeps": "npm exec ../../util/ds-codemods -- check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
|
|
68
|
+
}
|
|
69
|
+
}
|