@brytdesigns/shopify-ajax-cart-components 3.0.0 → 3.2.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.
@@ -11,6 +11,7 @@ import { Component as Component$6, Name as Name$6 } from "./components/cart-data
11
11
  import { Component as Component$7, Name as Name$7 } from "./components/cart-data-listener.js";
12
12
  import { Component as Component$8, Name as Name$8 } from "./components/cart-data-listener-status.js";
13
13
  import { Component as Component$9, Name as Name$9 } from "./components/cart-loading-state.js";
14
+ import { Component as Component$10, Name as Name$10 } from "./components/cart-view-event.js";
14
15
  import "./components/index.js";
15
16
  import { customShadowlessElement } from "@brytdesigns/web-component-core/utils";
16
17
  //#region src/index.ts
@@ -52,6 +53,7 @@ customShadowlessElement(Name$7, {
52
53
  }, Component$7);
53
54
  customShadowlessElement(Name$8, {}, Component$8);
54
55
  customShadowlessElement(Name$9, { ignoredStates: [] }, Component$9);
56
+ customShadowlessElement(Name$10, { context: "page" }, Component$10);
55
57
  //#endregion
56
58
  export { provideAjaxCartContext, provideCartPathContext, provideListenerStatusContext, useAjaxCart, useAjaxCartContext, useCartFormattedValue, useCartPath, useCartValue, useListenerStatus, useListenerStatusAt, useListenerStatusContext };
57
59
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/index.ts"],"sourcesContent":["import \"./jsx.js\";\nimport { customShadowlessElement } from \"@brytdesigns/web-component-core/utils\";\n\nimport {\n\tCartContext,\n\tCartData,\n\tCartDataArray,\n\tCartDataArrayInjection,\n\tCartDataArrayItem,\n\tCartDataConditions,\n\tCartDataInjection,\n\tCartDataListener,\n\tCartDataListenerStatus,\n\tCartLoadingState,\n} from \"./components/index.js\";\n\nexport type CartContextProps = CartContext.Props;\nexport type CartDataProps = CartData.Props;\nexport type CartDataArrayProps = CartDataArray.Props;\nexport type CartDataArrayInjectionProps = CartDataArrayInjection.Props;\nexport type CartDataArrayItemProps = CartDataArrayItem.Props;\nexport type CartDataConditionsProps = CartDataConditions.Props;\nexport type CartDataInjectionProps = CartDataInjection.Props;\nexport type CartDataListenerProps = CartDataListener.Props;\nexport type CartLoadingStateProps = CartLoadingState.Props;\n\ncustomShadowlessElement(\n\tCartContext.Name,\n\t{ debug: false },\n\tCartContext.Component,\n);\n\ncustomShadowlessElement(\n\tCartDataArrayItem.Name,\n\t{ itemIndex: \"0\" },\n\tCartDataArrayItem.Component,\n);\n\ncustomShadowlessElement(\n\tCartDataArray.Name,\n\t{\n\t\tformat: \"\",\n\t\tarrayPath: \"items\",\n\t\treverse: false,\n\t\titemClass: \"\",\n\t},\n\tCartDataArray.Component,\n);\n\ncustomShadowlessElement(\n\tCartDataArrayInjection.Name,\n\t{\n\t\tformat: \"\",\n\t\tarrayPath: \"items\",\n\t\ttarget: \"\",\n\t\twrapInnerChild: true,\n\t\treverse: false,\n\t},\n\tCartDataArrayInjection.Component,\n);\n\ncustomShadowlessElement(\n\tCartData.Name,\n\t{\n\t\tformat: \"\",\n\t\tpropertyName: \"item_count\",\n\t},\n\tCartData.Component,\n);\n\ncustomShadowlessElement(\n\tCartDataConditions.Name,\n\t{},\n\tCartDataConditions.Component,\n);\n\ncustomShadowlessElement(\n\tCartDataInjection.Name,\n\t{\n\t\tpropertyName: \"item_count\",\n\t\tattributeName: \"data-item-count\",\n\t\tinjectionType: \"attribute\",\n\t\ttarget: \"\",\n\t\tformat: \"\",\n\t},\n\tCartDataInjection.Component,\n);\n\ncustomShadowlessElement(\n\tCartDataListener.Name,\n\t{\n\t\tstatus: \"default\",\n\t\ton: \"submit\",\n\t\tmethod: \"updateItem\",\n\t\tresetForm: true,\n\t\tdebounceDelay: 0,\n\t\tresetStatusDelay: 0,\n\t\tpreventDefault: true,\n\t},\n\tCartDataListener.Component,\n);\n\ncustomShadowlessElement(\n\tCartDataListenerStatus.Name,\n\t{},\n\tCartDataListenerStatus.Component,\n);\n\ncustomShadowlessElement(\n\tCartLoadingState.Name,\n\t{ ignoredStates: [] },\n\tCartLoadingState.Component,\n);\n\nexport * from \"./hooks/index.js\";\n"],"mappings":";;;;;;;;;;;;;;;;AA0BA,wBACC,MACA,EAAE,OAAO,MAAM,GACf,SACD;AAEA,wBACC,QACA,EAAE,WAAW,IAAI,GACjB,WACD;AAEA,wBACC,QACA;CACC,QAAQ;CACR,WAAW;CACX,SAAS;CACT,WAAW;AACZ,GACA,WACD;AAEA,wBACC,QACA;CACC,QAAQ;CACR,WAAW;CACX,QAAQ;CACR,gBAAgB;CAChB,SAAS;AACV,GACA,WACD;AAEA,wBACC,QACA;CACC,QAAQ;CACR,cAAc;AACf,GACA,WACD;AAEA,wBACC,QACA,CAAC,GACD,WACD;AAEA,wBACC,QACA;CACC,cAAc;CACd,eAAe;CACf,eAAe;CACf,QAAQ;CACR,QAAQ;AACT,GACA,WACD;AAEA,wBACC,QACA;CACC,QAAQ;CACR,IAAI;CACJ,QAAQ;CACR,WAAW;CACX,eAAe;CACf,kBAAkB;CAClB,gBAAgB;AACjB,GACA,WACD;AAEA,wBACC,QACA,CAAC,GACD,WACD;AAEA,wBACC,QACA,EAAE,eAAe,CAAC,EAAE,GACpB,WACD"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/index.ts"],"sourcesContent":["import \"./jsx.js\";\nimport { customShadowlessElement } from \"@brytdesigns/web-component-core/utils\";\n\nimport {\n\tCartContext,\n\tCartData,\n\tCartDataArray,\n\tCartDataArrayInjection,\n\tCartDataArrayItem,\n\tCartDataConditions,\n\tCartDataInjection,\n\tCartDataListener,\n\tCartDataListenerStatus,\n\tCartLoadingState,\n\tCartViewEvent,\n} from \"./components/index.js\";\n\nexport type CartContextProps = CartContext.Props;\nexport type CartDataProps = CartData.Props;\nexport type CartDataArrayProps = CartDataArray.Props;\nexport type CartDataArrayInjectionProps = CartDataArrayInjection.Props;\nexport type CartDataArrayItemProps = CartDataArrayItem.Props;\nexport type CartDataConditionsProps = CartDataConditions.Props;\nexport type CartDataInjectionProps = CartDataInjection.Props;\nexport type CartDataListenerProps = CartDataListener.Props;\nexport type CartLoadingStateProps = CartLoadingState.Props;\nexport type CartViewEventProps = CartViewEvent.Props;\n\ncustomShadowlessElement(\n\tCartContext.Name,\n\t{ debug: false },\n\tCartContext.Component,\n);\n\ncustomShadowlessElement(\n\tCartDataArrayItem.Name,\n\t{ itemIndex: \"0\" },\n\tCartDataArrayItem.Component,\n);\n\ncustomShadowlessElement(\n\tCartDataArray.Name,\n\t{\n\t\tformat: \"\",\n\t\tarrayPath: \"items\",\n\t\treverse: false,\n\t\titemClass: \"\",\n\t},\n\tCartDataArray.Component,\n);\n\ncustomShadowlessElement(\n\tCartDataArrayInjection.Name,\n\t{\n\t\tformat: \"\",\n\t\tarrayPath: \"items\",\n\t\ttarget: \"\",\n\t\twrapInnerChild: true,\n\t\treverse: false,\n\t},\n\tCartDataArrayInjection.Component,\n);\n\ncustomShadowlessElement(\n\tCartData.Name,\n\t{\n\t\tformat: \"\",\n\t\tpropertyName: \"item_count\",\n\t},\n\tCartData.Component,\n);\n\ncustomShadowlessElement(\n\tCartDataConditions.Name,\n\t{},\n\tCartDataConditions.Component,\n);\n\ncustomShadowlessElement(\n\tCartDataInjection.Name,\n\t{\n\t\tpropertyName: \"item_count\",\n\t\tattributeName: \"data-item-count\",\n\t\tinjectionType: \"attribute\",\n\t\ttarget: \"\",\n\t\tformat: \"\",\n\t},\n\tCartDataInjection.Component,\n);\n\ncustomShadowlessElement(\n\tCartDataListener.Name,\n\t{\n\t\tstatus: \"default\",\n\t\ton: \"submit\",\n\t\tmethod: \"updateItem\",\n\t\tresetForm: true,\n\t\tdebounceDelay: 0,\n\t\tresetStatusDelay: 0,\n\t\tpreventDefault: true,\n\t},\n\tCartDataListener.Component,\n);\n\ncustomShadowlessElement(\n\tCartDataListenerStatus.Name,\n\t{},\n\tCartDataListenerStatus.Component,\n);\n\ncustomShadowlessElement(\n\tCartLoadingState.Name,\n\t{ ignoredStates: [] },\n\tCartLoadingState.Component,\n);\n\ncustomShadowlessElement(\n\tCartViewEvent.Name,\n\t{ context: \"page\" },\n\tCartViewEvent.Component,\n);\n\nexport * from \"./hooks/index.js\";\n"],"mappings":";;;;;;;;;;;;;;;;;AA4BA,wBACC,MACA,EAAE,OAAO,MAAM,GACf,SACD;AAEA,wBACC,QACA,EAAE,WAAW,IAAI,GACjB,WACD;AAEA,wBACC,QACA;CACC,QAAQ;CACR,WAAW;CACX,SAAS;CACT,WAAW;AACZ,GACA,WACD;AAEA,wBACC,QACA;CACC,QAAQ;CACR,WAAW;CACX,QAAQ;CACR,gBAAgB;CAChB,SAAS;AACV,GACA,WACD;AAEA,wBACC,QACA;CACC,QAAQ;CACR,cAAc;AACf,GACA,WACD;AAEA,wBACC,QACA,CAAC,GACD,WACD;AAEA,wBACC,QACA;CACC,cAAc;CACd,eAAe;CACf,eAAe;CACf,QAAQ;CACR,QAAQ;AACT,GACA,WACD;AAEA,wBACC,QACA;CACC,QAAQ;CACR,IAAI;CACJ,QAAQ;CACR,WAAW;CACX,eAAe;CACf,kBAAkB;CAClB,gBAAgB;AACjB,GACA,WACD;AAEA,wBACC,QACA,CAAC,GACD,WACD;AAEA,wBACC,QACA,EAAE,eAAe,CAAC,EAAE,GACpB,WACD;AAEA,wBACC,SACA,EAAE,SAAS,OAAO,GAClB,YACD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brytdesigns/shopify-ajax-cart-components",
3
- "version": "3.0.0",
3
+ "version": "3.2.0",
4
4
  "description": "Headless web components for the Ajax Cart Library",
5
5
  "main": "./dist/main/index.js",
6
6
  "types": "./dist/main/index.d.ts",
@@ -16,8 +16,9 @@
16
16
  ],
17
17
  "keywords": [],
18
18
  "dependencies": {
19
- "@brytdesigns/shopify-ajax-cart": "3.0.0",
20
- "@brytdesigns/web-component-core": "3.0.0",
19
+ "@brytdesigns/shopify-ajax-cart": "3.2.0",
20
+ "@brytdesigns/shopify-utils": "3.2.0",
21
+ "@brytdesigns/web-component-core": "3.2.0",
21
22
  "@solidjs/web": "2.0.0-rc.14",
22
23
  "component-register": "0.8.7",
23
24
  "lodash.debounce": "^4.0.8",