@siteping/widget 0.10.6 → 0.10.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.
- package/dist/chunk-7ZBKJ6NW.js +1796 -0
- package/dist/chunk-7ZBKJ6NW.js.map +1 -0
- package/dist/chunk-FDQWFGRR.js +1796 -0
- package/dist/chunk-FDQWFGRR.js.map +1 -0
- package/dist/chunk-GKRKCSID.cjs +1796 -0
- package/dist/chunk-GKRKCSID.cjs.map +1 -0
- package/dist/chunk-NVNA5AI2.cjs +1796 -0
- package/dist/chunk-NVNA5AI2.cjs.map +1 -0
- package/dist/i18n.d.cts +67 -0
- package/dist/i18n.d.ts +67 -0
- package/dist/index.cjs +40 -40
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +152 -6
- package/dist/index.d.ts +152 -6
- package/dist/index.global.js +74 -74
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +28 -28
- package/dist/index.js.map +1 -1
- package/dist/panel-7URHNKQH.js +2 -0
- package/dist/panel-7URHNKQH.js.map +1 -0
- package/dist/panel-FUPBUN6F.js +2 -0
- package/dist/panel-FUPBUN6F.js.map +1 -0
- package/dist/panel-M2QKMFYO.cjs +2 -0
- package/dist/panel-M2QKMFYO.cjs.map +1 -0
- package/dist/panel-XUTDVTAR.cjs +2 -0
- package/dist/panel-XUTDVTAR.cjs.map +1 -0
- package/dist/react.cjs +47 -47
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +41 -41
- package/dist/react.js.map +1 -1
- package/dist/screenshot-storage.d.cts +5 -0
- package/dist/screenshot-storage.d.ts +5 -0
- package/dist/siteping-core.d.cts +8 -3
- package/dist/siteping-core.d.ts +8 -3
- package/dist/store-helpers.d.cts +87 -0
- package/dist/store-helpers.d.ts +87 -0
- package/dist/type-utils.d.cts +13 -44
- package/dist/type-utils.d.ts +13 -44
- package/dist/types.d.cts +147 -110
- package/dist/types.d.ts +147 -110
- package/dist/wire.d.cts +35 -0
- package/dist/wire.d.ts +35 -0
- package/package.json +2 -1
- package/dist/chunk-D2AVRF24.js +0 -1796
- package/dist/chunk-D2AVRF24.js.map +0 -1
- package/dist/chunk-GRKBXAGP.cjs +0 -1796
- package/dist/chunk-GRKBXAGP.cjs.map +0 -1
- package/dist/panel-LMVRKAQH.cjs +0 -2
- package/dist/panel-LMVRKAQH.cjs.map +0 -1
- package/dist/panel-OXUE7PJY.js +0 -2
- 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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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 };
|