gantri-components 2.267.7 → 2.268.0
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/core/index.d.ts +1 -1
- package/dist/helpers/generate-skus-functions/get-colors-by-product/get-colors-by-product.types.d.ts +2 -1
- package/dist/helpers/generate-skus-functions/helpers/get-is-color-available-for-product-id/get-is-color-available-for-product-id.d.ts +2 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.esm.js +1 -1
- package/dist/styles/theme.d.ts +11 -0
- package/package.json +1 -1
package/dist/styles/theme.d.ts
CHANGED
|
@@ -228,6 +228,17 @@ declare module 'styled-components' {
|
|
|
228
228
|
export declare const spacing: DefaultTheme['dimensions']['spacing'];
|
|
229
229
|
declare const defaults: DefaultTheme['defaults'];
|
|
230
230
|
export type ProductColorStatus = 'active' | 'archived';
|
|
231
|
+
/**
|
|
232
|
+
* Which product surface is asking whether a color is available.
|
|
233
|
+
*
|
|
234
|
+
* - `marketplace` — consumer facing (storefront PDP, shop filters, cut sheets).
|
|
235
|
+
* Every availability rule is enforced.
|
|
236
|
+
* - `admin` — internal tooling (FactoryOS). Category restrictions are
|
|
237
|
+
* merchandising rules, not manufacturing ones, so they are not enforced:
|
|
238
|
+
* ops can paint, stock and photograph any category-gated color on any
|
|
239
|
+
* product. Product, trade and flag rules still apply.
|
|
240
|
+
*/
|
|
241
|
+
export type ProductColorSurface = 'admin' | 'marketplace';
|
|
231
242
|
export type ColorAvailabilityRule = {
|
|
232
243
|
productIds: number[];
|
|
233
244
|
type: 'only-on-products';
|