@speclynx/apidom-parser-adapter-openapi-json-3-0 2.11.0 → 2.12.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.
@@ -11151,6 +11151,53 @@ var both = /*#__PURE__*/(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["def
11151
11151
 
11152
11152
  /***/ },
11153
11153
 
11154
+ /***/ 8138
11155
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
11156
+
11157
+ "use strict";
11158
+ __webpack_require__.r(__webpack_exports__);
11159
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
11160
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
11161
+ /* harmony export */ });
11162
+ /* harmony import */ var _internal_clone_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8575);
11163
+ /* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8938);
11164
+
11165
+
11166
+
11167
+ /**
11168
+ * Creates a deep copy of the source that can be used in place of the source
11169
+ * object without retaining any references to it.
11170
+ * The source object may contain (nested) `Array`s and `Object`s,
11171
+ * `Number`s, `String`s, `Boolean`s and `Date`s.
11172
+ * `Function`s are assigned by reference rather than copied.
11173
+ *
11174
+ * Dispatches to a `clone` method if present.
11175
+ *
11176
+ * Note that if the source object has multiple nodes that share a reference,
11177
+ * the returned object will have the same structure, but the references will
11178
+ * be pointed to the location within the cloned value.
11179
+ *
11180
+ * @func
11181
+ * @memberOf R
11182
+ * @since v0.1.0
11183
+ * @category Object
11184
+ * @sig {*} -> {*}
11185
+ * @param {*} value The object or array to clone
11186
+ * @return {*} A deeply cloned copy of `val`
11187
+ * @example
11188
+ *
11189
+ * const objects = [{}, {}, {}];
11190
+ * const objectsClone = R.clone(objects);
11191
+ * objects === objectsClone; //=> false
11192
+ * objects[0] === objectsClone[0]; //=> false
11193
+ */
11194
+ var clone = /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_1__["default"])(function clone(value) {
11195
+ return value != null && typeof value.clone === 'function' ? value.clone() : (0,_internal_clone_js__WEBPACK_IMPORTED_MODULE_0__["default"])(value, true);
11196
+ });
11197
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (clone);
11198
+
11199
+ /***/ },
11200
+
11154
11201
  /***/ 8199
11155
11202
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
11156
11203
 
@@ -12447,6 +12494,146 @@ function _checkForMethod(methodname, fn) {
12447
12494
 
12448
12495
  /***/ },
12449
12496
 
12497
+ /***/ 8575
12498
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
12499
+
12500
+ "use strict";
12501
+ __webpack_require__.r(__webpack_exports__);
12502
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12503
+ /* harmony export */ "default": () => (/* binding */ _clone)
12504
+ /* harmony export */ });
12505
+ /* harmony import */ var _cloneRegExp_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1254);
12506
+ /* harmony import */ var _type_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(963);
12507
+
12508
+
12509
+
12510
+ /**
12511
+ * Copies an object.
12512
+ *
12513
+ * @private
12514
+ * @param {*} value The value to be copied
12515
+ * @param {Boolean} deep Whether or not to perform deep cloning.
12516
+ * @return {*} The copied value.
12517
+ */
12518
+ function _clone(value, deep, map) {
12519
+ map || (map = new _ObjectMap());
12520
+
12521
+ // this avoids the slower switch with a quick if decision removing some milliseconds in each run.
12522
+ if (_isPrimitive(value)) {
12523
+ return value;
12524
+ }
12525
+ var copy = function copy(copiedValue) {
12526
+ // Check for circular and same references on the object graph and return its corresponding clone.
12527
+ var cachedCopy = map.get(value);
12528
+ if (cachedCopy) {
12529
+ return cachedCopy;
12530
+ }
12531
+ map.set(value, copiedValue);
12532
+ for (var key in value) {
12533
+ if (Object.prototype.hasOwnProperty.call(value, key)) {
12534
+ copiedValue[key] = deep ? _clone(value[key], true, map) : value[key];
12535
+ }
12536
+ }
12537
+ return copiedValue;
12538
+ };
12539
+ switch ((0,_type_js__WEBPACK_IMPORTED_MODULE_1__["default"])(value)) {
12540
+ case 'Object':
12541
+ return copy(Object.create(Object.getPrototypeOf(value)));
12542
+ case 'Array':
12543
+ return copy(Array(value.length));
12544
+ case 'Date':
12545
+ return new Date(value.valueOf());
12546
+ case 'RegExp':
12547
+ return (0,_cloneRegExp_js__WEBPACK_IMPORTED_MODULE_0__["default"])(value);
12548
+ case 'Int8Array':
12549
+ case 'Uint8Array':
12550
+ case 'Uint8ClampedArray':
12551
+ case 'Int16Array':
12552
+ case 'Uint16Array':
12553
+ case 'Int32Array':
12554
+ case 'Uint32Array':
12555
+ case 'Float32Array':
12556
+ case 'Float64Array':
12557
+ case 'BigInt64Array':
12558
+ case 'BigUint64Array':
12559
+ return value.slice();
12560
+ default:
12561
+ return value;
12562
+ }
12563
+ }
12564
+ function _isPrimitive(param) {
12565
+ var type = typeof param;
12566
+ return param == null || type != 'object' && type != 'function';
12567
+ }
12568
+ var _ObjectMap = /*#__PURE__*/function () {
12569
+ function _ObjectMap() {
12570
+ this.map = {};
12571
+ this.length = 0;
12572
+ }
12573
+ _ObjectMap.prototype.set = function (key, value) {
12574
+ var hashedKey = this.hash(key);
12575
+ var bucket = this.map[hashedKey];
12576
+ if (!bucket) {
12577
+ this.map[hashedKey] = bucket = [];
12578
+ }
12579
+ bucket.push([key, value]);
12580
+ this.length += 1;
12581
+ };
12582
+ _ObjectMap.prototype.hash = function (key) {
12583
+ var hashedKey = [];
12584
+ for (var value in key) {
12585
+ hashedKey.push(Object.prototype.toString.call(key[value]));
12586
+ }
12587
+ return hashedKey.join();
12588
+ };
12589
+ _ObjectMap.prototype.get = function (key) {
12590
+ /**
12591
+ * depending on the number of objects to be cloned is faster to just iterate over the items in the map just because the hash function is so costly,
12592
+ * on my tests this number is 180, anything above that using the hash function is faster.
12593
+ */
12594
+ if (this.length <= 180) {
12595
+ for (var p in this.map) {
12596
+ var bucket = this.map[p];
12597
+ for (var i = 0; i < bucket.length; i += 1) {
12598
+ var element = bucket[i];
12599
+ if (element[0] === key) {
12600
+ return element[1];
12601
+ }
12602
+ }
12603
+ }
12604
+ return;
12605
+ }
12606
+ var hashedKey = this.hash(key);
12607
+ var bucket = this.map[hashedKey];
12608
+ if (!bucket) {
12609
+ return;
12610
+ }
12611
+ for (var i = 0; i < bucket.length; i += 1) {
12612
+ var element = bucket[i];
12613
+ if (element[0] === key) {
12614
+ return element[1];
12615
+ }
12616
+ }
12617
+ };
12618
+ return _ObjectMap;
12619
+ }();
12620
+
12621
+ /***/ },
12622
+
12623
+ /***/ 1254
12624
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
12625
+
12626
+ "use strict";
12627
+ __webpack_require__.r(__webpack_exports__);
12628
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12629
+ /* harmony export */ "default": () => (/* binding */ _cloneRegExp)
12630
+ /* harmony export */ });
12631
+ function _cloneRegExp(pattern) {
12632
+ return new RegExp(pattern.source, pattern.flags ? pattern.flags : (pattern.global ? 'g' : '') + (pattern.ignoreCase ? 'i' : '') + (pattern.multiline ? 'm' : '') + (pattern.sticky ? 'y' : '') + (pattern.unicode ? 'u' : '') + (pattern.dotAll ? 's' : ''));
12633
+ }
12634
+
12635
+ /***/ },
12636
+
12450
12637
  /***/ 7940
12451
12638
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
12452
12639
 
@@ -20059,6 +20246,7 @@ const predicates = {
20059
20246
  isCommentElement: _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isCommentElement,
20060
20247
  isParseResultElement: _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isParseResultElement,
20061
20248
  isSourceMapElement: _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__.isSourceMapElement,
20249
+ hasElementStyle: _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__.hasElementStyle,
20062
20250
  hasElementSourceMap: _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__.hasElementSourceMap,
20063
20251
  includesSymbols: _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__.includesSymbols,
20064
20252
  includesClasses: _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__.includesClasses
@@ -20130,7 +20318,19 @@ const resolveSpecification = specification => {
20130
20318
  if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_5__["default"])(val) && (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])('$ref', val) && (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__["default"], '$ref', val)) {
20131
20319
  const $ref = (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(['$ref'], val);
20132
20320
  const pointer = (0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_6__["default"])('#/', $ref);
20133
- return (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(pointer.split('/'), root);
20321
+ const resolved = (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(pointer.split('/'), root);
20322
+ // merge extra properties (e.g. alias) from the $ref object into the resolved value
20323
+ const {
20324
+ $ref: _,
20325
+ ...rest
20326
+ } = val;
20327
+ if (Object.keys(rest).length > 0 && (0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_5__["default"])(resolved)) {
20328
+ return {
20329
+ ...resolved,
20330
+ ...rest
20331
+ };
20332
+ }
20333
+ return resolved;
20134
20334
  }
20135
20335
  if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_5__["default"])(val)) {
20136
20336
  return traverse(val, root, newPath);
@@ -20753,20 +20953,22 @@ class ShallowCloneError extends _CloneError_mjs__WEBPACK_IMPORTED_MODULE_0__["de
20753
20953
  "use strict";
20754
20954
  __webpack_require__.r(__webpack_exports__);
20755
20955
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
20756
- /* harmony export */ CloneError: () => (/* reexport safe */ _errors_CloneError_mjs__WEBPACK_IMPORTED_MODULE_7__["default"]),
20757
- /* harmony export */ DeepCloneError: () => (/* reexport safe */ _errors_DeepCloneError_mjs__WEBPACK_IMPORTED_MODULE_5__["default"]),
20758
- /* harmony export */ ShallowCloneError: () => (/* reexport safe */ _errors_ShallowCloneError_mjs__WEBPACK_IMPORTED_MODULE_6__["default"]),
20956
+ /* harmony export */ CloneError: () => (/* reexport safe */ _errors_CloneError_mjs__WEBPACK_IMPORTED_MODULE_8__["default"]),
20957
+ /* harmony export */ DeepCloneError: () => (/* reexport safe */ _errors_DeepCloneError_mjs__WEBPACK_IMPORTED_MODULE_6__["default"]),
20958
+ /* harmony export */ ShallowCloneError: () => (/* reexport safe */ _errors_ShallowCloneError_mjs__WEBPACK_IMPORTED_MODULE_7__["default"]),
20759
20959
  /* harmony export */ cloneDeep: () => (/* binding */ cloneDeep),
20760
20960
  /* harmony export */ cloneShallow: () => (/* binding */ cloneShallow)
20761
20961
  /* harmony export */ });
20762
- /* harmony import */ var _ObjectSlice_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8504);
20763
- /* harmony import */ var _KeyValuePair_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6663);
20764
- /* harmony import */ var _predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8252);
20765
- /* harmony import */ var _predicates_index_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5162);
20766
- /* harmony import */ var _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5810);
20767
- /* harmony import */ var _errors_DeepCloneError_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5018);
20768
- /* harmony import */ var _errors_ShallowCloneError_mjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(3686);
20769
- /* harmony import */ var _errors_CloneError_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(3772);
20962
+ /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8138);
20963
+ /* harmony import */ var _ObjectSlice_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8504);
20964
+ /* harmony import */ var _KeyValuePair_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6663);
20965
+ /* harmony import */ var _predicates_index_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(8252);
20966
+ /* harmony import */ var _predicates_index_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5162);
20967
+ /* harmony import */ var _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5810);
20968
+ /* harmony import */ var _errors_DeepCloneError_mjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(5018);
20969
+ /* harmony import */ var _errors_ShallowCloneError_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(3686);
20970
+ /* harmony import */ var _errors_CloneError_mjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(3772);
20971
+
20770
20972
 
20771
20973
 
20772
20974
 
@@ -20799,9 +21001,9 @@ const cloneDeepElement = (element, options) => {
20799
21001
  } = element;
20800
21002
  if (Array.isArray(content)) {
20801
21003
  copy.content = content.map(el => cloneDeepElement(el, passThroughOptions));
20802
- } else if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_3__.isElement)(content)) {
21004
+ } else if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_4__.isElement)(content)) {
20803
21005
  copy.content = cloneDeepElement(content, passThroughOptions);
20804
- } else if (content instanceof _KeyValuePair_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]) {
21006
+ } else if (content instanceof _KeyValuePair_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
20805
21007
  copy.content = cloneDeepKeyValuePair(content, passThroughOptions);
20806
21008
  } else {
20807
21009
  copy.content = content;
@@ -20825,7 +21027,7 @@ const cloneDeepKeyValuePair = (kvp, options) => {
20825
21027
  } = kvp;
20826
21028
  const keyCopy = key !== undefined ? cloneDeepElement(key, passThroughOptions) : undefined;
20827
21029
  const valueCopy = value !== undefined ? cloneDeepElement(value, passThroughOptions) : undefined;
20828
- const copy = new _KeyValuePair_mjs__WEBPACK_IMPORTED_MODULE_1__["default"](keyCopy, valueCopy);
21030
+ const copy = new _KeyValuePair_mjs__WEBPACK_IMPORTED_MODULE_2__["default"](keyCopy, valueCopy);
20829
21031
  visited.set(kvp, copy);
20830
21032
  return copy;
20831
21033
  };
@@ -20841,7 +21043,7 @@ const cloneDeepObjectSlice = (slice, options) => {
20841
21043
  return visited.get(slice);
20842
21044
  }
20843
21045
  const items = [...slice].map(element => cloneDeepElement(element, passThroughOptions));
20844
- const copy = new _ObjectSlice_mjs__WEBPACK_IMPORTED_MODULE_0__["default"](items);
21046
+ const copy = new _ObjectSlice_mjs__WEBPACK_IMPORTED_MODULE_1__["default"](items);
20845
21047
  visited.set(slice, copy);
20846
21048
  return copy;
20847
21049
  };
@@ -20852,16 +21054,16 @@ const cloneDeepObjectSlice = (slice, options) => {
20852
21054
  * @public
20853
21055
  */
20854
21056
  const cloneDeep = (value, options = {}) => {
20855
- if (value instanceof _KeyValuePair_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]) {
21057
+ if (value instanceof _KeyValuePair_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
20856
21058
  return cloneDeepKeyValuePair(value, options);
20857
21059
  }
20858
- if (value instanceof _ObjectSlice_mjs__WEBPACK_IMPORTED_MODULE_0__["default"]) {
21060
+ if (value instanceof _ObjectSlice_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]) {
20859
21061
  return cloneDeepObjectSlice(value, options);
20860
21062
  }
20861
- if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_3__.isElement)(value)) {
21063
+ if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_4__.isElement)(value)) {
20862
21064
  return cloneDeepElement(value, options);
20863
21065
  }
20864
- throw new _errors_DeepCloneError_mjs__WEBPACK_IMPORTED_MODULE_5__["default"]("Value provided to cloneDeep function couldn't be cloned", {
21066
+ throw new _errors_DeepCloneError_mjs__WEBPACK_IMPORTED_MODULE_6__["default"]("Value provided to cloneDeep function couldn't be cloned", {
20865
21067
  value
20866
21068
  });
20867
21069
  };
@@ -20877,11 +21079,11 @@ const cloneShallowKeyValuePair = keyValuePair => {
20877
21079
  key,
20878
21080
  value
20879
21081
  } = keyValuePair;
20880
- return new _KeyValuePair_mjs__WEBPACK_IMPORTED_MODULE_1__["default"](key, value);
21082
+ return new _KeyValuePair_mjs__WEBPACK_IMPORTED_MODULE_2__["default"](key, value);
20881
21083
  };
20882
21084
  const cloneShallowObjectSlice = objectSlice => {
20883
21085
  const items = [...objectSlice];
20884
- return new _ObjectSlice_mjs__WEBPACK_IMPORTED_MODULE_0__["default"](items);
21086
+ return new _ObjectSlice_mjs__WEBPACK_IMPORTED_MODULE_1__["default"](items);
20885
21087
  };
20886
21088
  const cloneShallowElement = element => {
20887
21089
  const Ctor = element.constructor;
@@ -20893,17 +21095,20 @@ const cloneShallowElement = element => {
20893
21095
  if (!element.isAttributesEmpty) {
20894
21096
  copy.attributes = cloneDeep(element.attributes);
20895
21097
  }
20896
- if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.hasElementSourceMap)(element)) {
20897
- _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_4__["default"].transfer(element, copy);
21098
+ if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_3__.hasElementSourceMap)(element)) {
21099
+ _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_5__["default"].transfer(element, copy);
21100
+ }
21101
+ if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_3__.hasElementStyle)(element)) {
21102
+ copy.style = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])(element.style);
20898
21103
  }
20899
21104
  const {
20900
21105
  content
20901
21106
  } = element;
20902
- if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_3__.isElement)(content)) {
21107
+ if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_4__.isElement)(content)) {
20903
21108
  copy.content = cloneShallowElement(content);
20904
21109
  } else if (Array.isArray(content)) {
20905
21110
  copy.content = [...content];
20906
- } else if (content instanceof _KeyValuePair_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]) {
21111
+ } else if (content instanceof _KeyValuePair_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
20907
21112
  copy.content = cloneShallowKeyValuePair(content);
20908
21113
  } else {
20909
21114
  copy.content = content;
@@ -20918,16 +21123,16 @@ const cloneShallowElement = element => {
20918
21123
  * @public
20919
21124
  */
20920
21125
  const cloneShallow = value => {
20921
- if (value instanceof _KeyValuePair_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]) {
21126
+ if (value instanceof _KeyValuePair_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
20922
21127
  return cloneShallowKeyValuePair(value);
20923
21128
  }
20924
- if (value instanceof _ObjectSlice_mjs__WEBPACK_IMPORTED_MODULE_0__["default"]) {
21129
+ if (value instanceof _ObjectSlice_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]) {
20925
21130
  return cloneShallowObjectSlice(value);
20926
21131
  }
20927
- if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_3__.isElement)(value)) {
21132
+ if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_4__.isElement)(value)) {
20928
21133
  return cloneShallowElement(value);
20929
21134
  }
20930
- throw new _errors_ShallowCloneError_mjs__WEBPACK_IMPORTED_MODULE_6__["default"]("Value provided to cloneShallow function couldn't be cloned", {
21135
+ throw new _errors_ShallowCloneError_mjs__WEBPACK_IMPORTED_MODULE_7__["default"]("Value provided to cloneShallow function couldn't be cloned", {
20931
21136
  value
20932
21137
  });
20933
21138
  };
@@ -21354,6 +21559,66 @@ function unpackSourceMap(packed) {
21354
21559
 
21355
21560
  /***/ },
21356
21561
 
21562
+ /***/ 9686
21563
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
21564
+
21565
+ "use strict";
21566
+ __webpack_require__.r(__webpack_exports__);
21567
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21568
+ /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
21569
+ /* harmony export */ });
21570
+ /* harmony import */ var _primitives_ObjectElement_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7071);
21571
+
21572
+ /**
21573
+ * Shape with optional style property.
21574
+ * @public
21575
+ */
21576
+ /**
21577
+ * StyleElement stores format-specific style information for round-trip preservation.
21578
+ *
21579
+ * The style data is stored as a plain object with format-specific namespaces
21580
+ * (e.g., `yaml`, `json`). This element exists only during serialization/deserialization
21581
+ * (refract format) - in memory, style lives directly on `element.style`.
21582
+ *
21583
+ * Follows the same pattern as SourceMapElement with __mappings__.
21584
+ *
21585
+ * @public
21586
+ */
21587
+ class StyleElement extends _primitives_ObjectElement_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
21588
+ constructor(content, meta, attributes) {
21589
+ super(content, meta, attributes);
21590
+ this.element = '__styles__';
21591
+ }
21592
+
21593
+ /**
21594
+ * Transfers style property from one element to another.
21595
+ */
21596
+ static transfer(from, to) {
21597
+ to.style = from.style;
21598
+ }
21599
+
21600
+ /**
21601
+ * Creates a StyleElement from an element's style property.
21602
+ * Returns undefined if the element has no style.
21603
+ */
21604
+ static from(source) {
21605
+ if (!source.style) {
21606
+ return undefined;
21607
+ }
21608
+ return new StyleElement(source.style);
21609
+ }
21610
+
21611
+ /**
21612
+ * Restores the style property on the target element from this StyleElement.
21613
+ */
21614
+ applyTo(target) {
21615
+ target.style = this.toValue();
21616
+ }
21617
+ }
21618
+ /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (StyleElement);
21619
+
21620
+ /***/ },
21621
+
21357
21622
  /***/ 6911
21358
21623
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
21359
21624
 
@@ -21418,6 +21683,7 @@ const isSourceMapElement = element => element instanceof _elements_SourceMap_mjs
21418
21683
  __webpack_require__.r(__webpack_exports__);
21419
21684
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21420
21685
  /* harmony export */ hasElementSourceMap: () => (/* binding */ hasElementSourceMap),
21686
+ /* harmony export */ hasElementStyle: () => (/* binding */ hasElementStyle),
21421
21687
  /* harmony export */ includesClasses: () => (/* binding */ includesClasses),
21422
21688
  /* harmony export */ includesSymbols: () => (/* binding */ includesSymbols),
21423
21689
  /* harmony export */ isAnnotationElement: () => (/* reexport safe */ _elements_mjs__WEBPACK_IMPORTED_MODULE_1__.isAnnotationElement),
@@ -21442,6 +21708,14 @@ __webpack_require__.r(__webpack_exports__);
21442
21708
 
21443
21709
 
21444
21710
 
21711
+ /**
21712
+ * Checks if an element has format-specific style information.
21713
+ * @public
21714
+ */
21715
+ const hasElementStyle = element => {
21716
+ return element.style !== undefined;
21717
+ };
21718
+
21445
21719
  /**
21446
21720
  * Checks if an element has complete source position information.
21447
21721
  * Returns true only if all 6 position properties are numbers.
@@ -21983,6 +22257,12 @@ class Element {
21983
22257
  */
21984
22258
  parent;
21985
22259
 
22260
+ /**
22261
+ * Format-specific style information for round-trip preservation.
22262
+ * Each format owns its own namespace (e.g., `yaml`, `json`).
22263
+ */
22264
+ style;
22265
+
21986
22266
  // ============================================================================
21987
22267
  // Source Position (LSP-compatible, TextDocument-compatible, UTF-16 code units)
21988
22268
  // web-tree-sitter automatically provides position data in UTF-16 code units.
@@ -22872,17 +23152,18 @@ __webpack_require__.r(__webpack_exports__);
22872
23152
  /* harmony export */ CollectionElement: () => (/* reexport safe */ _primitives_CollectionElement_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]),
22873
23153
  /* harmony export */ CommentElement: () => (/* reexport safe */ _elements_Comment_mjs__WEBPACK_IMPORTED_MODULE_12__["default"]),
22874
23154
  /* harmony export */ Element: () => (/* reexport safe */ _primitives_Element_mjs__WEBPACK_IMPORTED_MODULE_0__["default"]),
22875
- /* harmony export */ KeyValuePair: () => (/* reexport safe */ _KeyValuePair_mjs__WEBPACK_IMPORTED_MODULE_16__["default"]),
23155
+ /* harmony export */ KeyValuePair: () => (/* reexport safe */ _KeyValuePair_mjs__WEBPACK_IMPORTED_MODULE_17__["default"]),
22876
23156
  /* harmony export */ LinkElement: () => (/* reexport safe */ _elements_LinkElement_mjs__WEBPACK_IMPORTED_MODULE_9__["default"]),
22877
23157
  /* harmony export */ MemberElement: () => (/* reexport safe */ _primitives_MemberElement_mjs__WEBPACK_IMPORTED_MODULE_7__["default"]),
22878
23158
  /* harmony export */ NullElement: () => (/* reexport safe */ _primitives_NullElement_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]),
22879
23159
  /* harmony export */ NumberElement: () => (/* reexport safe */ _primitives_NumberElement_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]),
22880
23160
  /* harmony export */ ObjectElement: () => (/* reexport safe */ _primitives_ObjectElement_mjs__WEBPACK_IMPORTED_MODULE_8__["default"]),
22881
- /* harmony export */ ObjectSlice: () => (/* reexport safe */ _ObjectSlice_mjs__WEBPACK_IMPORTED_MODULE_15__["default"]),
23161
+ /* harmony export */ ObjectSlice: () => (/* reexport safe */ _ObjectSlice_mjs__WEBPACK_IMPORTED_MODULE_16__["default"]),
22882
23162
  /* harmony export */ ParseResultElement: () => (/* reexport safe */ _elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_13__["default"]),
22883
23163
  /* harmony export */ RefElement: () => (/* reexport safe */ _elements_RefElement_mjs__WEBPACK_IMPORTED_MODULE_10__["default"]),
22884
23164
  /* harmony export */ SourceMapElement: () => (/* reexport safe */ _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_14__["default"]),
22885
23165
  /* harmony export */ StringElement: () => (/* reexport safe */ _primitives_StringElement_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]),
23166
+ /* harmony export */ StyleElement: () => (/* reexport safe */ _elements_Style_mjs__WEBPACK_IMPORTED_MODULE_15__["default"]),
22886
23167
  /* harmony export */ refract: () => (/* binding */ refract)
22887
23168
  /* harmony export */ });
22888
23169
  /* harmony import */ var _primitives_Element_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(728);
@@ -22900,8 +23181,10 @@ __webpack_require__.r(__webpack_exports__);
22900
23181
  /* harmony import */ var _elements_Comment_mjs__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(94);
22901
23182
  /* harmony import */ var _elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(4823);
22902
23183
  /* harmony import */ var _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(5810);
22903
- /* harmony import */ var _ObjectSlice_mjs__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(8504);
22904
- /* harmony import */ var _KeyValuePair_mjs__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(6663);
23184
+ /* harmony import */ var _elements_Style_mjs__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(9686);
23185
+ /* harmony import */ var _ObjectSlice_mjs__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(8504);
23186
+ /* harmony import */ var _KeyValuePair_mjs__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(6663);
23187
+
22905
23188
 
22906
23189
 
22907
23190
 
@@ -22988,6 +23271,8 @@ __webpack_require__.r(__webpack_exports__);
22988
23271
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
22989
23272
  /* harmony export */ });
22990
23273
  /* harmony import */ var _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5810);
23274
+ /* harmony import */ var _elements_Style_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9686);
23275
+
22991
23276
 
22992
23277
  /**
22993
23278
  * Serialized representation of an Element in JSON Refract format.
@@ -23046,6 +23331,17 @@ class JSONSerialiser {
23046
23331
  payload.meta.__mappings__ = this.serialise(sourceMap);
23047
23332
  }
23048
23333
  }
23334
+
23335
+ // Serialize style as __styles__ in meta (skip for StyleElement itself)
23336
+ if (!(element instanceof _elements_Style_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])) {
23337
+ const styleElement = _elements_Style_mjs__WEBPACK_IMPORTED_MODULE_1__["default"].from(element);
23338
+ if (styleElement) {
23339
+ if (!payload.meta) {
23340
+ payload.meta = {};
23341
+ }
23342
+ payload.meta.__styles__ = this.serialise(styleElement);
23343
+ }
23344
+ }
23049
23345
  const content = this.serialiseContent(element.content);
23050
23346
  if (content !== undefined) {
23051
23347
  payload.content = content;
@@ -23066,15 +23362,18 @@ class JSONSerialiser {
23066
23362
  element.element = value.element;
23067
23363
  }
23068
23364
 
23069
- // Extract __mappings__ without mutating input, filter remaining meta
23365
+ // Extract __mappings__ and __styles__ without mutating input, filter remaining meta
23070
23366
  let mappingsDoc;
23367
+ let stylesDoc;
23071
23368
  let metaToDeserialize = value.meta;
23072
- if (value.meta?.__mappings__) {
23369
+ if (value.meta?.__mappings__ || value.meta?.__styles__) {
23073
23370
  const {
23074
23371
  __mappings__,
23372
+ __styles__,
23075
23373
  ...rest
23076
23374
  } = value.meta;
23077
23375
  mappingsDoc = __mappings__;
23376
+ stylesDoc = __styles__;
23078
23377
  metaToDeserialize = Object.keys(rest).length > 0 ? rest : undefined;
23079
23378
  }
23080
23379
  if (metaToDeserialize) {
@@ -23086,6 +23385,12 @@ class JSONSerialiser {
23086
23385
  const sourceMap = this.deserialise(mappingsDoc);
23087
23386
  sourceMap.applyTo(element);
23088
23387
  }
23388
+
23389
+ // Restore style from __styles__
23390
+ if (stylesDoc) {
23391
+ const styleElement = this.deserialise(stylesDoc);
23392
+ styleElement.applyTo(element);
23393
+ }
23089
23394
  if (value.attributes) {
23090
23395
  this.deserialiseObject(value.attributes, element.attributes);
23091
23396
  }
@@ -23928,7 +24233,7 @@ const specification = {
23928
24233
  fixedFields: {
23929
24234
  // core vocabulary
23930
24235
  id: {
23931
- $visitor: _visitors_FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_0__["default"],
24236
+ $ref: '#/visitors/value',
23932
24237
  alias: 'idField'
23933
24238
  },
23934
24239
  $schema: {
@@ -24210,6 +24515,7 @@ __webpack_require__.r(__webpack_exports__);
24210
24515
  /* harmony import */ var _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8400);
24211
24516
  /* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7071);
24212
24517
  /* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5810);
24518
+ /* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9686);
24213
24519
 
24214
24520
 
24215
24521
 
@@ -24237,6 +24543,7 @@ class Visitor {
24237
24543
  to.attributes = (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(target, source);
24238
24544
  }
24239
24545
  _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"].transfer(from, to);
24546
+ _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__["default"].transfer(from, to);
24240
24547
  }
24241
24548
  }
24242
24549
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Visitor);
@@ -25407,10 +25714,10 @@ class Encoding extends _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__["
25407
25714
  set headers(headers) {
25408
25715
  this.set('headers', headers);
25409
25716
  }
25410
- get style() {
25717
+ get styleField() {
25411
25718
  return this.get('style');
25412
25719
  }
25413
- set style(style) {
25720
+ set styleField(style) {
25414
25721
  this.set('style', style);
25415
25722
  }
25416
25723
  get explode() {
@@ -25557,10 +25864,10 @@ class Header extends _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__["de
25557
25864
  set allowEmptyValue(allowEmptyValue) {
25558
25865
  this.set('allowEmptyValue', allowEmptyValue);
25559
25866
  }
25560
- get style() {
25867
+ get styleField() {
25561
25868
  return this.get('style');
25562
25869
  }
25563
- set style(style) {
25870
+ set styleField(style) {
25564
25871
  this.set('style', style);
25565
25872
  }
25566
25873
  get explode() {
@@ -26176,10 +26483,10 @@ class Parameter extends _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__[
26176
26483
  set allowEmptyValue(allowEmptyValue) {
26177
26484
  this.set('allowEmptyValue', allowEmptyValue);
26178
26485
  }
26179
- get style() {
26486
+ get styleField() {
26180
26487
  return this.get('style');
26181
26488
  }
26182
- set style(style) {
26489
+ set styleField(style) {
26183
26490
  this.set('style', style);
26184
26491
  }
26185
26492
  get explode() {
@@ -29047,7 +29354,8 @@ const specification = {
29047
29354
  $ref: '#/visitors/value'
29048
29355
  },
29049
29356
  style: {
29050
- $ref: '#/visitors/value'
29357
+ $ref: '#/visitors/value',
29358
+ alias: 'styleField'
29051
29359
  },
29052
29360
  explode: {
29053
29361
  $ref: '#/visitors/value'
@@ -29103,7 +29411,8 @@ const specification = {
29103
29411
  },
29104
29412
  headers: _visitors_open_api_3_0_encoding_HeadersVisitor_mjs__WEBPACK_IMPORTED_MODULE_60__["default"],
29105
29413
  style: {
29106
- $ref: '#/visitors/value'
29414
+ $ref: '#/visitors/value',
29415
+ alias: 'styleField'
29107
29416
  },
29108
29417
  explode: {
29109
29418
  $ref: '#/visitors/value'
@@ -29193,7 +29502,8 @@ const specification = {
29193
29502
  $ref: '#/visitors/value'
29194
29503
  },
29195
29504
  style: {
29196
- $ref: '#/visitors/value'
29505
+ $ref: '#/visitors/value',
29506
+ alias: 'styleField'
29197
29507
  },
29198
29508
  explode: {
29199
29509
  $ref: '#/visitors/value'
@@ -29615,6 +29925,7 @@ __webpack_require__.r(__webpack_exports__);
29615
29925
  /* harmony import */ var _speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8400);
29616
29926
  /* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7071);
29617
29927
  /* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(5810);
29928
+ /* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9686);
29618
29929
 
29619
29930
 
29620
29931
 
@@ -29642,6 +29953,7 @@ class Visitor {
29642
29953
  to.attributes = (0,_speclynx_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(target, source);
29643
29954
  }
29644
29955
  _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_2__["default"].transfer(from, to);
29956
+ _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__["default"].transfer(from, to);
29645
29957
  }
29646
29958
  }
29647
29959
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Visitor);
@@ -33223,16 +33535,21 @@ const detect = async (source, {
33223
33535
  */
33224
33536
  const parse = async (source, {
33225
33537
  sourceMap = false,
33538
+ style = false,
33226
33539
  strict = false
33227
33540
  } = {}) => {
33228
33541
  if (strict && sourceMap) {
33229
33542
  throw new _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_1__["default"]('Cannot use sourceMap with strict parsing. Strict parsing does not support source maps.');
33230
33543
  }
33544
+ if (strict && style) {
33545
+ throw new _speclynx_apidom_error__WEBPACK_IMPORTED_MODULE_1__["default"]('Cannot use style with strict parsing. Strict parsing does not support style preservation.');
33546
+ }
33231
33547
  if (strict) {
33232
33548
  return _native_index_mjs__WEBPACK_IMPORTED_MODULE_2__.parse(source);
33233
33549
  }
33234
33550
  return _tree_sitter_index_mjs__WEBPACK_IMPORTED_MODULE_3__.parse(source, {
33235
- sourceMap
33551
+ sourceMap,
33552
+ style
33236
33553
  });
33237
33554
  };
33238
33555
 
@@ -33363,12 +33680,14 @@ const detect = async source => {
33363
33680
  * @public
33364
33681
  */
33365
33682
  const parse = async (source, {
33366
- sourceMap = false
33683
+ sourceMap = false,
33684
+ style = false
33367
33685
  } = {}) => {
33368
33686
  const cst = await (0,_lexical_analysis_index_mjs__WEBPACK_IMPORTED_MODULE_0__["default"])(source);
33369
33687
  try {
33370
33688
  return (0,_syntactic_analysis_index_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])(cst, {
33371
- sourceMap
33689
+ sourceMap,
33690
+ style
33372
33691
  });
33373
33692
  } finally {
33374
33693
  cst.delete();
@@ -33471,6 +33790,24 @@ const maybeAddSourceMap = (info, element, ctx) => {
33471
33790
  element.endCharacter = info.endPosition.column;
33472
33791
  element.endOffset = info.endIndex;
33473
33792
  };
33793
+
33794
+ // build json style object for an element
33795
+ const buildJsonStyle = (ctx, extras) => {
33796
+ const jsonStyle = {
33797
+ indent: ctx.indent
33798
+ };
33799
+ if (extras) Object.assign(jsonStyle, extras);
33800
+ return {
33801
+ json: jsonStyle
33802
+ };
33803
+ };
33804
+
33805
+ // detect indent from an object's first pair child position
33806
+ // called during transformChildren when we encounter the first pair
33807
+ const detectIndent = (objectColumn, firstPairColumn) => {
33808
+ const diff = firstPairColumn - objectColumn;
33809
+ return diff > 0 ? diff : 2;
33810
+ };
33474
33811
  const transform = (cursor, transformerMap, ctx) => {
33475
33812
  const info = getCursorInfo(cursor);
33476
33813
 
@@ -33534,11 +33871,27 @@ const createTransformers = transformerMap => ({
33534
33871
  const element = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_7__["default"]();
33535
33872
  maybeAddSourceMap(info, element, ctx);
33536
33873
 
33874
+ // Detect indent from first pair if style is enabled and not yet detected
33875
+ if (ctx.style && ctx.indent === 0) {
33876
+ if (cursor.gotoFirstChild()) {
33877
+ do {
33878
+ if (cursor.nodeType === 'pair') {
33879
+ ctx.indent = detectIndent(info.startPosition.column, cursor.startPosition.column);
33880
+ break;
33881
+ }
33882
+ } while (cursor.gotoNextSibling());
33883
+ cursor.gotoParent();
33884
+ }
33885
+ }
33886
+
33537
33887
  // Transform children (pairs)
33538
33888
  const children = transformChildren(cursor, transformerMap, ctx);
33539
33889
  for (const child of children) {
33540
33890
  element.push(child);
33541
33891
  }
33892
+ if (ctx.style) {
33893
+ element.style = buildJsonStyle(ctx);
33894
+ }
33542
33895
  return element;
33543
33896
  },
33544
33897
  array(cursor, ctx) {
@@ -33551,6 +33904,9 @@ const createTransformers = transformerMap => ({
33551
33904
  for (const child of children) {
33552
33905
  element.push(child);
33553
33906
  }
33907
+ if (ctx.style) {
33908
+ element.style = buildJsonStyle(ctx);
33909
+ }
33554
33910
  return element;
33555
33911
  },
33556
33912
  pair(cursor, ctx) {
@@ -33592,30 +33948,47 @@ const createTransformers = transformerMap => ({
33592
33948
  });
33593
33949
  }
33594
33950
  }
33951
+ if (ctx.style) {
33952
+ element.style = buildJsonStyle(ctx);
33953
+ }
33595
33954
  maybeAddSourceMap(info, element, ctx);
33596
33955
  return element;
33597
33956
  },
33598
33957
  number(cursor, ctx) {
33599
33958
  const info = getCursorInfo(cursor);
33600
33959
  const element = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_3__["default"](Number(info.text));
33960
+ if (ctx.style) {
33961
+ element.style = buildJsonStyle(ctx, {
33962
+ rawContent: info.text
33963
+ });
33964
+ }
33601
33965
  maybeAddSourceMap(info, element, ctx);
33602
33966
  return element;
33603
33967
  },
33604
33968
  null(cursor, ctx) {
33605
33969
  const info = getCursorInfo(cursor);
33606
33970
  const element = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_1__["default"]();
33971
+ if (ctx.style) {
33972
+ element.style = buildJsonStyle(ctx);
33973
+ }
33607
33974
  maybeAddSourceMap(info, element, ctx);
33608
33975
  return element;
33609
33976
  },
33610
33977
  true(cursor, ctx) {
33611
33978
  const info = getCursorInfo(cursor);
33612
33979
  const element = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_4__["default"](true);
33980
+ if (ctx.style) {
33981
+ element.style = buildJsonStyle(ctx);
33982
+ }
33613
33983
  maybeAddSourceMap(info, element, ctx);
33614
33984
  return element;
33615
33985
  },
33616
33986
  false(cursor, ctx) {
33617
33987
  const info = getCursorInfo(cursor);
33618
33988
  const element = new _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_4__["default"](false);
33989
+ if (ctx.style) {
33990
+ element.style = buildJsonStyle(ctx);
33991
+ }
33619
33992
  maybeAddSourceMap(info, element, ctx);
33620
33993
  return element;
33621
33994
  },
@@ -33646,11 +34019,14 @@ Object.assign(transformers, createTransformers(transformers));
33646
34019
  * @public
33647
34020
  */
33648
34021
  const analyze = (cst, {
33649
- sourceMap = false
34022
+ sourceMap = false,
34023
+ style = false
33650
34024
  } = {}) => {
33651
34025
  const cursor = cst.walk();
33652
34026
  const ctx = {
33653
34027
  sourceMap,
34028
+ style,
34029
+ indent: 0,
33654
34030
  annotations: []
33655
34031
  };
33656
34032
  const result = transform(cursor, transformers, ctx);