@haklex/rich-renderer-image 0.0.20 → 0.0.23

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.
@@ -1,247 +1 @@
1
- @keyframes _1n94osf1 {
2
- 0% {
3
- mask: linear-gradient(90deg, #000 25%, #000000e6 50%, #00000000) 150% 0 / 400% no-repeat;
4
- opacity: 0.16;
5
- }
6
- 100% {
7
- mask: linear-gradient(90deg, #000 25%, #000000e6 50%, #00000000) 0 / 400% no-repeat;
8
- opacity: 1;
9
- }
10
- }
11
- @keyframes _1n94osf8 {
12
- to {
13
- transform: rotate(360deg);
14
- }
15
- }
16
- @keyframes _1n94osfg {
17
- from {
18
- opacity: 0;
19
- }
20
- to {
21
- opacity: 1;
22
- }
23
- }
24
- ._1n94osf0 {
25
- margin: 1.25rem 0;
26
- text-align: center;
27
- }
28
- ._1n94osf2 {
29
- display: block;
30
- width: 100%;
31
- height: auto;
32
- max-width: 100%;
33
- opacity: 0;
34
- transition: opacity 280ms ease;
35
- border-radius: 0px !important;
36
- }
37
- ._1n94osf4 {
38
- opacity: 1;
39
- animation: _1n94osf1 420ms ease;
40
- }
41
- ._1n94osf5 {
42
- display: none;
43
- }
44
- ._1n94osf6 {
45
- position: relative;
46
- display: inline-flex;
47
- align-items: center;
48
- justify-content: center;
49
- overflow: hidden;
50
- border-radius: var(--rc-radius-md);
51
- cursor: zoom-in;
52
- min-height: 3rem;
53
- transition: transform 0.25s ease;
54
- }
55
- ._1n94osf6:hover {
56
- transform: translateY(-1px);
57
- }
58
- ._1n94osf7 {
59
- cursor: pointer;
60
- }
61
- ._1n94osf7:hover {
62
- transform: none;
63
- }
64
- ._1n94osf9 {
65
- position: absolute;
66
- width: 1.65rem;
67
- height: 1.65rem;
68
- border: 2px solid color-mix(in srgb, var(--rc-text-secondary) 45%, transparent);
69
- border-top-color: color-mix(in srgb, var(--rc-text) 65%, transparent);
70
- border-radius: 50%;
71
- animation: _1n94osf8 0.75s linear infinite;
72
- }
73
- ._1n94osfa {
74
- font-size: 0.8rem;
75
- color: var(--rc-alert-caution);
76
- background: color-mix(in srgb, var(--rc-bg) 86%, transparent);
77
- border-radius: 999px;
78
- padding: 0.15rem 0.6rem;
79
- }
80
- ._1n94osfb {
81
- margin-top: 0.5rem;
82
- color: var(--rc-text-secondary);
83
- font-size: 0.86rem;
84
- line-height: 1.5;
85
- }
86
- ._1n94osfc {
87
- margin: var(--rc-space-md) 0;
88
- text-align: center;
89
- }
90
- ._1n94osfd {
91
- position: relative;
92
- display: inline-block;
93
- overflow: hidden;
94
- border-radius: var(--rc-radius-md);
95
- transition: background-color 0.3s ease;
96
- }
97
- ._1n94osfe {
98
- opacity: 0;
99
- transition: opacity 0.3s ease;
100
- }
101
- ._1n94osff {
102
- opacity: 1;
103
- transition: opacity 0.3s ease;
104
- }
105
- ._1n94osfh {
106
- position: fixed;
107
- inset: 0;
108
- z-index: 9999;
109
- display: flex;
110
- align-items: center;
111
- justify-content: center;
112
- background-color: rgba(0, 0, 0, 0.85);
113
- cursor: zoom-out;
114
- animation: _1n94osfg 0.2s ease;
115
- }
116
- ._1n94osfi {
117
- max-width: 90vw;
118
- max-height: 90vh;
119
- object-fit: contain;
120
- border-radius: 0;
121
- }
122
- .rich-image {
123
- margin: var(--rc-space-md) 0;
124
- text-align: center;
125
- }
126
- .rich-image figcaption {
127
- font-size: var(--rc-font-size-small);
128
- color: var(--rc-text-secondary);
129
- margin-top: var(--rc-space-sm);
130
- line-height: var(--rc-line-height-tight);
131
- }
132
- .rich-image-container {
133
- position: relative;
134
- display: inline-block;
135
- overflow: hidden;
136
- border-radius: var(--rc-radius-md);
137
- transition: background-color 0.3s ease;
138
- }
139
- .rich-image-hidden {
140
- opacity: 0;
141
- transition: opacity 0.3s ease;
142
- }
143
- .rich-image-visible {
144
- opacity: 1;
145
- transition: opacity 0.3s ease;
146
- }
147
- .rich-image-zoom-overlay {
148
- position: fixed;
149
- inset: 0;
150
- z-index: 9999;
151
- display: flex;
152
- align-items: center;
153
- justify-content: center;
154
- background-color: rgba(0, 0, 0, 0.85);
155
- cursor: zoom-out;
156
- animation: _1n94osfg 0.2s ease;
157
- }
158
- .rich-image-zoom-img {
159
- max-width: 90vw;
160
- max-height: 90vh;
161
- object-fit: contain;
162
- border-radius: 0;
163
- }
164
- ._1n94osfj {
165
- display: block;
166
- cursor: pointer;
167
- }
168
- ._1n94osfk {
169
- display: flex;
170
- align-items: center;
171
- justify-content: center;
172
- gap: 8px;
173
- padding: 2rem;
174
- border: 2px dashed var(--rc-border);
175
- border-radius: var(--rc-radius-md);
176
- color: var(--rc-text-secondary);
177
- font-size: 0.875rem;
178
- cursor: pointer;
179
- transition: border-color 0.2s, color 0.2s;
180
- }
181
- ._1n94osfk:hover {
182
- border-color: var(--rc-accent);
183
- color: var(--rc-text);
184
- }
185
- ._1n94osfl {
186
- display: flex;
187
- flex-direction: column;
188
- gap: 8px;
189
- width: 340px;
190
- padding: 12px;
191
- font-size: 13px;
192
- font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
193
- }
194
- ._1n94osfm {
195
- display: flex;
196
- align-items: center;
197
- gap: 8px;
198
- padding: 6px 10px;
199
- background-color: var(--rc-bg-secondary);
200
- border-radius: 6px;
201
- min-width: 0;
202
- }
203
- ._1n94osfn {
204
- flex-shrink: 0;
205
- color: var(--rc-text-secondary);
206
- }
207
- ._1n94osfo {
208
- flex: 1;
209
- appearance: none;
210
- border: none;
211
- background-color: transparent;
212
- color: inherit;
213
- font-size: 13px;
214
- padding: 0;
215
- outline: none;
216
- min-width: 0;
217
- }
218
- ._1n94osfo::placeholder {
219
- color: var(--rc-text-secondary);
220
- }
221
- ._1n94osfp {
222
- display: flex;
223
- align-items: center;
224
- gap: 4px;
225
- }
226
- ._1n94osfq {
227
- display: inline-flex;
228
- align-items: center;
229
- gap: 6px;
230
- appearance: none;
231
- border: none;
232
- background: none;
233
- color: inherit;
234
- font-size: 13px;
235
- font-weight: 500;
236
- cursor: pointer;
237
- padding: 4px 8px;
238
- border-radius: 4px;
239
- transition: color 0.15s ease, background-color 0.15s ease;
240
- white-space: nowrap;
241
- }
242
- ._1n94osfq:hover {
243
- background-color: var(--rc-bg-secondary);
244
- }
245
- ._1n94osfr {
246
- margin-left: auto;
247
- }
1
+ @keyframes _1n94osf1{0%{mask:linear-gradient(90deg,#000 25%,#000000e6 50%,#00000000) 150% 0 / 400% no-repeat;opacity:.16}to{mask:linear-gradient(90deg,#000 25%,#000000e6 50%,#00000000) 0 / 400% no-repeat;opacity:1}}@keyframes _1n94osf8{to{transform:rotate(360deg)}}@keyframes _1n94osfg{0%{opacity:0}to{opacity:1}}._1n94osf0{margin:1.25rem 0;text-align:center}._1n94osf2{display:block;width:100%;height:auto;max-width:100%;opacity:0;transition:opacity .28s ease;border-radius:0!important}._1n94osf4{opacity:1;animation:_1n94osf1 .42s ease}._1n94osf5{display:none}._1n94osf6{position:relative;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;border-radius:var(--rc-radius-md);cursor:zoom-in;min-height:3rem;transition:transform .25s ease}._1n94osf6:hover{transform:translateY(-1px)}._1n94osf7{cursor:pointer}._1n94osf7:hover{transform:none}._1n94osf9{position:absolute;width:1.65rem;height:1.65rem;border:2px solid color-mix(in srgb,var(--rc-text-secondary) 45%,transparent);border-top-color:color-mix(in srgb,var(--rc-text) 65%,transparent);border-radius:50%;animation:_1n94osf8 .75s linear infinite}._1n94osfa{font-size:var(--rc-font-size-sm);color:var(--rc-alert-caution);background:color-mix(in srgb,var(--rc-bg) 86%,transparent);border-radius:999px;padding:.15rem .6rem}._1n94osfb{margin-top:.5rem;color:var(--rc-text-secondary);font-size:var(--rc-font-size-md);line-height:1.5}._1n94osfc{margin:var(--rc-space-md) 0;text-align:center}._1n94osfd{position:relative;display:inline-block;overflow:hidden;border-radius:var(--rc-radius-md);transition:background-color .3s ease}._1n94osfe{opacity:0;transition:opacity .3s ease}._1n94osff{opacity:1;transition:opacity .3s ease}._1n94osfh{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background-color:#000000d9;cursor:zoom-out;animation:_1n94osfg .2s ease}._1n94osfi{max-width:90vw;max-height:90vh;object-fit:contain;border-radius:0}.rich-image{margin:var(--rc-space-md) 0;text-align:center}.rich-image figcaption{font-size:var(--rc-font-size-md);color:var(--rc-text-secondary);margin-top:var(--rc-space-sm);line-height:var(--rc-line-height-tight)}.rich-image-container{position:relative;display:inline-block;overflow:hidden;border-radius:var(--rc-radius-md);transition:background-color .3s ease}.rich-image-hidden{opacity:0;transition:opacity .3s ease}.rich-image-visible{opacity:1;transition:opacity .3s ease}.rich-image-zoom-overlay{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background-color:#000000d9;cursor:zoom-out;animation:_1n94osfg .2s ease}.rich-image-zoom-img{max-width:90vw;max-height:90vh;object-fit:contain;border-radius:0}._1n94osfj{display:block;cursor:pointer}._1n94osfk{display:flex;align-items:center;justify-content:center;gap:8px;padding:2rem;border:2px dashed var(--rc-border);border-radius:var(--rc-radius-md);color:var(--rc-text-secondary);font-size:var(--rc-font-size-md);cursor:pointer;transition:border-color .2s,color .2s}._1n94osfk:hover{border-color:var(--rc-accent);color:var(--rc-text)}._1n94osfl{display:flex;flex-direction:column;gap:8px;width:340px;padding:12px;font-size:var(--rc-font-size-sm);font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}._1n94osfm{display:flex;align-items:center;gap:8px;padding:6px 10px;background-color:var(--rc-bg-secondary);border-radius:6px;min-width:0}._1n94osfn{flex-shrink:0;color:var(--rc-text-secondary)}._1n94osfo{flex:1;appearance:none;border:none;background-color:transparent;color:inherit;font-size:var(--rc-font-size-sm);padding:0;outline:none;min-width:0}._1n94osfo::placeholder{color:var(--rc-text-secondary)}._1n94osfp{display:flex;align-items:center;gap:4px}._1n94osfq{display:inline-flex;align-items:center;gap:6px;appearance:none;border:none;background:none;color:inherit;font-size:var(--rc-font-size-sm);font-weight:500;cursor:pointer;padding:4px 8px;border-radius:4px;transition:color .15s ease,background-color .15s ease;white-space:nowrap}._1n94osfq:hover{background-color:var(--rc-bg-secondary)}._1n94osfr{margin-left:auto}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haklex/rich-renderer-image",
3
- "version": "0.0.20",
3
+ "version": "0.0.23",
4
4
  "description": "Image renderer with blurhash and lightbox",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -19,9 +19,9 @@
19
19
  "lucide-react": "^0.574.0",
20
20
  "react-photo-view": "^1.2.7",
21
21
  "thumbhash": "^0.1.1",
22
- "@haklex/rich-editor": "0.0.20",
23
- "@haklex/rich-style-token": "0.0.20",
24
- "@haklex/rich-editor-ui": "0.0.20"
22
+ "@haklex/rich-editor": "0.0.23",
23
+ "@haklex/rich-editor-ui": "0.0.23",
24
+ "@haklex/rich-style-token": "0.0.23"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@lexical/react": "^0.40.0",