{"_id":"@abhishek0608/expedite-components","_rev":"3-e12bcaae609df76913a2199e215e0c32","name":"@abhishek0608/expedite-components","dist-tags":{"latest":"0.2.2"},"versions":{"0.4.6":{"name":"@abhishek0608/expedite-components","version":"0.4.6","keywords":["vue","vue3","components","configurator","gpt"],"author":"","license":"MIT","_id":"@abhishek0608/expedite-components@0.4.6","maintainers":[{"name":"abhishek0608","email":"ABHISHEK06081992@GMAIL.COM"}],"dist":{"shasum":"4d6bf4e12c2e8a4f4810491450acb1ad338bc2ea","tarball":"https://registry.npmjs.org/@abhishek0608/expedite-components/-/expedite-components-0.4.6.tgz","fileCount":13,"integrity":"sha512-dflCF/8uz41Y2xQe0CNZkhLetA6ehwC4eFZtMD9j3hRH8WFsOtDabE11VrJDZpTMyGGgH0SfxEa1H8b7kIT5lw==","signatures":[{"sig":"MEUCIEnAFySX4MC7FmwtvdwU05Bst0XD8VFANxZ0cA1ffrzAAiEAwrr3OvHm/kva5oKuuA1qqTqVz/TLXHTZpxCCRUhf618=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5416665},"main":"./dist/expedite-components.cjs.js","type":"module","module":"./dist/expedite-components.es.js","exports":{".":{"import":"./dist/expedite-components.es.js","require":"./dist/expedite-components.cjs.js"},"./style":"./dist/expedite-components.css"},"gitHead":"3e9f2f782bcf6fdc42187e6a19e942affb144980","private":false,"scripts":{"dev":"vite","lint":"eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore","build":"vite build","deploy":"dotenv -- npm run _deploy","format":"prettier --write src/","sfpush":"cd $SF_PROJECT_PATH && sf project deploy start --metadata StaticResource:$SF_RESOURCE_NAME --target-org $SF_ORG_ALIAS","_deploy":"npm run build && npm run sfpush","deployw":"dotenv -- npm run _deployw","prepare":"husky","preview":"vite preview","sfpushw":"cd %SF_PROJECT_PATH% && sf project deploy start --metadata StaticResource:$SF_RESOURCE_NAME --target-org %SF_ORG_ALIAS%","_deployw":"npm run build && npm run sfpushw","prebuild":"node pre-build.js","build:all":"npm run build && npm run build:web-components","postbuild":"node post-build.js","build:web-components":"vite build --config vite.webcomponents.config.js"},"_npmUser":{"name":"abhishek0608","email":"ABHISHEK06081992@GMAIL.COM"},"_npmVersion":"11.4.2","description":"Vue 3 components library for Expedite","directories":{},"lint-staged":{"*.{vue,js,jsx,cjs,mjs}":["eslint --fix","prettier --write"],"*.{css,scss,html,md,json}":["prettier --write"]},"_nodeVersion":"24.3.0","dependencies":{"vue":"^3.4.21","axios":"^1.13.2","pinia":"^2.1.7","crypto-js":"^4.2.0","dompurify":"^3.2.6","vuedraggable":"^4.1.0","vue-router-lwc":"^1.0.4","v-click-outside":"^3.2.0","@vueup/vue-quill":"^1.2.0","lodash.clonedeep":"^4.5.0"},"_hasShrinkwrap":false,"devDependencies":{"sass":"^1.74.1","vite":"^5.2.8","husky":"^9.1.7","jsdom":"^24.0.0","dotenv":"^16.4.5","eslint":"^8.57.0","vitest":"^1.4.0","postcss":"^8.4.38","prettier":"^3.2.5","dotenv-cli":"^7.4.2","lint-staged":"^15.5.1","tailwindcss":"^3.4.3","autoprefixer":"^10.4.19","@vue/test-utils":"^2.4.5","eslint-plugin-vue":"^9.23.0","@vitejs/plugin-vue":"^5.0.4","vite-plugin-zip-pack":"^1.2.3","@rushstack/eslint-patch":"^1.8.0","vite-plugin-vue-devtools":"^7.0.25","@vue/eslint-config-prettier":"^9.0.0","@typescript-eslint/eslint-plugin":"^8.38.0"},"peerDependencies":{"vue":"^3.4.21","axios":"^1.13.2","pinia":"^2.1.7","dompurify":"^3.2.6","vuedraggable":"^4.1.0","vue-router-lwc":"^1.0.4","v-click-outside":"^3.2.0","lodash.clonedeep":"^4.5.0"},"_npmOperationalInternal":{"tmp":"tmp/expedite-components_0.4.6_1765275598696_0.6660875913391999","host":"s3://npm-registry-packages-npm-production"}},"0.4.7":{"name":"@abhishek0608/expedite-components","version":"0.4.7","keywords":["vue","vue3","components","configurator","gpt"],"author":"","license":"MIT","_id":"@abhishek0608/expedite-components@0.4.7","maintainers":[{"name":"abhishek0608","email":"ABHISHEK06081992@GMAIL.COM"}],"dist":{"shasum":"ebcb7ee838f20fd91ffd27b38188e409ffd4bb25","tarball":"https://registry.npmjs.org/@abhishek0608/expedite-components/-/expedite-components-0.4.7.tgz","fileCount":13,"integrity":"sha512-devQt/0xxbJxWQ7VLSQm9gi+xKWM30nKCsQpSsCQzqW024FeAAuup3ATJDBafQwU9uKJzu1QHK+jFMDavvXzBQ==","signatures":[{"sig":"MEYCIQC4u+fD5BpDi1K1GNjAhYmTPkOzIzQf6H96+N15Z2LFQQIhAOTa2sufzyoXpz8QWbJL/k/pcUdmVvPYL9TrvnR4Do2f","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5416665},"main":"./dist/expedite-components.cjs.js","type":"module","module":"./dist/expedite-components.es.js","exports":{".":{"import":"./dist/expedite-components.es.js","require":"./dist/expedite-components.cjs.js"},"./style":"./dist/expedite-components.css"},"gitHead":"3e9f2f782bcf6fdc42187e6a19e942affb144980","private":false,"scripts":{"dev":"vite","lint":"eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore","build":"vite build","deploy":"dotenv -- npm run _deploy","format":"prettier --write src/","sfpush":"cd $SF_PROJECT_PATH && sf project deploy start --metadata StaticResource:$SF_RESOURCE_NAME --target-org $SF_ORG_ALIAS","_deploy":"npm run build && npm run sfpush","deployw":"dotenv -- npm run _deployw","prepare":"husky","preview":"vite preview","sfpushw":"cd %SF_PROJECT_PATH% && sf project deploy start --metadata StaticResource:$SF_RESOURCE_NAME --target-org %SF_ORG_ALIAS%","_deployw":"npm run build && npm run sfpushw","prebuild":"node pre-build.js","build:all":"npm run build && npm run build:web-components","postbuild":"node post-build.js","build:web-components":"vite build --config vite.webcomponents.config.js"},"_npmUser":{"name":"abhishek0608","email":"ABHISHEK06081992@GMAIL.COM"},"_npmVersion":"11.4.2","description":"Vue 3 components library for Expedite","directories":{},"lint-staged":{"*.{vue,js,jsx,cjs,mjs}":["eslint --fix","prettier --write"],"*.{css,scss,html,md,json}":["prettier --write"]},"_nodeVersion":"24.3.0","dependencies":{"vue":"^3.4.21","axios":"^1.13.2","pinia":"^2.1.7","crypto-js":"^4.2.0","dompurify":"^3.2.6","vuedraggable":"^4.1.0","vue-router-lwc":"^1.0.4","v-click-outside":"^3.2.0","@vueup/vue-quill":"^1.2.0","lodash.clonedeep":"^4.5.0"},"_hasShrinkwrap":false,"devDependencies":{"sass":"^1.74.1","vite":"^5.2.8","husky":"^9.1.7","jsdom":"^24.0.0","dotenv":"^16.4.5","eslint":"^8.57.0","vitest":"^1.4.0","postcss":"^8.4.38","prettier":"^3.2.5","dotenv-cli":"^7.4.2","lint-staged":"^15.5.1","tailwindcss":"^3.4.3","autoprefixer":"^10.4.19","@vue/test-utils":"^2.4.5","eslint-plugin-vue":"^9.23.0","@vitejs/plugin-vue":"^5.0.4","vite-plugin-zip-pack":"^1.2.3","@rushstack/eslint-patch":"^1.8.0","vite-plugin-vue-devtools":"^7.0.25","@vue/eslint-config-prettier":"^9.0.0","@typescript-eslint/eslint-plugin":"^8.38.0"},"peerDependencies":{"vue":"^3.4.21","axios":"^1.13.2","pinia":"^2.1.7","dompurify":"^3.2.6","vuedraggable":"^4.1.0","vue-router-lwc":"^1.0.4","v-click-outside":"^3.2.0","lodash.clonedeep":"^4.5.0"},"_npmOperationalInternal":{"tmp":"tmp/expedite-components_0.4.7_1765275910356_0.9996587102266092","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@abhishek0608/expedite-components","private":false,"version":"0.2.2","type":"module","description":"Vue 3 components library for Expedite","main":"./dist/expedite-components.cjs.js","module":"./dist/expedite-components.es.js","exports":{".":{"import":"./dist/expedite-components.es.js","require":"./dist/expedite-components.cjs.js"},"./style":"./dist/expedite-components.css"},"keywords":["vue","vue3","components","configurator","gpt"],"scripts":{"prebuild":"node pre-build.js","postbuild":"node post-build.js","dev":"vite","build":"vite build","build:web-components":"vite build --config vite.webcomponents.config.js","build:all":"npm run build && npm run build:web-components","preview":"vite preview","lint":"eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore","format":"prettier --write src/","sfpush":"cd $SF_PROJECT_PATH && sf project deploy start --metadata StaticResource:$SF_RESOURCE_NAME --target-org $SF_ORG_ALIAS","sfpushw":"cd %SF_PROJECT_PATH% && sf project deploy start --metadata StaticResource:$SF_RESOURCE_NAME --target-org %SF_ORG_ALIAS%","_deploy":"npm run build && npm run sfpush","_deployw":"npm run build && npm run sfpushw","deploy":"dotenv -- npm run _deploy","deployw":"dotenv -- npm run _deployw","prepare":"husky"},"lint-staged":{"*.{vue,js,jsx,cjs,mjs}":["eslint --fix","prettier --write"],"*.{css,scss,html,md,json}":["prettier --write"]},"dependencies":{"@vueup/vue-quill":"^1.2.0","axios":"^1.13.2","dompurify":"^3.2.6","lodash.clonedeep":"^4.5.0","pinia":"^2.1.7","v-click-outside":"^3.2.0","crypto-js":"^4.2.0","vue":"^3.4.21","vue-router-lwc":"^1.0.4","vuedraggable":"^4.1.0"},"devDependencies":{"@rushstack/eslint-patch":"^1.8.0","@typescript-eslint/eslint-plugin":"^8.38.0","@vitejs/plugin-vue":"^5.0.4","@vue/eslint-config-prettier":"^9.0.0","@vue/test-utils":"^2.4.5","autoprefixer":"^10.4.19","dotenv":"^16.4.5","dotenv-cli":"^7.4.2","eslint":"^8.57.0","eslint-plugin-vue":"^9.23.0","husky":"^9.1.7","jsdom":"^24.0.0","lint-staged":"^15.5.1","postcss":"^8.4.38","prettier":"^3.2.5","sass":"^1.74.1","tailwindcss":"^3.4.3","vite":"^5.2.8","vite-plugin-vue-devtools":"^7.0.25","vite-plugin-zip-pack":"^1.2.3","vitest":"^1.4.0"},"peerDependencies":{"vue":"^3.4.21","pinia":"^2.1.7","axios":"^1.13.2","dompurify":"^3.2.6","lodash.clonedeep":"^4.5.0","v-click-outside":"^3.2.0","vue-router-lwc":"^1.0.4","vuedraggable":"^4.1.0"},"author":"","license":"MIT","_id":"@abhishek0608/expedite-components@0.2.2","gitHead":"064311842f325809021e273fb050ef7f48b91344","_nodeVersion":"23.7.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-vnE70mNaQyH7IByqwSfEulYbtqvxKBLEajBsEh8KepRttWdeHnRmrUW3grjLstnCqyeJcxhzyfmsjfz7YnA6PQ==","shasum":"f3e0c61cfa4c21bef72bdd537310641b205355b3","tarball":"https://registry.npmjs.org/@abhishek0608/expedite-components/-/expedite-components-0.2.2.tgz","fileCount":13,"unpackedSize":5420217,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEbI8q4bc9aYXjuMaecfUnQAuaMrlMV3S6Ws3nsiKL6SAiEAs+4AtSyEHhXoFUV1rt9WuMO8BuIlKLppuVAWK/bxd+k="}]},"_npmUser":{"name":"abhishek0608","email":"ABHISHEK06081992@GMAIL.COM"},"directories":{},"maintainers":[{"name":"abhishek0608","email":"ABHISHEK06081992@GMAIL.COM"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/expedite-components_0.2.2_1765283474481_0.6779990540445895"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-09T10:19:58.596Z","modified":"2025-12-09T12:31:14.916Z","0.4.6":"2025-12-09T10:19:58.934Z","0.4.7":"2025-12-09T10:25:10.555Z","0.2.2":"2025-12-09T12:31:14.709Z"},"license":"MIT","keywords":["vue","vue3","components","configurator","gpt"],"description":"Vue 3 components library for Expedite","maintainers":[{"name":"abhishek0608","email":"ABHISHEK06081992@GMAIL.COM"}],"readme":"# Expedite Components\n\nA Vue 3 component library for Expedite Commerce, providing reusable components including Configurator and GPT chat functionality.\n\n## Installation\n\n```sh\nnpm install expedite-components\n```\n\n## Peer Dependencies\n\nThis library requires the following peer dependencies:\n\n```sh\nnpm install vue@^3.4.21 pinia@^2.1.7 axios@^1.13.2 dompurify@^3.2.6 lodash.clonedeep@^4.5.0 v-click-outside@^3.2.0 vue-router-lwc@^1.0.4 vuedraggable@^4.1.0\n```\n\n## Usage\n\n### Vue 3 Application\n\n#### Option 1: Install as a Plugin (Global Registration)\n\n```javascript\nimport { createApp } from 'vue'\nimport { createPinia } from 'pinia'\nimport ExpediteComponents from 'expedite-components'\nimport 'expedite-components/style'\n\nconst app = createApp(App)\nconst pinia = createPinia()\n\napp.use(pinia)\napp.use(ExpediteComponents)\n\napp.mount('#app')\n```\n\nThen use components in your templates:\n\n```vue\n<template>\n    <div>\n        <!-- Expedite Configurator -->\n        <ExpediteConfigurator \n            :setup-data=\"setupData\"\n            item-id=\"your-item-id\"\n            qli-id=\"optional-qli-id\"\n            quote-id=\"optional-quote-id\"\n            api-key=\"API_KEY\"\n        />\n\n        <!-- Expedite GPT Chat -->\n        <ExpediteGPT \n            secret-key=\"API_KEY\"\n            model=\"gpt-3.5-turbo\"\n            :max-tokens=\"300\"\n            placeholder=\"Enter your message...\"\n        />\n    </div>\n</template>\n\n<script setup>\nconst setupData = {\n    orgType: \"Production\",\n    orgId: \"00DA0000000cDUJMA2\",\n    userId: \"0052G00000AtQQ9QAN\",\n    accountId: \"0012G000000cDUJMA2\",\n    opportunityId: \"0062G000000cDUJMA2\",\n    userLocale: \"en_US\",\n    pricingSchema: \"Single\"\n}\n</script>\n```\n\n#### Option 2: Import Individual Components\n\n```vue\n<template>\n    <div>\n        <ExpediteConfigurator \n            :setup-data=\"setupData\"\n            item-id=\"your-item-id\"\n            qli-id=\"optional-qli-id\"\n            quote-id=\"optional-quote-id\"\n            api-key=\"API_KEY\"\n        />\n        <ExpediteGPT \n            secret-key=\"API_KEY\"\n        />\n    </div>\n</template>\n\n<script setup>\nimport { ExpediteConfigurator, ExpediteGPT } from 'expedite-components'\nimport 'expedite-components/style'\n\nconst setupData = {\n    orgType: \"Production\",\n    orgId: \"00DA0000000cDUJMA2\",\n    userId: \"0052G00000AtQQ9QAN\",\n    accountId: \"0012G000000cDUJMA2\",\n    opportunityId: \"0062G000000cDUJMA2\",\n    userLocale: \"en_US\",\n    pricingSchema: \"Single\"\n}\n</script>\n```\n\n#### Option 3: Using with Composition API\n\n```vue\n<template>\n    <div>\n        <ExpediteConfigurator \n            :setup-data=\"setupData\"\n            :item-id=\"itemId\"\n            :qli-id=\"qliId\"\n            :quote-id=\"quoteId\"\n            api-key=\"API_KEY\"\n        />\n    </div>\n</template>\n\n<script setup>\nimport { ref } from 'vue'\nimport { ExpediteConfigurator } from 'expedite-components'\nimport 'expedite-components/style'\n\nconst setupData = {\n    orgType: \"Production\",\n    orgId: \"00DA0000000cDUJMA2\",\n    userId: \"0052G00000AtQQ9QAN\",\n    accountId: \"0012G000000cDUJMA2\",\n    opportunityId: \"0062G000000cDUJMA2\",\n    userLocale: \"en_US\",\n    pricingSchema: \"Single\"\n}\n\nconst itemId = ref('a01Kb00000aQb5VIAS')\nconst qliId = ref('a0pKb00000jxSYUIA2')\nconst quoteId = ref('a0jKb000004V2dsIAC')\n</script>\n```\n\n### Component Props\n\n#### ExpediteConfigurator\n\n| Prop | Type | Required | Default | Description |\n|------|------|----------|---------|-------------|\n| `setupData` | Object | Yes | - | Configuration object with the following properties:<br/>- `orgType` (String): Organization type (e.g., \"Production\")<br/>- `orgId` (String): Organization ID<br/>- `userId` (String): User ID<br/>- `accountId` (String): Account ID<br/>- `opportunityId` (String): Opportunity ID<br/>- `userLocale` (String): User locale (e.g., \"en_US\")<br/>- `pricingSchema` (String): Pricing schema (e.g., \"Single\" or \"NRC/MRC\") |\n| `itemId` | String | Yes | - | The ID of the item to configure |\n| `qliId` | String | No | - | Optional Quote Line Item ID |\n| `quoteId` | String | No | - | Optional Quote ID |\n| `apiKey` | String | Yes | - | API key for authentication |\n\n#### ExpediteGPT\n\n| Prop | Type | Required | Default | Description |\n|------|------|----------|---------|-------------|\n| `secretKey` | String | No | `\"\"` | OpenAI API secret key |\n| `model` | String | No | `\"gpt-3.5-turbo\"` | GPT model to use |\n| `maxTokens` | Number | No | `300` | Maximum tokens for the response |\n| `placeholder` | String | No | `\"Enter your message...\"` | Input placeholder text |\n\n### Tailwind CSS Configuration\n\nThis library uses Tailwind CSS with the `ect-` prefix for all utility classes. The built CSS file (`expedite-components.css`) includes all necessary classes, including arbitrary values (e.g., `ect-w-[104px]`, `ect-h-[104px]`).\n\n**Important for consuming projects:**\n\n- The library's CSS is pre-built and includes all classes. You don't need to configure Tailwind to scan the library's source files.\n- Simply import the library's CSS: `import 'expedite-components/style'`\n- If your project also uses Tailwind, make sure your Tailwind config doesn't try to process the library's `ect-` prefixed classes. The library's classes are already compiled and included in the distributed CSS file.\n- All arbitrary value classes (like `ect-w-[104px]`) are included in the built CSS, so they will work out of the box.\n\n### HTML/Web Components (Framework Agnostic)\n\nYou can use the components in any HTML page without a Vue application:\n\n```html\n<!doctype html>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"UTF-8\" />\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n    <title>Expedite Components</title>\n    \n    <script type=\"module\">\n      import { registerWebComponents } from 'https://unpkg.com/expedite-components@latest/dist/vue-expedite-components.js';\n      registerWebComponents();\n    </script>\n  </head>\n  <body>\n    <vue-expedite-configurator \n      setup-data='{\"orgType\":\"Production\",\"orgId\":\"00DA0000000cDUJMA2\",\"userId\":\"0052G00000AtQQ9QAN\",\"accountId\":\"0012G000000cDUJMA2\",\"opportunityId\":\"0062G000000cDUJMA2\",\"userLocale\":\"en_US\",\"pricingSchema\":\"Single\"}'\n      item-id=\"a01Kb00000aQb5VIAS\"\n      qli-id=\"a0pKb00000jxSYUIA2\" // not required\n      quote-id=\"a0jKb000004V2dsIAC\"\n      api-key=\"API_KEY\"\n    ></vue-expedite-configurator>\n  </body>\n</html>\n```\n\n#### Alternative: Using UMD Bundle (for non-module environments)\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>Expedite Components</title>\n    \n    <!-- Import the UMD bundle -->\n    <link rel=\"stylesheet\" href=\"./node_modules/expedite-components/dist/style.css\">\n    <script src=\"./node_modules/expedite-components/dist/vue-expedite-components.umd.cjs\"></script>\n</head>\n<body>\n    <vue-expedite-configurator \n        setup-data='{\"orgType\":\"Production\",\"orgId\":\"00DA0000000cDUJMA2\",\"userId\":\"0052G00000AtQQ9QAN\",\"accountId\":\"0012G000000cDUJMA2\",\"opportunityId\":\"0062G000000cDUJMA2\",\"userLocale\":\"en_US\",\"pricingSchema\":\"Single\"}'\n        item-id=\"a01Kb00000aQb5VIAS\"\n        qli-id=\"a0pKb00000jxSYUIA2\"\n        quote-id=\"a0jKb000004V2dsIAC\"\n        api-key=\"API_KEY\"\n    ></vue-expedite-configurator>\n\n    <vue-expedite-gpt \n        secret-key=\"API_KEY\"\n        model=\"gpt-3.5-turbo\"\n        max-tokens=\"300\"\n        placeholder=\"Enter your message...\"\n    ></vue-expedite-gpt>\n</body>\n</html>\n```\n\n## Development\n\n### Project Setup\n\n```sh\nnpm install\n```\n\n### Compile and Hot-Reload for Development\n\n```sh\nnpm run dev\n```\n\n### Build for Production\n\nBuild both regular library and web components:\n\n```sh\nnpm run build:all\n```\n\nBuild only the regular library:\n\n```sh\nnpm run build\n```\n\nBuild only web components:\n\n```sh\nnpm run build:web-components\n```\n\n### Run Unit Tests with [Vitest](https://vitest.dev/)\n\n```sh\nnpm run test:unit\n```\n\n### Lint with [ESLint](https://eslint.org/)\n\n```sh\nnpm run lint\n```\n\n## Recommended IDE Setup\n\n[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).\n\n## Customize configuration\n\nSee [Vite Configuration Reference](https://vitejs.dev/config/).\n\n## License\n\nMIT\n","readmeFilename":"README.md"}