@nuniapp/widget 0.1.10 → 0.1.12
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/README.md +2 -0
- package/dist/{dom-BWcT-q7S.js → dom-YEIbiA4X.js} +3 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +309 -76
- package/dist/nuni-screenshot.global.js +1 -1
- package/dist/nuni.global.js +18 -5
- package/dist/{screenshot-tools-Dk-xNV0c.js → screenshot-tools-BFj-93o4.js} +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -78,6 +78,8 @@ Using React? Use [`@nuniapp/react`](https://www.npmjs.com/package/@nuniapp/react
|
|
|
78
78
|
|
|
79
79
|
- Press **C** (or the Comment button), click any element and write your comment. Select text to comment on the words, or drag a box to comment on an area.
|
|
80
80
|
- Everything works from the keyboard: while adding, the arrow keys move between elements and Enter comments.
|
|
81
|
+
- Press **Shift+C** (Shift and the `hotkey`; or the eye button) to hide the pins and see the page clean. Adding a comment or opening one shows them again.
|
|
82
|
+
- The comments list shows this page first, then every other page's comments grouped under its path. Search looks through all of them, and a comment on another page opens there.
|
|
81
83
|
- Pins follow their element through layout changes, responsive breakpoints and content edits. If an element is removed, its comment is listed as "Couldn't find on this page" instead of pinned to the wrong thing.
|
|
82
84
|
- Your name is remembered in this browser. You can edit and delete your own comments.
|
|
83
85
|
- The site owner claims the project from the widget ("Claim Nuni", GitHub sign-in) and can then resolve, reopen and delete comments.
|
|
@@ -51,6 +51,9 @@ const LIMITS = {
|
|
|
51
51
|
/** Per page, the widget loads this many newest open and resolved comments. */
|
|
52
52
|
pageOpenLimit: 1e3,
|
|
53
53
|
pageResolvedLimit: 200,
|
|
54
|
+
/** The widget's panel lists this many newest comments from every page. */
|
|
55
|
+
siteOpenLimit: 300,
|
|
56
|
+
siteResolvedLimit: 100,
|
|
54
57
|
/** The newest of a commenter's own comments, across pages. */
|
|
55
58
|
yoursLimit: 100,
|
|
56
59
|
/** Most console or network entries kept with one comment. */
|
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,8 @@ declare const EN: {
|
|
|
15
15
|
pickElement: string;
|
|
16
16
|
allComments: string;
|
|
17
17
|
openCount: string;
|
|
18
|
+
hideComments: string;
|
|
19
|
+
hideCommentsKey: string;
|
|
18
20
|
commentSelection: string;
|
|
19
21
|
commentSelectionKey: string;
|
|
20
22
|
pickHint: string;
|
|
@@ -49,6 +51,11 @@ declare const EN: {
|
|
|
49
51
|
yourName: string;
|
|
50
52
|
leaveComment: string;
|
|
51
53
|
notYou: string;
|
|
54
|
+
signIn: string;
|
|
55
|
+
signInGithub: string;
|
|
56
|
+
signOut: string;
|
|
57
|
+
signedInAs: string;
|
|
58
|
+
signedInGithub: string;
|
|
52
59
|
cancel: string;
|
|
53
60
|
post: string;
|
|
54
61
|
posting: string;
|
|
@@ -122,7 +129,12 @@ declare const EN: {
|
|
|
122
129
|
copied: string;
|
|
123
130
|
copyFailed: string;
|
|
124
131
|
signedIn: string;
|
|
132
|
+
commenterSignedIn: string;
|
|
133
|
+
signedOut: string;
|
|
125
134
|
linkGone: string;
|
|
135
|
+
commentsHidden: string;
|
|
136
|
+
commentsHiddenKey: string;
|
|
137
|
+
commentsShown: string;
|
|
126
138
|
enterName: string;
|
|
127
139
|
writeFirst: string;
|
|
128
140
|
changeTextFirst: string;
|