@petrarca/sonnet-schema-designer 0.7.0 → 0.9.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.
@@ -0,0 +1,3 @@
1
+ export { A as ABSENT_KEY, b as ABSENT_WIDGET, c as ANSWER_TYPE_LABELS, d as ANSWER_TYPE_LIMITS, e as AnswerFragment, f as AnswerType, g as AnswerTypeChange, B as BuiltinAnswerType, h as CHOICE_WITH_TEXT_WIDGET, i as CODEABLE_CONCEPT_ANSWER, j as CODING_ANSWER, l as ChoiceOption, m as Completion, n as Condition, o as ConditionalItems, p as DEFAULT_VALUE_TYPES, D as DesignerModel, F as FieldType, L as LIMIT_LABELS, q as LimitKeyword, r as Limits, s as LockedItem, t as NewItem, O as OTHER_OPTION, u as PathSegment, P as PropertyPath, w as QUANTITY_ANSWER, x as QuestionItem, Q as QuestionnaireDesignerCapabilities, y as QuestionnaireItem, z as QuestionnaireView, R as RecognizedAnswer, G as ResolvedQuestionnaireCapabilities, H as SectionItem, I as ShowIf, J as TextItem, U as UiSchemaMap, V as ValueTypeAnswer, K as ValueTypeSettings, M as absentProperty, _ as addItem, a1 as answerTypeFragment, a2 as answerTypeLabel, a3 as answeredOrExcused, a5 as changeAnswerType, a9 as choiceTextWhen, aa as classifyQuestionnaire, ab as codingBindingOf, ac as condition, ad as containerFields, ae as containerOrder, af as declaredReasons, aj as deleteItem, al as embeddedHints, am as getProperty, ap as isAsked, aq as isBuiltinAnswerType, ar as isComplete, at as isContainerType, av as isValidKey, aw as itemsOf, ax as keyFromText, ay as limitsFor, az as limitsOf, aB as moveItem, aH as optionsOf, aI as otherTextMember, aK as pathKey, aM as prop, aN as questionnaireCapabilitiesSchema, aO as rawChoiceAndText, aP as readConditional, aR as readReasons, aT as recognizeAnswerType, b0 as reorderItem, b1 as resolveQuestionnaireCapabilities, b2 as samePath, b5 as sectionPathOf, b6 as setChoiceTextWhen, b9 as setDefaultAnswer, bc as setHelp, bd as setItemText, be as setKey, bf as setKeywords, bh as setLimit, bi as setOptions, bj as setPlaceholder, bk as setPresentation, bm as setQuestionRequired, bn as setQuestionnaireText, bo as setReadOnly, bp as setReasons, bA as setSectionRepeats, bB as setShowIf, bE as setValueTypeSettings, bF as showIfToIf, bG as slot, bH as unlessReasonKey, bI as unlessReasonMember, bK as validateQuestionnaireCapabilities, bL as valueTypeAnswer, bM as valueTypeOf } from '../index-Cu6JZdYj.js';
2
+ import '@petrarca/sonnet-core/schema';
3
+ import 'zod';
@@ -0,0 +1,153 @@
1
+ import {
2
+ ABSENT_KEY,
3
+ ABSENT_WIDGET,
4
+ ANSWER_TYPE_LABELS,
5
+ ANSWER_TYPE_LIMITS,
6
+ CHOICE_WITH_TEXT_WIDGET,
7
+ CODEABLE_CONCEPT_ANSWER,
8
+ CODING_ANSWER,
9
+ DEFAULT_VALUE_TYPES,
10
+ LIMIT_LABELS,
11
+ OTHER_OPTION,
12
+ QUANTITY_ANSWER,
13
+ absentProperty,
14
+ addItem,
15
+ answerTypeFragment,
16
+ answerTypeLabel,
17
+ answeredOrExcused,
18
+ changeAnswerType,
19
+ choiceTextWhen,
20
+ classifyQuestionnaire,
21
+ codingBindingOf,
22
+ condition,
23
+ containerFields,
24
+ containerOrder,
25
+ declaredReasons,
26
+ deleteItem,
27
+ embeddedHints,
28
+ getProperty,
29
+ isAsked,
30
+ isBuiltinAnswerType,
31
+ isComplete,
32
+ isContainerType,
33
+ isValidKey,
34
+ itemsOf,
35
+ keyFromText,
36
+ limitsFor,
37
+ limitsOf,
38
+ moveItem,
39
+ optionsOf,
40
+ otherTextMember,
41
+ pathKey,
42
+ prop,
43
+ questionnaireCapabilitiesSchema,
44
+ rawChoiceAndText,
45
+ readConditional,
46
+ readReasons,
47
+ recognizeAnswerType,
48
+ reorderItem,
49
+ resolveQuestionnaireCapabilities,
50
+ samePath,
51
+ sectionPathOf,
52
+ setChoiceTextWhen,
53
+ setDefaultAnswer,
54
+ setHelp,
55
+ setItemText,
56
+ setKey,
57
+ setKeywords,
58
+ setLimit,
59
+ setOptions,
60
+ setPlaceholder,
61
+ setPresentation,
62
+ setQuestionRequired,
63
+ setQuestionnaireText,
64
+ setReadOnly,
65
+ setReasons,
66
+ setSectionRepeats,
67
+ setShowIf,
68
+ setValueTypeSettings,
69
+ showIfToIf,
70
+ slot,
71
+ unlessReasonKey,
72
+ unlessReasonMember,
73
+ validateQuestionnaireCapabilities,
74
+ valueTypeAnswer,
75
+ valueTypeOf
76
+ } from "../chunk-MVPNMAVL.js";
77
+ export {
78
+ ABSENT_KEY,
79
+ ABSENT_WIDGET,
80
+ ANSWER_TYPE_LABELS,
81
+ ANSWER_TYPE_LIMITS,
82
+ CHOICE_WITH_TEXT_WIDGET,
83
+ CODEABLE_CONCEPT_ANSWER,
84
+ CODING_ANSWER,
85
+ DEFAULT_VALUE_TYPES,
86
+ LIMIT_LABELS,
87
+ OTHER_OPTION,
88
+ QUANTITY_ANSWER,
89
+ absentProperty,
90
+ addItem,
91
+ answerTypeFragment,
92
+ answerTypeLabel,
93
+ answeredOrExcused,
94
+ changeAnswerType,
95
+ choiceTextWhen,
96
+ classifyQuestionnaire,
97
+ codingBindingOf,
98
+ condition,
99
+ containerFields,
100
+ containerOrder,
101
+ declaredReasons,
102
+ deleteItem,
103
+ embeddedHints,
104
+ getProperty,
105
+ isAsked,
106
+ isBuiltinAnswerType,
107
+ isComplete,
108
+ isContainerType,
109
+ isValidKey,
110
+ itemsOf,
111
+ keyFromText,
112
+ limitsFor,
113
+ limitsOf,
114
+ moveItem,
115
+ optionsOf,
116
+ otherTextMember,
117
+ pathKey,
118
+ prop,
119
+ questionnaireCapabilitiesSchema,
120
+ rawChoiceAndText,
121
+ readConditional,
122
+ readReasons,
123
+ recognizeAnswerType,
124
+ reorderItem,
125
+ resolveQuestionnaireCapabilities,
126
+ samePath,
127
+ sectionPathOf,
128
+ setChoiceTextWhen,
129
+ setDefaultAnswer,
130
+ setHelp,
131
+ setItemText,
132
+ setKey,
133
+ setKeywords,
134
+ setLimit,
135
+ setOptions,
136
+ setPlaceholder,
137
+ setPresentation,
138
+ setQuestionRequired,
139
+ setQuestionnaireText,
140
+ setReadOnly,
141
+ setReasons,
142
+ setSectionRepeats,
143
+ setShowIf,
144
+ setValueTypeSettings,
145
+ showIfToIf,
146
+ slot,
147
+ unlessReasonKey,
148
+ unlessReasonMember,
149
+ validateQuestionnaireCapabilities,
150
+ valueTypeAnswer,
151
+ valueTypeOf
152
+ };
153
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@petrarca/sonnet-schema-designer",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "description": "Visual designer for authoring JSON Schema (and UI Schema presentation hints) for the Petrarca Sonnet component library",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -13,6 +13,10 @@
13
13
  ".": {
14
14
  "types": "./dist/index.d.ts",
15
15
  "import": "./dist/index.js"
16
+ },
17
+ "./questionnaire": {
18
+ "types": "./dist/questionnaire/index.d.ts",
19
+ "import": "./dist/questionnaire/index.js"
16
20
  }
17
21
  },
18
22
  "files": [
@@ -20,10 +24,10 @@
20
24
  ],
21
25
  "dependencies": {
22
26
  "lucide-react": "^0.553.0",
23
- "zod": "^4.3.6",
24
- "@petrarca/sonnet-core": "0.7.0",
25
- "@petrarca/sonnet-ui": "0.7.0",
26
- "@petrarca/sonnet-forms": "0.7.0"
27
+ "zod": "^4.6.7",
28
+ "@petrarca/sonnet-core": "0.9.0",
29
+ "@petrarca/sonnet-forms": "0.9.0",
30
+ "@petrarca/sonnet-ui": "0.9.0"
27
31
  },
28
32
  "peerDependencies": {
29
33
  "react": ">=19",
@@ -31,17 +35,17 @@
31
35
  "tailwindcss": ">=3"
32
36
  },
33
37
  "devDependencies": {
34
- "@types/react": "^19.0.0",
35
- "@types/react-dom": "^19.0.0",
36
- "tsup": "^8.4.0",
37
- "typescript": "^5.9.2"
38
+ "@types/react": "^19.3.0",
39
+ "@types/react-dom": "^19.3.0",
40
+ "tsup": "^9.0.0",
41
+ "typescript": "^5.9.3"
38
42
  },
39
43
  "scripts": {
40
44
  "build": "tsup",
41
45
  "dev": "tsup --watch",
42
46
  "typecheck": "tsc --noEmit",
43
47
  "lint": "tsc --noEmit",
44
- "test": "vitest run",
48
+ "test": "vitest run --config ../../vitest.config.ts",
45
49
  "clean": "rm -rf dist *.tsbuildinfo"
46
50
  }
47
51
  }