@instructure/platform-notebook 0.2.0 → 0.4.0
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/ContentWithNoteWrapper.d.ts +9 -0
- package/dist/ContentWithNoteWrapper.d.ts.map +1 -0
- package/dist/Highlight.d.ts +11 -0
- package/dist/Highlight.d.ts.map +1 -0
- package/dist/NoteCard.d.ts +32 -0
- package/dist/NoteCard.d.ts.map +1 -0
- package/dist/NoteChip.d.ts +8 -0
- package/dist/NoteChip.d.ts.map +1 -0
- package/dist/NoteReactionMenu.d.ts +7 -0
- package/dist/NoteReactionMenu.d.ts.map +1 -0
- package/dist/NotebookTray.d.ts +6 -0
- package/dist/NotebookTray.d.ts.map +1 -0
- package/dist/NotesListView.d.ts +30 -0
- package/dist/NotesListView.d.ts.map +1 -0
- package/dist/SingleNote.d.ts +15 -0
- package/dist/SingleNote.d.ts.map +1 -0
- package/dist/TranslationsContext.d.ts.map +1 -1
- package/dist/highlighter.d.ts +1 -0
- package/dist/highlighter.d.ts.map +1 -1
- package/dist/index.d.ts +9 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1164 -372
- package/dist/utils.d.ts +1 -0
- package/dist/utils.d.ts.map +1 -1
- package/locales/en.json +6 -1
- package/package.json +1 -1
package/dist/utils.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export type RecoverHighlightsResult = {
|
|
|
16
16
|
noteIdsForDelete: string[];
|
|
17
17
|
};
|
|
18
18
|
export declare const recoverHighlights: (parentRef: Element, notes: NoteType[], pageLastModifiedAt: string) => RecoverHighlightsResult;
|
|
19
|
+
export declare const removeDeletedNote: (note: NoteType, parentRef: Element) => void;
|
|
19
20
|
export declare const scrollToHighlight: (id: string) => void;
|
|
20
21
|
export declare const getPlacement: (range: Range) => TextSelectionPlacement | null;
|
|
21
22
|
export declare const isOverlapping: (newRange: TextPositionSelectorType, existingRanges: TextPositionSelectorType[]) => boolean;
|
package/dist/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAEtF,eAAO,MAAM,cAAc,GAAI,MAAM,IAAI,KAAG,MAQ3C,CAAA;AAED,eAAO,MAAM,0BAA0B,GAAI,MAAM,IAAI,KAAG,MAQvD,CAAA;AAED,eAAO,MAAM,cAAc,GACzB,SAAS,OAAO,EAChB,GAAG,SAAS,MAAM,EAAE,KACnB,KAAK,CAAC;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CA8BtC,CAAA;AAmBD,eAAO,MAAM,wCAAwC,GACnD,MAAM,OAAO,EACb,cAAc,MAAM,EACpB,aAAa,MAAM,EACnB,WAAW,MAAM,KAChB,kBAAkB,GAAG,IAgDvB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACnC,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,cAAc,EAAE,mBAAmB,EAAE,CAAA;IACrC,gBAAgB,EAAE,MAAM,EAAE,CAAA;CAC3B,CAAA;AAcD,eAAO,MAAM,iBAAiB,GAC5B,WAAW,OAAO,EAClB,OAAO,QAAQ,EAAE,EACjB,oBAAoB,MAAM,KACzB,uBAsCF,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,MAAM,QAAQ,EAAE,WAAW,OAAO,KAAG,IAQtE,CAAA;AAED,eAAO,MAAM,iBAAiB,GAAI,IAAI,MAAM,KAAG,IAc9C,CAAA;AAKD,eAAO,MAAM,YAAY,GAAI,OAAO,KAAK,KAAG,sBAAsB,GAAG,IAmEpE,CAAA;AAED,eAAO,MAAM,aAAa,GACxB,UAAU,wBAAwB,EAClC,gBAAgB,wBAAwB,EAAE,KACzC,OAOF,CAAA;AAED,eAAO,MAAM,wBAAwB,GAAI,IAAI,MAAM,KAAG,MAErD,CAAA;AAED,eAAO,MAAM,6BAA6B,GAAI,IAAI,MAAM,KAAG,MAE1D,CAAA;AAED,eAAO,MAAM,2BAA2B,GAAI,IAAI,MAAM,KAAG,MAExD,CAAA"}
|
package/locales/en.json
CHANGED
|
@@ -4,10 +4,13 @@
|
|
|
4
4
|
"important": "Important",
|
|
5
5
|
"unclear": "Unclear",
|
|
6
6
|
|
|
7
|
+
"back": "Back",
|
|
7
8
|
"editNote": "Edit note",
|
|
8
9
|
"save": "Save",
|
|
9
10
|
"cancel": "Cancel",
|
|
10
11
|
"deleteNote": "Delete note",
|
|
12
|
+
"note": "note",
|
|
13
|
+
"addNotePrompt": "Add note (optional)",
|
|
11
14
|
"removeFromNotebook": "Remove from Notebook",
|
|
12
15
|
"addNoteOptional": "Add a note (optional).",
|
|
13
16
|
"markImportant": "Mark important",
|
|
@@ -34,5 +37,7 @@
|
|
|
34
37
|
"allNotes": "All notes",
|
|
35
38
|
"closeNotebookPanel": "Close Notebook panel",
|
|
36
39
|
|
|
37
|
-
"featureDescription": "To use the Notebook feature, highlight an excerpt from your learning material to flag it as 'confusing' or 'important' and leave an optional note."
|
|
40
|
+
"featureDescription": "To use the Notebook feature, highlight an excerpt from your learning material to flag it as 'confusing' or 'important' and leave an optional note.",
|
|
41
|
+
|
|
42
|
+
"highlightUnavailable": "The content you highlighted is no longer available."
|
|
38
43
|
}
|