{"_id":"@agilo/medusa-order-cart-widget","_rev":"3-37a1e1ff1dac7adbcdb9e8dabd10a74c","name":"@agilo/medusa-order-cart-widget","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.1":{"name":"@agilo/medusa-order-cart-widget","version":"0.0.1","keywords":["medusa","medusa-plugin","medusa-admin","order-cart","orders","commerce"],"author":{"name":"Ante Primorac","email":"ante@agilo.com"},"license":"MIT","_id":"@agilo/medusa-order-cart-widget@0.0.1","maintainers":[{"name":"anteprimorac","email":"anteprimorachr@gmail.com"},{"name":"alenvuletic","email":"alenvuletic@gmail.com"},{"name":"josipmatichr","email":"josip@agilo.co"}],"homepage":"https://github.com/Agilo/medusa-order-cart-widget","bugs":{"url":"https://github.com/Agilo/medusa-order-cart-widget/issues"},"dist":{"shasum":"adbb84d3738ae79c51c11814b55e28f0f32ce275","tarball":"https://registry.npmjs.org/@agilo/medusa-order-cart-widget/-/medusa-order-cart-widget-0.0.1.tgz","fileCount":7,"integrity":"sha512-LupoM1sEAk9YsSi9aoeeTvOT+vg98FFypULx3Oc5gPusLplpU+JYAh/TCy7+VN8u559tNL4F+ZDRFtknYOeXCw==","signatures":[{"sig":"MEQCIHtJg4RYblRJrygaxnIhPuh/FG1fhwZ6sL4nR+/MYyfoAiBWsajx+O4TlzkGpLzvjmjhe+RoVvIgE4xFzX69es8JbA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":43067},"engines":{"node":">=20"},"exports":{"./*":"./.medusa/server/src/*.js","./admin":{"import":"./.medusa/server/src/admin/index.mjs","default":"./.medusa/server/src/admin/index.js","require":"./.medusa/server/src/admin/index.js"},"./modules/*":"./.medusa/server/src/modules/*/index.js","./workflows":"./.medusa/server/src/workflows/index.js","./providers/*":"./.medusa/server/src/providers/*/index.js","./package.json":"./package.json","./.medusa/server/src/modules/*":"./.medusa/server/src/modules/*/index.js"},"gitHead":"e0342969b9f2a766da15f8cc949786e962b3a59e","scripts":{"dev":"medusa plugin:develop","lint":"eslint .","test":"vitest run","build":"medusa plugin:build","format":"prettier . --check","lint:fix":"eslint . --fix","typecheck":"tsc --noEmit -p tsconfig.json && tsc --noEmit -p src/admin/tsconfig.json","format:fix":"prettier . --write","test:watch":"vitest","prepublishOnly":"yarn test && medusa plugin:build"},"_npmUser":{"name":"anteprimorac","email":"anteprimorachr@gmail.com"},"repository":{"url":"git+https://github.com/Agilo/medusa-order-cart-widget.git","type":"git"},"_npmVersion":"11.6.2","description":"Medusa plugin that adds an order cart widget to the admin order details page.","directories":{},"_nodeVersion":"24.11.1","dependencies":{"@babel/runtime":"^7.26.10","@medusajs/js-sdk":"2.12.4","@uiw/react-json-view":"^2.0.0-alpha.41","@tanstack/react-query":"5.64.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"yarn@4.9.2","devDependencies":{"vite":"^5.4.21","yalc":"^1.0.0-pre.53","jsdom":"^26.1.0","react":"^18.2.0","eslint":"^10.3.0","vitest":"^3.2.4","globals":"^17.6.0","ts-node":"^10.9.2","prettier":"^3.8.3","@swc/core":"^1.7.28","react-dom":"^18.2.0","@eslint/js":"^10.0.1","prop-types":"^15.8.1","typescript":"^5.6.2","@types/node":"^20.19.0","@medusajs/ui":"4.0.25","@types/react":"^18.3.2","@medusajs/cli":"2.12.4","@medusajs/icons":"2.12.4","@medusajs/medusa":"2.12.4","@types/react-dom":"^18.2.25","typescript-eslint":"^8.59.1","@medusajs/admin-sdk":"2.12.4","@medusajs/framework":"2.12.4","@medusajs/test-utils":"2.12.4","@testing-library/dom":"^10.4.1","@testing-library/react":"^16.3.0","eslint-plugin-react-hooks":"^7.1.1"},"peerDependencies":{"@medusajs/ui":">=4.0.0 <5.0.0","@medusajs/icons":">=2.12.0 <3.0.0","@medusajs/medusa":">=2.12.0 <3.0.0","@medusajs/admin-sdk":">=2.12.0 <3.0.0","@medusajs/framework":">=2.12.0 <3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/medusa-order-cart-widget_0.0.1_1777889387050_0.4254836129558517","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@agilo/medusa-order-cart-widget","version":"0.1.0","description":"Medusa plugin that adds an order cart widget to the admin order details page.","author":{"name":"Ante Primorac","email":"ante@agilo.com"},"license":"MIT","homepage":"https://github.com/Agilo/medusa-order-cart-widget","repository":{"type":"git","url":"git+https://github.com/Agilo/medusa-order-cart-widget.git"},"bugs":{"url":"https://github.com/Agilo/medusa-order-cart-widget/issues"},"publishConfig":{"access":"public"},"exports":{"./package.json":"./package.json","./workflows":"./.medusa/server/src/workflows/index.js","./.medusa/server/src/modules/*":"./.medusa/server/src/modules/*/index.js","./modules/*":"./.medusa/server/src/modules/*/index.js","./providers/*":"./.medusa/server/src/providers/*/index.js","./*":"./.medusa/server/src/*.js","./admin":{"import":"./.medusa/server/src/admin/index.mjs","require":"./.medusa/server/src/admin/index.js","default":"./.medusa/server/src/admin/index.js"}},"keywords":["medusa","medusa-plugin","medusa-admin","order-cart","orders","commerce"],"scripts":{"build":"medusa plugin:build","dev":"medusa plugin:develop","format":"prettier . --check","format:fix":"prettier . --write","lint":"eslint .","lint:fix":"eslint . --fix","test":"vitest run","test:watch":"vitest","typecheck":"tsc --noEmit -p tsconfig.json && tsc --noEmit -p src/admin/tsconfig.json","prepublishOnly":"yarn test && medusa plugin:build"},"devDependencies":{"@eslint/js":"^10.0.1","@medusajs/admin-sdk":"2.12.4","@medusajs/cli":"2.12.4","@medusajs/framework":"2.12.4","@medusajs/icons":"2.12.4","@medusajs/medusa":"2.12.4","@medusajs/test-utils":"2.12.4","@medusajs/ui":"4.0.25","@swc/core":"^1.7.28","@testing-library/dom":"^10.4.1","@testing-library/react":"^16.3.0","@types/node":"^20.19.0","@types/react":"^18.3.2","@types/react-dom":"^18.2.25","eslint":"^10.3.0","eslint-plugin-react-hooks":"^7.1.1","globals":"^17.6.0","jsdom":"^26.1.0","prettier":"^3.8.3","prop-types":"^15.8.1","react":"^18.2.0","react-dom":"^18.2.0","ts-node":"^10.9.2","typescript":"^5.6.2","typescript-eslint":"^8.59.1","vite":"^5.4.21","vitest":"^3.2.4","yalc":"^1.0.0-pre.53"},"peerDependencies":{"@medusajs/admin-sdk":">=2.12.0 <3.0.0","@medusajs/framework":">=2.12.0 <3.0.0","@medusajs/icons":">=2.12.0 <3.0.0","@medusajs/medusa":">=2.12.0 <3.0.0","@medusajs/ui":">=4.0.0 <5.0.0"},"engines":{"node":">=20"},"packageManager":"yarn@4.9.2","dependencies":{"@babel/runtime":"^7.26.10","@medusajs/js-sdk":"2.12.4","@tanstack/react-query":"5.64.2","@uiw/react-json-view":"^2.0.0-alpha.41"},"gitHead":"564c8815de0c2f4baecab640abb367331bdc62ca","_id":"@agilo/medusa-order-cart-widget@0.1.0","_nodeVersion":"24.14.1","_npmVersion":"11.11.0","dist":{"integrity":"sha512-SDnMkKheMnM34YKxSxPPATznEUFsG/x7wFUrUFRdKvuCFBNxvoHTvNceVzFw7SQ0QyhnhmM6oAgdnwCrTKegnw==","shasum":"ad093fdd6783f14b7f0bfd7fc5e3c690aee94f20","tarball":"https://registry.npmjs.org/@agilo/medusa-order-cart-widget/-/medusa-order-cart-widget-0.1.0.tgz","fileCount":7,"unpackedSize":43067,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agilo%2fmedusa-order-cart-widget@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDT8hXNnHPBny+jBnNFci4dxEynVLt5obgWUMHTLoxgsgIgQKQps2vXpnmPbIS/XbbLhBFIonAG2ohp9ow6855MDDo="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:c71505b3-d8a5-4b99-a9c4-8fdda192fbe9"}},"directories":{},"maintainers":[{"name":"anteprimorac","email":"anteprimorachr@gmail.com"},{"name":"josipmatichr","email":"josip@agilo.co"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/medusa-order-cart-widget_0.1.0_1778063417770_0.19591906040232"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-04T10:09:46.976Z","modified":"2026-05-06T10:30:18.206Z","0.0.1":"2026-05-04T10:09:47.227Z","0.1.0":"2026-05-06T10:30:17.920Z"},"bugs":{"url":"https://github.com/Agilo/medusa-order-cart-widget/issues"},"author":{"name":"Ante Primorac","email":"ante@agilo.com"},"license":"MIT","homepage":"https://github.com/Agilo/medusa-order-cart-widget","keywords":["medusa","medusa-plugin","medusa-admin","order-cart","orders","commerce"],"repository":{"type":"git","url":"git+https://github.com/Agilo/medusa-order-cart-widget.git"},"description":"Medusa plugin that adds an order cart widget to the admin order details page.","maintainers":[{"name":"anteprimorac","email":"anteprimorachr@gmail.com"},{"name":"josipmatichr","email":"josip@agilo.co"}],"readme":"# @agilo/medusa-order-cart-widget\n\nMedusa plugin that adds an Order Cart widget to the order details view in Medusa Admin.\n\nThe widget fetches the cart linked to an order and shows:\n\n- cart identifiers and timestamps\n- locale information\n- raw cart JSON in an inspector drawer\n- payment sessions with status, amount, timestamps, PSP reference, and raw JSON\n\n## Compatibility\n\nCompatible with Medusa >=2.12.0 and <3.0.0.\n\nVerified locally with Medusa v2.12.4.\n\n## Requirements\n\n- Node.js 20 or newer\n- A Medusa backend on v2.12.x or newer\n\n## Installation\n\n```bash\nyarn add @agilo/medusa-order-cart-widget\n```\n\nRegister the plugin in your Medusa config:\n\n```ts\nimport { defineConfig } from \"@medusajs/framework/utils\";\n\nmodule.exports = defineConfig({\n  plugins: [\n    {\n      resolve: \"@agilo/medusa-order-cart-widget\",\n    },\n  ],\n});\n```\n\nRestart the Medusa server and open any order in Medusa Admin. The widget is injected into the `order.details.side.after` zone.\n\n## What It Adds\n\nThe plugin ships two pieces:\n\n1. An admin widget that renders the linked cart on the order details page.\n2. An admin API route at `/admin/orders/:id/cart` that retrieves the order's linked cart and payment collection data.\n\nIf an order does not have a linked cart, the route returns a `NOT_FOUND` error and the widget shows the failure state.\n\n## Development\n\n```bash\nyarn dev\n```\n\n## Testing\n\n```bash\nyarn test\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}