From f2b15ea086fcc541a5a584998985d712335210ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Mon, 24 Feb 2025 13:11:25 +0100 Subject: [PATCH] fix(editor): Polyfill `Array.prototype.toSorted` (no-chanhelog) (#13463) --- packages/editor-ui/package.json | 1 + packages/editor-ui/src/App.vue | 8 ++---- packages/editor-ui/src/polyfills.ts | 7 +++++ pnpm-lock.yaml | 44 +++++++++++++++++++++++------ 4 files changed, 46 insertions(+), 14 deletions(-) create mode 100644 packages/editor-ui/src/polyfills.ts diff --git a/packages/editor-ui/package.json b/packages/editor-ui/package.json index 89eda3e680..e1da571499 100644 --- a/packages/editor-ui/package.json +++ b/packages/editor-ui/package.json @@ -46,6 +46,7 @@ "@vue-flow/node-resizer": "^1.4.0", "@vueuse/components": "^10.11.0", "@vueuse/core": "catalog:frontend", + "array.prototype.tosorted": "1.1.4", "axios": "catalog:", "bowser": "2.11.0", "change-case": "^5.4.4", diff --git a/packages/editor-ui/src/App.vue b/packages/editor-ui/src/App.vue index 30ce2a686d..7178d73bbc 100644 --- a/packages/editor-ui/src/App.vue +++ b/packages/editor-ui/src/App.vue @@ -1,7 +1,8 @@