Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): update ds and date-fns #530

Open
wants to merge 9 commits into
base: SHELL-107-Remove-css-with-container-queries-when-container-queries-feat-will-be-available-in-styled-components
Choose a base branch
from
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ shell.iml
carbonio.webpack.js
src/constants/locales.js
/temp
*.tgz
67 changes: 0 additions & 67 deletions .reuse/dep5

This file was deleted.

24 changes: 24 additions & 0 deletions REUSE.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# SPDX-FileCopyrightText: 2024 Zextras <https://www.zextras.com>
#
# SPDX-License-Identifier: CC0-1.0
version = 1
SPDX-PackageName = "carbonio-shell-ui"
SPDX-PackageSupplier = "Zextras <https://www.zextras.com>"

[[annotations]]
path = "translations/**"
precedence = "aggregate"
SPDX-FileCopyrightText = "2021 Zextras <https://www.zextras.com>"
SPDX-License-Identifier = "AGPL-3.0-only"

[[annotations]]
path = [".idea/**", ".vscode/**", ".husky/**", ".nvmrc", "package.json", "package-lock.json", "tsconfig**.json", "**.iml", "commit.template", "CHANGELOG.md", ".github/**", "THIRDPARTIES", "api-extractor/**", "api-extractor.json"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2021 Zextras <https://www.zextras.com>"
SPDX-License-Identifier = "CC0-1.0"

[[annotations]]
path = "assets/**"
precedence = "aggregate"
SPDX-FileCopyrightText = "2021 Zextras <https://www.zextras.com>"
SPDX-License-Identifier = "CC-BY-NC-SA-4.0"
12 changes: 2 additions & 10 deletions carbonio.webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import CopyPlugin from 'copy-webpack-plugin';
import dotenv from 'dotenv';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import path from 'path';
import { ContextReplacementPlugin, DefinePlugin } from 'webpack';
import { DefinePlugin } from 'webpack';
import type { WebpackConfiguration } from 'webpack-cli';

import { SUPPORTED_LOCALES } from './src/constants/locales';
Expand All @@ -22,10 +22,6 @@ const baseStaticPath = `/static/iris/carbonio-shell-ui/${commitHash}/`;

const supportedLocalesList = Object.values(SUPPORTED_LOCALES);

// these have to match with the ones available in date-fns/locale
const supportedLocalesDateFns = supportedLocalesList.map(
(locale) => ('dateFnsLocale' in locale && locale.dateFnsLocale) || locale.value
);
const tinymceLocales = supportedLocalesList.map(
(locale) => ('tinymceLocale' in locale && locale.tinymceLocale) || locale.value
);
Expand Down Expand Up @@ -83,11 +79,7 @@ const configFn = (
template: path.resolve(process.cwd(), 'commit.template'),
filename: 'commit',
COMMIT_ID: commitHash
}),
new ContextReplacementPlugin(
/^date-fns[/\\]locale$/,
new RegExp(`\\.[/\\\\](${supportedLocalesDateFns.join('|')})[/\\\\]index\\.js$`)
)
})
);
conf.devServer = {
port: options.port,
Expand Down
140 changes: 64 additions & 76 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,10 @@
"@fontsource/roboto": "^5.0.8",
"@sentry/browser": "^7.103.0",
"@tinymce/tinymce-react": "^4.3.2",
"@zextras/carbonio-design-system": "^9.0.0-devel.1",
"@zextras/carbonio-ui-preview": "^3.0.0",
"@zextras/carbonio-design-system": ">=9.0.0-devel.3 <9.0.0-next-25-0-3",
"@zextras/carbonio-ui-preview": "^3.1.0-devel.1",
"darkreader": "^4.9.79",
"date-fns": "^4.1.0",
"history": "^5.3.0",
"i18next": "^22.5.1",
"i18next-http-backend": "^2.5.0",
Expand Down
Loading