linkfeed-pro 1.0.7

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 (65) hide show
  1. package/.claude/settings.local.json +9 -0
  2. package/.output/chrome-mv3/_locales/de/messages.json +214 -0
  3. package/.output/chrome-mv3/_locales/en/messages.json +214 -0
  4. package/.output/chrome-mv3/_locales/es/messages.json +214 -0
  5. package/.output/chrome-mv3/_locales/fr/messages.json +214 -0
  6. package/.output/chrome-mv3/_locales/hi/messages.json +214 -0
  7. package/.output/chrome-mv3/_locales/id/messages.json +214 -0
  8. package/.output/chrome-mv3/_locales/it/messages.json +214 -0
  9. package/.output/chrome-mv3/_locales/nl/messages.json +214 -0
  10. package/.output/chrome-mv3/_locales/pl/messages.json +214 -0
  11. package/.output/chrome-mv3/_locales/pt_BR/messages.json +214 -0
  12. package/.output/chrome-mv3/_locales/pt_PT/messages.json +214 -0
  13. package/.output/chrome-mv3/_locales/tr/messages.json +214 -0
  14. package/.output/chrome-mv3/assets/popup-Z_g1HFs5.css +1 -0
  15. package/.output/chrome-mv3/background.js +42 -0
  16. package/.output/chrome-mv3/chunks/popup-IxiPwS1E.js +42 -0
  17. package/.output/chrome-mv3/content-scripts/content.js +179 -0
  18. package/.output/chrome-mv3/icon-128.png +0 -0
  19. package/.output/chrome-mv3/icon-16.png +0 -0
  20. package/.output/chrome-mv3/icon-48.png +0 -0
  21. package/.output/chrome-mv3/icon.svg +9 -0
  22. package/.output/chrome-mv3/manifest.json +1 -0
  23. package/.output/chrome-mv3/popup.html +247 -0
  24. package/.wxt/eslint-auto-imports.mjs +56 -0
  25. package/.wxt/tsconfig.json +28 -0
  26. package/.wxt/types/globals.d.ts +15 -0
  27. package/.wxt/types/i18n.d.ts +593 -0
  28. package/.wxt/types/imports-module.d.ts +20 -0
  29. package/.wxt/types/imports.d.ts +50 -0
  30. package/.wxt/types/paths.d.ts +32 -0
  31. package/.wxt/wxt.d.ts +7 -0
  32. package/entrypoints/background.ts +112 -0
  33. package/entrypoints/content.ts +656 -0
  34. package/entrypoints/popup/main.ts +452 -0
  35. package/entrypoints/popup/modules/auth-modal.ts +219 -0
  36. package/entrypoints/popup/modules/settings.ts +78 -0
  37. package/entrypoints/popup/modules/ui-state.ts +95 -0
  38. package/entrypoints/popup/style.css +844 -0
  39. package/entrypoints/popup.html +261 -0
  40. package/lib/constants.ts +9 -0
  41. package/lib/device-meta.ts +173 -0
  42. package/lib/i18n.ts +201 -0
  43. package/lib/license.ts +470 -0
  44. package/lib/selectors.ts +24 -0
  45. package/lib/storage.ts +95 -0
  46. package/lib/telemetry.ts +94 -0
  47. package/package.json +30 -0
  48. package/public/_locales/de/messages.json +214 -0
  49. package/public/_locales/en/messages.json +214 -0
  50. package/public/_locales/es/messages.json +214 -0
  51. package/public/_locales/fr/messages.json +214 -0
  52. package/public/_locales/hi/messages.json +214 -0
  53. package/public/_locales/id/messages.json +214 -0
  54. package/public/_locales/it/messages.json +214 -0
  55. package/public/_locales/nl/messages.json +214 -0
  56. package/public/_locales/pl/messages.json +214 -0
  57. package/public/_locales/pt_BR/messages.json +214 -0
  58. package/public/_locales/pt_PT/messages.json +214 -0
  59. package/public/_locales/tr/messages.json +214 -0
  60. package/public/icon-128.png +0 -0
  61. package/public/icon-16.png +0 -0
  62. package/public/icon-48.png +0 -0
  63. package/public/icon.svg +9 -0
  64. package/tsconfig.json +3 -0
  65. package/wxt.config.ts +50 -0
@@ -0,0 +1,593 @@
1
+ // Generated by wxt
2
+ import "wxt/browser";
3
+
4
+ declare module "wxt/browser" {
5
+ /**
6
+ * See https://developer.chrome.com/docs/extensions/reference/i18n/#method-getMessage
7
+ */
8
+ interface GetMessageOptions {
9
+ /**
10
+ * See https://developer.chrome.com/docs/extensions/reference/i18n/#method-getMessage
11
+ */
12
+ escapeLt?: boolean
13
+ }
14
+
15
+ export interface WxtI18n extends I18n.Static {
16
+ /**
17
+ * The extension or app ID; you might use this string to construct URLs for resources inside the extension. Even unlocalized extensions can use this message.
18
+ * Note: You can't use this message in a manifest file.
19
+ *
20
+ * "<browser.runtime.id>"
21
+ */
22
+ getMessage(
23
+ messageName: "@@extension_id",
24
+ substitutions?: string | string[],
25
+ options?: GetMessageOptions,
26
+ ): string;
27
+ /**
28
+ * "<browser.i18n.getUiLocale()>"
29
+ */
30
+ getMessage(
31
+ messageName: "@@ui_locale",
32
+ substitutions?: string | string[],
33
+ options?: GetMessageOptions,
34
+ ): string;
35
+ /**
36
+ * The text direction for the current locale, either "ltr" for left-to-right languages such as English or "rtl" for right-to-left languages such as Japanese.
37
+ *
38
+ * "<ltr|rtl>"
39
+ */
40
+ getMessage(
41
+ messageName: "@@bidi_dir",
42
+ substitutions?: string | string[],
43
+ options?: GetMessageOptions,
44
+ ): string;
45
+ /**
46
+ * If the @@bidi_dir is "ltr", then this is "rtl"; otherwise, it's "ltr".
47
+ *
48
+ * "<rtl|ltr>"
49
+ */
50
+ getMessage(
51
+ messageName: "@@bidi_reversed_dir",
52
+ substitutions?: string | string[],
53
+ options?: GetMessageOptions,
54
+ ): string;
55
+ /**
56
+ * If the @@bidi_dir is "ltr", then this is "left"; otherwise, it's "right".
57
+ *
58
+ * "<left|right>"
59
+ */
60
+ getMessage(
61
+ messageName: "@@bidi_start_edge",
62
+ substitutions?: string | string[],
63
+ options?: GetMessageOptions,
64
+ ): string;
65
+ /**
66
+ * If the @@bidi_dir is "ltr", then this is "right"; otherwise, it's "left".
67
+ *
68
+ * "<right|left>"
69
+ */
70
+ getMessage(
71
+ messageName: "@@bidi_end_edge",
72
+ substitutions?: string | string[],
73
+ options?: GetMessageOptions,
74
+ ): string;
75
+ /**
76
+ * "LinkFeed Pro"
77
+ */
78
+ getMessage(
79
+ messageName: "extensionName",
80
+ substitutions?: string | string[],
81
+ options?: GetMessageOptions,
82
+ ): string;
83
+ /**
84
+ * "A cleaner, distraction-free LinkedIn experience"
85
+ */
86
+ getMessage(
87
+ messageName: "extensionDescription",
88
+ substitutions?: string | string[],
89
+ options?: GetMessageOptions,
90
+ ): string;
91
+ /**
92
+ * "Free"
93
+ */
94
+ getMessage(
95
+ messageName: "statusFree",
96
+ substitutions?: string | string[],
97
+ options?: GetMessageOptions,
98
+ ): string;
99
+ /**
100
+ * "Trial"
101
+ */
102
+ getMessage(
103
+ messageName: "statusTrial",
104
+ substitutions?: string | string[],
105
+ options?: GetMessageOptions,
106
+ ): string;
107
+ /**
108
+ * "Pro"
109
+ */
110
+ getMessage(
111
+ messageName: "statusPro",
112
+ substitutions?: string | string[],
113
+ options?: GetMessageOptions,
114
+ ): string;
115
+ /**
116
+ * "Expired"
117
+ */
118
+ getMessage(
119
+ messageName: "statusExpired",
120
+ substitutions?: string | string[],
121
+ options?: GetMessageOptions,
122
+ ): string;
123
+ /**
124
+ * "Upgrade to Premium"
125
+ */
126
+ getMessage(
127
+ messageName: "upgradeToPremium",
128
+ substitutions?: string | string[],
129
+ options?: GetMessageOptions,
130
+ ): string;
131
+ /**
132
+ * "Licensed to $EMAIL$"
133
+ */
134
+ getMessage(
135
+ messageName: "licensedTo",
136
+ substitutions?: string | string[],
137
+ options?: GetMessageOptions,
138
+ ): string;
139
+ /**
140
+ * "Trial expires in $TIME$"
141
+ */
142
+ getMessage(
143
+ messageName: "trialExpiresIn",
144
+ substitutions?: string | string[],
145
+ options?: GetMessageOptions,
146
+ ): string;
147
+ /**
148
+ * "Trial Expired - Click features to Upgrade"
149
+ */
150
+ getMessage(
151
+ messageName: "trialExpiredBadge",
152
+ substitutions?: string | string[],
153
+ options?: GetMessageOptions,
154
+ ): string;
155
+ /**
156
+ * "Hide Side Bar"
157
+ */
158
+ getMessage(
159
+ messageName: "removeSidebars",
160
+ substitutions?: string | string[],
161
+ options?: GetMessageOptions,
162
+ ): string;
163
+ /**
164
+ * "Hide 'Start Post'"
165
+ */
166
+ getMessage(
167
+ messageName: "hideStartPost",
168
+ substitutions?: string | string[],
169
+ options?: GetMessageOptions,
170
+ ): string;
171
+ /**
172
+ * "Hide Messenger"
173
+ */
174
+ getMessage(
175
+ messageName: "hideMessenger",
176
+ substitutions?: string | string[],
177
+ options?: GetMessageOptions,
178
+ ): string;
179
+ /**
180
+ * "Auto-Expand Posts"
181
+ */
182
+ getMessage(
183
+ messageName: "autoExpandPosts",
184
+ substitutions?: string | string[],
185
+ options?: GetMessageOptions,
186
+ ): string;
187
+ /**
188
+ * "Text Size"
189
+ */
190
+ getMessage(
191
+ messageName: "textSize",
192
+ substitutions?: string | string[],
193
+ options?: GetMessageOptions,
194
+ ): string;
195
+ /**
196
+ * "Feed Width"
197
+ */
198
+ getMessage(
199
+ messageName: "feedWidth",
200
+ substitutions?: string | string[],
201
+ options?: GetMessageOptions,
202
+ ): string;
203
+ /**
204
+ * "Unlock Pro Features"
205
+ */
206
+ getMessage(
207
+ messageName: "unlockProTitle",
208
+ substitutions?: string | string[],
209
+ options?: GetMessageOptions,
210
+ ): string;
211
+ /**
212
+ * "Enter your email to link this device."
213
+ */
214
+ getMessage(
215
+ messageName: "unlockProDesc",
216
+ substitutions?: string | string[],
217
+ options?: GetMessageOptions,
218
+ ): string;
219
+ /**
220
+ * "Sending..."
221
+ */
222
+ getMessage(
223
+ messageName: "sending",
224
+ substitutions?: string | string[],
225
+ options?: GetMessageOptions,
226
+ ): string;
227
+ /**
228
+ * "Enter your email"
229
+ */
230
+ getMessage(
231
+ messageName: "emailPlaceholder",
232
+ substitutions?: string | string[],
233
+ options?: GetMessageOptions,
234
+ ): string;
235
+ /**
236
+ * "Check Your Email"
237
+ */
238
+ getMessage(
239
+ messageName: "checkEmailTitle",
240
+ substitutions?: string | string[],
241
+ options?: GetMessageOptions,
242
+ ): string;
243
+ /**
244
+ * "We sent a confirmation link to $EMAIL$. Click it to activate."
245
+ */
246
+ getMessage(
247
+ messageName: "checkEmailDesc",
248
+ substitutions?: string | string[],
249
+ options?: GetMessageOptions,
250
+ ): string;
251
+ /**
252
+ * "I've clicked the link"
253
+ */
254
+ getMessage(
255
+ messageName: "verifyBtn",
256
+ substitutions?: string | string[],
257
+ options?: GetMessageOptions,
258
+ ): string;
259
+ /**
260
+ * "Checking..."
261
+ */
262
+ getMessage(
263
+ messageName: "verifying",
264
+ substitutions?: string | string[],
265
+ options?: GetMessageOptions,
266
+ ): string;
267
+ /**
268
+ * "Use a different email"
269
+ */
270
+ getMessage(
271
+ messageName: "differentEmail",
272
+ substitutions?: string | string[],
273
+ options?: GetMessageOptions,
274
+ ): string;
275
+ /**
276
+ * "Trial Expired"
277
+ */
278
+ getMessage(
279
+ messageName: "expiredTitle",
280
+ substitutions?: string | string[],
281
+ options?: GetMessageOptions,
282
+ ): string;
283
+ /**
284
+ * "To use Pro features please upgrade."
285
+ */
286
+ getMessage(
287
+ messageName: "expiredDesc",
288
+ substitutions?: string | string[],
289
+ options?: GetMessageOptions,
290
+ ): string;
291
+ /**
292
+ * "See Plans"
293
+ */
294
+ getMessage(
295
+ messageName: "upgradeBtn",
296
+ substitutions?: string | string[],
297
+ options?: GetMessageOptions,
298
+ ): string;
299
+ /**
300
+ * "Please enter a valid email address"
301
+ */
302
+ getMessage(
303
+ messageName: "errorInvalidEmail",
304
+ substitutions?: string | string[],
305
+ options?: GetMessageOptions,
306
+ ): string;
307
+ /**
308
+ * "No internet connection. Please connect and try again."
309
+ */
310
+ getMessage(
311
+ messageName: "errorNoInternet",
312
+ substitutions?: string | string[],
313
+ options?: GetMessageOptions,
314
+ ): string;
315
+ /**
316
+ * "Invalid response from server"
317
+ */
318
+ getMessage(
319
+ messageName: "errorServerInvalid",
320
+ substitutions?: string | string[],
321
+ options?: GetMessageOptions,
322
+ ): string;
323
+ /**
324
+ * "Failed to connect to server. Please try again."
325
+ */
326
+ getMessage(
327
+ messageName: "errorConnectFailed",
328
+ substitutions?: string | string[],
329
+ options?: GetMessageOptions,
330
+ ): string;
331
+ /**
332
+ * "Hide Navigation Bar"
333
+ */
334
+ getMessage(
335
+ messageName: "hideNavBar",
336
+ substitutions?: string | string[],
337
+ options?: GetMessageOptions,
338
+ ): string;
339
+ /**
340
+ * "Enable/Disable all features"
341
+ */
342
+ getMessage(
343
+ messageName: "powerToggleTitle",
344
+ substitutions?: string | string[],
345
+ options?: GetMessageOptions,
346
+ ): string;
347
+ /**
348
+ * "Settings"
349
+ */
350
+ getMessage(
351
+ messageName: "settingsButtonTitle",
352
+ substitutions?: string | string[],
353
+ options?: GetMessageOptions,
354
+ ): string;
355
+ /**
356
+ * "Settings"
357
+ */
358
+ getMessage(
359
+ messageName: "settingsPageTitle",
360
+ substitutions?: string | string[],
361
+ options?: GetMessageOptions,
362
+ ): string;
363
+ /**
364
+ * "Language"
365
+ */
366
+ getMessage(
367
+ messageName: "settingsLanguageLabel",
368
+ substitutions?: string | string[],
369
+ options?: GetMessageOptions,
370
+ ): string;
371
+ /**
372
+ * "Force the popup language. Auto follows your browser language."
373
+ */
374
+ getMessage(
375
+ messageName: "settingsLanguageHelp",
376
+ substitutions?: string | string[],
377
+ options?: GetMessageOptions,
378
+ ): string;
379
+ /**
380
+ * "Subscription"
381
+ */
382
+ getMessage(
383
+ messageName: "settingsSubscriptionTitle",
384
+ substitutions?: string | string[],
385
+ options?: GetMessageOptions,
386
+ ): string;
387
+ /**
388
+ * "Status"
389
+ */
390
+ getMessage(
391
+ messageName: "settingsSubscriptionStatusLabel",
392
+ substitutions?: string | string[],
393
+ options?: GetMessageOptions,
394
+ ): string;
395
+ /**
396
+ * "Free"
397
+ */
398
+ getMessage(
399
+ messageName: "settingsSubscriptionStatusFree",
400
+ substitutions?: string | string[],
401
+ options?: GetMessageOptions,
402
+ ): string;
403
+ /**
404
+ * "Trial"
405
+ */
406
+ getMessage(
407
+ messageName: "settingsSubscriptionStatusTrial",
408
+ substitutions?: string | string[],
409
+ options?: GetMessageOptions,
410
+ ): string;
411
+ /**
412
+ * "Pro"
413
+ */
414
+ getMessage(
415
+ messageName: "settingsSubscriptionStatusLifetime",
416
+ substitutions?: string | string[],
417
+ options?: GetMessageOptions,
418
+ ): string;
419
+ /**
420
+ * "Free plan"
421
+ */
422
+ getMessage(
423
+ messageName: "settingsSubscriptionFreeDetail",
424
+ substitutions?: string | string[],
425
+ options?: GetMessageOptions,
426
+ ): string;
427
+ /**
428
+ * "Pro unlocked"
429
+ */
430
+ getMessage(
431
+ messageName: "settingsSubscriptionLifetimeDetail",
432
+ substitutions?: string | string[],
433
+ options?: GetMessageOptions,
434
+ ): string;
435
+ /**
436
+ * "$HOURS$h remaining in trial"
437
+ */
438
+ getMessage(
439
+ messageName: "settingsSubscriptionTrialDetail",
440
+ substitutions?: string | string[],
441
+ options?: GetMessageOptions,
442
+ ): string;
443
+ /**
444
+ * "My Account"
445
+ */
446
+ getMessage(
447
+ messageName: "settingsAccountButton",
448
+ substitutions?: string | string[],
449
+ options?: GetMessageOptions,
450
+ ): string;
451
+ /**
452
+ * "Upgrade now"
453
+ */
454
+ getMessage(
455
+ messageName: "settingsUpgradeButton",
456
+ substitutions?: string | string[],
457
+ options?: GetMessageOptions,
458
+ ): string;
459
+ /**
460
+ * "Redirecting..."
461
+ */
462
+ getMessage(
463
+ messageName: "settingsCheckoutLoading",
464
+ substitutions?: string | string[],
465
+ options?: GetMessageOptions,
466
+ ): string;
467
+ /**
468
+ * "Checkout unavailable, fallback opened"
469
+ */
470
+ getMessage(
471
+ messageName: "settingsCheckoutFallback",
472
+ substitutions?: string | string[],
473
+ options?: GetMessageOptions,
474
+ ): string;
475
+ /**
476
+ * "Version"
477
+ */
478
+ getMessage(
479
+ messageName: "settingsVersionLabel",
480
+ substitutions?: string | string[],
481
+ options?: GetMessageOptions,
482
+ ): string;
483
+ /**
484
+ * "Auto (Browser)"
485
+ */
486
+ getMessage(
487
+ messageName: "languageAutoOption",
488
+ substitutions?: string | string[],
489
+ options?: GetMessageOptions,
490
+ ): string;
491
+ /**
492
+ * "you"
493
+ */
494
+ getMessage(
495
+ messageName: "genericYou",
496
+ substitutions?: string | string[],
497
+ options?: GetMessageOptions,
498
+ ): string;
499
+ /**
500
+ * "Expired"
501
+ */
502
+ getMessage(
503
+ messageName: "expiredShort",
504
+ substitutions?: string | string[],
505
+ options?: GetMessageOptions,
506
+ ): string;
507
+ /**
508
+ * "day"
509
+ */
510
+ getMessage(
511
+ messageName: "unitDay",
512
+ substitutions?: string | string[],
513
+ options?: GetMessageOptions,
514
+ ): string;
515
+ /**
516
+ * "days"
517
+ */
518
+ getMessage(
519
+ messageName: "unitDays",
520
+ substitutions?: string | string[],
521
+ options?: GetMessageOptions,
522
+ ): string;
523
+ /**
524
+ * "hour"
525
+ */
526
+ getMessage(
527
+ messageName: "unitHour",
528
+ substitutions?: string | string[],
529
+ options?: GetMessageOptions,
530
+ ): string;
531
+ /**
532
+ * "hours"
533
+ */
534
+ getMessage(
535
+ messageName: "unitHours",
536
+ substitutions?: string | string[],
537
+ options?: GetMessageOptions,
538
+ ): string;
539
+ /**
540
+ * "Send Magic Link"
541
+ */
542
+ getMessage(
543
+ messageName: "sendLink",
544
+ substitutions?: string | string[],
545
+ options?: GetMessageOptions,
546
+ ): string;
547
+ /**
548
+ * "Display"
549
+ */
550
+ getMessage(
551
+ messageName: "displayButtonTitle",
552
+ substitutions?: string | string[],
553
+ options?: GetMessageOptions,
554
+ ): string;
555
+ /**
556
+ * "Hide 'Post Removed'"
557
+ */
558
+ getMessage(
559
+ messageName: "hideRemovedFeedCards",
560
+ substitutions?: string | string[],
561
+ options?: GetMessageOptions,
562
+ ): string;
563
+ /**
564
+ * "Hide"
565
+ */
566
+ getMessage(
567
+ messageName: "hideButtonTitle",
568
+ substitutions?: string | string[],
569
+ options?: GetMessageOptions,
570
+ ): string;
571
+ /**
572
+ * "Hide 'Promoted'"
573
+ */
574
+ getMessage(
575
+ messageName: "hidePromoted",
576
+ substitutions?: string | string[],
577
+ options?: GetMessageOptions,
578
+ ): string;
579
+ /**
580
+ * "Post Spacing"
581
+ */
582
+ getMessage(
583
+ messageName: "postSpacing",
584
+ substitutions?: string | string[],
585
+ options?: GetMessageOptions,
586
+ ): string;
587
+ getMessage(
588
+ messageName: "@@extension_id" | "@@ui_locale" | "@@bidi_dir" | "@@bidi_reversed_dir" | "@@bidi_start_edge" | "@@bidi_end_edge" | "extensionName" | "extensionDescription" | "statusFree" | "statusTrial" | "statusPro" | "statusExpired" | "upgradeToPremium" | "licensedTo" | "trialExpiresIn" | "trialExpiredBadge" | "removeSidebars" | "hideStartPost" | "hideMessenger" | "autoExpandPosts" | "textSize" | "feedWidth" | "unlockProTitle" | "unlockProDesc" | "sending" | "emailPlaceholder" | "checkEmailTitle" | "checkEmailDesc" | "verifyBtn" | "verifying" | "differentEmail" | "expiredTitle" | "expiredDesc" | "upgradeBtn" | "errorInvalidEmail" | "errorNoInternet" | "errorServerInvalid" | "errorConnectFailed" | "hideNavBar" | "powerToggleTitle" | "settingsButtonTitle" | "settingsPageTitle" | "settingsLanguageLabel" | "settingsLanguageHelp" | "settingsSubscriptionTitle" | "settingsSubscriptionStatusLabel" | "settingsSubscriptionStatusFree" | "settingsSubscriptionStatusTrial" | "settingsSubscriptionStatusLifetime" | "settingsSubscriptionFreeDetail" | "settingsSubscriptionLifetimeDetail" | "settingsSubscriptionTrialDetail" | "settingsAccountButton" | "settingsUpgradeButton" | "settingsCheckoutLoading" | "settingsCheckoutFallback" | "settingsVersionLabel" | "languageAutoOption" | "genericYou" | "expiredShort" | "unitDay" | "unitDays" | "unitHour" | "unitHours" | "sendLink" | "displayButtonTitle" | "hideRemovedFeedCards" | "hideButtonTitle" | "hidePromoted" | "postSpacing",
589
+ substitutions?: string | string[],
590
+ options?: GetMessageOptions,
591
+ ): string;
592
+ }
593
+ }
@@ -0,0 +1,20 @@
1
+ // Generated by wxt
2
+ // Types for the #import virtual module
3
+ declare module '#imports' {
4
+ export { browser, Browser } from 'wxt/browser';
5
+ export { storage, StorageArea, WxtStorage, WxtStorageItem, StorageItemKey, StorageAreaChanges, MigrationError } from 'wxt/utils/storage';
6
+ export { useAppConfig } from 'wxt/utils/app-config';
7
+ export { ContentScriptContext, WxtWindowEventMap } from 'wxt/utils/content-script-context';
8
+ export { createIframeUi, IframeContentScriptUi, IframeContentScriptUiOptions } from 'wxt/utils/content-script-ui/iframe';
9
+ export { createIntegratedUi, IntegratedContentScriptUi, IntegratedContentScriptUiOptions } from 'wxt/utils/content-script-ui/integrated';
10
+ export { createShadowRootUi, ShadowRootContentScriptUi, ShadowRootContentScriptUiOptions } from 'wxt/utils/content-script-ui/shadow-root';
11
+ export { ContentScriptUi, ContentScriptUiOptions, ContentScriptOverlayAlignment, ContentScriptAppendMode, ContentScriptInlinePositioningOptions, ContentScriptOverlayPositioningOptions, ContentScriptModalPositioningOptions, ContentScriptPositioningOptions, ContentScriptAnchoredOptions, AutoMountOptions, StopAutoMount, AutoMount } from 'wxt/utils/content-script-ui/types';
12
+ export { defineAppConfig, WxtAppConfig } from 'wxt/utils/define-app-config';
13
+ export { defineBackground } from 'wxt/utils/define-background';
14
+ export { defineContentScript } from 'wxt/utils/define-content-script';
15
+ export { defineUnlistedScript } from 'wxt/utils/define-unlisted-script';
16
+ export { defineWxtPlugin } from 'wxt/utils/define-wxt-plugin';
17
+ export { injectScript, ScriptPublicPath, InjectScriptOptions } from 'wxt/utils/inject-script';
18
+ export { InvalidMatchPattern, MatchPattern } from 'wxt/utils/match-patterns';
19
+ export { fakeBrowser } from 'wxt/testing';
20
+ }
@@ -0,0 +1,50 @@
1
+ // Generated by wxt
2
+ export {}
3
+ declare global {
4
+ const ContentScriptContext: typeof import('wxt/utils/content-script-context').ContentScriptContext
5
+ const InvalidMatchPattern: typeof import('wxt/utils/match-patterns').InvalidMatchPattern
6
+ const MatchPattern: typeof import('wxt/utils/match-patterns').MatchPattern
7
+ const browser: typeof import('wxt/browser').browser
8
+ const createIframeUi: typeof import('wxt/utils/content-script-ui/iframe').createIframeUi
9
+ const createIntegratedUi: typeof import('wxt/utils/content-script-ui/integrated').createIntegratedUi
10
+ const createShadowRootUi: typeof import('wxt/utils/content-script-ui/shadow-root').createShadowRootUi
11
+ const defineAppConfig: typeof import('wxt/utils/define-app-config').defineAppConfig
12
+ const defineBackground: typeof import('wxt/utils/define-background').defineBackground
13
+ const defineContentScript: typeof import('wxt/utils/define-content-script').defineContentScript
14
+ const defineUnlistedScript: typeof import('wxt/utils/define-unlisted-script').defineUnlistedScript
15
+ const defineWxtPlugin: typeof import('wxt/utils/define-wxt-plugin').defineWxtPlugin
16
+ const fakeBrowser: typeof import('wxt/testing').fakeBrowser
17
+ const injectScript: typeof import('wxt/utils/inject-script').injectScript
18
+ const storage: typeof import('wxt/utils/storage').storage
19
+ const useAppConfig: typeof import('wxt/utils/app-config').useAppConfig
20
+ }
21
+ // for type re-export
22
+ declare global {
23
+ // @ts-ignore
24
+ export type { Browser } from 'wxt/browser'
25
+ import('wxt/browser')
26
+ // @ts-ignore
27
+ export type { StorageArea, WxtStorage, WxtStorageItem, StorageItemKey, StorageAreaChanges, MigrationError } from 'wxt/utils/storage'
28
+ import('wxt/utils/storage')
29
+ // @ts-ignore
30
+ export type { WxtWindowEventMap } from 'wxt/utils/content-script-context'
31
+ import('wxt/utils/content-script-context')
32
+ // @ts-ignore
33
+ export type { IframeContentScriptUi, IframeContentScriptUiOptions } from 'wxt/utils/content-script-ui/iframe'
34
+ import('wxt/utils/content-script-ui/iframe')
35
+ // @ts-ignore
36
+ export type { IntegratedContentScriptUi, IntegratedContentScriptUiOptions } from 'wxt/utils/content-script-ui/integrated'
37
+ import('wxt/utils/content-script-ui/integrated')
38
+ // @ts-ignore
39
+ export type { ShadowRootContentScriptUi, ShadowRootContentScriptUiOptions } from 'wxt/utils/content-script-ui/shadow-root'
40
+ import('wxt/utils/content-script-ui/shadow-root')
41
+ // @ts-ignore
42
+ export type { ContentScriptUi, ContentScriptUiOptions, ContentScriptOverlayAlignment, ContentScriptAppendMode, ContentScriptInlinePositioningOptions, ContentScriptOverlayPositioningOptions, ContentScriptModalPositioningOptions, ContentScriptPositioningOptions, ContentScriptAnchoredOptions, AutoMountOptions, StopAutoMount, AutoMount } from 'wxt/utils/content-script-ui/types'
43
+ import('wxt/utils/content-script-ui/types')
44
+ // @ts-ignore
45
+ export type { WxtAppConfig } from 'wxt/utils/define-app-config'
46
+ import('wxt/utils/define-app-config')
47
+ // @ts-ignore
48
+ export type { ScriptPublicPath, InjectScriptOptions } from 'wxt/utils/inject-script'
49
+ import('wxt/utils/inject-script')
50
+ }
@@ -0,0 +1,32 @@
1
+ // Generated by wxt
2
+ import "wxt/browser";
3
+
4
+ declare module "wxt/browser" {
5
+ export type PublicPath =
6
+ | ""
7
+ | "/"
8
+ | "/_locales/de/messages.json"
9
+ | "/_locales/en/messages.json"
10
+ | "/_locales/es/messages.json"
11
+ | "/_locales/fr/messages.json"
12
+ | "/_locales/hi/messages.json"
13
+ | "/_locales/id/messages.json"
14
+ | "/_locales/it/messages.json"
15
+ | "/_locales/nl/messages.json"
16
+ | "/_locales/pl/messages.json"
17
+ | "/_locales/pt_BR/messages.json"
18
+ | "/_locales/pt_PT/messages.json"
19
+ | "/_locales/tr/messages.json"
20
+ | "/background.js"
21
+ | "/content-scripts/content.js"
22
+ | "/icon-128.png"
23
+ | "/icon-16.png"
24
+ | "/icon-48.png"
25
+ | "/icon.svg"
26
+ | "/popup.html"
27
+ type HtmlPublicPath = Extract<PublicPath, `${string}.html`>
28
+ export interface WxtRuntime {
29
+ getURL(path: PublicPath): string;
30
+ getURL(path: `${HtmlPublicPath}${string}`): string;
31
+ }
32
+ }
package/.wxt/wxt.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ // Generated by wxt
2
+ /// <reference types="wxt/vite-builder-env" />
3
+ /// <reference path="./types/paths.d.ts" />
4
+ /// <reference path="./types/i18n.d.ts" />
5
+ /// <reference path="./types/globals.d.ts" />
6
+ /// <reference path="./types/imports-module.d.ts" />
7
+ /// <reference path="./types/imports.d.ts" />