@yungu-fed/question-editor 0.1.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/README.md +79 -0
- package/dist/index.cjs +3 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5783 -0
- package/dist/model/choice.d.ts +12 -0
- package/dist/model/choice.d.ts.map +1 -0
- package/dist/model/question-element-specs.d.ts +25 -0
- package/dist/model/question-element-specs.d.ts.map +1 -0
- package/dist/model/question-model.d.ts +14 -0
- package/dist/model/question-model.d.ts.map +1 -0
- package/dist/model/question-structure.d.ts +88 -0
- package/dist/model/question-structure.d.ts.map +1 -0
- package/dist/model/rich-text-blank.d.ts +3 -0
- package/dist/model/rich-text-blank.d.ts.map +1 -0
- package/dist/model/rich-text.d.ts +7 -0
- package/dist/model/rich-text.d.ts.map +1 -0
- package/dist/model/types.d.ts +171 -0
- package/dist/model/types.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentBlankGroupEditor.d.ts +14 -0
- package/dist/question/content-editor/QuestionContentBlankGroupEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentEditor.d.ts +15 -0
- package/dist/question/content-editor/QuestionContentEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentEditorUi.d.ts +95 -0
- package/dist/question/content-editor/QuestionContentEditorUi.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentElementEditor.d.ts +16 -0
- package/dist/question/content-editor/QuestionContentElementEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentFillTextEditor.d.ts +16 -0
- package/dist/question/content-editor/QuestionContentFillTextEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentJudgementGroupEditor.d.ts +14 -0
- package/dist/question/content-editor/QuestionContentJudgementGroupEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentOptionGroupEditor.d.ts +15 -0
- package/dist/question/content-editor/QuestionContentOptionGroupEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentRichTextEditor.d.ts +13 -0
- package/dist/question/content-editor/QuestionContentRichTextEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentSubquestionAddChildDropdown.d.ts +13 -0
- package/dist/question/content-editor/QuestionContentSubquestionAddChildDropdown.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentSubquestionChildEditor.d.ts +20 -0
- package/dist/question/content-editor/QuestionContentSubquestionChildEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentSubquestionChildElements.d.ts +14 -0
- package/dist/question/content-editor/QuestionContentSubquestionChildElements.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionContentSubquestionGroupEditor.d.ts +15 -0
- package/dist/question/content-editor/QuestionContentSubquestionGroupEditor.d.ts.map +1 -0
- package/dist/question/content-editor/QuestionRichTextField.d.ts +16 -0
- package/dist/question/content-editor/QuestionRichTextField.d.ts.map +1 -0
- package/dist/question/content-editor/helpers.d.ts +62 -0
- package/dist/question/content-editor/helpers.d.ts.map +1 -0
- package/dist/question/content-editor/i18n.d.ts +8 -0
- package/dist/question/content-editor/i18n.d.ts.map +1 -0
- package/dist/question/content-editor/structure.d.ts +21 -0
- package/dist/question/content-editor/structure.d.ts.map +1 -0
- package/dist/question/content-editor/subquestion-group-editor-helpers.d.ts +7 -0
- package/dist/question/content-editor/subquestion-group-editor-helpers.d.ts.map +1 -0
- package/dist/question/content-editor/types.d.ts +178 -0
- package/dist/question/content-editor/types.d.ts.map +1 -0
- package/dist/question/elements/fill/inline-fill-plugin.d.ts +3 -0
- package/dist/question/elements/fill/inline-fill-plugin.d.ts.map +1 -0
- package/dist/question/i18n/index.d.ts +3 -0
- package/dist/question/i18n/index.d.ts.map +1 -0
- package/dist/question/i18n/messages.d.ts +62 -0
- package/dist/question/i18n/messages.d.ts.map +1 -0
- package/dist/question/player/QuestionBlankGroupPlayer.d.ts +14 -0
- package/dist/question/player/QuestionBlankGroupPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionFillTextCandidateButton.d.ts +12 -0
- package/dist/question/player/QuestionFillTextCandidateButton.d.ts.map +1 -0
- package/dist/question/player/QuestionFillTextContentPlayer.d.ts +15 -0
- package/dist/question/player/QuestionFillTextContentPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionFillTextPlayer.d.ts +15 -0
- package/dist/question/player/QuestionFillTextPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionJudgementGroupPlayer.d.ts +15 -0
- package/dist/question/player/QuestionJudgementGroupPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionOptionGroupPlayer.d.ts +15 -0
- package/dist/question/player/QuestionOptionGroupPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionPlayer.d.ts +4 -0
- package/dist/question/player/QuestionPlayer.d.ts.map +1 -0
- package/dist/question/player/QuestionPlayerComposite.d.ts +16 -0
- package/dist/question/player/QuestionPlayerComposite.d.ts.map +1 -0
- package/dist/question/player/QuestionPlayerElement.d.ts +15 -0
- package/dist/question/player/QuestionPlayerElement.d.ts.map +1 -0
- package/dist/question/player/helpers.d.ts +12 -0
- package/dist/question/player/helpers.d.ts.map +1 -0
- package/dist/question/player/types.d.ts +50 -0
- package/dist/question/player/types.d.ts.map +1 -0
- package/dist/question/preview/QuestionCompositePreview.d.ts +12 -0
- package/dist/question/preview/QuestionCompositePreview.d.ts.map +1 -0
- package/dist/question/preview/QuestionPreview.d.ts +14 -0
- package/dist/question/preview/QuestionPreview.d.ts.map +1 -0
- package/dist/question/renderers/QuestionBlankGroupView.d.ts +10 -0
- package/dist/question/renderers/QuestionBlankGroupView.d.ts.map +1 -0
- package/dist/question/renderers/QuestionContentElementView.d.ts +11 -0
- package/dist/question/renderers/QuestionContentElementView.d.ts.map +1 -0
- package/dist/question/renderers/QuestionFillTextView.d.ts +11 -0
- package/dist/question/renderers/QuestionFillTextView.d.ts.map +1 -0
- package/dist/question/renderers/QuestionJudgementGroupView.d.ts +11 -0
- package/dist/question/renderers/QuestionJudgementGroupView.d.ts.map +1 -0
- package/dist/question/renderers/QuestionOptionGroupView.d.ts +11 -0
- package/dist/question/renderers/QuestionOptionGroupView.d.ts.map +1 -0
- package/dist/question/renderers/QuestionRichContentView.d.ts +8 -0
- package/dist/question/renderers/QuestionRichContentView.d.ts.map +1 -0
- package/dist/question/renderers/QuestionStandardAnswerPanel.d.ts +11 -0
- package/dist/question/renderers/QuestionStandardAnswerPanel.d.ts.map +1 -0
- package/dist/question/renderers/helpers.d.ts +14 -0
- package/dist/question/renderers/helpers.d.ts.map +1 -0
- package/dist/question/rich-text/RichTextField.d.ts +14 -0
- package/dist/question/rich-text/RichTextField.d.ts.map +1 -0
- package/dist/question/rich-text/RichTextFieldTestToolbar.d.ts +6 -0
- package/dist/question/rich-text/RichTextFieldTestToolbar.d.ts.map +1 -0
- package/dist/question/rich-text/rich-text-toolbar-context.d.ts +3 -0
- package/dist/question/rich-text/rich-text-toolbar-context.d.ts.map +1 -0
- package/dist/question/shared/subquestion-numbering.d.ts +2 -0
- package/dist/question/shared/subquestion-numbering.d.ts.map +1 -0
- package/dist/question/structure-editor/QuestionStructureCanvas.d.ts +14 -0
- package/dist/question/structure-editor/QuestionStructureCanvas.d.ts.map +1 -0
- package/dist/question/structure-editor/QuestionStructureEditor.d.ts +9 -0
- package/dist/question/structure-editor/QuestionStructureEditor.d.ts.map +1 -0
- package/dist/question/structure-editor/QuestionStructurePalette.d.ts +10 -0
- package/dist/question/structure-editor/QuestionStructurePalette.d.ts.map +1 -0
- package/dist/question/structure-editor/QuestionStructureSettings.d.ts +13 -0
- package/dist/question/structure-editor/QuestionStructureSettings.d.ts.map +1 -0
- package/dist/question/structure-editor/structure-editor-labels.d.ts +53 -0
- package/dist/question/structure-editor/structure-editor-labels.d.ts.map +1 -0
- package/dist/utils/cn.d.ts +3 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/package.json +86 -0
package/package.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@yungu-fed/question-editor",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"sideEffects": [
|
|
9
|
+
"**/*.css"
|
|
10
|
+
],
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"import": "./dist/index.js",
|
|
16
|
+
"require": "./dist/index.cjs"
|
|
17
|
+
},
|
|
18
|
+
"./style.css": {
|
|
19
|
+
"default": "./dist/index.css"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"README.md"
|
|
25
|
+
],
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"@types/react": ">=16.14.0 <20",
|
|
28
|
+
"react": ">=16.14.0 <20",
|
|
29
|
+
"react-dom": ">=16.14.0 <20"
|
|
30
|
+
},
|
|
31
|
+
"peerDependenciesMeta": {
|
|
32
|
+
"@types/react": {
|
|
33
|
+
"optional": true
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@eslint/js": "^10.0.1",
|
|
38
|
+
"@ladle/react": "2.17.2",
|
|
39
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
40
|
+
"@testing-library/react": "12.1.5",
|
|
41
|
+
"@types/node": "^24.12.3",
|
|
42
|
+
"@types/react": "16.14.70",
|
|
43
|
+
"@types/react-dom": "16.9.25",
|
|
44
|
+
"@vitejs/plugin-react": "6.0.1",
|
|
45
|
+
"@vitest/coverage-v8": "^4.1.8",
|
|
46
|
+
"clsx": "^2.1.1",
|
|
47
|
+
"eslint": "^10.3.0",
|
|
48
|
+
"eslint-config-prettier": "^10.1.8",
|
|
49
|
+
"eslint-plugin-import-x": "^4.16.2",
|
|
50
|
+
"eslint-plugin-perfectionist": "^5.9.0",
|
|
51
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
52
|
+
"eslint-plugin-security": "^4.0.0",
|
|
53
|
+
"eslint-plugin-sonarjs": "^4.0.3",
|
|
54
|
+
"eslint-plugin-unused-imports": "^4.4.1",
|
|
55
|
+
"globals": "^17.6.0",
|
|
56
|
+
"jsdom": "^29.1.1",
|
|
57
|
+
"react": "16.14.0",
|
|
58
|
+
"react-dom": "16.14.0",
|
|
59
|
+
"stylelint": "^17.13.0",
|
|
60
|
+
"stylelint-config-standard": "^40.0.0",
|
|
61
|
+
"stylelint-file-max-lines": "^1.0.0",
|
|
62
|
+
"typescript": "~6.0.3",
|
|
63
|
+
"typescript-eslint": "^8.59.1",
|
|
64
|
+
"vite": "8.0.12",
|
|
65
|
+
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
66
|
+
"vitest": "^4.1.8"
|
|
67
|
+
},
|
|
68
|
+
"dependencies": {
|
|
69
|
+
"@yungu-fed/rich-text-editor": "0.1.0",
|
|
70
|
+
"ulid": "^3.0.2"
|
|
71
|
+
},
|
|
72
|
+
"//": "@yungu-fed/rich-text-editor: workspace:^",
|
|
73
|
+
"scripts": {
|
|
74
|
+
"build": "pnpm run typecheck && vite build && tsc -p tsconfig.types.json",
|
|
75
|
+
"build:watch": "vite build --watch",
|
|
76
|
+
"build-ladle": "ladle build --viteConfig ./ladle.vite.config.ts",
|
|
77
|
+
"check": "pnpm run checkstyle && pnpm run lint && pnpm run test && pnpm run build && pnpm run build-ladle",
|
|
78
|
+
"checkstyle": "stylelint \"src/**/*.css\" --allow-empty-input",
|
|
79
|
+
"ladle": "ladle serve --viteConfig ./ladle.vite.config.ts",
|
|
80
|
+
"lint": "eslint .",
|
|
81
|
+
"test": "vitest run --passWithNoTests",
|
|
82
|
+
"test:coverage": "vitest run --coverage",
|
|
83
|
+
"test:watch": "vitest",
|
|
84
|
+
"typecheck": "tsc -b"
|
|
85
|
+
}
|
|
86
|
+
}
|