@nuniapp/widget 0.1.6 → 0.1.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.
- package/dist/index.d.ts +11 -5
- package/dist/index.js +650 -255
- package/dist/nuni.global.js +260 -66
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -30,6 +30,8 @@ declare const EN: {
|
|
|
30
30
|
noOpenKey: string;
|
|
31
31
|
noResolved: string;
|
|
32
32
|
notFoundHere: string;
|
|
33
|
+
searchComments: string;
|
|
34
|
+
noMatches: string;
|
|
33
35
|
otherPages: string;
|
|
34
36
|
openOnPage: string;
|
|
35
37
|
replyCount: {
|
|
@@ -42,14 +44,15 @@ declare const EN: {
|
|
|
42
44
|
yourName: string;
|
|
43
45
|
leaveComment: string;
|
|
44
46
|
notYou: string;
|
|
45
|
-
screenshotAlt: string;
|
|
46
|
-
screenshotNote: string;
|
|
47
|
-
remove: string;
|
|
48
47
|
cancel: string;
|
|
49
48
|
post: string;
|
|
50
49
|
posting: string;
|
|
51
50
|
save: string;
|
|
52
51
|
send: string;
|
|
52
|
+
charsLeft: {
|
|
53
|
+
one: string;
|
|
54
|
+
other: string;
|
|
55
|
+
};
|
|
53
56
|
pinLabel: string;
|
|
54
57
|
commentBy: string;
|
|
55
58
|
openScreenshot: string;
|
|
@@ -104,7 +107,7 @@ type MessageKey = keyof typeof EN;
|
|
|
104
107
|
type Messages = { [K in MessageKey]: string | Plural; };
|
|
105
108
|
//#endregion
|
|
106
109
|
//#region src/config.d.ts
|
|
107
|
-
type Position = "bottom-right" | "bottom-left" | "top-right" | "top-left";
|
|
110
|
+
type Position = "bottom-right" | "bottom-center" | "bottom-left" | "top-right" | "top-center" | "top-left";
|
|
108
111
|
type Theme = "auto" | "light" | "dark";
|
|
109
112
|
/** Built-in page keys, for when `getPageKey` is not set. */
|
|
110
113
|
type PageKey = "path" | "path+search" | "path+hash";
|
|
@@ -124,7 +127,10 @@ interface NuniOptions {
|
|
|
124
127
|
* the path (default), the path and query string, or the path and hash.
|
|
125
128
|
*/
|
|
126
129
|
pageKey?: PageKey;
|
|
127
|
-
/**
|
|
130
|
+
/**
|
|
131
|
+
* Where the toolbar starts. Default "bottom-right". Visitors can drag it to
|
|
132
|
+
* another corner or edge middle, and their choice is remembered.
|
|
133
|
+
*/
|
|
128
134
|
position?: Position;
|
|
129
135
|
/** Brand color for buttons, pins and highlights (any CSS color). */
|
|
130
136
|
accentColor?: string;
|