@xyd-js/atlas 0.0.0-build-dbd54a4-20251226154152 → 0.0.0-build-6e6f290-20260116222509
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/CHANGELOG.md +6 -6
- package/dist/{VideoGuide-Ct-fqF_v-BBrzFJLW.js → VideoGuide-Br4wqh1e-BBrzFJLW.js} +1 -1
- package/dist/{VideoGuide-Ct-fqF_v-BBrzFJLW.js.map → VideoGuide-Br4wqh1e-BBrzFJLW.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/xydPlugin.js +1 -1
- package/dist/xydPlugin.js.map +1 -1
- package/package.json +10 -10
package/dist/xydPlugin.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{SurfaceTarget as e}from"@xyd-js/framework";import{_ as t,w as i}from"./VideoGuide-
|
|
1
|
+
import{SurfaceTarget as e}from"@xyd-js/framework";import{_ as t,w as i}from"./VideoGuide-Br4wqh1e-BBrzFJLW.js";import r from"react";import"radix-ui";import"lucide-react";import"openux-js";function o(e){var o,a=(null===(o=null==e?void 0:e.pageMeta)||void 0===o?void 0:o.openapi)||"",n=a.includes("#")?a.split("#"):["",a],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 a(){return function(t){return{name:"atlas-xyd-plugin",customComponents:{AtlasSidebarItemRight:{component:o,surface:e.SidebarItemRight}}}}}export{a as default};
|
|
2
2
|
//# sourceMappingURL=xydPlugin.js.map
|
package/dist/xydPlugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xydPlugin.js","sources":["../../packages/xyd-plugin/SidebarItem.tsx","../../packages/xyd-plugin/index.ts"],"sourcesContent":["import React from \"react\"\n\nimport { Badge } from \"@xyd-js/components/writer\"\n\nexport function SidebarItemRight(props: any) {\n const openapi = props?.pageMeta?.openapi || \"\"\n const [_, region = \"\"] = openapi.includes(\"#\") ? openapi.split(\"#\") : [\"\", openapi]\n const [method = \"\"] = region.split(\" \")\n\n if (!method) {\n return null\n }\n if (method.includes(\"components/schemas\")) {\n return null\n }\n\n let methodText = method.toUpperCase()\n if (method === \"DELETE\") {\n methodText = \"DEL\"\n }\n\n return <div data-active={props?.active ? \"true\" : undefined} data-atlas-oas-method={method}>\n <Badge size=\"xs\">\n {methodText}\n </Badge>\n </div>\n}","import { Settings } from \"@xyd-js/core\"\nimport { Plugin } from \"@xyd-js/plugins\"\nimport { SurfaceTarget } from \"@xyd-js/framework\"\n\nimport { SidebarItemRight } from \"./SidebarItem\"\n\nexport default function XydAtlasPlugin(): Plugin {\n return function (settings: Settings) {\n return {\n name: \"atlas-xyd-plugin\",\n customComponents: {\n AtlasSidebarItemRight: {\n component: SidebarItemRight,\n surface: SurfaceTarget.SidebarItemRight,\n }\n }\n }\n }\n}\n\n"],"names":["SidebarItemRight","props","openapi","_a","pageMeta","_ref","includes","split","_ref2","_slicedToArray","_ref2$","_region$split","_region$split2$","method","methodText","toUpperCase","React","createElement","active","undefined","Badge","size","XydAtlasPlugin","settings","name","customComponents","AtlasSidebarItemRight","component","surface","SurfaceTarget"],"mappings":"4LAIM,SAAUA,EAAiBC,SACvBC,GAAyB,QAAfC,EAAAF,aAAK,EAALA,EAAOG,gBAAQ,IAAAD,
|
|
1
|
+
{"version":3,"file":"xydPlugin.js","sources":["../../packages/xyd-plugin/SidebarItem.tsx","../../packages/xyd-plugin/index.ts"],"sourcesContent":["import React from \"react\"\n\nimport { Badge } from \"@xyd-js/components/writer\"\n\nexport function SidebarItemRight(props: any) {\n const openapi = props?.pageMeta?.openapi || \"\"\n const [_, region = \"\"] = openapi.includes(\"#\") ? openapi.split(\"#\") : [\"\", openapi]\n const [method = \"\"] = region.split(\" \")\n\n if (!method) {\n return null\n }\n if (method.includes(\"components/schemas\")) {\n return null\n }\n\n let methodText = method.toUpperCase()\n if (method === \"DELETE\") {\n methodText = \"DEL\"\n }\n\n return <div data-active={props?.active ? \"true\" : undefined} data-atlas-oas-method={method}>\n <Badge size=\"xs\">\n {methodText}\n </Badge>\n </div>\n}","import { Settings } from \"@xyd-js/core\"\nimport { Plugin } from \"@xyd-js/plugins\"\nimport { SurfaceTarget } from \"@xyd-js/framework\"\n\nimport { SidebarItemRight } from \"./SidebarItem\"\n\nexport default function XydAtlasPlugin(): Plugin {\n return function (settings: Settings) {\n return {\n name: \"atlas-xyd-plugin\",\n customComponents: {\n AtlasSidebarItemRight: {\n component: SidebarItemRight,\n surface: SurfaceTarget.SidebarItemRight,\n }\n }\n }\n }\n}\n\n"],"names":["SidebarItemRight","props","openapi","_a","pageMeta","_ref","includes","split","_ref2","_slicedToArray","_ref2$","_region$split","_region$split2$","method","methodText","toUpperCase","React","createElement","active","undefined","Badge","size","XydAtlasPlugin","settings","name","customComponents","AtlasSidebarItemRight","component","surface","SurfaceTarget"],"mappings":"4LAIM,SAAUA,EAAiBC,SACvBC,GAAyB,QAAfC,EAAAF,aAAK,EAALA,EAAOG,gBAAQ,IAAAD,SAAAA,EAAED,UAAW,GAC5CG,EAAyBH,EAAQI,SAAS,KAAOJ,EAAQK,MAAM,KAAO,CAAC,GAAIL,GAAQM,EAAAC,EAAAJ,EAAA,GAA3EG,EAAA,GAAAE,IAAAA,EAAAF,EAAA,GACRG,QADgB,IAAAD,EAAG,GAAEA,GACQH,MAAM,KAAIK,EAAAH,EAAAE,EAAA,GAAA,GAAhCE,WAAMD,EAAG,GAAEA,EAElB,IAAKC,EACD,OAAO,KAEX,GAAIA,EAAOP,SAAS,sBAChB,OAAO,KAGX,IAAIQ,EAAaD,EAAOE,cAKxB,MAJe,WAAXF,IACAC,EAAa,OAGVE,EAAAC,cAAA,MAAA,CAAK,eAAahB,aAAK,EAALA,EAAOiB,QAAS,YAASC,EAAW,wBAAuBN,GAChFG,EAAAC,cAACG,EAAK,CAACC,KAAK,MACPP,GAGb,CCpBc,SAAUQ,IACpB,OAAO,SAAUC,GACb,MAAO,CACHC,KAAM,mBACNC,iBAAkB,CACdC,sBAAuB,CACnBC,UAAW3B,EACX4B,QAASC,EAAc7B,mBAIvC,CACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyd-js/atlas",
|
|
3
|
-
"version": "0.0.0-build-
|
|
3
|
+
"version": "0.0.0-build-6e6f290-20260116222509",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": "^19.1.0",
|
|
28
28
|
"openux-js": "0.0.0-pre.1",
|
|
29
|
-
"@xyd-js/framework": "0.0.0-build-
|
|
30
|
-
"@xyd-js/plugins": "0.0.0-build-
|
|
31
|
-
"@xyd-js/core": "0.0.0-build-
|
|
32
|
-
"@xyd-js/uniform": "0.0.0-build-
|
|
33
|
-
"@xyd-js/components": "0.0.0-build-
|
|
29
|
+
"@xyd-js/framework": "0.0.0-build-6e6f290-20260116222509",
|
|
30
|
+
"@xyd-js/plugins": "0.0.0-build-6e6f290-20260116222509",
|
|
31
|
+
"@xyd-js/core": "0.0.0-build-6e6f290-20260116222509",
|
|
32
|
+
"@xyd-js/uniform": "0.0.0-build-6e6f290-20260116222509",
|
|
33
|
+
"@xyd-js/components": "0.0.0-build-6e6f290-20260116222509"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/react": "^19.1.0",
|
|
@@ -44,15 +44,15 @@
|
|
|
44
44
|
"@rollup/plugin-typescript": "^12.1.1",
|
|
45
45
|
"@wyw-in-js/rollup": "^0.5.5",
|
|
46
46
|
"@wyw-in-js/vite": "^0.5.5",
|
|
47
|
-
"@storybook/react": "^8.
|
|
48
|
-
"@storybook/react-vite": "^8.
|
|
49
|
-
"@storybook/test": "^8.
|
|
47
|
+
"@storybook/react": "^8.6.15",
|
|
48
|
+
"@storybook/react-vite": "^8.6.15",
|
|
49
|
+
"@storybook/test": "^8.6.15",
|
|
50
50
|
"rollup": "^4.27.4",
|
|
51
51
|
"rollup-plugin-css-only": "^4.5.2",
|
|
52
52
|
"rollup-plugin-dts": "^6.1.1",
|
|
53
53
|
"rollup-plugin-terser": "^7.0.2",
|
|
54
54
|
"rimraf": "^3.0.2",
|
|
55
|
-
"storybook": "^8.
|
|
55
|
+
"storybook": "^8.6.15",
|
|
56
56
|
"vite": "^7.0.0",
|
|
57
57
|
"@vitejs/plugin-react": "^4.3.2",
|
|
58
58
|
"unist-util-visit": "^5.0.0",
|