Skip to content

Commit

Permalink
Merge pull request #106 from NDLA-H5P/feature/tag-editor-widget
Browse files Browse the repository at this point in the history
  • Loading branch information
boyum authored Mar 8, 2022
2 parents 95556aa + 00eb69e commit c1f1917
Show file tree
Hide file tree
Showing 29 changed files with 1,381 additions and 135 deletions.
12 changes: 12 additions & 0 deletions .h5pignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
node_modules
src
.babelrc
.gitignore
.h5pignore
package.json
package-lock.json
README.md
webpack.config.js
.storybook
storybook-static
docs
13 changes: 4 additions & 9 deletions H5P.d.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
import {
NDLATagsEditor,
NDLATagsEditorParams,
} from "./src/widgets/NDLATagsEditor.widget";
import {
NDLATagsPicker,
NDLATagsPickerParams,
} from "./src/widgets/NDLATagsPicker.widget";
import { NDLATagsEditor } from "./src/widgets/NDLATagsEditor.widget";
import { NDLATagsPicker } from "./src/widgets/NDLATagsPicker.widget";
import { H5PField } from "./src/types/H5P/H5PField";
import { H5PForm } from "./src/types/H5P/H5PForm";

export interface H5PObject {
EventDispatcher: typeof EventDispatcher;
getPath: (path: string, contentId: string) => string;
createUUID: () => string;
}

export interface H5PEditorObject {
Expand Down Expand Up @@ -49,7 +44,7 @@ export interface H5PEditorObject {
*/
processSemanticsChunk: (
semanticsChunk: H5PField | Array<H5PField>,
params: NDLATagsEditorParams | NDLATagsPickerParams,
params: unknown,
$wrapper: JQuery<HTMLElement>,
parent: H5PForm,
) => void;
Expand Down
11 changes: 4 additions & 7 deletions language/en.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
{
"libraryStrings": {
"context-menu_edit": "Edit",
"context-menu_delete": "Delete",
"dialog_close": "Close dialog",
"draggable_selected": "Press arrow keys to move. Press escape to unselect.",
"draggable_not-selected": "Press enter to select",
"grid-indicator_label": "Click and drag to create a new element",
"toolbar-button-type_map-color": "Map color",
"toolbar-button-type_create-box": "Create box"
"semantics-form_save": "Save",
"tag_edit": "Edit",
"tag_delete": "Delete",
"tag_add": "Add"
}
}
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"machineName": "H5PEditor.NDLATimeline",
"majorVersion": 0,
"minorVersion": 0,
"patchVersion": 0,
"patchVersion": 1,
"runnable": 0,
"preloadedJs": [
{
Expand Down
Loading

0 comments on commit c1f1917

Please sign in to comment.