@cmssy/react 0.2.4 → 0.2.6

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/client.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { B as BlockSchema, a as BlockMeta, C as CmssyPageData, b as BlockDefinition, c as CmssyFormDefinition, d as CmssyLayoutGroup, e as CmssyCart, f as CmssyOrder, g as CmssyProduct } from './commerce-queries-Uev-JCAB.cjs';
3
- export { h as CmssyCartDiscount, i as CmssyCartItem, j as CmssyCartItemSnapshot, k as CmssyOrderItem, l as CmssyProductVariant } from './commerce-queries-Uev-JCAB.cjs';
2
+ import { B as BlockSchema, a as BlockMeta, C as CmssyPageData, b as BlockDefinition, c as CmssyFormDefinition, d as CmssyLayoutGroup, e as CmssyCart, f as CmssyOrder, g as CmssyProduct } from './commerce-queries-DcMeRu9c.cjs';
3
+ export { h as CmssyCartDiscount, i as CmssyCartItem, j as CmssyCartItemSnapshot, k as CmssyOrderItem, l as CmssyProductVariant } from './commerce-queries-DcMeRu9c.cjs';
4
4
  import { ReactNode } from 'react';
5
5
 
6
6
  interface EditBridgeConfig {
package/dist/client.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { B as BlockSchema, a as BlockMeta, C as CmssyPageData, b as BlockDefinition, c as CmssyFormDefinition, d as CmssyLayoutGroup, e as CmssyCart, f as CmssyOrder, g as CmssyProduct } from './commerce-queries-Uev-JCAB.js';
3
- export { h as CmssyCartDiscount, i as CmssyCartItem, j as CmssyCartItemSnapshot, k as CmssyOrderItem, l as CmssyProductVariant } from './commerce-queries-Uev-JCAB.js';
2
+ import { B as BlockSchema, a as BlockMeta, C as CmssyPageData, b as BlockDefinition, c as CmssyFormDefinition, d as CmssyLayoutGroup, e as CmssyCart, f as CmssyOrder, g as CmssyProduct } from './commerce-queries-DcMeRu9c.js';
3
+ export { h as CmssyCartDiscount, i as CmssyCartItem, j as CmssyCartItemSnapshot, k as CmssyOrderItem, l as CmssyProductVariant } from './commerce-queries-DcMeRu9c.js';
4
4
  import { ReactNode } from 'react';
5
5
 
6
6
  interface EditBridgeConfig {
@@ -366,6 +366,19 @@ interface CmssyOrderItem {
366
366
  quantity: number;
367
367
  sku: string | null;
368
368
  }
369
+ interface CmssyOrderPayment {
370
+ amount: number;
371
+ reference: string;
372
+ provider: string | null;
373
+ at: string;
374
+ }
375
+ interface CmssyOrderTaxSummaryLine {
376
+ rateId: string | null;
377
+ name: string | null;
378
+ rate: number;
379
+ base: number;
380
+ amount: number;
381
+ }
369
382
  interface CmssyOrder {
370
383
  id: string;
371
384
  status: string;
@@ -374,9 +387,22 @@ interface CmssyOrder {
374
387
  currency: string;
375
388
  customerEmail: string;
376
389
  tax?: number;
390
+ pricesIncludeTax?: boolean;
391
+ taxSummary?: CmssyOrderTaxSummaryLine[];
377
392
  refundedAmount?: number;
378
393
  items?: CmssyOrderItem[];
379
394
  paymentProvider?: string | null;
395
+ paymentStatus?: string;
396
+ fulfillmentStatus?: string;
397
+ amountPaid?: number;
398
+ balanceDue?: number;
399
+ paymentReference?: string | null;
400
+ trackingNumber?: string | null;
401
+ trackingCarrier?: string | null;
402
+ invoiceNumber?: string | null;
403
+ invoiceUrl?: string | null;
404
+ invoiceProvider?: string | null;
405
+ payments?: CmssyOrderPayment[];
380
406
  paidAt?: string | null;
381
407
  fulfilledAt?: string | null;
382
408
  createdAt?: string;
@@ -366,6 +366,19 @@ interface CmssyOrderItem {
366
366
  quantity: number;
367
367
  sku: string | null;
368
368
  }
369
+ interface CmssyOrderPayment {
370
+ amount: number;
371
+ reference: string;
372
+ provider: string | null;
373
+ at: string;
374
+ }
375
+ interface CmssyOrderTaxSummaryLine {
376
+ rateId: string | null;
377
+ name: string | null;
378
+ rate: number;
379
+ base: number;
380
+ amount: number;
381
+ }
369
382
  interface CmssyOrder {
370
383
  id: string;
371
384
  status: string;
@@ -374,9 +387,22 @@ interface CmssyOrder {
374
387
  currency: string;
375
388
  customerEmail: string;
376
389
  tax?: number;
390
+ pricesIncludeTax?: boolean;
391
+ taxSummary?: CmssyOrderTaxSummaryLine[];
377
392
  refundedAmount?: number;
378
393
  items?: CmssyOrderItem[];
379
394
  paymentProvider?: string | null;
395
+ paymentStatus?: string;
396
+ fulfillmentStatus?: string;
397
+ amountPaid?: number;
398
+ balanceDue?: number;
399
+ paymentReference?: string | null;
400
+ trackingNumber?: string | null;
401
+ trackingCarrier?: string | null;
402
+ invoiceNumber?: string | null;
403
+ invoiceUrl?: string | null;
404
+ invoiceProvider?: string | null;
405
+ payments?: CmssyOrderPayment[];
380
406
  paidAt?: string | null;
381
407
  fulfilledAt?: string | null;
382
408
  createdAt?: string;
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { F as FieldDefinition, C as CmssyPageData, b as BlockDefinition, c as CmssyFormDefinition, d as CmssyLayoutGroup, E as EditorToAppMessage, A as AppToEditorMessage, m as FetchLike, n as CmssyClientConfig, R as RawBlock, o as BlockMap, p as CmssyBlockContext } from './commerce-queries-Uev-JCAB.cjs';
2
- export { a as BlockMeta, q as BlockRect, B as BlockSchema, r as BoundsMessage, s as ClickMessage, t as CmssyBranding, e as CmssyCart, h as CmssyCartDiscount, i as CmssyCartItem, j as CmssyCartItemSnapshot, u as CmssyFormField, v as CmssyFormSettings, w as CmssyFormSubmitResponse, x as CmssyLocaleContext, y as CmssyModelDefinition, z as CmssyModelRecord, f as CmssyOrder, g as CmssyProduct, l as CmssyProductVariant, D as CmssyRecordList, G as CmssySiteConfig, H as FORM_QUERY, I as FetchLikeResponse, J as FetchPageOptions, K as FieldType, M as MODEL_DEFINITIONS_QUERY, L as MODEL_RECORDS_QUERY, P as PROTOCOL_VERSION, N as ParentReadyMessage, O as PatchMessage, Q as RawLayoutBlock, S as ReadyMessage, T as SITE_CONFIG_QUERY, U as SUBMIT_FORM_MUTATION, V as SelectMessage, W as SubmitFormInput, X as blocksToMeta, Y as blocksToSchemas, Z as buildBlockContext, _ as buildBlockMap, $ as defineBlock, a0 as fetchLayouts, a1 as fetchPage, a2 as isProtocolCompatible, a3 as normalizeSlug } from './commerce-queries-Uev-JCAB.cjs';
1
+ import { F as FieldDefinition, C as CmssyPageData, b as BlockDefinition, c as CmssyFormDefinition, d as CmssyLayoutGroup, E as EditorToAppMessage, A as AppToEditorMessage, m as FetchLike, n as CmssyClientConfig, R as RawBlock, o as BlockMap, p as CmssyBlockContext } from './commerce-queries-DcMeRu9c.cjs';
2
+ export { a as BlockMeta, q as BlockRect, B as BlockSchema, r as BoundsMessage, s as ClickMessage, t as CmssyBranding, e as CmssyCart, h as CmssyCartDiscount, i as CmssyCartItem, j as CmssyCartItemSnapshot, u as CmssyFormField, v as CmssyFormSettings, w as CmssyFormSubmitResponse, x as CmssyLocaleContext, y as CmssyModelDefinition, z as CmssyModelRecord, f as CmssyOrder, g as CmssyProduct, l as CmssyProductVariant, D as CmssyRecordList, G as CmssySiteConfig, H as FORM_QUERY, I as FetchLikeResponse, J as FetchPageOptions, K as FieldType, M as MODEL_DEFINITIONS_QUERY, L as MODEL_RECORDS_QUERY, P as PROTOCOL_VERSION, N as ParentReadyMessage, O as PatchMessage, Q as RawLayoutBlock, S as ReadyMessage, T as SITE_CONFIG_QUERY, U as SUBMIT_FORM_MUTATION, V as SelectMessage, W as SubmitFormInput, X as blocksToMeta, Y as blocksToSchemas, Z as buildBlockContext, _ as buildBlockMap, $ as defineBlock, a0 as fetchLayouts, a1 as fetchPage, a2 as isProtocolCompatible, a3 as normalizeSlug } from './commerce-queries-DcMeRu9c.cjs';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import 'react';
5
5
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { F as FieldDefinition, C as CmssyPageData, b as BlockDefinition, c as CmssyFormDefinition, d as CmssyLayoutGroup, E as EditorToAppMessage, A as AppToEditorMessage, m as FetchLike, n as CmssyClientConfig, R as RawBlock, o as BlockMap, p as CmssyBlockContext } from './commerce-queries-Uev-JCAB.js';
2
- export { a as BlockMeta, q as BlockRect, B as BlockSchema, r as BoundsMessage, s as ClickMessage, t as CmssyBranding, e as CmssyCart, h as CmssyCartDiscount, i as CmssyCartItem, j as CmssyCartItemSnapshot, u as CmssyFormField, v as CmssyFormSettings, w as CmssyFormSubmitResponse, x as CmssyLocaleContext, y as CmssyModelDefinition, z as CmssyModelRecord, f as CmssyOrder, g as CmssyProduct, l as CmssyProductVariant, D as CmssyRecordList, G as CmssySiteConfig, H as FORM_QUERY, I as FetchLikeResponse, J as FetchPageOptions, K as FieldType, M as MODEL_DEFINITIONS_QUERY, L as MODEL_RECORDS_QUERY, P as PROTOCOL_VERSION, N as ParentReadyMessage, O as PatchMessage, Q as RawLayoutBlock, S as ReadyMessage, T as SITE_CONFIG_QUERY, U as SUBMIT_FORM_MUTATION, V as SelectMessage, W as SubmitFormInput, X as blocksToMeta, Y as blocksToSchemas, Z as buildBlockContext, _ as buildBlockMap, $ as defineBlock, a0 as fetchLayouts, a1 as fetchPage, a2 as isProtocolCompatible, a3 as normalizeSlug } from './commerce-queries-Uev-JCAB.js';
1
+ import { F as FieldDefinition, C as CmssyPageData, b as BlockDefinition, c as CmssyFormDefinition, d as CmssyLayoutGroup, E as EditorToAppMessage, A as AppToEditorMessage, m as FetchLike, n as CmssyClientConfig, R as RawBlock, o as BlockMap, p as CmssyBlockContext } from './commerce-queries-DcMeRu9c.js';
2
+ export { a as BlockMeta, q as BlockRect, B as BlockSchema, r as BoundsMessage, s as ClickMessage, t as CmssyBranding, e as CmssyCart, h as CmssyCartDiscount, i as CmssyCartItem, j as CmssyCartItemSnapshot, u as CmssyFormField, v as CmssyFormSettings, w as CmssyFormSubmitResponse, x as CmssyLocaleContext, y as CmssyModelDefinition, z as CmssyModelRecord, f as CmssyOrder, g as CmssyProduct, l as CmssyProductVariant, D as CmssyRecordList, G as CmssySiteConfig, H as FORM_QUERY, I as FetchLikeResponse, J as FetchPageOptions, K as FieldType, M as MODEL_DEFINITIONS_QUERY, L as MODEL_RECORDS_QUERY, P as PROTOCOL_VERSION, N as ParentReadyMessage, O as PatchMessage, Q as RawLayoutBlock, S as ReadyMessage, T as SITE_CONFIG_QUERY, U as SUBMIT_FORM_MUTATION, V as SelectMessage, W as SubmitFormInput, X as blocksToMeta, Y as blocksToSchemas, Z as buildBlockContext, _ as buildBlockMap, $ as defineBlock, a0 as fetchLayouts, a1 as fetchPage, a2 as isProtocolCompatible, a3 as normalizeSlug } from './commerce-queries-DcMeRu9c.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import 'react';
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmssy/react",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "React blocks, renderers, data client and editor bridge for cmssy headless sites",
5
5
  "keywords": [
6
6
  "cmssy",