@manifoldco/manifold-subscription
Advanced tools
Comparing version 0.0.14 to 0.0.15
@@ -8,5 +8,5 @@ 'use strict'; | ||
const defineCustomElements = (win, options) => index.patchEsm().then(() => { | ||
return index.bootstrapLazy([["manifold-configured-feature_4.cjs",[[0,"manifold-configured-feature",{"label":[1],"value":[8]}],[0,"manifold-subscription-create",{"loading":[1028],"isLoadingPlanSelector":[1028,"is-loading-plan-selector"],"errors":[1040],"data":[1040],"planListData":[1040],"setupIntentStatus":[1025,"setup-intent-status"],"setupIntentError":[1025,"setup-intent-error"],"subscribing":[1028],"configuredFeatures":[1040],"calculatedCost":[1026,"calculated-cost"],"isEditing":[1028,"is-editing"],"preview":[4],"heading":[1],"planId":[1025,"plan-id"],"ownerId":[1,"owner-id"],"stripePublishableKey":[1,"stripe-publishable-key"],"displayName":[1,"display-name"],"label":[1],"card":[32],"cardStatus":[32],"profile":[32]},[[0,"manifold-configured-feature-change","updateConfiguredFeature"]]],[0,"manifold-subscription-details",{"subscriptionId":[1,"subscription-id"],"planId":[1,"plan-id"],"heading":[1],"isEditing":[4,"is-editing"],"preview":[4]}],[0,"manifold-subscription-list",{"connection":[1040],"loading":[1028],"errors":[1040],"data":[1040],"productId":[1,"product-id"],"preview":[4],"subLinkFormat":[1025,"sub-link-format"],"heading":[1],"owner":[1]}]]]], options); | ||
return index.bootstrapLazy([["manifold-configured-feature_4.cjs",[[0,"manifold-configured-feature",{"label":[1],"value":[8]}],[0,"manifold-subscription-create",{"loading":[1028],"isLoadingPlanSelector":[1028,"is-loading-plan-selector"],"errors":[1040],"data":[1040],"planListData":[1040],"setupIntentStatus":[1025,"setup-intent-status"],"setupIntentError":[1025,"setup-intent-error"],"subscribing":[1028],"configuredFeatures":[1040],"calculatedCost":[1026,"calculated-cost"],"isEditing":[1028,"is-editing"],"preview":[4],"heading":[1],"planId":[1025,"plan-id"],"ownerId":[1,"owner-id"],"stripePublishableKey":[1,"stripe-publishable-key"],"displayName":[1,"display-name"],"label":[1],"card":[32],"cardStatus":[32],"profile":[32]},[[0,"manifold-configured-feature-change","updateConfiguredFeature"]]],[0,"manifold-subscription-details",{"subscriptionId":[1,"subscription-id"],"planId":[1,"plan-id"],"heading":[1],"isEditing":[4,"is-editing"],"preview":[4]}],[0,"manifold-subscription-list",{"connection":[1040],"loading":[1028],"errors":[1040],"data":[1040],"subLinkFormat":[1025,"sub-link-format"],"heading":[1],"owner":[1]}]]]], options); | ||
}); | ||
exports.defineCustomElements = defineCustomElements; |
@@ -6,3 +6,3 @@ 'use strict'; | ||
index.patchBrowser().then(options => { | ||
return index.bootstrapLazy([["manifold-configured-feature_4.cjs",[[0,"manifold-configured-feature",{"label":[1],"value":[8]}],[0,"manifold-subscription-create",{"loading":[1028],"isLoadingPlanSelector":[1028,"is-loading-plan-selector"],"errors":[1040],"data":[1040],"planListData":[1040],"setupIntentStatus":[1025,"setup-intent-status"],"setupIntentError":[1025,"setup-intent-error"],"subscribing":[1028],"configuredFeatures":[1040],"calculatedCost":[1026,"calculated-cost"],"isEditing":[1028,"is-editing"],"preview":[4],"heading":[1],"planId":[1025,"plan-id"],"ownerId":[1,"owner-id"],"stripePublishableKey":[1,"stripe-publishable-key"],"displayName":[1,"display-name"],"label":[1],"card":[32],"cardStatus":[32],"profile":[32]},[[0,"manifold-configured-feature-change","updateConfiguredFeature"]]],[0,"manifold-subscription-details",{"subscriptionId":[1,"subscription-id"],"planId":[1,"plan-id"],"heading":[1],"isEditing":[4,"is-editing"],"preview":[4]}],[0,"manifold-subscription-list",{"connection":[1040],"loading":[1028],"errors":[1040],"data":[1040],"productId":[1,"product-id"],"preview":[4],"subLinkFormat":[1025,"sub-link-format"],"heading":[1],"owner":[1]}]]]], options); | ||
return index.bootstrapLazy([["manifold-configured-feature_4.cjs",[[0,"manifold-configured-feature",{"label":[1],"value":[8]}],[0,"manifold-subscription-create",{"loading":[1028],"isLoadingPlanSelector":[1028,"is-loading-plan-selector"],"errors":[1040],"data":[1040],"planListData":[1040],"setupIntentStatus":[1025,"setup-intent-status"],"setupIntentError":[1025,"setup-intent-error"],"subscribing":[1028],"configuredFeatures":[1040],"calculatedCost":[1026,"calculated-cost"],"isEditing":[1028,"is-editing"],"preview":[4],"heading":[1],"planId":[1025,"plan-id"],"ownerId":[1,"owner-id"],"stripePublishableKey":[1,"stripe-publishable-key"],"displayName":[1,"display-name"],"label":[1],"card":[32],"cardStatus":[32],"profile":[32]},[[0,"manifold-configured-feature-change","updateConfiguredFeature"]]],[0,"manifold-subscription-details",{"subscriptionId":[1,"subscription-id"],"planId":[1,"plan-id"],"heading":[1],"isEditing":[4,"is-editing"],"preview":[4]}],[0,"manifold-subscription-list",{"connection":[1040],"loading":[1028],"errors":[1040],"data":[1040],"subLinkFormat":[1025,"sub-link-format"],"heading":[1],"owner":[1]}]]]], options); | ||
}); |
@@ -139,7 +139,16 @@ import { Component, Element, Prop, h, Watch, State, Listen, Event, } from '@stencil/core'; | ||
}); | ||
this.updatePlan(this.planId); | ||
} | ||
componentDidLoad() { | ||
this.initializeStripeElements(); | ||
this.update(this.planId); | ||
} | ||
update(value) { | ||
if (this.preview && !value) { | ||
this.loading = true; | ||
} | ||
else { | ||
this.updatePlan(this.planId); | ||
this.initializeStripeElements(); | ||
this.fetchCustomCost(this.configuredFeatures); | ||
} | ||
} | ||
async initializeStripeElements() { | ||
@@ -199,3 +208,2 @@ // Only initialize once | ||
this.card.mount(this.cardPlaceholder); | ||
this.cardPlaceholder.removeAttribute('data-is-loading'); | ||
this.card.on('change', e => { | ||
@@ -257,2 +265,5 @@ if (e.empty) { | ||
async fetchCustomCost(configuredFeatures) { | ||
if (!this.planId && this.preview) { | ||
return undefined; | ||
} | ||
this.removeErrors('cost'); | ||
@@ -268,2 +279,6 @@ // if not configurable, return plan cost | ||
} | ||
if (!this.planId) { | ||
this.addErrors(dataError('cost', 'cost of selected plan')); | ||
throw new Error('Missing property `planId` on `manifold-subscription-create`.'); | ||
} | ||
// Hide display while calculating | ||
@@ -308,13 +323,19 @@ this.calculatedCost = null; | ||
}, calculatedCost: this.calculatedCost, errors: filterErrors(this.errors, 'label', ['cost', 'plan-list-query']), data: this.planListData, isLoading: this.isLoadingPlanSelector })) : (h(PlanCard, { isLoading: this.loading, plan: ((_a = this.data) === null || _a === void 0 ? void 0 : _a.plan) || undefined, calculatedCost: this.calculatedCost, errors: filterErrors(this.errors, 'label', ['plan-query']) }, | ||
h("button", { type: "button", class: "ManifoldSubscriptionCreate__ModifyPlanButton", onClick: this.toggleIsEditing }, "Change Plan"))), | ||
h("button", { type: "button", class: "ManifoldSubscriptionCreate__ModifyPlanButton", onClick: this.toggleIsEditing }, | ||
h("span", { "data-is-loading": this.loading }, "Change Plan")))), | ||
h("div", { class: "ManifoldSubscription__Field ManifoldSubscription__Field--Card" }, | ||
h("label", { class: "ManifoldSubscription__Field__Label" }, "Credit Card"), | ||
h("label", { class: "ManifoldSubscription__Field__Label" }, | ||
h("span", { "data-is-loading": this.loading }, "Credit Card")), | ||
h("div", { class: "StripeElement", ref: el => { | ||
this.cardPlaceholder = el; | ||
}, "data-is-loading": true }, "Credit Card Field"), | ||
} }, | ||
h("div", { "data-is-loading": true }, "Credit Card Field")), | ||
validationErrors.map(error => (h("p", { class: "ManifoldSubscription__Field__InlineError" }, error.message)))), | ||
h("button", { class: "ManifoldSubscription__Button", type: "submit", "data-kind": "primary", disabled: this.subscribing || | ||
filterErrors(this.errors, 'type', ['data', 'interface']).length > 0 }, this.subscribing ? 'Subscribing...' : 'Subscribe with Card'), | ||
h("button", { class: "ManifoldSubscription__Button", type: "submit", "data-kind": "primary", disabled: this.loading || | ||
this.subscribing || | ||
filterErrors(this.errors, 'type', ['data', 'interface']).length > 0 }, | ||
h("span", { "data-is-loading": this.loading }, this.subscribing ? 'Subscribing...' : 'Subscribe with Card')), | ||
subscriptionErrors.length > 0 && (h("div", { class: "ManifoldSubscriptionCreate__MessageContainer" }, subscriptionErrors.map(error => (h(Message, { type: "error" }, error.message))))), | ||
h("p", { class: "ManifoldSubscription__HelpText", "data-centered": true }, "We charge for plan cost + usage at end of month")))); | ||
h("p", { class: "ManifoldSubscription__HelpText", "data-centered": true }, | ||
h("span", { "data-is-loading": this.loading }, "We charge for plan cost + usage at end of month."))))); | ||
} | ||
@@ -677,4 +698,7 @@ static get is() { return "manifold-subscription-create"; } | ||
"propName": "planId", | ||
"methodName": "updatePlan" | ||
"methodName": "update" | ||
}, { | ||
"propName": "stripePublishableKey", | ||
"methodName": "initializeStripeElements" | ||
}, { | ||
"propName": "configuredFeatures", | ||
@@ -681,0 +705,0 @@ "methodName": "fetchCustomCost" |
import { Component, Event, Element, Prop, h, Watch } from '@stencil/core'; | ||
import ListCard from './components/ListCard'; | ||
import fragment from './list-plan-fragment.graphql'; | ||
import query from './subscription-list.graphql'; | ||
import previewQuery from './subscription-list-preview.graphql'; | ||
const fetchSubscriptionList = async (args) => { | ||
const { owner, connection, preview, productId } = args; | ||
if (preview && productId) { | ||
const variables = { productId }; | ||
const res = await connection.graphqlFetch({ | ||
query: fragment + previewQuery, | ||
variables, | ||
}); | ||
if (res.data) { | ||
const edges = res.data.product.plans.edges.map(({ node }) => ({ | ||
node: { | ||
id: node.id, | ||
plan: node, | ||
}, | ||
})); | ||
return { | ||
data: { | ||
subscriptions: { | ||
edges, | ||
}, | ||
}, | ||
errors: null, | ||
}; | ||
} | ||
return { errors: res.errors }; | ||
} | ||
const variables = { owner }; | ||
const res = await connection.graphqlFetch({ | ||
query: fragment + query, | ||
variables, | ||
}); | ||
return res; | ||
}; | ||
import query from './subscriptions.graphql'; | ||
export class ManifoldSubscriptionList { | ||
constructor() { | ||
this.loading = false; | ||
/** | ||
* Puts the component in preview mode | ||
*/ | ||
this.preview = false; | ||
this.handleCtaClick = (subId, href) => (e) => { | ||
@@ -69,3 +30,3 @@ e.preventDefault(); | ||
async getSubscriptions(owner) { | ||
if (!owner && !this.preview) { | ||
if (!owner) { | ||
throw new Error('Missing property `owner` on `manifold-subscription-list`'); | ||
@@ -77,7 +38,6 @@ } | ||
this.loading = true; | ||
const { data, errors } = await fetchSubscriptionList({ | ||
owner, | ||
connection: this.connection, | ||
preview: this.preview, | ||
productId: this.productId, | ||
const variables = { owner }; | ||
const { data, errors } = await this.connection.graphqlFetch({ | ||
query, | ||
variables, | ||
}); | ||
@@ -178,6 +138,6 @@ if (errors) { | ||
"complexType": { | ||
"original": "SubscriptionListQuery", | ||
"resolved": "undefined | { __typename?: \"Query\" | undefined; } & { subscriptions: { __typename?: \"SubscriptionAgreementConnection\" | undefined; } & { edges: ({ __typename?: \"SubscriptionAgreementEdge\" | undefined; } & { node: { __typename?: \"SubscriptionAgreement\" | undefined; } & Pick<SubscriptionAgreement, \"id\"> & { plan: { __typename?: \"Plan\" | undefined; } & { __typename?: \"Plan\" | undefined; } & Pick<Plan, \"displayName\" | \"cost\" | \"id\"> & { configurableFeatures: { __typename?: \"PlanConfigurableFeatureConnection\" | undefined; } & { edges: ({ __typename?: \"PlanConfigurableFeatureEdge\" | undefined; } & { node: { __typename?: \"PlanConfigurableFeature\" | undefined; } & Pick<PlanConfigurableFeature, \"displayName\">; })[]; }; }; }; })[]; }; }", | ||
"original": "SubscriptionsQuery", | ||
"resolved": "undefined | { __typename?: \"Query\" | undefined; } & { subscriptions: { __typename?: \"SubscriptionAgreementConnection\" | undefined; } & { edges: ({ __typename?: \"SubscriptionAgreementEdge\" | undefined; } & { node: { __typename?: \"SubscriptionAgreement\" | undefined; } & Pick<SubscriptionAgreement, \"id\"> & { plan: { __typename?: \"Plan\" | undefined; } & Pick<Plan, \"displayName\" | \"cost\"> & { configurableFeatures: { __typename?: \"PlanConfigurableFeatureConnection\" | undefined; } & { edges: ({ __typename?: \"PlanConfigurableFeatureEdge\" | undefined; } & { node: { __typename?: \"PlanConfigurableFeature\" | undefined; } & Pick<PlanConfigurableFeature, \"displayName\">; })[]; }; }; }; })[]; }; }", | ||
"references": { | ||
"SubscriptionListQuery": { | ||
"SubscriptionsQuery": { | ||
"location": "import", | ||
@@ -195,37 +155,2 @@ "path": "../../types/graphql" | ||
}, | ||
"productId": { | ||
"type": "string", | ||
"mutable": false, | ||
"complexType": { | ||
"original": "string", | ||
"resolved": "string | undefined", | ||
"references": {} | ||
}, | ||
"required": false, | ||
"optional": true, | ||
"docs": { | ||
"tags": [], | ||
"text": "" | ||
}, | ||
"attribute": "product-id", | ||
"reflect": false | ||
}, | ||
"preview": { | ||
"type": "boolean", | ||
"mutable": false, | ||
"complexType": { | ||
"original": "boolean", | ||
"resolved": "boolean | undefined", | ||
"references": {} | ||
}, | ||
"required": false, | ||
"optional": true, | ||
"docs": { | ||
"tags": [], | ||
"text": "Puts the component in preview mode" | ||
}, | ||
"attribute": "preview", | ||
"reflect": false, | ||
"defaultValue": "false" | ||
}, | ||
"subLinkFormat": { | ||
@@ -232,0 +157,0 @@ "type": "string", |
@@ -1,1 +0,1 @@ | ||
import{p as i,b as e}from"./p-a98c757b.js";i().then(i=>e([["p-fdbe44f1",[[0,"manifold-configured-feature",{label:[1],value:[8]}],[0,"manifold-subscription-create",{loading:[1028],isLoadingPlanSelector:[1028,"is-loading-plan-selector"],errors:[1040],data:[1040],planListData:[1040],setupIntentStatus:[1025,"setup-intent-status"],setupIntentError:[1025,"setup-intent-error"],subscribing:[1028],configuredFeatures:[1040],calculatedCost:[1026,"calculated-cost"],isEditing:[1028,"is-editing"],preview:[4],heading:[1],planId:[1025,"plan-id"],ownerId:[1,"owner-id"],stripePublishableKey:[1,"stripe-publishable-key"],displayName:[1,"display-name"],label:[1],card:[32],cardStatus:[32],profile:[32]},[[0,"manifold-configured-feature-change","updateConfiguredFeature"]]],[0,"manifold-subscription-details",{subscriptionId:[1,"subscription-id"],planId:[1,"plan-id"],heading:[1],isEditing:[4,"is-editing"],preview:[4]}],[0,"manifold-subscription-list",{connection:[1040],loading:[1028],errors:[1040],data:[1040],productId:[1,"product-id"],preview:[4],subLinkFormat:[1025,"sub-link-format"],heading:[1],owner:[1]}]]]],i)); | ||
import{p as i,b as e}from"./p-a98c757b.js";i().then(i=>e([["p-4339398f",[[0,"manifold-configured-feature",{label:[1],value:[8]}],[0,"manifold-subscription-create",{loading:[1028],isLoadingPlanSelector:[1028,"is-loading-plan-selector"],errors:[1040],data:[1040],planListData:[1040],setupIntentStatus:[1025,"setup-intent-status"],setupIntentError:[1025,"setup-intent-error"],subscribing:[1028],configuredFeatures:[1040],calculatedCost:[1026,"calculated-cost"],isEditing:[1028,"is-editing"],preview:[4],heading:[1],planId:[1025,"plan-id"],ownerId:[1,"owner-id"],stripePublishableKey:[1,"stripe-publishable-key"],displayName:[1,"display-name"],label:[1],card:[32],cardStatus:[32],profile:[32]},[[0,"manifold-configured-feature-change","updateConfiguredFeature"]]],[0,"manifold-subscription-details",{subscriptionId:[1,"subscription-id"],planId:[1,"plan-id"],heading:[1],isEditing:[4,"is-editing"],preview:[4]}],[0,"manifold-subscription-list",{connection:[1040],loading:[1028],errors:[1040],data:[1040],subLinkFormat:[1025,"sub-link-format"],heading:[1],owner:[1]}]]]],i)); |
@@ -1,1 +0,1 @@ | ||
System.register(["./p-a956fdd1.system.js"],(function(){"use strict";var e,i;return{setters:[function(t){e=t.p;i=t.b}],execute:function(){e().then((function(e){return i([["p-d5946ee3.system",[[0,"manifold-configured-feature",{label:[1],value:[8]}],[0,"manifold-subscription-create",{loading:[1028],isLoadingPlanSelector:[1028,"is-loading-plan-selector"],errors:[1040],data:[1040],planListData:[1040],setupIntentStatus:[1025,"setup-intent-status"],setupIntentError:[1025,"setup-intent-error"],subscribing:[1028],configuredFeatures:[1040],calculatedCost:[1026,"calculated-cost"],isEditing:[1028,"is-editing"],preview:[4],heading:[1],planId:[1025,"plan-id"],ownerId:[1,"owner-id"],stripePublishableKey:[1,"stripe-publishable-key"],displayName:[1,"display-name"],label:[1],card:[32],cardStatus:[32],profile:[32]},[[0,"manifold-configured-feature-change","updateConfiguredFeature"]]],[0,"manifold-subscription-details",{subscriptionId:[1,"subscription-id"],planId:[1,"plan-id"],heading:[1],isEditing:[4,"is-editing"],preview:[4]}],[0,"manifold-subscription-list",{connection:[1040],loading:[1028],errors:[1040],data:[1040],productId:[1,"product-id"],preview:[4],subLinkFormat:[1025,"sub-link-format"],heading:[1],owner:[1]}]]]],e)}))}}})); | ||
System.register(["./p-a956fdd1.system.js"],(function(){"use strict";var e,i;return{setters:[function(t){e=t.p;i=t.b}],execute:function(){e().then((function(e){return i([["p-3eb0e4f3.system",[[0,"manifold-configured-feature",{label:[1],value:[8]}],[0,"manifold-subscription-create",{loading:[1028],isLoadingPlanSelector:[1028,"is-loading-plan-selector"],errors:[1040],data:[1040],planListData:[1040],setupIntentStatus:[1025,"setup-intent-status"],setupIntentError:[1025,"setup-intent-error"],subscribing:[1028],configuredFeatures:[1040],calculatedCost:[1026,"calculated-cost"],isEditing:[1028,"is-editing"],preview:[4],heading:[1],planId:[1025,"plan-id"],ownerId:[1,"owner-id"],stripePublishableKey:[1,"stripe-publishable-key"],displayName:[1,"display-name"],label:[1],card:[32],cardStatus:[32],profile:[32]},[[0,"manifold-configured-feature-change","updateConfiguredFeature"]]],[0,"manifold-subscription-details",{subscriptionId:[1,"subscription-id"],planId:[1,"plan-id"],heading:[1],isEditing:[4,"is-editing"],preview:[4]}],[0,"manifold-subscription-list",{connection:[1040],loading:[1028],errors:[1040],data:[1040],subLinkFormat:[1025,"sub-link-format"],heading:[1],owner:[1]}]]]],e)}))}}})); |
@@ -9,3 +9,3 @@ /* eslint-disable */ | ||
import { UIError, } from "./utils/error"; | ||
import { PlanListQuery, PlanQuery, SubscriptionListQuery, } from "./types/graphql"; | ||
import { PlanListQuery, PlanQuery, SubscriptionsQuery, } from "./types/graphql"; | ||
import { SetupIntent, } from "@stripe/stripe-js"; | ||
@@ -70,3 +70,3 @@ import { FeatureMap, } from "./utils/plan"; | ||
"connection"?: Connection; | ||
"data"?: SubscriptionListQuery; | ||
"data"?: SubscriptionsQuery; | ||
"errors"?: GraphqlError[]; | ||
@@ -83,7 +83,2 @@ /** | ||
/** | ||
* Puts the component in preview mode | ||
*/ | ||
"preview"?: boolean; | ||
"productId"?: string; | ||
/** | ||
* Component subscription link format | ||
@@ -185,3 +180,3 @@ */ | ||
"connection"?: Connection; | ||
"data"?: SubscriptionListQuery; | ||
"data"?: SubscriptionsQuery; | ||
"errors"?: GraphqlError[]; | ||
@@ -199,7 +194,2 @@ /** | ||
/** | ||
* Puts the component in preview mode | ||
*/ | ||
"preview"?: boolean; | ||
"productId"?: string; | ||
/** | ||
* Component subscription link format | ||
@@ -206,0 +196,0 @@ */ |
@@ -56,2 +56,3 @@ import { EventEmitter } from '@stencil/core'; | ||
componentDidLoad(): void; | ||
update(value?: string): void; | ||
addErrors: (...errors: UIError[]) => void; | ||
@@ -58,0 +59,0 @@ removeErrors: (...labels: string[]) => void; |
@@ -9,6 +9,2 @@ import { Connection } from '@manifoldco/manifold-init-types/types/v0'; | ||
node: ({ | ||
__typename?: "StringConfiguredFeature" | undefined; | ||
} & Pick<import("../../../types/graphql").StringConfiguredFeature, "label"> & { | ||
stringValue: string; | ||
}) | ({ | ||
__typename?: "BooleanConfiguredFeature" | undefined; | ||
@@ -21,2 +17,6 @@ } & Pick<import("../../../types/graphql").BooleanConfiguredFeature, "label"> & { | ||
numberValue: number; | ||
}) | ({ | ||
__typename?: "StringConfiguredFeature" | undefined; | ||
} & Pick<import("../../../types/graphql").StringConfiguredFeature, "label"> & { | ||
stringValue: string; | ||
}); | ||
@@ -23,0 +23,0 @@ })[]; |
import { EventEmitter } from '@stencil/core'; | ||
import { Connection } from '@manifoldco/manifold-init-types/types/v0'; | ||
import { GraphqlError } from '@manifoldco/manifold-init-types/types/v0/graphqlFetch'; | ||
import { SubscriptionListQuery } from '../../types/graphql'; | ||
import { SubscriptionsQuery } from '../../types/graphql'; | ||
export declare class ManifoldSubscriptionList { | ||
@@ -11,9 +11,4 @@ el: HTMLElement; | ||
errors?: GraphqlError[]; | ||
data?: SubscriptionListQuery; | ||
productId?: string; | ||
data?: SubscriptionsQuery; | ||
/** | ||
* Puts the component in preview mode | ||
*/ | ||
preview?: boolean; | ||
/** | ||
* Component subscription link format | ||
@@ -20,0 +15,0 @@ */ |
@@ -1247,6 +1247,2 @@ export declare type Maybe<T> = T; | ||
node: ({ | ||
__typename?: 'StringConfiguredFeature'; | ||
} & Pick<StringConfiguredFeature, 'label'> & { | ||
stringValue: StringConfiguredFeature['value']; | ||
}) | ({ | ||
__typename?: 'BooleanConfiguredFeature'; | ||
@@ -1259,2 +1255,6 @@ } & Pick<BooleanConfiguredFeature, 'label'> & { | ||
numberValue: NumberConfiguredFeature['value']; | ||
}) | ({ | ||
__typename?: 'StringConfiguredFeature'; | ||
} & Pick<StringConfiguredFeature, 'label'> & { | ||
stringValue: StringConfiguredFeature['value']; | ||
}); | ||
@@ -1437,43 +1437,6 @@ })>; | ||
}); | ||
export declare type ListPlanFragment = ({ | ||
__typename?: 'Plan'; | ||
} & Pick<Plan, 'id' | 'displayName' | 'cost'> & { | ||
configurableFeatures: Maybe<({ | ||
__typename?: 'PlanConfigurableFeatureConnection'; | ||
} & { | ||
edges: Array<({ | ||
__typename?: 'PlanConfigurableFeatureEdge'; | ||
} & { | ||
node: ({ | ||
__typename?: 'PlanConfigurableFeature'; | ||
} & Pick<PlanConfigurableFeature, 'displayName'>); | ||
})>; | ||
})>; | ||
}); | ||
export declare type SubscriptionListPreviewQueryVariables = { | ||
productId: Scalars['ID']; | ||
}; | ||
export declare type SubscriptionListPreviewQuery = ({ | ||
__typename?: 'Query'; | ||
} & { | ||
product: Maybe<({ | ||
__typename?: 'Product'; | ||
} & { | ||
plans: Maybe<({ | ||
__typename?: 'PlanConnection'; | ||
} & { | ||
edges: Array<({ | ||
__typename?: 'PlanEdge'; | ||
} & { | ||
node: ({ | ||
__typename?: 'Plan'; | ||
} & ListPlanFragment); | ||
})>; | ||
})>; | ||
})>; | ||
}); | ||
export declare type SubscriptionListQueryVariables = { | ||
export declare type SubscriptionsQueryVariables = { | ||
owner: Scalars['ProfileIdentity']; | ||
}; | ||
export declare type SubscriptionListQuery = ({ | ||
export declare type SubscriptionsQuery = ({ | ||
__typename?: 'Query'; | ||
@@ -1492,3 +1455,15 @@ } & { | ||
__typename?: 'Plan'; | ||
} & ListPlanFragment)>; | ||
} & Pick<Plan, 'displayName' | 'cost'> & { | ||
configurableFeatures: Maybe<({ | ||
__typename?: 'PlanConfigurableFeatureConnection'; | ||
} & { | ||
edges: Array<({ | ||
__typename?: 'PlanConfigurableFeatureEdge'; | ||
} & { | ||
node: ({ | ||
__typename?: 'PlanConfigurableFeature'; | ||
} & Pick<PlanConfigurableFeature, 'displayName'>); | ||
})>; | ||
})>; | ||
})>; | ||
})>; | ||
@@ -1495,0 +1470,0 @@ })>; |
{ | ||
"name": "@manifoldco/manifold-subscription", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Manifold Subscription Web Components", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1397989
21708