@nymbalhq/web-components 1.4.0 → 1.6.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/LICENSE +21 -0
- package/README.md +6 -0
- package/dist/{base-element-CPMgAdyQ.d.ts → base-element-4ogSONmW.d.ts} +7 -0
- package/dist/{chunk-42SSME5H.js → chunk-2NTUNK2J.js} +4 -3
- package/dist/chunk-2NTUNK2J.js.map +1 -0
- package/dist/{chunk-NW47OJVN.js → chunk-2V7AOM7N.js} +4 -3
- package/dist/chunk-2V7AOM7N.js.map +1 -0
- package/dist/{chunk-VTQVGNVC.js → chunk-2XR7RUKT.js} +8 -7
- package/dist/chunk-2XR7RUKT.js.map +1 -0
- package/dist/{chunk-EYDMJNNK.js → chunk-3FKF67SR.js} +36 -7
- package/dist/chunk-3FKF67SR.js.map +1 -0
- package/dist/{chunk-2TPQNQYO.js → chunk-42MZTEYS.js} +2 -2
- package/dist/{chunk-V55K2CS5.js → chunk-4FM5VY2H.js} +3 -3
- package/dist/{chunk-FIF6GQ6U.js → chunk-4RMETPYM.js} +2 -2
- package/dist/{chunk-YQEMZOJL.js → chunk-AIYKLHDM.js} +39 -16
- package/dist/chunk-AIYKLHDM.js.map +1 -0
- package/dist/{chunk-NE6UHTOT.js → chunk-BKV5JEQW.js} +53 -7
- package/dist/chunk-BKV5JEQW.js.map +1 -0
- package/dist/{chunk-5IO2QUHO.js → chunk-CEPSODLR.js} +4 -4
- package/dist/{chunk-RZVFA3N5.js → chunk-DAVTHZDH.js} +30 -5
- package/dist/chunk-DAVTHZDH.js.map +1 -0
- package/dist/{chunk-LHYXNQWY.js → chunk-E6YAFKQK.js} +3 -2
- package/dist/chunk-E6YAFKQK.js.map +1 -0
- package/dist/{chunk-T74ECICK.js → chunk-EF4G7CKW.js} +3 -3
- package/dist/{chunk-WTEVTCIL.js → chunk-F632HDN7.js} +4 -3
- package/dist/chunk-F632HDN7.js.map +1 -0
- package/dist/{chunk-HPBC3OG7.js → chunk-FBH6F5OP.js} +2 -2
- package/dist/{chunk-W7D3STJH.js → chunk-JKE77AO7.js} +3 -3
- package/dist/chunk-JKE77AO7.js.map +1 -0
- package/dist/{chunk-ALPHUJIM.js → chunk-KQF652FC.js} +2 -2
- package/dist/{chunk-2XXBQPDB.js → chunk-LJEICEY7.js} +17 -2
- package/dist/chunk-LJEICEY7.js.map +1 -0
- package/dist/{chunk-U2PU4CWB.js → chunk-LQF6REUD.js} +2 -2
- package/dist/chunk-LVAD3ZSM.js +22 -0
- package/dist/chunk-LVAD3ZSM.js.map +1 -0
- package/dist/{chunk-5VWZ2U5K.js → chunk-MCCN3KEH.js} +4 -3
- package/dist/chunk-MCCN3KEH.js.map +1 -0
- package/dist/{chunk-IYT7VXFS.js → chunk-N2RDYBZM.js} +2 -2
- package/dist/{chunk-DR5QB5VN.js → chunk-NOVBXNFC.js} +3 -2
- package/dist/chunk-NOVBXNFC.js.map +1 -0
- package/dist/{chunk-LSQPUZK6.js → chunk-P4ZFTB26.js} +10 -3
- package/dist/chunk-P4ZFTB26.js.map +1 -0
- package/dist/{chunk-7JAAOVCE.js → chunk-PHRUTSRA.js} +33 -13
- package/dist/chunk-PHRUTSRA.js.map +1 -0
- package/dist/{chunk-W23P7SI4.js → chunk-RHM3D26G.js} +14 -5
- package/dist/chunk-RHM3D26G.js.map +1 -0
- package/dist/{chunk-SM7TASEW.js → chunk-SPBULYIN.js} +2 -2
- package/dist/{chunk-YXAE7NDX.js → chunk-SQGHLX22.js} +58 -58
- package/dist/{chunk-O2YKCDR2.js → chunk-V2GHMLBU.js} +3 -3
- package/dist/{chunk-WEEHXWM3.js → chunk-VB5EWAYX.js} +6 -3
- package/dist/chunk-VB5EWAYX.js.map +1 -0
- package/dist/{chunk-UYSZOEOA.js → chunk-VIUAAIRP.js} +3 -2
- package/dist/chunk-VIUAAIRP.js.map +1 -0
- package/dist/{chunk-H3ZBYNHV.js → chunk-W33ITBT3.js} +3 -2
- package/dist/chunk-W33ITBT3.js.map +1 -0
- package/dist/{chunk-EBMA7JGV.js → chunk-W5CULQJJ.js} +2 -2
- package/dist/{chunk-4COVK727.js → chunk-WP3NSY4U.js} +3 -2
- package/dist/chunk-WP3NSY4U.js.map +1 -0
- package/dist/{chunk-DXWMNB5F.js → chunk-XCJQ7P33.js} +3 -3
- package/dist/{chunk-PN6QKYE4.js → chunk-XEO2OB5A.js} +22 -4
- package/dist/chunk-XEO2OB5A.js.map +1 -0
- package/dist/{chunk-N4Y5DI4X.js → chunk-YP7QYC3X.js} +2 -2
- package/dist/{chunk-B73QVSA5.js → chunk-ZD7KERAS.js} +6 -7
- package/dist/chunk-ZD7KERAS.js.map +1 -0
- package/dist/{chunk-RAOGZH3Z.js → chunk-ZZTJWDYI.js} +4 -3
- package/dist/chunk-ZZTJWDYI.js.map +1 -0
- package/dist/elements/nymbal-add-to-cart.js +2 -2
- package/dist/elements/nymbal-address-book.d.ts +2 -2
- package/dist/elements/nymbal-address-book.js +4 -4
- package/dist/elements/nymbal-address-form.js +3 -3
- package/dist/elements/nymbal-breadcrumb.d.ts +1 -1
- package/dist/elements/nymbal-breadcrumb.js +2 -2
- package/dist/elements/nymbal-cart-drawer.d.ts +2 -0
- package/dist/elements/nymbal-cart-drawer.js +3 -3
- package/dist/elements/nymbal-cart-page.js +4 -4
- package/dist/elements/nymbal-category-nav.d.ts +1 -1
- package/dist/elements/nymbal-category-nav.js +2 -2
- package/dist/elements/nymbal-checkout.d.ts +3 -0
- package/dist/elements/nymbal-checkout.js +5 -5
- package/dist/elements/nymbal-image-gallery.d.ts +1 -1
- package/dist/elements/nymbal-image-gallery.js +2 -2
- package/dist/elements/nymbal-login-form.d.ts +1 -1
- package/dist/elements/nymbal-login-form.js +3 -3
- package/dist/elements/nymbal-mini-cart.d.ts +7 -0
- package/dist/elements/nymbal-mini-cart.js +2 -2
- package/dist/elements/nymbal-notify-me.d.ts +2 -2
- package/dist/elements/nymbal-notify-me.js +4 -4
- package/dist/elements/nymbal-order-summary.js +2 -2
- package/dist/elements/nymbal-order-timeline.d.ts +1 -1
- package/dist/elements/nymbal-order-timeline.js +2 -2
- package/dist/elements/nymbal-payment-element.d.ts +3 -2
- package/dist/elements/nymbal-payment-element.js +2 -2
- package/dist/elements/nymbal-product-card.d.ts +3 -2
- package/dist/elements/nymbal-product-card.js +4 -3
- package/dist/elements/nymbal-product-filter.d.ts +2 -2
- package/dist/elements/nymbal-product-filter.js +2 -2
- package/dist/elements/nymbal-product-grid.d.ts +1 -0
- package/dist/elements/nymbal-product-grid.js +5 -4
- package/dist/elements/nymbal-product-price.d.ts +2 -2
- package/dist/elements/nymbal-product-price.js +3 -3
- package/dist/elements/nymbal-profile-form.d.ts +1 -1
- package/dist/elements/nymbal-profile-form.js +3 -3
- package/dist/elements/nymbal-quantity-selector.js +2 -2
- package/dist/elements/nymbal-recently-viewed.d.ts +2 -1
- package/dist/elements/nymbal-recently-viewed.js +5 -4
- package/dist/elements/nymbal-register-form.d.ts +1 -1
- package/dist/elements/nymbal-register-form.js +3 -3
- package/dist/elements/nymbal-review-form.d.ts +16 -4
- package/dist/elements/nymbal-review-form.js +3 -3
- package/dist/elements/nymbal-review-list.d.ts +5 -1
- package/dist/elements/nymbal-review-list.js +3 -2
- package/dist/elements/nymbal-search-bar.js +2 -2
- package/dist/elements/nymbal-search-results.d.ts +1 -0
- package/dist/elements/nymbal-search-results.js +5 -4
- package/dist/elements/nymbal-site-footer.js +2 -2
- package/dist/elements/nymbal-site-header.d.ts +2 -1
- package/dist/elements/nymbal-site-header.js +2 -2
- package/dist/elements/nymbal-sort-dropdown.js +2 -2
- package/dist/elements/nymbal-stock-badge.d.ts +2 -2
- package/dist/elements/nymbal-stock-badge.js +3 -3
- package/dist/elements/nymbal-toast.js +2 -2
- package/dist/elements/nymbal-variant-selector.js +2 -2
- package/dist/{form-element-C-qo3gpD.d.ts → form-element-DlbsUBfp.d.ts} +7 -1
- package/dist/index.d.ts +6 -5
- package/dist/index.js +65 -64
- package/dist/{nymbal-payment-element-Bt8EF42T.d.ts → nymbal-payment-element-CV5Rq8IV.d.ts} +2 -2
- package/dist/{nymbal-product-card-C8HkE_rG.d.ts → nymbal-product-card-B476jwr5.d.ts} +6 -3
- package/dist/payment-sources.d.ts +11 -0
- package/dist/payment-sources.js +12 -0
- package/dist/payment-sources.js.map +1 -0
- package/dist/register-components.d.ts +4 -3
- package/dist/register-components.js +40 -39
- package/dist/{selected-variant-Dym0shlJ.d.ts → selected-variant-CeK5_Bq1.d.ts} +1 -1
- package/dist/ssr/index.d.ts +16 -3
- package/dist/ssr/index.js +70 -42
- package/dist/ssr/index.js.map +1 -1
- package/package.json +7 -3
- package/dist/chunk-2XXBQPDB.js.map +0 -1
- package/dist/chunk-42SSME5H.js.map +0 -1
- package/dist/chunk-4COVK727.js.map +0 -1
- package/dist/chunk-5VWZ2U5K.js.map +0 -1
- package/dist/chunk-7JAAOVCE.js.map +0 -1
- package/dist/chunk-B73QVSA5.js.map +0 -1
- package/dist/chunk-DR5QB5VN.js.map +0 -1
- package/dist/chunk-EYDMJNNK.js.map +0 -1
- package/dist/chunk-H3ZBYNHV.js.map +0 -1
- package/dist/chunk-LHYXNQWY.js.map +0 -1
- package/dist/chunk-LSQPUZK6.js.map +0 -1
- package/dist/chunk-NE6UHTOT.js.map +0 -1
- package/dist/chunk-NW47OJVN.js.map +0 -1
- package/dist/chunk-PN6QKYE4.js.map +0 -1
- package/dist/chunk-RAOGZH3Z.js.map +0 -1
- package/dist/chunk-RZVFA3N5.js.map +0 -1
- package/dist/chunk-UYSZOEOA.js.map +0 -1
- package/dist/chunk-VTQVGNVC.js.map +0 -1
- package/dist/chunk-W23P7SI4.js.map +0 -1
- package/dist/chunk-W7D3STJH.js.map +0 -1
- package/dist/chunk-WEEHXWM3.js.map +0 -1
- package/dist/chunk-WTEVTCIL.js.map +0 -1
- package/dist/chunk-YQEMZOJL.js.map +0 -1
- /package/dist/{chunk-2TPQNQYO.js.map → chunk-42MZTEYS.js.map} +0 -0
- /package/dist/{chunk-V55K2CS5.js.map → chunk-4FM5VY2H.js.map} +0 -0
- /package/dist/{chunk-FIF6GQ6U.js.map → chunk-4RMETPYM.js.map} +0 -0
- /package/dist/{chunk-5IO2QUHO.js.map → chunk-CEPSODLR.js.map} +0 -0
- /package/dist/{chunk-T74ECICK.js.map → chunk-EF4G7CKW.js.map} +0 -0
- /package/dist/{chunk-HPBC3OG7.js.map → chunk-FBH6F5OP.js.map} +0 -0
- /package/dist/{chunk-ALPHUJIM.js.map → chunk-KQF652FC.js.map} +0 -0
- /package/dist/{chunk-U2PU4CWB.js.map → chunk-LQF6REUD.js.map} +0 -0
- /package/dist/{chunk-IYT7VXFS.js.map → chunk-N2RDYBZM.js.map} +0 -0
- /package/dist/{chunk-SM7TASEW.js.map → chunk-SPBULYIN.js.map} +0 -0
- /package/dist/{chunk-YXAE7NDX.js.map → chunk-SQGHLX22.js.map} +0 -0
- /package/dist/{chunk-O2YKCDR2.js.map → chunk-V2GHMLBU.js.map} +0 -0
- /package/dist/{chunk-EBMA7JGV.js.map → chunk-W5CULQJJ.js.map} +0 -0
- /package/dist/{chunk-DXWMNB5F.js.map → chunk-XCJQ7P33.js.map} +0 -0
- /package/dist/{chunk-N4Y5DI4X.js.map → chunk-YP7QYC3X.js.map} +0 -0
|
@@ -10,7 +10,7 @@ declare class NymbalOrderTimeline extends NymbalElement {
|
|
|
10
10
|
static styles: lit.CSSResult[];
|
|
11
11
|
entries: unknown;
|
|
12
12
|
timeZone: string | undefined;
|
|
13
|
-
protected render():
|
|
13
|
+
protected render(): lit.TemplateResult<1> | typeof nothing;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export { NymbalOrderTimeline };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalOrderTimeline
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-KQF652FC.js";
|
|
5
|
+
import "../chunk-3FKF67SR.js";
|
|
6
6
|
import "../chunk-UCEVCLQ7.js";
|
|
7
7
|
export {
|
|
8
8
|
NymbalOrderTimeline
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { N as NymbalPaymentElement } from '../nymbal-payment-element-
|
|
1
|
+
export { N as NymbalPaymentElement } from '../nymbal-payment-element-CV5Rq8IV.js';
|
|
2
2
|
import 'lit';
|
|
3
|
+
import '@nymbalhq/sdk/core';
|
|
4
|
+
import '../base-element-4ogSONmW.js';
|
|
3
5
|
import '@nymbalhq/sdk';
|
|
4
|
-
import '../base-element-CPMgAdyQ.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalPaymentElement
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-JKE77AO7.js";
|
|
5
|
+
import "../chunk-3FKF67SR.js";
|
|
6
6
|
import "../chunk-UCEVCLQ7.js";
|
|
7
7
|
export {
|
|
8
8
|
NymbalPaymentElement
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { N as NymbalProductCard } from '../nymbal-product-card-
|
|
1
|
+
export { N as NymbalProductCard } from '../nymbal-product-card-B476jwr5.js';
|
|
2
2
|
import 'lit';
|
|
3
|
-
import '
|
|
3
|
+
import '@nymbalhq/types';
|
|
4
|
+
import '../base-element-4ogSONmW.js';
|
|
4
5
|
import '@nymbalhq/sdk';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalProductCard
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-DAVTHZDH.js";
|
|
5
|
+
import "../chunk-LVAD3ZSM.js";
|
|
6
6
|
import "../chunk-LO2EW5YP.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-RVSKX2RX.js";
|
|
8
|
+
import "../chunk-3FKF67SR.js";
|
|
8
9
|
import "../chunk-UCEVCLQ7.js";
|
|
9
10
|
export {
|
|
10
11
|
NymbalProductCard
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _nymbalhq_sdk from '@nymbalhq/sdk';
|
|
2
2
|
import * as lit from 'lit';
|
|
3
3
|
import { PropertyValues } from 'lit';
|
|
4
|
-
import { S as Subscribable } from '../base-element-
|
|
4
|
+
import { S as Subscribable } from '../base-element-4ogSONmW.js';
|
|
5
5
|
import { NymbalElement, ElementSchema } from '../index.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
@@ -16,7 +16,7 @@ declare class NymbalProductFilter extends NymbalElement {
|
|
|
16
16
|
static styles: lit.CSSResult[];
|
|
17
17
|
facets: unknown;
|
|
18
18
|
/** Both: a wrapper may set `source` after the element has connected. */
|
|
19
|
-
protected stores(): (_nymbalhq_sdk.
|
|
19
|
+
protected stores(): (_nymbalhq_sdk.ProductListStore | _nymbalhq_sdk.SearchStore)[];
|
|
20
20
|
/** With `source="search"` the `facets` a server read stand until the search settles; a listing's always show. */
|
|
21
21
|
protected storeSettled(store: Subscribable): void;
|
|
22
22
|
/** The facets this render shows, and whether each value is checked. */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalProductFilter
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-VB5EWAYX.js";
|
|
5
|
+
import "../chunk-3FKF67SR.js";
|
|
6
6
|
import "../chunk-UCEVCLQ7.js";
|
|
7
7
|
export {
|
|
8
8
|
NymbalProductFilter
|
|
@@ -2,6 +2,7 @@ import * as _nymbalhq_sdk from '@nymbalhq/sdk';
|
|
|
2
2
|
import * as lit from 'lit';
|
|
3
3
|
import { NymbalElement, ElementSchema } from '../index.js';
|
|
4
4
|
import { NymbalProductCard } from './nymbal-product-card.js';
|
|
5
|
+
import '@nymbalhq/types';
|
|
5
6
|
|
|
6
7
|
/** A grid of `nymbal-product-card`s, a listing's (following the product-list store) or a static one. */
|
|
7
8
|
declare class NymbalProductGrid extends NymbalElement {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalProductGrid
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-MCCN3KEH.js";
|
|
5
|
+
import "../chunk-DAVTHZDH.js";
|
|
6
|
+
import "../chunk-LVAD3ZSM.js";
|
|
7
|
+
import "../chunk-LO2EW5YP.js";
|
|
6
8
|
import "../chunk-RVSKX2RX.js";
|
|
7
9
|
import "../chunk-GHXTJ2CF.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-EYDMJNNK.js";
|
|
10
|
+
import "../chunk-3FKF67SR.js";
|
|
10
11
|
import "../chunk-UCEVCLQ7.js";
|
|
11
12
|
export {
|
|
12
13
|
NymbalProductGrid
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as lit from 'lit';
|
|
2
2
|
import { nothing } from 'lit';
|
|
3
3
|
import { ElementSchema } from '../index.js';
|
|
4
|
-
import { N as NymbalVariantElement } from '../selected-variant-
|
|
4
|
+
import { N as NymbalVariantElement } from '../selected-variant-CeK5_Bq1.js';
|
|
5
5
|
import '@nymbalhq/sdk';
|
|
6
6
|
|
|
7
7
|
/** A product page's price: the selected variant's once the product store holds this product. */
|
|
@@ -12,7 +12,7 @@ declare class NymbalProductPrice extends NymbalVariantElement {
|
|
|
12
12
|
priceMinor: number | undefined;
|
|
13
13
|
currency: string | undefined;
|
|
14
14
|
compareAtMinor: number | undefined;
|
|
15
|
-
protected render():
|
|
15
|
+
protected render(): lit.TemplateResult<1> | typeof nothing;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export { NymbalProductPrice };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalProductPrice
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-XCJQ7P33.js";
|
|
5
|
+
import "../chunk-VIUAAIRP.js";
|
|
6
6
|
import "../chunk-RVSKX2RX.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-3FKF67SR.js";
|
|
8
8
|
import "../chunk-UCEVCLQ7.js";
|
|
9
9
|
export {
|
|
10
10
|
NymbalProductPrice
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _nymbalhq_sdk from '@nymbalhq/sdk';
|
|
2
2
|
import * as lit from 'lit';
|
|
3
3
|
import { ElementSchema } from '../index.js';
|
|
4
|
-
import { N as NymbalFormElement } from '../form-element-
|
|
4
|
+
import { N as NymbalFormElement } from '../form-element-DlbsUBfp.js';
|
|
5
5
|
|
|
6
6
|
/** The signed-in customer's name and phone, filled from the auth store and saved through it. */
|
|
7
7
|
declare class NymbalProfileForm extends NymbalFormElement {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalProfileForm
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-F632HDN7.js";
|
|
5
|
+
import "../chunk-XEO2OB5A.js";
|
|
6
6
|
import "../chunk-GHXTJ2CF.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-3FKF67SR.js";
|
|
8
8
|
import "../chunk-UCEVCLQ7.js";
|
|
9
9
|
export {
|
|
10
10
|
NymbalProfileForm
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalQuantitySelector
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-FBH6F5OP.js";
|
|
5
|
+
import "../chunk-3FKF67SR.js";
|
|
6
6
|
import "../chunk-UCEVCLQ7.js";
|
|
7
7
|
export {
|
|
8
8
|
NymbalQuantitySelector
|
|
@@ -4,6 +4,7 @@ import { NymbalElement, ElementSchema } from '../index.js';
|
|
|
4
4
|
import { cardProductOf } from '../ssr/index.js';
|
|
5
5
|
import { NymbalProductCard } from './nymbal-product-card.js';
|
|
6
6
|
import '@nymbalhq/sdk';
|
|
7
|
+
import '@nymbalhq/types';
|
|
7
8
|
|
|
8
9
|
type Listed = Parameters<typeof cardProductOf>[0] & {
|
|
9
10
|
id: string;
|
|
@@ -35,7 +36,7 @@ declare class NymbalRecentlyViewed extends NymbalElement {
|
|
|
35
36
|
protected updated(changed: PropertyValues): void;
|
|
36
37
|
private queueRead;
|
|
37
38
|
private read;
|
|
38
|
-
protected render():
|
|
39
|
+
protected render(): lit.TemplateResult<1> | typeof nothing;
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
export { NymbalRecentlyViewed };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalRecentlyViewed
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-EF4G7CKW.js";
|
|
5
|
+
import "../chunk-DAVTHZDH.js";
|
|
6
|
+
import "../chunk-LVAD3ZSM.js";
|
|
7
7
|
import "../chunk-LO2EW5YP.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-RVSKX2RX.js";
|
|
9
|
+
import "../chunk-3FKF67SR.js";
|
|
9
10
|
import "../chunk-UCEVCLQ7.js";
|
|
10
11
|
export {
|
|
11
12
|
NymbalRecentlyViewed
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as lit from 'lit';
|
|
2
2
|
import { ElementSchema } from '../index.js';
|
|
3
|
-
import { N as NymbalFormElement } from '../form-element-
|
|
3
|
+
import { N as NymbalFormElement } from '../form-element-DlbsUBfp.js';
|
|
4
4
|
import '@nymbalhq/sdk';
|
|
5
5
|
|
|
6
6
|
/** Creates the shopper's account and signs them in; the page decides where they go next. */
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalRegisterForm
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-2V7AOM7N.js";
|
|
5
|
+
import "../chunk-XEO2OB5A.js";
|
|
6
6
|
import "../chunk-GHXTJ2CF.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-3FKF67SR.js";
|
|
8
8
|
import "../chunk-UCEVCLQ7.js";
|
|
9
9
|
export {
|
|
10
10
|
NymbalRegisterForm
|
|
@@ -1,16 +1,28 @@
|
|
|
1
|
+
import * as _nymbalhq_sdk from '@nymbalhq/sdk';
|
|
1
2
|
import * as lit from 'lit';
|
|
2
3
|
import { ElementSchema } from '../index.js';
|
|
3
|
-
import { N as NymbalFormElement } from '../form-element-
|
|
4
|
-
import '@nymbalhq/sdk';
|
|
4
|
+
import { N as NymbalFormElement } from '../form-element-DlbsUBfp.js';
|
|
5
5
|
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* A review of one product by the signed-in shopper: one submission per click, the form cleared once the store has it.
|
|
8
|
+
* A shopper known to be signed out gets a link to sign in and come back instead; until the session is known (a server
|
|
9
|
+
* render, the profile still loading) it is the form.
|
|
10
|
+
*/
|
|
7
11
|
declare class NymbalReviewForm extends NymbalFormElement {
|
|
8
12
|
static schema: ElementSchema;
|
|
9
13
|
static properties: lit.PropertyDeclarations;
|
|
10
14
|
static styles: lit.CSSResult[];
|
|
11
15
|
productId: string | undefined;
|
|
16
|
+
/** The session restore this element asked for: the shopper is known to be signed out only once it has settled. */
|
|
17
|
+
private profile;
|
|
18
|
+
/** The store refused a submission for want of a session. */
|
|
19
|
+
private sessionEnded;
|
|
20
|
+
protected stores(): _nymbalhq_sdk.AuthStore[];
|
|
21
|
+
protected clientConnected(): void;
|
|
22
|
+
private get signedOut();
|
|
12
23
|
protected send(): Promise<void>;
|
|
13
|
-
|
|
24
|
+
/** The store's own words for a refusal of the review or the session; anything else (the network) is generic. */
|
|
25
|
+
protected failureText(err: unknown): string;
|
|
14
26
|
protected render(): lit.TemplateResult<1>;
|
|
15
27
|
}
|
|
16
28
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalReviewForm
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-BKV5JEQW.js";
|
|
5
|
+
import "../chunk-XEO2OB5A.js";
|
|
6
6
|
import "../chunk-GHXTJ2CF.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-3FKF67SR.js";
|
|
8
8
|
import "../chunk-UCEVCLQ7.js";
|
|
9
9
|
export {
|
|
10
10
|
NymbalReviewForm
|
|
@@ -2,12 +2,16 @@ import * as lit from 'lit';
|
|
|
2
2
|
import { NymbalElement, ElementSchema } from '../index.js';
|
|
3
3
|
import '@nymbalhq/sdk';
|
|
4
4
|
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* A product's rating summary, then its reviews, each with its rating, date, title and text; an invitation when there
|
|
7
|
+
* are none.
|
|
8
|
+
*/
|
|
6
9
|
declare class NymbalReviewList extends NymbalElement {
|
|
7
10
|
static schema: ElementSchema;
|
|
8
11
|
static properties: lit.PropertyDeclarations;
|
|
9
12
|
static styles: lit.CSSResult[];
|
|
10
13
|
reviews: unknown;
|
|
14
|
+
rating: unknown;
|
|
11
15
|
protected render(): lit.TemplateResult<1>;
|
|
12
16
|
}
|
|
13
17
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalReviewList
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-PHRUTSRA.js";
|
|
5
|
+
import "../chunk-LVAD3ZSM.js";
|
|
6
|
+
import "../chunk-3FKF67SR.js";
|
|
6
7
|
import "../chunk-UCEVCLQ7.js";
|
|
7
8
|
export {
|
|
8
9
|
NymbalReviewList
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalSearchBar
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-WP3NSY4U.js";
|
|
5
|
+
import "../chunk-3FKF67SR.js";
|
|
6
6
|
import "../chunk-UCEVCLQ7.js";
|
|
7
7
|
export {
|
|
8
8
|
NymbalSearchBar
|
|
@@ -2,6 +2,7 @@ import * as _nymbalhq_sdk from '@nymbalhq/sdk';
|
|
|
2
2
|
import * as lit from 'lit';
|
|
3
3
|
import { NymbalElement, ElementSchema } from '../index.js';
|
|
4
4
|
import { NymbalProductCard } from './nymbal-product-card.js';
|
|
5
|
+
import '@nymbalhq/types';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* The search store's results: the term, a grid of `nymbal-product-card`s, the no-term and no-results states, and load
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalSearchResults
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-ZZTJWDYI.js";
|
|
5
|
+
import "../chunk-DAVTHZDH.js";
|
|
6
|
+
import "../chunk-LVAD3ZSM.js";
|
|
7
|
+
import "../chunk-LO2EW5YP.js";
|
|
6
8
|
import "../chunk-RVSKX2RX.js";
|
|
7
9
|
import "../chunk-GHXTJ2CF.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-EYDMJNNK.js";
|
|
10
|
+
import "../chunk-3FKF67SR.js";
|
|
10
11
|
import "../chunk-UCEVCLQ7.js";
|
|
11
12
|
export {
|
|
12
13
|
NymbalSearchResults
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalSiteFooter
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-4RMETPYM.js";
|
|
5
5
|
import "../chunk-LO2EW5YP.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-3FKF67SR.js";
|
|
7
7
|
import "../chunk-UCEVCLQ7.js";
|
|
8
8
|
export {
|
|
9
9
|
NymbalSiteFooter
|
|
@@ -4,7 +4,8 @@ import '@nymbalhq/sdk';
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The store's header: the logo, the navigation (behind a toggle on a narrow screen, with no script needed), the
|
|
7
|
-
* account link, and the page's search bar and mini-cart in its `search` and `cart` slots.
|
|
7
|
+
* account link, and the page's search bar and mini-cart in its `search` and `cart` slots. The cart stays outside the
|
|
8
|
+
* toggled menu, so it is one tap away at any width.
|
|
8
9
|
*/
|
|
9
10
|
declare class NymbalSiteHeader extends NymbalElement {
|
|
10
11
|
static schema: ElementSchema;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalSiteHeader
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-RHM3D26G.js";
|
|
5
5
|
import "../chunk-LO2EW5YP.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-3FKF67SR.js";
|
|
7
7
|
import "../chunk-UCEVCLQ7.js";
|
|
8
8
|
export {
|
|
9
9
|
NymbalSiteHeader
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalSortDropdown
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-W5CULQJJ.js";
|
|
5
|
+
import "../chunk-3FKF67SR.js";
|
|
6
6
|
import "../chunk-UCEVCLQ7.js";
|
|
7
7
|
export {
|
|
8
8
|
NymbalSortDropdown
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as lit from 'lit';
|
|
2
2
|
import { nothing } from 'lit';
|
|
3
3
|
import { ElementSchema } from '../index.js';
|
|
4
|
-
import { N as NymbalVariantElement } from '../selected-variant-
|
|
4
|
+
import { N as NymbalVariantElement } from '../selected-variant-CeK5_Bq1.js';
|
|
5
5
|
import '@nymbalhq/sdk';
|
|
6
6
|
|
|
7
7
|
/** A product page's stock level (`@nymbalhq/types`' rule): the selected variant's once the store holds this product. */
|
|
@@ -10,7 +10,7 @@ declare class NymbalStockBadge extends NymbalVariantElement {
|
|
|
10
10
|
static properties: lit.PropertyDeclarations;
|
|
11
11
|
static styles: lit.CSSResult[];
|
|
12
12
|
stock: number | undefined;
|
|
13
|
-
protected render():
|
|
13
|
+
protected render(): lit.TemplateResult<1> | typeof nothing;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export { NymbalStockBadge };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalStockBadge
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-V2GHMLBU.js";
|
|
5
|
+
import "../chunk-VIUAAIRP.js";
|
|
6
|
+
import "../chunk-3FKF67SR.js";
|
|
7
7
|
import "../chunk-UCEVCLQ7.js";
|
|
8
8
|
export {
|
|
9
9
|
NymbalStockBadge
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalToast
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-42MZTEYS.js";
|
|
5
|
+
import "../chunk-3FKF67SR.js";
|
|
6
6
|
import "../chunk-UCEVCLQ7.js";
|
|
7
7
|
export {
|
|
8
8
|
NymbalToast
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '@lit-labs/ssr-client/lit-element-hydrate-support.js'
|
|
2
2
|
import {
|
|
3
3
|
NymbalVariantSelector
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-W33ITBT3.js";
|
|
5
|
+
import "../chunk-3FKF67SR.js";
|
|
6
6
|
import "../chunk-UCEVCLQ7.js";
|
|
7
7
|
export {
|
|
8
8
|
NymbalVariantSelector
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TemplateResult, nothing } from 'lit';
|
|
2
|
-
import { N as NymbalElement } from './base-element-
|
|
2
|
+
import { N as NymbalElement } from './base-element-4ogSONmW.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* A view whose form makes one SDK call per submission. `requestSubmit()` and Enter still fire `submit` while the
|
|
@@ -11,12 +11,18 @@ declare abstract class NymbalFormElement extends NymbalElement {
|
|
|
11
11
|
protected notice: string | null;
|
|
12
12
|
/** Keeps the submit disabled after a success, for a form whose page navigates away on it. */
|
|
13
13
|
protected readonly lockOnSuccess: boolean;
|
|
14
|
+
/** Whether `pending` is the lock a success left rather than a call in flight; only that lock gives way to a restore. */
|
|
15
|
+
private lockedAfterSuccess;
|
|
14
16
|
/** Reads the fields and makes the call; it must call the SDK before its first `await`. */
|
|
15
17
|
protected abstract send(): Promise<void>;
|
|
16
18
|
/** The error text a refusal shows. */
|
|
17
19
|
protected failureText(err: unknown): string;
|
|
18
20
|
protected readonly onSubmit: (event: Event) => void;
|
|
19
21
|
private settle;
|
|
22
|
+
connectedCallback(): void;
|
|
23
|
+
disconnectedCallback(): void;
|
|
24
|
+
/** Back to a page the browser kept in its back/forward cache: the success that locked the form left that page. */
|
|
25
|
+
private readonly onPageShow;
|
|
20
26
|
protected value(name: string): string;
|
|
21
27
|
protected emit(name: string, detail: unknown): void;
|
|
22
28
|
protected renderError(): TemplateResult | typeof nothing;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NymbalClient } from '@nymbalhq/sdk';
|
|
2
|
-
export { E as ElementAttributeType, a as ElementSchema, N as NymbalElement, b as NymbalElementClass, d as define } from './base-element-
|
|
3
|
-
export { N as NymbalPaymentElement, P as PaymentElementStatus } from './nymbal-payment-element-
|
|
2
|
+
export { E as ElementAttributeType, a as ElementSchema, N as NymbalElement, b as NymbalElementClass, d as define } from './base-element-4ogSONmW.js';
|
|
3
|
+
export { N as NymbalPaymentElement, P as PaymentElementStatus } from './nymbal-payment-element-CV5Rq8IV.js';
|
|
4
4
|
export { registerComponents } from './register-components.js';
|
|
5
5
|
export { NymbalAddToCart } from './elements/nymbal-add-to-cart.js';
|
|
6
6
|
export { NymbalCartDrawer } from './elements/nymbal-cart-drawer.js';
|
|
@@ -12,7 +12,7 @@ export { NymbalProductFilter } from './elements/nymbal-product-filter.js';
|
|
|
12
12
|
export { NymbalToast } from './elements/nymbal-toast.js';
|
|
13
13
|
export { NymbalSortDropdown } from './elements/nymbal-sort-dropdown.js';
|
|
14
14
|
export { NymbalCartPage } from './elements/nymbal-cart-page.js';
|
|
15
|
-
export { N as NymbalProductCard } from './nymbal-product-card-
|
|
15
|
+
export { N as NymbalProductCard } from './nymbal-product-card-B476jwr5.js';
|
|
16
16
|
export { NymbalSearchResults } from './elements/nymbal-search-results.js';
|
|
17
17
|
export { NymbalLoginForm } from './elements/nymbal-login-form.js';
|
|
18
18
|
export { NymbalRegisterForm } from './elements/nymbal-register-form.js';
|
|
@@ -35,9 +35,10 @@ export { NymbalNotifyMe } from './elements/nymbal-notify-me.js';
|
|
|
35
35
|
export { NymbalOrderTimeline } from './elements/nymbal-order-timeline.js';
|
|
36
36
|
export { NymbalRecentlyViewed } from './elements/nymbal-recently-viewed.js';
|
|
37
37
|
import 'lit';
|
|
38
|
-
import '
|
|
38
|
+
import '@nymbalhq/sdk/core';
|
|
39
39
|
import '@nymbalhq/types';
|
|
40
|
-
import './
|
|
40
|
+
import './form-element-DlbsUBfp.js';
|
|
41
|
+
import './selected-variant-CeK5_Bq1.js';
|
|
41
42
|
|
|
42
43
|
declare function registerClient(client: NymbalClient): void;
|
|
43
44
|
declare function getClient(): NymbalClient;
|