@xyd-js/atlas 0.0.0-build-3f37ab2-20250911140249 → 0.0.0-build-8b58d69-20250911164458

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/dist/xydPlugin.js CHANGED
@@ -1,2 +1,2 @@
1
- import{SurfaceTarget as e}from"@xyd-js/framework";import{a as t,b as i}from"./VideoGuide-BLKdHEcj-BWu_u92C.js";import r from"react";import"radix-ui";import"lucide-react";import"openux-js";function a(e){var a,o=(null===(a=null==e?void 0:e.pageMeta)||void 0===a?void 0:a.openapi)||"",n=o.includes("#")?o.split("#"):["",o],u=t(n,2);u[0];var d=u[1],l=(void 0===d?"":d).split(" "),s=t(l,1)[0],m=void 0===s?"":s;if(!m)return null;if(m.includes("components/schemas"))return null;var p=m.toUpperCase();return"DELETE"===m&&(p="DEL"),r.createElement("div",{"data-active":(null==e?void 0:e.active)?"true":void 0,"data-atlas-oas-method":m},r.createElement(i,{size:"xs"},p))}function o(){return function(t){return{name:"atlas-xyd-plugin",customComponents:{AtlasSidebarItemRight:{component:a,surface:e.SidebarItemRight}}}}}export{o as default};
1
+ import{SurfaceTarget as e}from"@xyd-js/framework";import{a as t,b as i}from"./VideoGuide-BByEAG5q-BWu_u92C.js";import r from"react";import"radix-ui";import"lucide-react";import"openux-js";function a(e){var a,o=(null===(a=null==e?void 0:e.pageMeta)||void 0===a?void 0:a.openapi)||"",n=o.includes("#")?o.split("#"):["",o],u=t(n,2);u[0];var d=u[1],l=(void 0===d?"":d).split(" "),s=t(l,1)[0],m=void 0===s?"":s;if(!m)return null;if(m.includes("components/schemas"))return null;var p=m.toUpperCase();return"DELETE"===m&&(p="DEL"),r.createElement("div",{"data-active":(null==e?void 0:e.active)?"true":void 0,"data-atlas-oas-method":m},r.createElement(i,{size:"xs"},p))}function o(){return function(t){return{name:"atlas-xyd-plugin",customComponents:{AtlasSidebarItemRight:{component:a,surface:e.SidebarItemRight}}}}}export{o as default};
2
2
  //# sourceMappingURL=xydPlugin.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyd-js/atlas",
3
- "version": "0.0.0-build-3f37ab2-20250911140249",
3
+ "version": "0.0.0-build-8b58d69-20250911164458",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -25,11 +25,11 @@
25
25
  "peerDependencies": {
26
26
  "react": "^19.1.0",
27
27
  "openux-js": "0.0.0-pre.1",
28
- "@xyd-js/framework": "0.0.0-build-3f37ab2-20250911140249",
29
- "@xyd-js/plugins": "0.0.0-build-3f37ab2-20250911140249",
30
- "@xyd-js/core": "0.0.0-build-3f37ab2-20250911140249",
31
- "@xyd-js/uniform": "0.0.0-build-3f37ab2-20250911140249",
32
- "@xyd-js/components": "0.0.0-build-3f37ab2-20250911140249"
28
+ "@xyd-js/framework": "0.0.0-build-8b58d69-20250911164458",
29
+ "@xyd-js/plugins": "0.0.0-build-8b58d69-20250911164458",
30
+ "@xyd-js/core": "0.0.0-build-8b58d69-20250911164458",
31
+ "@xyd-js/uniform": "0.0.0-build-8b58d69-20250911164458",
32
+ "@xyd-js/components": "0.0.0-build-8b58d69-20250911164458"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/react": "^19.1.0",
@@ -200,7 +200,13 @@ function SubProperties({ parent, properties }: SubPropertiesProps) {
200
200
 
201
201
  const choiceType = isChoiceType(parent)
202
202
  const noChildProps = function () {
203
- if (parent?.type === DEFINED_DEFINITION_PROPERTY_TYPE.ENUM) {
203
+ if (
204
+ (
205
+ parent?.type === DEFINED_DEFINITION_PROPERTY_TYPE.ARRAY &&
206
+ parent?.ofProperty?.type === DEFINED_DEFINITION_PROPERTY_TYPE.ENUM
207
+ ) ||
208
+ parent?.type === DEFINED_DEFINITION_PROPERTY_TYPE.ENUM
209
+ ) {
204
210
  return false
205
211
  }
206
212
 
@@ -339,6 +345,13 @@ function PropToggle(
339
345
  }
340
346
 
341
347
  function isChoiceType(property: DefinitionProperty) {
348
+ if (
349
+ property.type === DEFINED_DEFINITION_PROPERTY_TYPE.ARRAY &&
350
+ property.ofProperty?.type === DEFINED_DEFINITION_PROPERTY_TYPE.ENUM
351
+ ) {
352
+ return true
353
+ }
354
+
342
355
  if (property.ofProperty) {
343
356
  return isChoiceType(property.ofProperty)
344
357
  }
@@ -435,12 +448,26 @@ function resolvePropertySymbol(property: DefinitionProperty): string {
435
448
  const atomicDefinedSymbol = atomicDefinedPropertySymbol(property)
436
449
 
437
450
  if (atomicDefinedSymbol) {
438
- const unionSymbol = groupSymbol({
439
- name: "",
440
- description: "",
441
- type: DEFINED_DEFINITION_PROPERTY_TYPE.UNION,
442
- properties: property.ofProperty.properties || [],
443
- })
451
+ let unionSymbol = ""
452
+ if (
453
+ property.ofProperty.type === DEFINED_DEFINITION_PROPERTY_TYPE.ENUM &&
454
+ property.ofProperty.ofProperty?.type
455
+ ) {
456
+ unionSymbol = groupSymbol({
457
+ name: "",
458
+ description: "",
459
+ type: property.ofProperty.ofProperty?.type,
460
+ properties: property.ofProperty.properties || [],
461
+ })
462
+ }
463
+
464
+ if (!unionSymbol) {
465
+ unionSymbol = groupSymbol({
466
+ name: "",
467
+ description: "",
468
+ type: DEFINED_DEFINITION_PROPERTY_TYPE.UNION,
469
+ properties: property.ofProperty.properties || [],
470
+ })
444
471
 
445
472
  if (unionSymbol?.length && unionSymbol.includes("$$")) {
446
473
  return [atomicDefinedSymbol]