@payloadcms/plugin-ecommerce 3.57.0-internal.795616e → 3.57.0-internal.7b91762

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.
@@ -1 +1 @@
1
- {"version":3,"file":"createAddressesCollection.d.ts","sourceRoot":"","sources":["../../../src/collections/addresses/createAddressesCollection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKrE,KAAK,KAAK,GAAG;IACX,MAAM,EAAE;QACN,oBAAoB,EAAE,YAAY,CAAC,sBAAsB,CAAC,CAAA;QAC1D,iBAAiB,EAAE,WAAW,CAAC,YAAY,CAAC,mBAAmB,CAAC,CAAC,CAAA;QACjE,uBAAuB,EAAE,YAAY,CAAC,yBAAyB,CAAC,CAAA;KACjE,CAAA;IACD;;OAEG;IACH,aAAa,EAAE,KAAK,EAAE,CAAA;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,kBAAkB,CAAC,EAAE,WAAW,EAAE,CAAA;CACnC,CAAA;AAED,eAAO,MAAM,yBAAyB,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,gBA4EzD,CAAA"}
1
+ {"version":3,"file":"createAddressesCollection.d.ts","sourceRoot":"","sources":["../../../src/collections/addresses/createAddressesCollection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKrE,KAAK,KAAK,GAAG;IACX,MAAM,EAAE;QACN,oBAAoB,EAAE,YAAY,CAAC,sBAAsB,CAAC,CAAA;QAC1D,iBAAiB,EAAE,WAAW,CAAC,YAAY,CAAC,mBAAmB,CAAC,CAAC,CAAA;QACjE,uBAAuB,EAAE,YAAY,CAAC,yBAAyB,CAAC,CAAA;KACjE,CAAA;IACD;;OAEG;IACH,aAAa,EAAE,KAAK,EAAE,CAAA;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,kBAAkB,CAAC,EAAE,WAAW,EAAE,CAAA;CACnC,CAAA;AAED,eAAO,MAAM,yBAAyB,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,gBA6EzD,CAAA"}
@@ -45,6 +45,7 @@ export const createAddressesCollection = (props)=>{
45
45
  description: ({ t })=>// @ts-expect-error - translations are not typed in plugins yet
46
46
  t('plugin-ecommerce:addressesCollectionDescription'),
47
47
  group: 'Ecommerce',
48
+ hidden: true,
48
49
  useAsTitle: 'createdAt'
49
50
  },
50
51
  fields,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/collections/addresses/createAddressesCollection.ts"],"sourcesContent":["import type { CollectionConfig, Field } from 'payload'\n\nimport type { AccessConfig, CountryType } from '../../types/index.js'\n\nimport { defaultCountries } from './defaultCountries.js'\nimport { beforeChange } from './hooks/beforeChange.js'\n\ntype Props = {\n access: {\n adminOrCustomerOwner: AccessConfig['adminOrCustomerOwner']\n authenticatedOnly: NonNullable<AccessConfig['authenticatedOnly']>\n customerOnlyFieldAccess: AccessConfig['customerOnlyFieldAccess']\n }\n /**\n * Array of fields used for capturing the address data. Use this over overrides to customise the fields here as it's reused across the plugin.\n */\n addressFields: Field[]\n /**\n * Slug of the customers collection, defaults to 'users'.\n */\n customersSlug?: string\n supportedCountries?: CountryType[]\n}\n\nexport const createAddressesCollection: (props: Props) => CollectionConfig = (props) => {\n const {\n access: { adminOrCustomerOwner, authenticatedOnly, customerOnlyFieldAccess },\n addressFields,\n customersSlug = 'users',\n } = props || {}\n\n const { supportedCountries: supportedCountriesFromProps } = props || {}\n const supportedCountries = supportedCountriesFromProps || defaultCountries\n const hasOnlyOneCountry = supportedCountries && supportedCountries.length === 1\n\n const fields: Field[] = [\n {\n name: 'customer',\n type: 'relationship',\n admin: {\n position: 'sidebar',\n },\n label: ({ t }) =>\n // @ts-expect-error - translations are not typed in plugins yet\n t('plugin-ecommerce:customer'),\n relationTo: customersSlug,\n },\n ...addressFields.map((field) => {\n if ('name' in field && field.name === 'country') {\n return {\n name: 'country',\n type: 'select',\n label: ({ t }) =>\n // @ts-expect-error - translations are not typed in plugins yet\n t('plugin-ecommerce:addressCountry'),\n options: supportedCountries || defaultCountries,\n required: true,\n ...(supportedCountries && supportedCountries?.[0] && hasOnlyOneCountry\n ? {\n defaultValue: supportedCountries?.[0].value,\n }\n : {}),\n } as Field\n }\n\n return field\n }),\n ]\n\n const baseConfig: CollectionConfig = {\n slug: 'addresses',\n access: {\n create: authenticatedOnly,\n delete: adminOrCustomerOwner,\n read: adminOrCustomerOwner,\n update: adminOrCustomerOwner,\n },\n admin: {\n description: ({ t }) =>\n // @ts-expect-error - translations are not typed in plugins yet\n t('plugin-ecommerce:addressesCollectionDescription'),\n group: 'Ecommerce',\n useAsTitle: 'createdAt',\n },\n fields,\n hooks: {\n beforeChange: [beforeChange({ customerOnlyFieldAccess })],\n },\n labels: {\n plural: ({ t }) =>\n // @ts-expect-error - translations are not typed in plugins yet\n t('plugin-ecommerce:addresses'),\n singular: ({ t }) =>\n // @ts-expect-error - translations are not typed in plugins yet\n t('plugin-ecommerce:address'),\n },\n timestamps: true,\n }\n\n return { ...baseConfig }\n}\n"],"names":["defaultCountries","beforeChange","createAddressesCollection","props","access","adminOrCustomerOwner","authenticatedOnly","customerOnlyFieldAccess","addressFields","customersSlug","supportedCountries","supportedCountriesFromProps","hasOnlyOneCountry","length","fields","name","type","admin","position","label","t","relationTo","map","field","options","required","defaultValue","value","baseConfig","slug","create","delete","read","update","description","group","useAsTitle","hooks","labels","plural","singular","timestamps"],"mappings":"AAIA,SAASA,gBAAgB,QAAQ,wBAAuB;AACxD,SAASC,YAAY,QAAQ,0BAAyB;AAmBtD,OAAO,MAAMC,4BAAgE,CAACC;IAC5E,MAAM,EACJC,QAAQ,EAAEC,oBAAoB,EAAEC,iBAAiB,EAAEC,uBAAuB,EAAE,EAC5EC,aAAa,EACbC,gBAAgB,OAAO,EACxB,GAAGN,SAAS,CAAC;IAEd,MAAM,EAAEO,oBAAoBC,2BAA2B,EAAE,GAAGR,SAAS,CAAC;IACtE,MAAMO,qBAAqBC,+BAA+BX;IAC1D,MAAMY,oBAAoBF,sBAAsBA,mBAAmBG,MAAM,KAAK;IAE9E,MAAMC,SAAkB;QACtB;YACEC,MAAM;YACNC,MAAM;YACNC,OAAO;gBACLC,UAAU;YACZ;YACAC,OAAO,CAAC,EAAEC,CAAC,EAAE,GACX,+DAA+D;gBAC/DA,EAAE;YACJC,YAAYZ;QACd;WACGD,cAAcc,GAAG,CAAC,CAACC;YACpB,IAAI,UAAUA,SAASA,MAAMR,IAAI,KAAK,WAAW;gBAC/C,OAAO;oBACLA,MAAM;oBACNC,MAAM;oBACNG,OAAO,CAAC,EAAEC,CAAC,EAAE,GACX,+DAA+D;wBAC/DA,EAAE;oBACJI,SAASd,sBAAsBV;oBAC/ByB,UAAU;oBACV,GAAIf,sBAAsBA,oBAAoB,CAAC,EAAE,IAAIE,oBACjD;wBACEc,cAAchB,oBAAoB,CAAC,EAAE,CAACiB;oBACxC,IACA,CAAC,CAAC;gBACR;YACF;YAEA,OAAOJ;QACT;KACD;IAED,MAAMK,aAA+B;QACnCC,MAAM;QACNzB,QAAQ;YACN0B,QAAQxB;YACRyB,QAAQ1B;YACR2B,MAAM3B;YACN4B,QAAQ5B;QACV;QACAY,OAAO;YACLiB,aAAa,CAAC,EAAEd,CAAC,EAAE,GACjB,+DAA+D;gBAC/DA,EAAE;YACJe,OAAO;YACPC,YAAY;QACd;QACAtB;QACAuB,OAAO;YACLpC,cAAc;gBAACA,aAAa;oBAAEM;gBAAwB;aAAG;QAC3D;QACA+B,QAAQ;YACNC,QAAQ,CAAC,EAAEnB,CAAC,EAAE,GACZ,+DAA+D;gBAC/DA,EAAE;YACJoB,UAAU,CAAC,EAAEpB,CAAC,EAAE,GACd,+DAA+D;gBAC/DA,EAAE;QACN;QACAqB,YAAY;IACd;IAEA,OAAO;QAAE,GAAGb,UAAU;IAAC;AACzB,EAAC"}
1
+ {"version":3,"sources":["../../../src/collections/addresses/createAddressesCollection.ts"],"sourcesContent":["import type { CollectionConfig, Field } from 'payload'\n\nimport type { AccessConfig, CountryType } from '../../types/index.js'\n\nimport { defaultCountries } from './defaultCountries.js'\nimport { beforeChange } from './hooks/beforeChange.js'\n\ntype Props = {\n access: {\n adminOrCustomerOwner: AccessConfig['adminOrCustomerOwner']\n authenticatedOnly: NonNullable<AccessConfig['authenticatedOnly']>\n customerOnlyFieldAccess: AccessConfig['customerOnlyFieldAccess']\n }\n /**\n * Array of fields used for capturing the address data. Use this over overrides to customise the fields here as it's reused across the plugin.\n */\n addressFields: Field[]\n /**\n * Slug of the customers collection, defaults to 'users'.\n */\n customersSlug?: string\n supportedCountries?: CountryType[]\n}\n\nexport const createAddressesCollection: (props: Props) => CollectionConfig = (props) => {\n const {\n access: { adminOrCustomerOwner, authenticatedOnly, customerOnlyFieldAccess },\n addressFields,\n customersSlug = 'users',\n } = props || {}\n\n const { supportedCountries: supportedCountriesFromProps } = props || {}\n const supportedCountries = supportedCountriesFromProps || defaultCountries\n const hasOnlyOneCountry = supportedCountries && supportedCountries.length === 1\n\n const fields: Field[] = [\n {\n name: 'customer',\n type: 'relationship',\n admin: {\n position: 'sidebar',\n },\n label: ({ t }) =>\n // @ts-expect-error - translations are not typed in plugins yet\n t('plugin-ecommerce:customer'),\n relationTo: customersSlug,\n },\n ...addressFields.map((field) => {\n if ('name' in field && field.name === 'country') {\n return {\n name: 'country',\n type: 'select',\n label: ({ t }) =>\n // @ts-expect-error - translations are not typed in plugins yet\n t('plugin-ecommerce:addressCountry'),\n options: supportedCountries || defaultCountries,\n required: true,\n ...(supportedCountries && supportedCountries?.[0] && hasOnlyOneCountry\n ? {\n defaultValue: supportedCountries?.[0].value,\n }\n : {}),\n } as Field\n }\n\n return field\n }),\n ]\n\n const baseConfig: CollectionConfig = {\n slug: 'addresses',\n access: {\n create: authenticatedOnly,\n delete: adminOrCustomerOwner,\n read: adminOrCustomerOwner,\n update: adminOrCustomerOwner,\n },\n admin: {\n description: ({ t }) =>\n // @ts-expect-error - translations are not typed in plugins yet\n t('plugin-ecommerce:addressesCollectionDescription'),\n group: 'Ecommerce',\n hidden: true,\n useAsTitle: 'createdAt',\n },\n fields,\n hooks: {\n beforeChange: [beforeChange({ customerOnlyFieldAccess })],\n },\n labels: {\n plural: ({ t }) =>\n // @ts-expect-error - translations are not typed in plugins yet\n t('plugin-ecommerce:addresses'),\n singular: ({ t }) =>\n // @ts-expect-error - translations are not typed in plugins yet\n t('plugin-ecommerce:address'),\n },\n timestamps: true,\n }\n\n return { ...baseConfig }\n}\n"],"names":["defaultCountries","beforeChange","createAddressesCollection","props","access","adminOrCustomerOwner","authenticatedOnly","customerOnlyFieldAccess","addressFields","customersSlug","supportedCountries","supportedCountriesFromProps","hasOnlyOneCountry","length","fields","name","type","admin","position","label","t","relationTo","map","field","options","required","defaultValue","value","baseConfig","slug","create","delete","read","update","description","group","hidden","useAsTitle","hooks","labels","plural","singular","timestamps"],"mappings":"AAIA,SAASA,gBAAgB,QAAQ,wBAAuB;AACxD,SAASC,YAAY,QAAQ,0BAAyB;AAmBtD,OAAO,MAAMC,4BAAgE,CAACC;IAC5E,MAAM,EACJC,QAAQ,EAAEC,oBAAoB,EAAEC,iBAAiB,EAAEC,uBAAuB,EAAE,EAC5EC,aAAa,EACbC,gBAAgB,OAAO,EACxB,GAAGN,SAAS,CAAC;IAEd,MAAM,EAAEO,oBAAoBC,2BAA2B,EAAE,GAAGR,SAAS,CAAC;IACtE,MAAMO,qBAAqBC,+BAA+BX;IAC1D,MAAMY,oBAAoBF,sBAAsBA,mBAAmBG,MAAM,KAAK;IAE9E,MAAMC,SAAkB;QACtB;YACEC,MAAM;YACNC,MAAM;YACNC,OAAO;gBACLC,UAAU;YACZ;YACAC,OAAO,CAAC,EAAEC,CAAC,EAAE,GACX,+DAA+D;gBAC/DA,EAAE;YACJC,YAAYZ;QACd;WACGD,cAAcc,GAAG,CAAC,CAACC;YACpB,IAAI,UAAUA,SAASA,MAAMR,IAAI,KAAK,WAAW;gBAC/C,OAAO;oBACLA,MAAM;oBACNC,MAAM;oBACNG,OAAO,CAAC,EAAEC,CAAC,EAAE,GACX,+DAA+D;wBAC/DA,EAAE;oBACJI,SAASd,sBAAsBV;oBAC/ByB,UAAU;oBACV,GAAIf,sBAAsBA,oBAAoB,CAAC,EAAE,IAAIE,oBACjD;wBACEc,cAAchB,oBAAoB,CAAC,EAAE,CAACiB;oBACxC,IACA,CAAC,CAAC;gBACR;YACF;YAEA,OAAOJ;QACT;KACD;IAED,MAAMK,aAA+B;QACnCC,MAAM;QACNzB,QAAQ;YACN0B,QAAQxB;YACRyB,QAAQ1B;YACR2B,MAAM3B;YACN4B,QAAQ5B;QACV;QACAY,OAAO;YACLiB,aAAa,CAAC,EAAEd,CAAC,EAAE,GACjB,+DAA+D;gBAC/DA,EAAE;YACJe,OAAO;YACPC,QAAQ;YACRC,YAAY;QACd;QACAvB;QACAwB,OAAO;YACLrC,cAAc;gBAACA,aAAa;oBAAEM;gBAAwB;aAAG;QAC3D;QACAgC,QAAQ;YACNC,QAAQ,CAAC,EAAEpB,CAAC,EAAE,GACZ,+DAA+D;gBAC/DA,EAAE;YACJqB,UAAU,CAAC,EAAErB,CAAC,EAAE,GACd,+DAA+D;gBAC/DA,EAAE;QACN;QACAsB,YAAY;IACd;IAEA,OAAO;QAAE,GAAGd,UAAU;IAAC;AACzB,EAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/translations/en.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAA;AAEzE,eAAO,MAAM,EAAE,EAAE,yBA2FhB,CAAA"}
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/translations/en.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAA;AAEzE,eAAO,MAAM,EAAE,EAAE,yBA6FhB,CAAA"}
@@ -8,6 +8,7 @@ export const en = {
8
8
  addressCompany: 'Company',
9
9
  addressCountry: 'Country',
10
10
  addresses: 'Addresses',
11
+ addressesCollectionDescription: 'Addresses are associated with customers are used to prefill shipping and billing when placing orders.',
11
12
  addressFirstName: 'First name',
12
13
  addressLastName: 'Last name',
13
14
  addressLine1: 'Address 1',
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/translations/en.ts"],"sourcesContent":["import type { GenericTranslationsObject } from '@payloadcms/translations'\n\nexport const en: GenericTranslationsObject = {\n $schema: './translation-schema.json',\n 'plugin-ecommerce': {\n abandoned: 'Abandoned',\n active: 'Active',\n address: 'Address',\n addressCity: 'City',\n addressCompany: 'Company',\n addressCountry: 'Country',\n addresses: 'Addresses',\n addressFirstName: 'First name',\n addressLastName: 'Last name',\n addressLine1: 'Address 1',\n addressLine2: 'Address 2',\n addressPhone: 'Phone',\n addressPostalCode: 'Postal code',\n addressState: 'State',\n addressTitle: 'Title',\n amount: 'Amount',\n availableVariants: 'Available variants',\n billing: 'Billing',\n billingAddress: 'Billing address',\n cancelled: 'Cancelled',\n cart: 'Cart',\n carts: 'Carts',\n cartsCollectionDescription:\n \"Carts represent a customer's selection of products they intend to purchase. They are related to a customer where possible and guest users do not have a customer attached.\",\n completed: 'Completed',\n currency: 'Currency',\n currencyNotSet: 'Currency not set.',\n customer: 'Customer',\n customerEmail: 'Customer email',\n customers: 'Customers',\n enableCurrencyPrice: `Enable {{currency}} price`,\n enableVariants: 'Enable variants',\n expired: 'Expired',\n failed: 'Failed',\n inventory: 'Inventory',\n item: 'Item',\n items: 'Items',\n open: 'Open',\n order: 'Order',\n orderDetails: 'Order Details',\n orders: 'Orders',\n ordersCollectionDescription:\n \"Orders represent a customer's intent to purchase products from your store. They include details such as the products ordered, quantities, prices, customer information, and order status.\",\n paymentMethod: 'Payment method',\n paymentMethods: 'Payment methods',\n pending: 'Pending',\n price: 'Price',\n priceIn: 'Price ({{currency}})',\n priceNotSet: 'Price not set.',\n prices: 'Prices',\n priceSetInVariants: 'Price set in variants.',\n processing: 'Processing',\n product: 'Product',\n productPriceDescription:\n 'This price will also be used for sorting and filtering products. If you have variants enabled then you can enter the lowest or average price to help with search and filtering, but this price will not be used for checkout.',\n productRequired: 'A product is required.',\n products: 'Products',\n purchased: 'Purchased',\n purchasedAt: 'Purchased at',\n quantity: 'Quantity',\n refunded: 'Refunded',\n shipping: 'Shipping',\n shippingAddress: 'Shipping address',\n status: 'Status',\n subtotal: 'Subtotal',\n succeeded: 'Succeeded',\n transaction: 'Transaction',\n transactionDetails: 'Transaction Details',\n transactions: 'Transactions',\n transactionsCollectionDescription:\n 'Transactions represent payment attempts made for an order. An order can have multiple transactions associated with it, such as an initial payment attempt and subsequent refunds or adjustments.',\n variant: 'Variant',\n variantOption: 'Variant Option',\n variantOptions: 'Variant Options',\n variantOptionsAlreadyExists:\n 'This variant combo is already in use by another variant. Please select different options.',\n variantOptionsCollectionDescription:\n 'Variant options define the options a variant type can have, such as red or white for colors.',\n variantOptionsRequired: 'Variant options are required.',\n variantOptionsRequiredAll: 'All variant options are required.',\n variants: 'Variants',\n variantsCollectionDescription:\n \"Product variants allow you to offer different versions of a product, such as size or color variations. They refrence a product's variant options based on the variant types approved.\",\n variantType: 'Variant Type',\n variantTypes: 'Variant Types',\n variantTypesCollectionDescription:\n 'Variant types are used to define the different types of variants your products can have, such as size or color. Each variant type can have multiple options associated with it.',\n },\n}\n"],"names":["en","$schema","abandoned","active","address","addressCity","addressCompany","addressCountry","addresses","addressFirstName","addressLastName","addressLine1","addressLine2","addressPhone","addressPostalCode","addressState","addressTitle","amount","availableVariants","billing","billingAddress","cancelled","cart","carts","cartsCollectionDescription","completed","currency","currencyNotSet","customer","customerEmail","customers","enableCurrencyPrice","enableVariants","expired","failed","inventory","item","items","open","order","orderDetails","orders","ordersCollectionDescription","paymentMethod","paymentMethods","pending","price","priceIn","priceNotSet","prices","priceSetInVariants","processing","product","productPriceDescription","productRequired","products","purchased","purchasedAt","quantity","refunded","shipping","shippingAddress","status","subtotal","succeeded","transaction","transactionDetails","transactions","transactionsCollectionDescription","variant","variantOption","variantOptions","variantOptionsAlreadyExists","variantOptionsCollectionDescription","variantOptionsRequired","variantOptionsRequiredAll","variants","variantsCollectionDescription","variantType","variantTypes","variantTypesCollectionDescription"],"mappings":"AAEA,OAAO,MAAMA,KAAgC;IAC3CC,SAAS;IACT,oBAAoB;QAClBC,WAAW;QACXC,QAAQ;QACRC,SAAS;QACTC,aAAa;QACbC,gBAAgB;QAChBC,gBAAgB;QAChBC,WAAW;QACXC,kBAAkB;QAClBC,iBAAiB;QACjBC,cAAc;QACdC,cAAc;QACdC,cAAc;QACdC,mBAAmB;QACnBC,cAAc;QACdC,cAAc;QACdC,QAAQ;QACRC,mBAAmB;QACnBC,SAAS;QACTC,gBAAgB;QAChBC,WAAW;QACXC,MAAM;QACNC,OAAO;QACPC,4BACE;QACFC,WAAW;QACXC,UAAU;QACVC,gBAAgB;QAChBC,UAAU;QACVC,eAAe;QACfC,WAAW;QACXC,qBAAqB,CAAC,yBAAyB,CAAC;QAChDC,gBAAgB;QAChBC,SAAS;QACTC,QAAQ;QACRC,WAAW;QACXC,MAAM;QACNC,OAAO;QACPC,MAAM;QACNC,OAAO;QACPC,cAAc;QACdC,QAAQ;QACRC,6BACE;QACFC,eAAe;QACfC,gBAAgB;QAChBC,SAAS;QACTC,OAAO;QACPC,SAAS;QACTC,aAAa;QACbC,QAAQ;QACRC,oBAAoB;QACpBC,YAAY;QACZC,SAAS;QACTC,yBACE;QACFC,iBAAiB;QACjBC,UAAU;QACVC,WAAW;QACXC,aAAa;QACbC,UAAU;QACVC,UAAU;QACVC,UAAU;QACVC,iBAAiB;QACjBC,QAAQ;QACRC,UAAU;QACVC,WAAW;QACXC,aAAa;QACbC,oBAAoB;QACpBC,cAAc;QACdC,mCACE;QACFC,SAAS;QACTC,eAAe;QACfC,gBAAgB;QAChBC,6BACE;QACFC,qCACE;QACFC,wBAAwB;QACxBC,2BAA2B;QAC3BC,UAAU;QACVC,+BACE;QACFC,aAAa;QACbC,cAAc;QACdC,mCACE;IACJ;AACF,EAAC"}
1
+ {"version":3,"sources":["../../src/translations/en.ts"],"sourcesContent":["import type { GenericTranslationsObject } from '@payloadcms/translations'\n\nexport const en: GenericTranslationsObject = {\n $schema: './translation-schema.json',\n 'plugin-ecommerce': {\n abandoned: 'Abandoned',\n active: 'Active',\n address: 'Address',\n addressCity: 'City',\n addressCompany: 'Company',\n addressCountry: 'Country',\n addresses: 'Addresses',\n addressesCollectionDescription:\n 'Addresses are associated with customers are used to prefill shipping and billing when placing orders.',\n addressFirstName: 'First name',\n addressLastName: 'Last name',\n addressLine1: 'Address 1',\n addressLine2: 'Address 2',\n addressPhone: 'Phone',\n addressPostalCode: 'Postal code',\n addressState: 'State',\n addressTitle: 'Title',\n amount: 'Amount',\n availableVariants: 'Available variants',\n billing: 'Billing',\n billingAddress: 'Billing address',\n cancelled: 'Cancelled',\n cart: 'Cart',\n carts: 'Carts',\n cartsCollectionDescription:\n \"Carts represent a customer's selection of products they intend to purchase. They are related to a customer where possible and guest users do not have a customer attached.\",\n completed: 'Completed',\n currency: 'Currency',\n currencyNotSet: 'Currency not set.',\n customer: 'Customer',\n customerEmail: 'Customer email',\n customers: 'Customers',\n enableCurrencyPrice: `Enable {{currency}} price`,\n enableVariants: 'Enable variants',\n expired: 'Expired',\n failed: 'Failed',\n inventory: 'Inventory',\n item: 'Item',\n items: 'Items',\n open: 'Open',\n order: 'Order',\n orderDetails: 'Order Details',\n orders: 'Orders',\n ordersCollectionDescription:\n \"Orders represent a customer's intent to purchase products from your store. They include details such as the products ordered, quantities, prices, customer information, and order status.\",\n paymentMethod: 'Payment method',\n paymentMethods: 'Payment methods',\n pending: 'Pending',\n price: 'Price',\n priceIn: 'Price ({{currency}})',\n priceNotSet: 'Price not set.',\n prices: 'Prices',\n priceSetInVariants: 'Price set in variants.',\n processing: 'Processing',\n product: 'Product',\n productPriceDescription:\n 'This price will also be used for sorting and filtering products. If you have variants enabled then you can enter the lowest or average price to help with search and filtering, but this price will not be used for checkout.',\n productRequired: 'A product is required.',\n products: 'Products',\n purchased: 'Purchased',\n purchasedAt: 'Purchased at',\n quantity: 'Quantity',\n refunded: 'Refunded',\n shipping: 'Shipping',\n shippingAddress: 'Shipping address',\n status: 'Status',\n subtotal: 'Subtotal',\n succeeded: 'Succeeded',\n transaction: 'Transaction',\n transactionDetails: 'Transaction Details',\n transactions: 'Transactions',\n transactionsCollectionDescription:\n 'Transactions represent payment attempts made for an order. An order can have multiple transactions associated with it, such as an initial payment attempt and subsequent refunds or adjustments.',\n variant: 'Variant',\n variantOption: 'Variant Option',\n variantOptions: 'Variant Options',\n variantOptionsAlreadyExists:\n 'This variant combo is already in use by another variant. Please select different options.',\n variantOptionsCollectionDescription:\n 'Variant options define the options a variant type can have, such as red or white for colors.',\n variantOptionsRequired: 'Variant options are required.',\n variantOptionsRequiredAll: 'All variant options are required.',\n variants: 'Variants',\n variantsCollectionDescription:\n \"Product variants allow you to offer different versions of a product, such as size or color variations. They refrence a product's variant options based on the variant types approved.\",\n variantType: 'Variant Type',\n variantTypes: 'Variant Types',\n variantTypesCollectionDescription:\n 'Variant types are used to define the different types of variants your products can have, such as size or color. Each variant type can have multiple options associated with it.',\n },\n}\n"],"names":["en","$schema","abandoned","active","address","addressCity","addressCompany","addressCountry","addresses","addressesCollectionDescription","addressFirstName","addressLastName","addressLine1","addressLine2","addressPhone","addressPostalCode","addressState","addressTitle","amount","availableVariants","billing","billingAddress","cancelled","cart","carts","cartsCollectionDescription","completed","currency","currencyNotSet","customer","customerEmail","customers","enableCurrencyPrice","enableVariants","expired","failed","inventory","item","items","open","order","orderDetails","orders","ordersCollectionDescription","paymentMethod","paymentMethods","pending","price","priceIn","priceNotSet","prices","priceSetInVariants","processing","product","productPriceDescription","productRequired","products","purchased","purchasedAt","quantity","refunded","shipping","shippingAddress","status","subtotal","succeeded","transaction","transactionDetails","transactions","transactionsCollectionDescription","variant","variantOption","variantOptions","variantOptionsAlreadyExists","variantOptionsCollectionDescription","variantOptionsRequired","variantOptionsRequiredAll","variants","variantsCollectionDescription","variantType","variantTypes","variantTypesCollectionDescription"],"mappings":"AAEA,OAAO,MAAMA,KAAgC;IAC3CC,SAAS;IACT,oBAAoB;QAClBC,WAAW;QACXC,QAAQ;QACRC,SAAS;QACTC,aAAa;QACbC,gBAAgB;QAChBC,gBAAgB;QAChBC,WAAW;QACXC,gCACE;QACFC,kBAAkB;QAClBC,iBAAiB;QACjBC,cAAc;QACdC,cAAc;QACdC,cAAc;QACdC,mBAAmB;QACnBC,cAAc;QACdC,cAAc;QACdC,QAAQ;QACRC,mBAAmB;QACnBC,SAAS;QACTC,gBAAgB;QAChBC,WAAW;QACXC,MAAM;QACNC,OAAO;QACPC,4BACE;QACFC,WAAW;QACXC,UAAU;QACVC,gBAAgB;QAChBC,UAAU;QACVC,eAAe;QACfC,WAAW;QACXC,qBAAqB,CAAC,yBAAyB,CAAC;QAChDC,gBAAgB;QAChBC,SAAS;QACTC,QAAQ;QACRC,WAAW;QACXC,MAAM;QACNC,OAAO;QACPC,MAAM;QACNC,OAAO;QACPC,cAAc;QACdC,QAAQ;QACRC,6BACE;QACFC,eAAe;QACfC,gBAAgB;QAChBC,SAAS;QACTC,OAAO;QACPC,SAAS;QACTC,aAAa;QACbC,QAAQ;QACRC,oBAAoB;QACpBC,YAAY;QACZC,SAAS;QACTC,yBACE;QACFC,iBAAiB;QACjBC,UAAU;QACVC,WAAW;QACXC,aAAa;QACbC,UAAU;QACVC,UAAU;QACVC,UAAU;QACVC,iBAAiB;QACjBC,QAAQ;QACRC,UAAU;QACVC,WAAW;QACXC,aAAa;QACbC,oBAAoB;QACpBC,cAAc;QACdC,mCACE;QACFC,SAAS;QACTC,eAAe;QACfC,gBAAgB;QAChBC,6BACE;QACFC,qCACE;QACFC,wBAAwB;QACxBC,2BAA2B;QAC3BC,UAAU;QACVC,+BACE;QACFC,aAAa;QACbC,cAAc;QACdC,mCACE;IACJ;AACF,EAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payloadcms/plugin-ecommerce",
3
- "version": "3.57.0-internal.795616e",
3
+ "version": "3.57.0-internal.7b91762",
4
4
  "description": "Ecommerce plugin for Payload",
5
5
  "keywords": [
6
6
  "payload",
@@ -69,8 +69,8 @@
69
69
  ],
70
70
  "dependencies": {
71
71
  "qs-esm": "7.0.2",
72
- "@payloadcms/translations": "3.57.0-internal.795616e",
73
- "@payloadcms/ui": "3.57.0-internal.795616e"
72
+ "@payloadcms/translations": "3.57.0-internal.7b91762",
73
+ "@payloadcms/ui": "3.57.0-internal.7b91762"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@types/json-schema": "7.0.15",
@@ -78,13 +78,13 @@
78
78
  "@types/react-dom": "19.1.2",
79
79
  "stripe": "18.3.0",
80
80
  "@payloadcms/eslint-config": "3.28.0",
81
- "@payloadcms/next": "3.57.0-internal.795616e",
82
- "payload": "3.57.0-internal.795616e"
81
+ "@payloadcms/next": "3.57.0-internal.7b91762",
82
+ "payload": "3.57.0-internal.7b91762"
83
83
  },
84
84
  "peerDependencies": {
85
85
  "react": "^19.0.0 || ^19.0.0-rc-65a56d0e-20241020",
86
86
  "react-dom": "^19.0.0 || ^19.0.0-rc-65a56d0e-20241020",
87
- "payload": "3.57.0-internal.795616e"
87
+ "payload": "3.57.0-internal.7b91762"
88
88
  },
89
89
  "publishConfig": {
90
90
  "registry": "https://registry.npmjs.org/"