@jant/core 1.0.1 → 1.1.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.
- package/dist/{app-Gt7_skt6.js → app-CKQ9PqAr.js} +791 -89
- package/dist/client/.vite/manifest.json +115 -75
- package/dist/client/_assets/chunks/{confirm-D7GrwsCN.js → confirm-CMe01lne.js} +1 -1
- package/dist/client/_assets/chunks/{create-editor-5Y49x7h5.js → create-editor-BQkrw8Ax.js} +4 -4
- package/dist/client/_assets/chunks/footnote-rail-B08scyhW.js +2 -0
- package/dist/client/_assets/chunks/{jant-locale-picker-DL6mIOT5.js → jant-locale-picker-2L4rkDaz.js} +1 -1
- package/dist/client/_assets/chunks/lit-Bw_voPoW.js +2 -0
- package/dist/client/_assets/chunks/preload-helper-Czpn1I53.js +1 -0
- package/dist/client/_assets/chunks/runtime-paths-y0_gHowM.js +1 -0
- package/dist/client/_assets/chunks/{settings-paths-h6RjIe3C.js → settings-paths-B0bNUaih.js} +1 -1
- package/dist/client/_assets/chunks/slug-format-CYmQE5ln.js +1 -0
- package/dist/client/_assets/chunks/{sortable-list-DWNKv782.js → sortable-list-t11Ma1Ek.js} +1 -1
- package/dist/client/_assets/chunks/{unsafe-html-B5ZEXaxg.js → unsafe-html-CWos3v6N.js} +1 -1
- package/dist/client/_assets/chunks/unsafe-svg-DZl-yjas.js +1 -0
- package/dist/client/_assets/client-B0-s9sqx.css +2 -0
- package/dist/client/_assets/client-Dp46QSht.js +354 -0
- package/dist/client/_assets/client-auth-CG55rWb5.js +859 -0
- package/dist/client/_assets/{client-compose-oxzPb3SS.js → client-compose-DkUTuavR.js} +261 -261
- package/dist/client/_assets/{client-manage-C1eDB1Rc.js → client-manage-DnYdQAhf.js} +176 -176
- package/dist/client/_assets/{client-settings-DIM44Zqh.js → client-settings-CHgsIqXJ.js} +166 -166
- package/dist/client/_assets/client-share-0DICJjAc.css +1 -0
- package/dist/client/_assets/client-share-C59mOLJ1.js +149 -0
- package/dist/index.js +1 -1
- package/dist/node.js +2 -2
- package/package.json +2 -1
- package/src/client/components/jant-post-menu.ts +80 -13
- package/src/client/components/jant-share-dialog.ts +422 -0
- package/src/client/components/jant-share-menu.ts +188 -0
- package/src/client/lazy-entries.ts +21 -1
- package/src/client/post-menu-shared.ts +100 -0
- package/src/client/share-capture.ts +443 -0
- package/src/client/share-launch.ts +133 -0
- package/src/client-share.ts +8 -0
- package/src/client.ts +1 -0
- package/src/lib/discover.ts +31 -0
- package/src/lib/share-card.ts +653 -0
- package/src/lib/version.ts +2 -0
- package/src/routes/auth/setup.tsx +37 -1
- package/src/routes/pages/partials.tsx +23 -0
- package/src/style-share.css +16 -0
- package/src/styles/components.css +14 -0
- package/src/styles/share.css +1103 -0
- package/src/styles/ui.css +6 -0
- package/src/ui/layouts/BaseLayout.tsx +7 -0
- package/src/ui/layouts/SiteLayout.tsx +1 -0
- package/src/ui/share/ShareCard.tsx +298 -0
- package/src/ui/shared/Icon.tsx +23 -3
- package/src/ui/shared/MediaGallery.tsx +12 -1
- package/src/ui/shared/PostFooter.tsx +20 -4
- package/src/ui/shared/icon-collector.ts +28 -0
- package/src/ui/shared/post-article-attributes.ts +3 -0
- package/dist/client/_assets/chunks/footnote-rail-BJwswtVQ.js +0 -1
- package/dist/client/_assets/chunks/lit-DW8VmJAT.js +0 -2
- package/dist/client/_assets/chunks/slug-format-Dsi0e9Xn.js +0 -1
- package/dist/client/_assets/chunks/unsafe-svg-DTZZEvLU.js +0 -2
- package/dist/client/_assets/client-BaqmpPQ-.css +0 -2
- package/dist/client/_assets/client-C6melOtG.js +0 -296
- package/dist/client/_assets/client-auth-Ccq8kSqq.js +0 -828
|
@@ -129,18 +129,18 @@
|
|
|
129
129
|
"src": "../../node_modules/.pnpm/heic-to@1.5.2/node_modules/heic-to/dist/heic-to.js",
|
|
130
130
|
"isDynamicEntry": true
|
|
131
131
|
},
|
|
132
|
-
"_confirm-
|
|
133
|
-
"file": "_assets/chunks/confirm-
|
|
132
|
+
"_confirm-CMe01lne.js": {
|
|
133
|
+
"file": "_assets/chunks/confirm-CMe01lne.js",
|
|
134
134
|
"name": "confirm",
|
|
135
135
|
"imports": [
|
|
136
|
-
"_lit-
|
|
136
|
+
"_lit-Bw_voPoW.js"
|
|
137
137
|
]
|
|
138
138
|
},
|
|
139
|
-
"_create-editor-
|
|
140
|
-
"file": "_assets/chunks/create-editor-
|
|
139
|
+
"_create-editor-BQkrw8Ax.js": {
|
|
140
|
+
"file": "_assets/chunks/create-editor-BQkrw8Ax.js",
|
|
141
141
|
"name": "create-editor",
|
|
142
142
|
"imports": [
|
|
143
|
-
"
|
|
143
|
+
"_runtime-paths-y0_gHowM.js",
|
|
144
144
|
"_types-D5iF3H1a.js"
|
|
145
145
|
]
|
|
146
146
|
},
|
|
@@ -151,19 +151,28 @@
|
|
|
151
151
|
"_rolldown-runtime-hePW80VL.js"
|
|
152
152
|
]
|
|
153
153
|
},
|
|
154
|
-
"_footnote-rail-
|
|
155
|
-
"file": "_assets/chunks/footnote-rail-
|
|
156
|
-
"name": "footnote-rail"
|
|
154
|
+
"_footnote-rail-B08scyhW.js": {
|
|
155
|
+
"file": "_assets/chunks/footnote-rail-B08scyhW.js",
|
|
156
|
+
"name": "footnote-rail",
|
|
157
|
+
"imports": [
|
|
158
|
+
"_preload-helper-Czpn1I53.js"
|
|
159
|
+
],
|
|
160
|
+
"dynamicImports": [
|
|
161
|
+
"src/client-compose.ts",
|
|
162
|
+
"src/client-settings.ts",
|
|
163
|
+
"src/client-manage.ts",
|
|
164
|
+
"src/client-share.ts"
|
|
165
|
+
]
|
|
157
166
|
},
|
|
158
|
-
"_jant-locale-picker-
|
|
159
|
-
"file": "_assets/chunks/jant-locale-picker-
|
|
167
|
+
"_jant-locale-picker-2L4rkDaz.js": {
|
|
168
|
+
"file": "_assets/chunks/jant-locale-picker-2L4rkDaz.js",
|
|
160
169
|
"name": "jant-locale-picker",
|
|
161
170
|
"imports": [
|
|
162
|
-
"_lit-
|
|
171
|
+
"_lit-Bw_voPoW.js"
|
|
163
172
|
]
|
|
164
173
|
},
|
|
165
|
-
"_lit-
|
|
166
|
-
"file": "_assets/chunks/lit-
|
|
174
|
+
"_lit-Bw_voPoW.js": {
|
|
175
|
+
"file": "_assets/chunks/lit-Bw_voPoW.js",
|
|
167
176
|
"name": "lit"
|
|
168
177
|
},
|
|
169
178
|
"_mediabunny-DRaCQ1r-.js": {
|
|
@@ -173,17 +182,27 @@
|
|
|
173
182
|
"_rolldown-runtime-hePW80VL.js"
|
|
174
183
|
]
|
|
175
184
|
},
|
|
185
|
+
"_preload-helper-Czpn1I53.js": {
|
|
186
|
+
"file": "_assets/chunks/preload-helper-Czpn1I53.js",
|
|
187
|
+
"name": "preload-helper"
|
|
188
|
+
},
|
|
176
189
|
"_rolldown-runtime-hePW80VL.js": {
|
|
177
190
|
"file": "_assets/chunks/rolldown-runtime-hePW80VL.js",
|
|
178
191
|
"name": "rolldown-runtime"
|
|
179
192
|
},
|
|
180
|
-
"
|
|
181
|
-
"file": "_assets/chunks/
|
|
193
|
+
"_runtime-paths-y0_gHowM.js": {
|
|
194
|
+
"file": "_assets/chunks/runtime-paths-y0_gHowM.js",
|
|
195
|
+
"name": "runtime-paths"
|
|
196
|
+
},
|
|
197
|
+
"_settings-paths-B0bNUaih.js": {
|
|
198
|
+
"file": "_assets/chunks/settings-paths-B0bNUaih.js",
|
|
182
199
|
"name": "settings-paths",
|
|
183
200
|
"imports": [
|
|
184
|
-
"
|
|
185
|
-
"
|
|
186
|
-
"
|
|
201
|
+
"_runtime-paths-y0_gHowM.js",
|
|
202
|
+
"_lit-Bw_voPoW.js",
|
|
203
|
+
"_preload-helper-Czpn1I53.js",
|
|
204
|
+
"_types-D5iF3H1a.js",
|
|
205
|
+
"_slug-format-CYmQE5ln.js"
|
|
187
206
|
],
|
|
188
207
|
"dynamicImports": [
|
|
189
208
|
"src/lib/slugify.ts"
|
|
@@ -193,81 +212,80 @@
|
|
|
193
212
|
"file": "_assets/chunks/site-header-nav-DzXsFk05.js",
|
|
194
213
|
"name": "site-header-nav"
|
|
195
214
|
},
|
|
196
|
-
"_slug-format-
|
|
197
|
-
"file": "_assets/chunks/slug-format-
|
|
215
|
+
"_slug-format-CYmQE5ln.js": {
|
|
216
|
+
"file": "_assets/chunks/slug-format-CYmQE5ln.js",
|
|
198
217
|
"name": "slug-format",
|
|
199
218
|
"imports": [
|
|
200
|
-
"_lit-
|
|
201
|
-
"_unsafe-html-
|
|
219
|
+
"_lit-Bw_voPoW.js",
|
|
220
|
+
"_unsafe-html-CWos3v6N.js",
|
|
202
221
|
"_types-D5iF3H1a.js"
|
|
203
222
|
]
|
|
204
223
|
},
|
|
205
|
-
"_sortable-list-
|
|
206
|
-
"file": "_assets/chunks/sortable-list-
|
|
224
|
+
"_sortable-list-t11Ma1Ek.js": {
|
|
225
|
+
"file": "_assets/chunks/sortable-list-t11Ma1Ek.js",
|
|
207
226
|
"name": "sortable-list",
|
|
208
227
|
"imports": [
|
|
209
|
-
"
|
|
210
|
-
"
|
|
211
|
-
"
|
|
228
|
+
"_runtime-paths-y0_gHowM.js",
|
|
229
|
+
"_lit-Bw_voPoW.js",
|
|
230
|
+
"_unsafe-html-CWos3v6N.js",
|
|
231
|
+
"_create-editor-BQkrw8Ax.js"
|
|
212
232
|
]
|
|
213
233
|
},
|
|
214
234
|
"_types-D5iF3H1a.js": {
|
|
215
235
|
"file": "_assets/chunks/types-D5iF3H1a.js",
|
|
216
236
|
"name": "types"
|
|
217
237
|
},
|
|
218
|
-
"_unsafe-html-
|
|
219
|
-
"file": "_assets/chunks/unsafe-html-
|
|
238
|
+
"_unsafe-html-CWos3v6N.js": {
|
|
239
|
+
"file": "_assets/chunks/unsafe-html-CWos3v6N.js",
|
|
220
240
|
"name": "unsafe-html",
|
|
221
241
|
"imports": [
|
|
222
|
-
"_lit-
|
|
242
|
+
"_lit-Bw_voPoW.js"
|
|
223
243
|
]
|
|
224
244
|
},
|
|
225
|
-
"_unsafe-svg-
|
|
226
|
-
"file": "_assets/chunks/unsafe-svg-
|
|
245
|
+
"_unsafe-svg-DZl-yjas.js": {
|
|
246
|
+
"file": "_assets/chunks/unsafe-svg-DZl-yjas.js",
|
|
227
247
|
"name": "unsafe-svg",
|
|
228
248
|
"imports": [
|
|
229
|
-
"
|
|
230
|
-
"
|
|
231
|
-
"_unsafe-html-
|
|
232
|
-
"_slug-format-Dsi0e9Xn.js",
|
|
249
|
+
"_footnote-rail-B08scyhW.js",
|
|
250
|
+
"_lit-Bw_voPoW.js",
|
|
251
|
+
"_unsafe-html-CWos3v6N.js",
|
|
233
252
|
"_types-D5iF3H1a.js"
|
|
234
|
-
],
|
|
235
|
-
"dynamicImports": [
|
|
236
|
-
"src/client-compose.ts",
|
|
237
|
-
"src/client-settings.ts",
|
|
238
|
-
"src/client-manage.ts"
|
|
239
253
|
]
|
|
240
254
|
},
|
|
241
255
|
"src/client-auth.ts": {
|
|
242
|
-
"file": "_assets/client-auth-
|
|
256
|
+
"file": "_assets/client-auth-CG55rWb5.js",
|
|
243
257
|
"name": "client-auth",
|
|
244
258
|
"src": "src/client-auth.ts",
|
|
245
259
|
"isEntry": true,
|
|
246
260
|
"imports": [
|
|
247
|
-
"
|
|
261
|
+
"_runtime-paths-y0_gHowM.js",
|
|
262
|
+
"_footnote-rail-B08scyhW.js",
|
|
263
|
+
"_lit-Bw_voPoW.js",
|
|
248
264
|
"src/client.ts",
|
|
249
265
|
"src/client.ts",
|
|
250
|
-
"_confirm-
|
|
251
|
-
"_unsafe-svg-
|
|
252
|
-
"_slug-format-Dsi0e9Xn.js",
|
|
266
|
+
"_confirm-CMe01lne.js",
|
|
267
|
+
"_unsafe-svg-DZl-yjas.js",
|
|
253
268
|
"_types-D5iF3H1a.js",
|
|
254
|
-
"
|
|
269
|
+
"_slug-format-CYmQE5ln.js",
|
|
270
|
+
"_settings-paths-B0bNUaih.js"
|
|
255
271
|
]
|
|
256
272
|
},
|
|
257
273
|
"src/client-compose.ts": {
|
|
258
|
-
"file": "_assets/client-compose-
|
|
274
|
+
"file": "_assets/client-compose-DkUTuavR.js",
|
|
259
275
|
"name": "client-compose",
|
|
260
276
|
"src": "src/client-compose.ts",
|
|
261
277
|
"isEntry": true,
|
|
262
278
|
"imports": [
|
|
263
|
-
"
|
|
264
|
-
"_footnote-rail-
|
|
265
|
-
"
|
|
266
|
-
"_unsafe-
|
|
267
|
-
"
|
|
279
|
+
"_runtime-paths-y0_gHowM.js",
|
|
280
|
+
"_footnote-rail-B08scyhW.js",
|
|
281
|
+
"_lit-Bw_voPoW.js",
|
|
282
|
+
"_unsafe-html-CWos3v6N.js",
|
|
283
|
+
"_preload-helper-Czpn1I53.js",
|
|
284
|
+
"_unsafe-svg-DZl-yjas.js",
|
|
268
285
|
"_types-D5iF3H1a.js",
|
|
269
|
-
"
|
|
270
|
-
"
|
|
286
|
+
"_slug-format-CYmQE5ln.js",
|
|
287
|
+
"_sortable-list-t11Ma1Ek.js",
|
|
288
|
+
"_create-editor-BQkrw8Ax.js"
|
|
271
289
|
],
|
|
272
290
|
"dynamicImports": [
|
|
273
291
|
"_emoji-mart-C4RpRKcU.js",
|
|
@@ -276,45 +294,58 @@
|
|
|
276
294
|
]
|
|
277
295
|
},
|
|
278
296
|
"src/client-manage.ts": {
|
|
279
|
-
"file": "_assets/client-manage-
|
|
297
|
+
"file": "_assets/client-manage-DnYdQAhf.js",
|
|
280
298
|
"name": "client-manage",
|
|
281
299
|
"src": "src/client-manage.ts",
|
|
282
300
|
"isEntry": true,
|
|
283
301
|
"imports": [
|
|
284
|
-
"
|
|
285
|
-
"
|
|
302
|
+
"_runtime-paths-y0_gHowM.js",
|
|
303
|
+
"_lit-Bw_voPoW.js",
|
|
304
|
+
"_unsafe-html-CWos3v6N.js",
|
|
286
305
|
"_site-header-nav-DzXsFk05.js",
|
|
287
|
-
"_confirm-
|
|
288
|
-
"_slug-format-Dsi0e9Xn.js",
|
|
306
|
+
"_confirm-CMe01lne.js",
|
|
289
307
|
"_types-D5iF3H1a.js",
|
|
290
|
-
"
|
|
291
|
-
"
|
|
292
|
-
"
|
|
308
|
+
"_slug-format-CYmQE5ln.js",
|
|
309
|
+
"_settings-paths-B0bNUaih.js",
|
|
310
|
+
"_sortable-list-t11Ma1Ek.js",
|
|
311
|
+
"_create-editor-BQkrw8Ax.js"
|
|
293
312
|
]
|
|
294
313
|
},
|
|
295
314
|
"src/client-settings.ts": {
|
|
296
|
-
"file": "_assets/client-settings-
|
|
315
|
+
"file": "_assets/client-settings-CHgsIqXJ.js",
|
|
297
316
|
"name": "client-settings",
|
|
298
317
|
"src": "src/client-settings.ts",
|
|
299
318
|
"isEntry": true,
|
|
300
319
|
"imports": [
|
|
301
|
-
"
|
|
302
|
-
"_jant-locale-picker-
|
|
303
|
-
"
|
|
320
|
+
"_runtime-paths-y0_gHowM.js",
|
|
321
|
+
"_jant-locale-picker-2L4rkDaz.js",
|
|
322
|
+
"_lit-Bw_voPoW.js",
|
|
323
|
+
"_confirm-CMe01lne.js",
|
|
304
324
|
"_types-D5iF3H1a.js",
|
|
305
|
-
"_create-editor-
|
|
325
|
+
"_create-editor-BQkrw8Ax.js"
|
|
326
|
+
]
|
|
327
|
+
},
|
|
328
|
+
"src/client-share.ts": {
|
|
329
|
+
"file": "_assets/client-share-C59mOLJ1.js",
|
|
330
|
+
"name": "client-share",
|
|
331
|
+
"src": "src/client-share.ts",
|
|
332
|
+
"isEntry": true,
|
|
333
|
+
"imports": [
|
|
334
|
+
"_lit-Bw_voPoW.js",
|
|
335
|
+
"_unsafe-html-CWos3v6N.js"
|
|
306
336
|
]
|
|
307
337
|
},
|
|
308
338
|
"src/client.ts": {
|
|
309
|
-
"file": "_assets/client-
|
|
339
|
+
"file": "_assets/client-Dp46QSht.js",
|
|
310
340
|
"name": "client",
|
|
311
341
|
"src": "src/client.ts",
|
|
312
342
|
"isEntry": true,
|
|
313
343
|
"imports": [
|
|
314
|
-
"
|
|
315
|
-
"_footnote-rail-
|
|
316
|
-
"_jant-locale-picker-
|
|
317
|
-
"
|
|
344
|
+
"_runtime-paths-y0_gHowM.js",
|
|
345
|
+
"_footnote-rail-B08scyhW.js",
|
|
346
|
+
"_jant-locale-picker-2L4rkDaz.js",
|
|
347
|
+
"_lit-Bw_voPoW.js",
|
|
348
|
+
"_unsafe-html-CWos3v6N.js",
|
|
318
349
|
"_site-header-nav-DzXsFk05.js"
|
|
319
350
|
]
|
|
320
351
|
},
|
|
@@ -1022,8 +1053,17 @@
|
|
|
1022
1053
|
"_assets/chunks/3179006d1c7ebfa50d27482a2859d9a0-e7PNUH9y.woff2"
|
|
1023
1054
|
]
|
|
1024
1055
|
},
|
|
1056
|
+
"src/style-share.css": {
|
|
1057
|
+
"file": "_assets/client-share-0DICJjAc.css",
|
|
1058
|
+
"name": "style-share",
|
|
1059
|
+
"names": [
|
|
1060
|
+
"style-share.css"
|
|
1061
|
+
],
|
|
1062
|
+
"src": "src/style-share.css",
|
|
1063
|
+
"isEntry": true
|
|
1064
|
+
},
|
|
1025
1065
|
"src/style.css": {
|
|
1026
|
-
"file": "_assets/client-
|
|
1066
|
+
"file": "_assets/client-B0-s9sqx.css",
|
|
1027
1067
|
"name": "style",
|
|
1028
1068
|
"names": [
|
|
1029
1069
|
"style.css"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as e,n as t,t as n}from"./lit-
|
|
1
|
+
import{i as e,n as t,t as n}from"./lit-Bw_voPoW.js";var r=`default`,i=class extends n{static properties={_open:{state:!0},_title:{state:!0},_message:{state:!0},_confirmLabel:{state:!0},_cancelLabel:{state:!0},_tone:{state:!0}};#e=[];#t=null;createRenderRoot(){return this.innerHTML=``,this}constructor(){super(),this._open=!1,this._title=``,this._message=``,this._confirmLabel=``,this._cancelLabel=``,this._tone=r}disconnectedCallback(){super.disconnectedCallback();let e=this.#t;this.#t=null,e?.resolve(!1);for(let e of this.#e.splice(0))e.resolve(!1)}async confirm(e){return await new Promise(t=>{this.#e.push({...e,tone:e.tone??r,resolve:t}),this.#t||this.#n()})}async#n(){if(this.#t||this.#e.length===0)return;let e=this.#e.shift();if(!e)return;this.#t=e,this._title=e.title??``,this._message=e.message,this._confirmLabel=e.confirmLabel,this._cancelLabel=e.cancelLabel,this._tone=e.tone??r,this._open=!0,await this.updateComplete;let t=this.querySelector(`.confirm-dialog`);t&&(t.open||t.showModal(),t.querySelector(`.confirm-dialog-panel`)?.focus())}#r(e){let t=this.#t;if(!t)return;this.#t=null;let n=this.querySelector(`.confirm-dialog`);n?.open&&n.close(),this._open=!1,this._title=``,this._message=``,this._confirmLabel=``,this._cancelLabel=``,this._tone=r,t.resolve(e),queueMicrotask(()=>void this.#n())}#i=e=>{e.preventDefault(),this.#r(!1)};#a=e=>{e.target===e.currentTarget&&this.#r(!1)};#o=e=>{if(e.key===`Escape`){e.preventDefault(),e.stopPropagation(),this.#r(!1);return}let t=e.target,n=t instanceof HTMLButtonElement||t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement||t instanceof HTMLAnchorElement;e.key===`Enter`&&!e.defaultPrevented&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&!e.shiftKey&&!n&&(e.preventDefault(),this.#r(!0))};#s(){if(this._title)return{title:this._title,message:this._message};let e=this._message.match(/^(.+?[??])\s+(.+)$/u);return e?{title:e[1],message:e[2]}:{title:this._message,message:``}}render(){if(!this._open)return t;let{title:n,message:r}=this.#s(),i=this._tone===`danger`?`btn-destructive`:`btn`;return e`
|
|
2
2
|
<dialog
|
|
3
3
|
class="dialog confirm-dialog"
|
|
4
4
|
@cancel=${this.#i}
|