@jxsuite/schema 2.1.0 → 2.2.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.
@@ -112,7 +112,7 @@
112
112
  },
113
113
  "StyleObject": {
114
114
  "additionalProperties": {
115
- "oneOf": [
115
+ "anyOf": [
116
116
  {
117
117
  "type": "string"
118
118
  },
@@ -124,8 +124,29 @@
124
124
  }
125
125
  ]
126
126
  },
127
- "description": "CSS style definition. camelCase property names follow CSSOM convention. Keys starting with :, ., &, or [ are treated as nested CSS selectors. Keys matching $media breakpoint names (or other @-prefixed at-rules) group nested rules. Nesting is recursive: selector and at-rule groups may nest to arbitrary depth (e.g. breakpoint → selector → pseudo-class), mirroring the compiler's recursive emission.",
128
- "properties": {},
127
+ "description": "CSS style definition. camelCase property names follow CSSOM convention. Keys starting with :, ., &, or [ are treated as nested CSS selectors. Keys matching $media breakpoint names (or other @-prefixed at-rules) group nested rules. Nesting is recursive: selector and at-rule groups may nest to arbitrary depth (e.g. breakpoint → selector → pseudo-class), mirroring the compiler's recursive emission. An object carrying $ref is a reactive VALUE, and the runtime reads it as one. It also matches the nested-block branch vacuously, since a block admits a string under any key, which is why these branches are anyOf rather than oneOf. A DECLARATION at-rule (@font-face, @property, @position-try, @counter-style) may hold an ARRAY of blocks, which is that key written more than once, in order: an object's keys are unique, so @font-face — the at-rule whose identity is not in its key — could not otherwise state a family's second weight at all.",
128
+ "patternProperties": {
129
+ "^@(font-face|property|position-try|counter-style)": {
130
+ "anyOf": [
131
+ {
132
+ "$ref": "#/$defs/StyleObject"
133
+ },
134
+ {
135
+ "items": {
136
+ "$ref": "#/$defs/StyleObject"
137
+ },
138
+ "minItems": 1,
139
+ "type": "array"
140
+ }
141
+ ]
142
+ }
143
+ },
144
+ "properties": {
145
+ "$description": {
146
+ "description": "Why this rule exists. Emitted as a comment by static builds, ignored at runtime.",
147
+ "type": "string"
148
+ }
149
+ },
129
150
  "type": "object"
130
151
  }
131
152
  },