@meduza/ui-kit-2 0.8.704 → 0.9.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.
@@ -2759,15 +2759,6 @@
2759
2759
  position: static;
2760
2760
  }
2761
2761
 
2762
- /* .isYoutube {
2763
- width: 100%;
2764
- max-height: 70vh;
2765
-
2766
- @media $landscapeTablet {
2767
- max-height: 90vh;
2768
- }
2769
- } */
2770
-
2771
2762
  /* DEVICES */
2772
2763
 
2773
2764
  @media only screen and (min-width: 32em) {
package/dist/ui-kit.css CHANGED
@@ -2759,15 +2759,6 @@
2759
2759
  position: static;
2760
2760
  }
2761
2761
 
2762
- /* .isYoutube {
2763
- width: 100%;
2764
- max-height: 70vh;
2765
-
2766
- @media $landscapeTablet {
2767
- max-height: 90vh;
2768
- }
2769
- } */
2770
-
2771
2762
  /* DEVICES */
2772
2763
 
2773
2764
  @media only screen and (min-width: 32em) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.8.704",
2
+ "version": "0.9.0",
3
3
  "license": "MIT",
4
4
  "description": "UIKit for Meduza",
5
5
  "repository": "https://github.com/meduza-corp/ui-kit-2.git",
@@ -261,15 +261,6 @@
261
261
  position: static;
262
262
  }
263
263
 
264
- /* .isYoutube {
265
- width: 100%;
266
- max-height: 70vh;
267
-
268
- @media $landscapeTablet {
269
- max-height: 90vh;
270
- }
271
- } */
272
-
273
264
  /* DEVICES */
274
265
  .mobile {
275
266
  @media $mobile {
@@ -98,13 +98,7 @@ export const EmbedBlock: React.FC<EmbedBlockProps> = ({
98
98
  default: {
99
99
  return (
100
100
  <div className={styles.object}>
101
- <div
102
- className={makeClassName([
103
- [styles.wrapper, true]
104
- // [styles.isYoutube, provider === 'youtube' && isProportional]
105
- ])}
106
- style={style}
107
- >
101
+ <div className={styles.wrapper} style={style}>
108
102
  <DangerousHTML className={styles.objectWrap} html={html} />
109
103
  </div>
110
104
  </div>
@@ -113,13 +107,6 @@ export const EmbedBlock: React.FC<EmbedBlockProps> = ({
113
107
  }
114
108
  }
115
109
 
116
- // if (isProportional && provider !== 'youtube') {
117
- // style.paddingBottom = `${(block.data.height / block.data.width) * 100}%`
118
- // style.height = 0
119
- // } else if (isProportional && provider === 'youtube') {
120
- // style.aspectRatio = `${block.data.width} / ${block.data.height}`
121
- // }
122
-
123
110
  if (isProportional) {
124
111
  style.aspectRatio = `${block.data.width} / ${block.data.height}`
125
112
  }
@@ -154,13 +141,7 @@ export const EmbedBlock: React.FC<EmbedBlockProps> = ({
154
141
  <figure className={makeClassName(classNames)}>
155
142
  {children && (
156
143
  <div className={styles.object}>
157
- <div
158
- className={makeClassName([
159
- [styles.wrapper, true]
160
- // [styles.isYoutube, provider === 'youtube' && isProportional]
161
- ])}
162
- style={style}
163
- >
144
+ <div className={styles.wrapper} style={style}>
164
145
  <div className={styles.objectWrap}>{children}</div>
165
146
  </div>
166
147
  </div>
@@ -20,8 +20,6 @@ export type Icons =
20
20
  | 'menu'
21
21
  | 'fb'
22
22
  | 'tw'
23
- | 'vk'
24
- | 'ok'
25
23
  | 'tg'
26
24
  | 'chat'
27
25
  | 'magic'
@@ -14,7 +14,6 @@ export default {
14
14
 
15
15
  const Example: React.FC = () => {
16
16
  const [enabledOne, setEnabledOne] = useState(false)
17
- const [enabledTwo, setEnabledTwo] = useState(false)
18
17
  const [enabledThree, setEnabledThree] = useState(false)
19
18
 
20
19
  return (
@@ -1,9 +1,7 @@
1
1
  export type ToolbarButtonTypes =
2
- | 'vk'
3
2
  | 'fb'
4
3
  | 'tw'
5
4
  | 'tg'
6
- | 'ok'
7
5
  | 'reaction'
8
6
  | 'pdf'
9
7
  | 'bookmark'
package/src/types.ts CHANGED
@@ -8,10 +8,7 @@ export interface OptimizedImageItem {
8
8
  export type CallToActions =
9
9
  | 'fb'
10
10
  | 'tw'
11
- | 'vk'
12
- | 'ok'
13
11
  | 'tg'
14
- | 'wp'
15
12
  | 'reaction'
16
13
  | 'pdf'
17
14
  | 'bookmark'