@astral/ui 3.344.0 → 3.345.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.
Files changed (2) hide show
  1. package/README.md +13 -28
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -103,37 +103,10 @@ import {
103
103
  createTheme,
104
104
  } from '@astral/ui';
105
105
  import { createStylesCache as createStylesServerCache } from '@astral/ui/server';
106
- import UbuntuBoldWoff from '@astral/ui/fonts/UbuntuBold.woff';
107
- import UbuntuBoldWoff2 from '@astral/ui/fonts/UbuntuBold.woff2';
108
- import UbuntuLightWoff from '@astral/ui/fonts/UbuntuLight.woff';
109
- import UbuntuLightWoff2 from '@astral/ui/fonts/UbuntuLight.woff2';
110
- import UbuntuRegularWoff from '@astral/ui/fonts/UbuntuRegular.woff';
111
- import UbuntuRegularWoff2 from '@astral/ui/fonts/UbuntuRegular.woff2';
112
- import UbuntuMediumWoff from '@astral/ui/fonts/UbuntuMedium.woff';
113
- import UbuntuMediumWoff2 from '@astral/ui/fonts/UbuntuMedium.woff2';
114
106
 
115
107
  import { MainLayout } from '@example/modules/LayoutModule';
116
108
 
117
- const fontsUrls = {
118
- bold: {
119
- woff: UbuntuBoldWoff,
120
- woff2: UbuntuBoldWoff2,
121
- },
122
- light: {
123
- woff: UbuntuLightWoff,
124
- woff2: UbuntuLightWoff2,
125
- },
126
- regular: {
127
- woff: UbuntuRegularWoff,
128
- woff2: UbuntuRegularWoff2,
129
- },
130
- medium: {
131
- woff: UbuntuMediumWoff,
132
- woff2: UbuntuMediumWoff2,
133
- },
134
- };
135
-
136
- export const theme = createTheme({ brand: Brand.DEFAULT, fontsUrls });
109
+ export const theme = createTheme({ brand: Brand.DEFAULT });
137
110
 
138
111
  const stylesCache = createStylesServerCache({ key: 'next' });
139
112
 
@@ -168,6 +141,18 @@ export default App;
168
141
 
169
142
  # Migration guide
170
143
 
144
+ ## 3.0.0 -> 4.0.0
145
+
146
+ ### Fonts
147
+
148
+ Подключение шрифтов через объект `theme` больше не поддерживается.
149
+
150
+ Шрифты необходимо подключать через [сервис для хранения статичных файлов](https://frontend-static.astral.ru/)
151
+
152
+ [Инструкция для подключения шрифтов](https://main--61baeff6f06230003a88ef8a.chromatic.com/?path=/docs/getting-started-fonts--docs)
153
+
154
+ ⚠️ Для подключения шрифтов необходимо настроить **Content Security Policy**.
155
+
171
156
  ## 2.0.0 -> 3.0.0
172
157
 
173
158
  ### ConfigProvider
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@astral/ui",
3
- "version": "3.344.0",
3
+ "version": "3.345.0",
4
4
  "browser": "./index.js",
5
5
  "main": "./node/index.js",
6
6
  "dependencies": {
7
- "@astral/icons": "3.344.0",
8
- "@astral/components": "3.344.0",
9
- "@astral/form": "3.344.0"
7
+ "@astral/icons": "3.345.0",
8
+ "@astral/components": "3.345.0",
9
+ "@astral/form": "3.345.0"
10
10
  },
11
11
  "peerDependencies": {
12
12
  "react": "^17.0.0 || ^18.0.0",