Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
640 changes: 417 additions & 223 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"devDependencies": {
"@rollup/plugin-terser": "^0.4.4",
"@stencil-community/eslint-plugin": "~0.7.1",
"@stencil/core": "~4.16.0",
"@stencil/core": "~4.28.2",
"@stencil/react-output-target": "~0.5.3",
"@stencil/sass": "~3.0.11",
"@types/hast": "^3.0.4",
Expand All @@ -70,8 +70,8 @@
"lint-staged": "~13.0.0",
"prettier": "~2.8.8",
"puppeteer": "~22.6.5",
"typescript": "~5.4.5",
"vite": "^5.2.10"
"typescript": "~5.8.2",
"vite": "~6.2.1"
},
"husky": {
"hooks": {
Expand Down
2 changes: 1 addition & 1 deletion src/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export const inBetween = (x: number, y: number, z: number) => x <= y && y <= z;

let resetDragImage;

/* @__PURE__ */ if (!window.Image) {
if (!window.Image) {
resetDragImage = "test";
}

Expand Down
15 changes: 15 additions & 0 deletions src/fix-broken-hydrate-on-load.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// This is a WA to fix a breaking change that StencilJS did in the patch tag: 4.25.2
// https://github.com/stenciljs/core/issues/6091
window.addEventListener(
"appload",
() => {
// Ensure we are not in a server environment
if (typeof window !== "undefined") {
// Wait until the next frame to perform the layout update
requestAnimationFrame(() =>
document.documentElement.classList.add("hydrated")
);
}
},
{ once: true }
);
1 change: 1 addition & 0 deletions stencil.config.optimized-dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const buildReact = argv.includes("--react");

export const config: Config = {
namespace: defaultConfig.namespace,
globalScript: "src/fix-broken-hydrate-on-load.ts",
outputTargets: defaultConfig.outputTargets!.filter(
output => output.type === "www" || buildReact
),
Expand Down
1 change: 1 addition & 0 deletions stencil.config.optimized-test-watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const buildReact = argv.includes("--react");

export const config: Config = {
namespace: defaultConfig.namespace,
globalScript: "src/fix-broken-hydrate-on-load.ts",
outputTargets: defaultConfig.outputTargets!.filter(
output => output.type === "www" || buildReact
),
Expand Down
3 changes: 2 additions & 1 deletion stencil.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export const config: Config = {
namespace: "chameleon",
outputTargets,
plugins: [sass()],
globalScript: "src/fix-broken-hydrate-on-load.ts",
extras: {
// Enabling this flag will allow downstream projects that consume a Stencil
// library and use a bundler such as Vite to lazily load the Stencil
Expand All @@ -50,7 +51,7 @@ export const config: Config = {
testing: {
browserArgs: ["--no-sandbox", "--disable-setuid-sandbox"],
verbose: true,
browserHeadless: "new",
browserHeadless: "shell",
testPathIgnorePatterns: [
"node_modules/",
"src/testing/constants.e2e.ts",
Expand Down
4 changes: 2 additions & 2 deletions tsconfig-optimized-dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@
"src/deprecated-components/suggest/",
"src/deprecated-components/test/",
"src/deprecated-components/tree/",
"src/deprecated-components/tree-item/"
"src/deprecated-components/tree-item/",
// "src/deprecated-components/window/"

// "src/components/code-editor/",
// "src/components/code-diff-editor/",
// "src/components/gx-grid/"
"src/components/gx-grid/"
]
}
Loading