@siteping/widget 0.10.6 → 0.10.8

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 (55) hide show
  1. package/dist/chunk-4CK3N4YE.js +1796 -0
  2. package/dist/chunk-4CK3N4YE.js.map +1 -0
  3. package/dist/chunk-BJFC7TVL.cjs +1796 -0
  4. package/dist/chunk-BJFC7TVL.cjs.map +1 -0
  5. package/dist/chunk-EYISG4OI.js +1796 -0
  6. package/dist/chunk-EYISG4OI.js.map +1 -0
  7. package/dist/chunk-OK2KX3KN.cjs +1796 -0
  8. package/dist/chunk-OK2KX3KN.cjs.map +1 -0
  9. package/dist/email.d.cts +19 -0
  10. package/dist/email.d.ts +19 -0
  11. package/dist/filters.d.cts +29 -4
  12. package/dist/filters.d.ts +29 -4
  13. package/dist/i18n.d.cts +67 -0
  14. package/dist/i18n.d.ts +67 -0
  15. package/dist/index.cjs +50 -50
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +152 -6
  18. package/dist/index.d.ts +152 -6
  19. package/dist/index.global.js +74 -74
  20. package/dist/index.global.js.map +1 -1
  21. package/dist/index.js +50 -50
  22. package/dist/index.js.map +1 -1
  23. package/dist/panel-KCYUMYAI.cjs +2 -0
  24. package/dist/panel-KCYUMYAI.cjs.map +1 -0
  25. package/dist/panel-KV2AQHC2.js +2 -0
  26. package/dist/panel-KV2AQHC2.js.map +1 -0
  27. package/dist/panel-LYS3425X.cjs +2 -0
  28. package/dist/panel-LYS3425X.cjs.map +1 -0
  29. package/dist/panel-W2LHYGFS.js +2 -0
  30. package/dist/panel-W2LHYGFS.js.map +1 -0
  31. package/dist/react.cjs +50 -50
  32. package/dist/react.cjs.map +1 -1
  33. package/dist/react.js +49 -49
  34. package/dist/react.js.map +1 -1
  35. package/dist/screenshot-storage.d.cts +5 -0
  36. package/dist/screenshot-storage.d.ts +5 -0
  37. package/dist/siteping-core.d.cts +11 -5
  38. package/dist/siteping-core.d.ts +11 -5
  39. package/dist/store-helpers.d.cts +96 -0
  40. package/dist/store-helpers.d.ts +96 -0
  41. package/dist/type-utils.d.cts +13 -44
  42. package/dist/type-utils.d.ts +13 -44
  43. package/dist/types.d.cts +149 -112
  44. package/dist/types.d.ts +149 -112
  45. package/dist/wire.d.cts +35 -0
  46. package/dist/wire.d.ts +35 -0
  47. package/package.json +4 -3
  48. package/dist/chunk-D2AVRF24.js +0 -1796
  49. package/dist/chunk-D2AVRF24.js.map +0 -1
  50. package/dist/chunk-GRKBXAGP.cjs +0 -1796
  51. package/dist/chunk-GRKBXAGP.cjs.map +0 -1
  52. package/dist/panel-LMVRKAQH.cjs +0 -2
  53. package/dist/panel-LMVRKAQH.cjs.map +0 -1
  54. package/dist/panel-OXUE7PJY.js +0 -2
  55. package/dist/panel-OXUE7PJY.js.map +0 -1
package/dist/index.d.cts CHANGED
@@ -1,10 +1,156 @@
1
- import { SitepingConfig, SitepingInstance } from './siteping-core.cjs';
2
- export { AnchorData, AnnotationPayload, AnnotationResponse, FeedbackPayload, FeedbackResponse, FeedbackStatus, FeedbackType, RectData, SitepingConfig, SitepingHeadersOption, SitepingInstance, SitepingPublicEvents, SitepingStore } from './siteping-core.cjs';
1
+ import { SitepingIdentity, SitepingConfig, SitepingInstance } from './siteping-core.cjs';
2
+ export { AnchorData, AnnotationPayload, AnnotationResponse, FeedbackPayload, FeedbackResponse, FeedbackStatus, FeedbackType, RectData, SitepingConfig, SitepingHeadersOption, SitepingHttpConfig, SitepingInstance, SitepingLocale, SitepingPublicEvents, SitepingStore, SitepingStoreConfig } from './siteping-core.cjs';
3
3
 
4
- interface Identity {
5
- name: string;
6
- email: string;
4
+ /** All translatable string keys used by the widget. */
5
+ interface Translations {
6
+ "panel.title": string;
7
+ "panel.ariaLabel": string;
8
+ "panel.feedbackList": string;
9
+ "panel.loading": string;
10
+ "panel.close": string;
11
+ "panel.deleteAll": string;
12
+ "panel.deleteAllConfirmTitle": string;
13
+ "panel.deleteAllConfirmMessage": string;
14
+ "panel.search": string;
15
+ "panel.searchAria": string;
16
+ "panel.filterAll": string;
17
+ "panel.loadError": string;
18
+ "panel.retry": string;
19
+ "panel.empty": string;
20
+ "panel.showMore": string;
21
+ "panel.showLess": string;
22
+ "panel.resolve": string;
23
+ "panel.reopen": string;
24
+ "panel.delete": string;
25
+ "panel.cancel": string;
26
+ "panel.confirmDelete": string;
27
+ "panel.loadMore": string;
28
+ "panel.statusAll": string;
29
+ "panel.statusOpen": string;
30
+ "panel.statusResolved": string;
31
+ "panel.statusInProgress": string;
32
+ "panel.statusWontFix": string;
33
+ "type.label": string;
34
+ "type.question": string;
35
+ "type.change": string;
36
+ "type.bug": string;
37
+ "type.other": string;
38
+ "status.label": string;
39
+ "scope.label": string;
40
+ "scope.thisPage": string;
41
+ "scope.thisType": string;
42
+ "scope.all": string;
43
+ "fab.aria": string;
44
+ "fab.messages": string;
45
+ "fab.annotate": string;
46
+ "fab.annotations": string;
47
+ "annotator.instruction": string;
48
+ "annotator.instantInstruction": string;
49
+ "annotator.cancel": string;
50
+ "popup.placeholder": string;
51
+ "popup.textareaAria": string;
52
+ "popup.submitHintMac": string;
53
+ "popup.submitHintOther": string;
54
+ "popup.ariaLabel": string;
55
+ "popup.cancel": string;
56
+ "popup.submit": string;
57
+ "identity.title": string;
58
+ "identity.nameLabel": string;
59
+ "identity.namePlaceholder": string;
60
+ "identity.emailLabel": string;
61
+ "identity.emailPlaceholder": string;
62
+ "identity.cancel": string;
63
+ "identity.submit": string;
64
+ "marker.approximate": string;
65
+ "marker.aria": string;
66
+ "marker.count": string;
67
+ "fab.badge": string;
68
+ "feedback.sent.confirmation": string;
69
+ "feedback.error.message": string;
70
+ "feedback.deleted.confirmation": string;
71
+ "badge.count": string;
72
+ "bulk.selectAll": string;
73
+ "bulk.selected": string;
74
+ "bulk.resolve": string;
75
+ "bulk.delete": string;
76
+ "bulk.deselect": string;
77
+ "sort.newest": string;
78
+ "sort.oldest": string;
79
+ "sort.byType": string;
80
+ "sort.openFirst": string;
81
+ "sort.label": string;
82
+ "group.byPage": string;
83
+ "group.feedbacks": string;
84
+ "stats.open": string;
85
+ "stats.resolved": string;
86
+ "stats.bugs": string;
87
+ "stats.progress": string;
88
+ "detail.back": string;
89
+ "detail.title": string;
90
+ "detail.status": string;
91
+ "detail.message": string;
92
+ "detail.screenshot": string;
93
+ "detail.screenshotAlt": string;
94
+ "detail.metadata": string;
95
+ "detail.annotation": string;
96
+ "detail.page": string;
97
+ "detail.author": string;
98
+ "detail.date": string;
99
+ "detail.viewport": string;
100
+ "detail.browser": string;
101
+ "detail.resolvedAt": string;
102
+ /** Closure-date label for won't-fix feedbacks. */
103
+ "detail.closedAt": string;
104
+ "detail.goToAnnotation": string;
105
+ "detail.element": string;
106
+ "detail.selector": string;
107
+ "detail.position": string;
108
+ "detail.resolve": string;
109
+ "detail.reopen": string;
110
+ "detail.delete": string;
111
+ "detail.diagnostics": string;
112
+ "detail.diagnostics.console": string;
113
+ "detail.diagnostics.network": string;
114
+ "detail.diagnostics.expand": string;
115
+ "detail.diagnostics.collapse": string;
116
+ "detail.diagnostics.noEntries": string;
117
+ "shortcuts.title": string;
118
+ "shortcuts.navigate": string;
119
+ "shortcuts.resolve": string;
120
+ "shortcuts.delete": string;
121
+ "shortcuts.search": string;
122
+ "shortcuts.select": string;
123
+ "shortcuts.help": string;
124
+ "shortcuts.close": string;
125
+ "shortcuts.hint": string;
126
+ "export.label": string;
127
+ "export.csv": string;
128
+ "export.json": string;
7
129
  }
130
+ /** Every valid key of `Translations` as a string-literal union. */
131
+ type TranslationKey = keyof Translations;
132
+ /** A translate function that returns the string for a given key. */
133
+ type TFunction = (key: TranslationKey) => string;
134
+
135
+ /**
136
+ * Register a custom locale at runtime. Partial dictionaries are welcome —
137
+ * missing keys fall back to English per key, so overriding a single string
138
+ * never requires copying the whole catalog.
139
+ */
140
+ declare const registerLocale: (code: string, translations: Partial<Translations>) => void;
141
+ /**
142
+ * Dynamically import a built-in locale and register it. Returns the loaded
143
+ * translations or `null` if the locale isn't a known built-in. Custom
144
+ * locales registered via {@link registerLocale} bypass this loader.
145
+ */
146
+ declare const loadLocale: (locale: string) => Promise<Partial<Translations> | null>;
147
+
148
+ /**
149
+ * Author identity persisted by the widget — alias of core's
150
+ * `SitepingIdentity` (one concept, one shape; the alias keeps the widget's
151
+ * historical export name working).
152
+ */
153
+ type Identity = SitepingIdentity;
8
154
 
9
155
  /**
10
156
  * Initialize the Siteping feedback widget.
@@ -21,4 +167,4 @@ interface Identity {
21
167
  */
22
168
  declare function initSiteping(config: SitepingConfig): SitepingInstance;
23
169
 
24
- export { type Identity, initSiteping };
170
+ export { type Identity, type TFunction, type TranslationKey, type Translations, initSiteping, loadLocale, registerLocale };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,156 @@
1
- import { SitepingConfig, SitepingInstance } from './siteping-core.js';
2
- export { AnchorData, AnnotationPayload, AnnotationResponse, FeedbackPayload, FeedbackResponse, FeedbackStatus, FeedbackType, RectData, SitepingConfig, SitepingHeadersOption, SitepingInstance, SitepingPublicEvents, SitepingStore } from './siteping-core.js';
1
+ import { SitepingIdentity, SitepingConfig, SitepingInstance } from './siteping-core.js';
2
+ export { AnchorData, AnnotationPayload, AnnotationResponse, FeedbackPayload, FeedbackResponse, FeedbackStatus, FeedbackType, RectData, SitepingConfig, SitepingHeadersOption, SitepingHttpConfig, SitepingInstance, SitepingLocale, SitepingPublicEvents, SitepingStore, SitepingStoreConfig } from './siteping-core.js';
3
3
 
4
- interface Identity {
5
- name: string;
6
- email: string;
4
+ /** All translatable string keys used by the widget. */
5
+ interface Translations {
6
+ "panel.title": string;
7
+ "panel.ariaLabel": string;
8
+ "panel.feedbackList": string;
9
+ "panel.loading": string;
10
+ "panel.close": string;
11
+ "panel.deleteAll": string;
12
+ "panel.deleteAllConfirmTitle": string;
13
+ "panel.deleteAllConfirmMessage": string;
14
+ "panel.search": string;
15
+ "panel.searchAria": string;
16
+ "panel.filterAll": string;
17
+ "panel.loadError": string;
18
+ "panel.retry": string;
19
+ "panel.empty": string;
20
+ "panel.showMore": string;
21
+ "panel.showLess": string;
22
+ "panel.resolve": string;
23
+ "panel.reopen": string;
24
+ "panel.delete": string;
25
+ "panel.cancel": string;
26
+ "panel.confirmDelete": string;
27
+ "panel.loadMore": string;
28
+ "panel.statusAll": string;
29
+ "panel.statusOpen": string;
30
+ "panel.statusResolved": string;
31
+ "panel.statusInProgress": string;
32
+ "panel.statusWontFix": string;
33
+ "type.label": string;
34
+ "type.question": string;
35
+ "type.change": string;
36
+ "type.bug": string;
37
+ "type.other": string;
38
+ "status.label": string;
39
+ "scope.label": string;
40
+ "scope.thisPage": string;
41
+ "scope.thisType": string;
42
+ "scope.all": string;
43
+ "fab.aria": string;
44
+ "fab.messages": string;
45
+ "fab.annotate": string;
46
+ "fab.annotations": string;
47
+ "annotator.instruction": string;
48
+ "annotator.instantInstruction": string;
49
+ "annotator.cancel": string;
50
+ "popup.placeholder": string;
51
+ "popup.textareaAria": string;
52
+ "popup.submitHintMac": string;
53
+ "popup.submitHintOther": string;
54
+ "popup.ariaLabel": string;
55
+ "popup.cancel": string;
56
+ "popup.submit": string;
57
+ "identity.title": string;
58
+ "identity.nameLabel": string;
59
+ "identity.namePlaceholder": string;
60
+ "identity.emailLabel": string;
61
+ "identity.emailPlaceholder": string;
62
+ "identity.cancel": string;
63
+ "identity.submit": string;
64
+ "marker.approximate": string;
65
+ "marker.aria": string;
66
+ "marker.count": string;
67
+ "fab.badge": string;
68
+ "feedback.sent.confirmation": string;
69
+ "feedback.error.message": string;
70
+ "feedback.deleted.confirmation": string;
71
+ "badge.count": string;
72
+ "bulk.selectAll": string;
73
+ "bulk.selected": string;
74
+ "bulk.resolve": string;
75
+ "bulk.delete": string;
76
+ "bulk.deselect": string;
77
+ "sort.newest": string;
78
+ "sort.oldest": string;
79
+ "sort.byType": string;
80
+ "sort.openFirst": string;
81
+ "sort.label": string;
82
+ "group.byPage": string;
83
+ "group.feedbacks": string;
84
+ "stats.open": string;
85
+ "stats.resolved": string;
86
+ "stats.bugs": string;
87
+ "stats.progress": string;
88
+ "detail.back": string;
89
+ "detail.title": string;
90
+ "detail.status": string;
91
+ "detail.message": string;
92
+ "detail.screenshot": string;
93
+ "detail.screenshotAlt": string;
94
+ "detail.metadata": string;
95
+ "detail.annotation": string;
96
+ "detail.page": string;
97
+ "detail.author": string;
98
+ "detail.date": string;
99
+ "detail.viewport": string;
100
+ "detail.browser": string;
101
+ "detail.resolvedAt": string;
102
+ /** Closure-date label for won't-fix feedbacks. */
103
+ "detail.closedAt": string;
104
+ "detail.goToAnnotation": string;
105
+ "detail.element": string;
106
+ "detail.selector": string;
107
+ "detail.position": string;
108
+ "detail.resolve": string;
109
+ "detail.reopen": string;
110
+ "detail.delete": string;
111
+ "detail.diagnostics": string;
112
+ "detail.diagnostics.console": string;
113
+ "detail.diagnostics.network": string;
114
+ "detail.diagnostics.expand": string;
115
+ "detail.diagnostics.collapse": string;
116
+ "detail.diagnostics.noEntries": string;
117
+ "shortcuts.title": string;
118
+ "shortcuts.navigate": string;
119
+ "shortcuts.resolve": string;
120
+ "shortcuts.delete": string;
121
+ "shortcuts.search": string;
122
+ "shortcuts.select": string;
123
+ "shortcuts.help": string;
124
+ "shortcuts.close": string;
125
+ "shortcuts.hint": string;
126
+ "export.label": string;
127
+ "export.csv": string;
128
+ "export.json": string;
7
129
  }
130
+ /** Every valid key of `Translations` as a string-literal union. */
131
+ type TranslationKey = keyof Translations;
132
+ /** A translate function that returns the string for a given key. */
133
+ type TFunction = (key: TranslationKey) => string;
134
+
135
+ /**
136
+ * Register a custom locale at runtime. Partial dictionaries are welcome —
137
+ * missing keys fall back to English per key, so overriding a single string
138
+ * never requires copying the whole catalog.
139
+ */
140
+ declare const registerLocale: (code: string, translations: Partial<Translations>) => void;
141
+ /**
142
+ * Dynamically import a built-in locale and register it. Returns the loaded
143
+ * translations or `null` if the locale isn't a known built-in. Custom
144
+ * locales registered via {@link registerLocale} bypass this loader.
145
+ */
146
+ declare const loadLocale: (locale: string) => Promise<Partial<Translations> | null>;
147
+
148
+ /**
149
+ * Author identity persisted by the widget — alias of core's
150
+ * `SitepingIdentity` (one concept, one shape; the alias keeps the widget's
151
+ * historical export name working).
152
+ */
153
+ type Identity = SitepingIdentity;
8
154
 
9
155
  /**
10
156
  * Initialize the Siteping feedback widget.
@@ -21,4 +167,4 @@ interface Identity {
21
167
  */
22
168
  declare function initSiteping(config: SitepingConfig): SitepingInstance;
23
169
 
24
- export { type Identity, initSiteping };
170
+ export { type Identity, type TFunction, type TranslationKey, type Translations, initSiteping, loadLocale, registerLocale };