Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@manifoldco/manifold-subscription

Package Overview
Dependencies
Maintainers
14
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@manifoldco/manifold-subscription - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

dist/cjs/manifold-configured-feature_4.cjs.entry.js

2

dist/cjs/loader.cjs.js

@@ -8,5 +8,5 @@ 'use strict';

const defineCustomElements = (win, options) => index.patchEsm().then(() => {
return index.bootstrapLazy([["manifold-configured-feature_3.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"],"heading":[1],"planId":[1025,"plan-id"],"stripePublishableKey":[1,"stripe-publishable-key"],"isEditing":[1028,"is-editing"],"displayName":[1,"display-name"],"label":[1],"card":[32]},[[0,"manifold-configured-feature-change","updateConfiguredFeature"]]],[0,"manifold-subscription-list",{"connection":[1040],"loading":[1028],"errors":[1040],"data":[1040],"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"],"heading":[1],"planId":[1025,"plan-id"],"ownerId":[1,"owner-id"],"stripePublishableKey":[1,"stripe-publishable-key"],"displayName":[1,"display-name"],"label":[1],"card":[32]},[[0,"manifold-configured-feature-change","updateConfiguredFeature"]]],[0,"manifold-subscription-details",{"subscriptionId":[1,"subscription-id"],"data":[32]}],[0,"manifold-subscription-list",{"connection":[1040],"loading":[1028],"errors":[1040],"data":[1040],"heading":[1],"owner":[1]}]]]], options);
});
exports.defineCustomElements = defineCustomElements;

@@ -6,3 +6,3 @@ 'use strict';

index.patchBrowser().then(options => {
return index.bootstrapLazy([["manifold-configured-feature_3.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"],"heading":[1],"planId":[1025,"plan-id"],"stripePublishableKey":[1,"stripe-publishable-key"],"isEditing":[1028,"is-editing"],"displayName":[1,"display-name"],"label":[1],"card":[32]},[[0,"manifold-configured-feature-change","updateConfiguredFeature"]]],[0,"manifold-subscription-list",{"connection":[1040],"loading":[1028],"errors":[1040],"data":[1040],"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"],"heading":[1],"planId":[1025,"plan-id"],"ownerId":[1,"owner-id"],"stripePublishableKey":[1,"stripe-publishable-key"],"displayName":[1,"display-name"],"label":[1],"card":[32]},[[0,"manifold-configured-feature-change","updateConfiguredFeature"]]],[0,"manifold-subscription-details",{"subscriptionId":[1,"subscription-id"],"data":[32]}],[0,"manifold-subscription-list",{"connection":[1040],"loading":[1028],"errors":[1040],"data":[1040],"heading":[1],"owner":[1]}]]]], options);
});

@@ -5,2 +5,3 @@ {

"./components/manifold-subscription-create/manifold-subscription-create.js",
"./components/manifold-subscription-details/manifold-subscription-details.js",
"./components/manifold-subscription-list/manifold-subscription-list.js"

@@ -7,0 +8,0 @@ ],

import { Component, Element, Prop, h, Watch, State, Listen, Event, } from '@stencil/core';
import { loadStripe } from '@stripe/stripe-js';
import PlanSelector from './components/PlanSelector';
import PlanCard from './components/PlanCard';
import Message from './components/Message';
import PlanSelector from '../shared/PlanSelector';
import PlanCard from '../shared/PlanCard';
import Message from '../shared/Message';
import planQuery from './plan.graphql';

@@ -51,3 +51,3 @@ import planListQuery from './plan-list.graphql';

const variables = {
ownerId: undefined,
ownerId: this.ownerId,
planId: this.planId,

@@ -269,3 +269,3 @@ configuredFeatures,

"original": "PlanQuery",
"resolved": "undefined | { __typename?: \"Query\" | undefined; } & { plan: { __typename?: \"Plan\" | undefined; } & Pick<Plan, \"displayName\" | \"cost\"> & { product: { __typename?: \"Product\" | undefined; } & Pick<Product, \"label\">; }; profile: { __typename?: \"Profile\" | undefined; } & Pick<Profile, \"id\" | \"stripeSetupIntentSecret\"> & { stripeAccount: { __typename?: \"StripeAccount\" | undefined; } & Pick<StripeAccount, \"id\">; }; }",
"resolved": "undefined | { __typename?: \"Query\" | undefined; } & { plan: { __typename?: \"Plan\" | undefined; } & Pick<Plan, \"displayName\" | \"cost\"> & { product: { __typename?: \"Product\" | undefined; } & Pick<Product, \"label\">; }; profile: { __typename?: \"Profile\" | undefined; } & Pick<Profile, \"stripeSetupIntentSecret\"> & { stripeAccount: { __typename?: \"StripeAccount\" | undefined; } & Pick<StripeAccount, \"id\">; }; }",
"references": {

@@ -400,2 +400,20 @@ "PlanQuery": {

},
"isEditing": {
"type": "boolean",
"mutable": true,
"complexType": {
"original": "boolean",
"resolved": "boolean",
"references": {}
},
"required": false,
"optional": false,
"docs": {
"tags": [],
"text": ""
},
"attribute": "is-editing",
"reflect": false,
"defaultValue": "false"
},
"heading": {

@@ -435,3 +453,3 @@ "type": "string",

},
"stripePublishableKey": {
"ownerId": {
"type": "string",

@@ -448,13 +466,13 @@ "mutable": false,

"tags": [],
"text": ""
"text": "Plan ID for the new subscription"
},
"attribute": "stripe-publishable-key",
"attribute": "owner-id",
"reflect": false
},
"isEditing": {
"type": "boolean",
"mutable": true,
"stripePublishableKey": {
"type": "string",
"mutable": false,
"complexType": {
"original": "boolean",
"resolved": "boolean",
"original": "string",
"resolved": "string",
"references": {}

@@ -466,7 +484,6 @@ },

"tags": [],
"text": ""
"text": "Plan ID for the new subscription"
},
"attribute": "is-editing",
"reflect": false,
"defaultValue": "false"
"attribute": "stripe-publishable-key",
"reflect": false
},

@@ -473,0 +490,0 @@ "displayName": {

@@ -155,2 +155,3 @@ export var CalculationType;

(function (StripeBusinessType) {
StripeBusinessType["Unknown"] = "UNKNOWN";
StripeBusinessType["Individual"] = "INDIVIDUAL";

@@ -163,2 +164,3 @@ StripeBusinessType["Company"] = "COMPANY";

(function (StripeCapabilityStatus) {
StripeCapabilityStatus["Unknown"] = "UNKNOWN";
StripeCapabilityStatus["Active"] = "ACTIVE";

@@ -165,0 +167,0 @@ StripeCapabilityStatus["Inactive"] = "INACTIVE";

@@ -1,1 +0,1 @@

import{p as e,b as a}from"./p-21a2f7c2.js";e().then(e=>a([["p-bfdc4751",[[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"],heading:[1],planId:[1025,"plan-id"],stripePublishableKey:[1,"stripe-publishable-key"],isEditing:[1028,"is-editing"],displayName:[1,"display-name"],label:[1],card:[32]},[[0,"manifold-configured-feature-change","updateConfiguredFeature"]]],[0,"manifold-subscription-list",{connection:[1040],loading:[1028],errors:[1040],data:[1040],heading:[1],owner:[1]}]]]],e));
import{p as e,b as a}from"./p-21a2f7c2.js";e().then(e=>a([["p-814b8e5b",[[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"],heading:[1],planId:[1025,"plan-id"],ownerId:[1,"owner-id"],stripePublishableKey:[1,"stripe-publishable-key"],displayName:[1,"display-name"],label:[1],card:[32]},[[0,"manifold-configured-feature-change","updateConfiguredFeature"]]],[0,"manifold-subscription-details",{subscriptionId:[1,"subscription-id"],data:[32]}],[0,"manifold-subscription-list",{connection:[1040],loading:[1028],errors:[1040],data:[1040],heading:[1],owner:[1]}]]]],e));

@@ -1,1 +0,1 @@

System.register(["./p-7b246743.system.js"],(function(){"use strict";var e,t;return{setters:[function(n){e=n.p;t=n.b}],execute:function(){e().then((function(e){return t([["p-02ca4bb1.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"],heading:[1],planId:[1025,"plan-id"],stripePublishableKey:[1,"stripe-publishable-key"],isEditing:[1028,"is-editing"],displayName:[1,"display-name"],label:[1],card:[32]},[[0,"manifold-configured-feature-change","updateConfiguredFeature"]]],[0,"manifold-subscription-list",{connection:[1040],loading:[1028],errors:[1040],data:[1040],heading:[1],owner:[1]}]]]],e)}))}}}));
System.register(["./p-7b246743.system.js"],(function(){"use strict";var e,t;return{setters:[function(i){e=i.p;t=i.b}],execute:function(){e().then((function(e){return t([["p-19db9383.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"],heading:[1],planId:[1025,"plan-id"],ownerId:[1,"owner-id"],stripePublishableKey:[1,"stripe-publishable-key"],displayName:[1,"display-name"],label:[1],card:[32]},[[0,"manifold-configured-feature-change","updateConfiguredFeature"]]],[0,"manifold-subscription-details",{subscriptionId:[1,"subscription-id"],data:[32]}],[0,"manifold-subscription-list",{connection:[1040],loading:[1028],errors:[1040],data:[1040],heading:[1],owner:[1]}]]]],e)}))}}}));

@@ -41,2 +41,6 @@ /* eslint-disable */

*/
"ownerId": string;
/**
* Plan ID for the new subscription
*/
"planId": string;

@@ -46,5 +50,11 @@ "planListData"?: PlanListQuery;

"setupIntentStatus"?: SetupIntent.Status;
/**
* Plan ID for the new subscription
*/
"stripePublishableKey": string;
"subscribing"?: boolean;
}
interface ManifoldSubscriptionDetails {
"subscriptionId": string;
}
interface ManifoldSubscriptionList {

@@ -78,2 +88,8 @@ "connection"?: Connection;

};
interface HTMLManifoldSubscriptionDetailsElement extends Components.ManifoldSubscriptionDetails, HTMLStencilElement {
}
var HTMLManifoldSubscriptionDetailsElement: {
prototype: HTMLManifoldSubscriptionDetailsElement;
new (): HTMLManifoldSubscriptionDetailsElement;
};
interface HTMLManifoldSubscriptionListElement extends Components.ManifoldSubscriptionList, HTMLStencilElement {

@@ -88,2 +104,3 @@ }

"manifold-subscription-create": HTMLManifoldSubscriptionCreateElement;
"manifold-subscription-details": HTMLManifoldSubscriptionDetailsElement;
"manifold-subscription-list": HTMLManifoldSubscriptionListElement;

@@ -124,2 +141,6 @@ }

*/
"ownerId"?: string;
/**
* Plan ID for the new subscription
*/
"planId"?: string;

@@ -129,5 +150,11 @@ "planListData"?: PlanListQuery;

"setupIntentStatus"?: SetupIntent.Status;
/**
* Plan ID for the new subscription
*/
"stripePublishableKey"?: string;
"subscribing"?: boolean;
}
interface ManifoldSubscriptionDetails {
"subscriptionId"?: string;
}
interface ManifoldSubscriptionList {

@@ -150,2 +177,3 @@ "connection"?: Connection;

"manifold-subscription-create": ManifoldSubscriptionCreate;
"manifold-subscription-details": ManifoldSubscriptionDetails;
"manifold-subscription-list": ManifoldSubscriptionList;

@@ -160,2 +188,3 @@ }

"manifold-subscription-create": LocalJSX.ManifoldSubscriptionCreate & JSXBase.HTMLAttributes<HTMLManifoldSubscriptionCreateElement>;
"manifold-subscription-details": LocalJSX.ManifoldSubscriptionDetails & JSXBase.HTMLAttributes<HTMLManifoldSubscriptionDetailsElement>;
"manifold-subscription-list": LocalJSX.ManifoldSubscriptionList & JSXBase.HTMLAttributes<HTMLManifoldSubscriptionListElement>;

@@ -162,0 +191,0 @@ }

@@ -23,2 +23,3 @@ import { EventEmitter } from '@stencil/core';

calculatedCost?: number;
isEditing: boolean;
/**

@@ -32,4 +33,10 @@ * Component heading text

planId: string;
/**
* Plan ID for the new subscription
*/
ownerId: string;
/**
* Plan ID for the new subscription
*/
stripePublishableKey: string;
isEditing: boolean;
/**

@@ -36,0 +43,0 @@ * (Optional) Name given to the new subscription

@@ -944,7 +944,9 @@ export declare type Maybe<T> = T;

id: Scalars['String'];
business_name: Scalars['String'];
business_type: StripeBusinessType;
capabilities: StripeCapabilities;
representative: Maybe<StripePerson>;
support_email: Scalars['String'];
};
export declare enum StripeBusinessType {
Unknown = "UNKNOWN",
Individual = "INDIVIDUAL",

@@ -961,2 +963,3 @@ Company = "COMPANY",

export declare enum StripeCapabilityStatus {
Unknown = "UNKNOWN",
Active = "ACTIVE",

@@ -966,8 +969,2 @@ Inactive = "INACTIVE",

}
export declare type StripePerson = {
__typename?: 'StripePerson';
email: Maybe<Scalars['String']>;
first_name: Maybe<Scalars['String']>;
last_name: Maybe<Scalars['String']>;
};
export declare type SubLineItem = {

@@ -1199,3 +1196,3 @@ __typename?: 'SubLineItem';

__typename?: 'Profile';
} & Pick<Profile, 'id' | 'stripeSetupIntentSecret'> & {
} & Pick<Profile, 'stripeSetupIntentSecret'> & {
stripeAccount: Maybe<({

@@ -1206,2 +1203,53 @@ __typename?: 'StripeAccount';

});
export declare type SubscriptionQueryVariables = {
id: Scalars['ID'];
};
export declare type SubscriptionQuery = ({
__typename?: 'Query';
} & {
subscription: Maybe<({
__typename?: 'SubscriptionAgreement';
} & {
status: ({
__typename?: 'SubscriptionAgreementStatus';
} & Pick<SubscriptionAgreementStatus, 'label' | 'percentDone' | 'message'>);
plan: Maybe<({
__typename?: 'Plan';
} & Pick<Plan, 'label' | 'displayName'> & {
fixedFeatures: Maybe<({
__typename?: 'PlanFixedFeatureConnection';
} & {
edges: Array<({
__typename?: 'PlanFixedFeatureEdge';
} & {
node: ({
__typename?: 'PlanFixedFeature';
} & Pick<PlanFixedFeature, 'label' | 'displayName' | 'displayValue'>);
})>;
})>;
meteredFeatures: Maybe<({
__typename?: 'PlanMeteredFeatureConnection';
} & {
edges: Array<({
__typename?: 'PlanMeteredFeatureEdge';
} & {
node: ({
__typename?: 'PlanMeteredFeature';
} & Pick<PlanMeteredFeature, 'label' | 'displayName'>);
})>;
})>;
configurableFeatures: Maybe<({
__typename?: 'PlanConfigurableFeatureConnection';
} & {
edges: Array<({
__typename?: 'PlanConfigurableFeatureEdge';
} & {
node: ({
__typename?: 'PlanConfigurableFeature';
} & Pick<PlanConfigurableFeature, 'label' | 'displayName'>);
})>;
})>;
})>;
})>;
});
export declare type SubscriptionsQueryVariables = {

@@ -1208,0 +1256,0 @@ owner: Scalars['ProfileIdentity'];

{
"name": "@manifoldco/manifold-subscription",
"version": "0.0.6",
"version": "0.0.7",
"private": false,

@@ -5,0 +5,0 @@ "description": "Manifold Subscription Web Components",

@@ -103,5 +103,5 @@ # @manifoldco/manifold-subscription

| Name | Required | Description | Example |
|--------------------------|----------|--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------|
| ------------------------ | -------- | ------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------- |
| `plan-id` | Y | Your Plan’s identifier | `<manifold-subscription-create product-id="234qkjvrptpy3thna4qttwt7m2nf6">` |
| `owner-id` | | The owner of the subscription (defaults to logged in user) | `<manifold-subscription-create owner-id="[id]">` |
| `owner-id` | Y | The owner of the subscription | `<manifold-subscription-create owner-id="[id]">` |
| `region-id` | | The desired region identifier of the selected plan (defaults to global region) | `<manifold-subscription-create region-id="[region-id]">` |

@@ -144,3 +144,3 @@ | `heading` | | Heading at the top of the component | `<manifold-subscription-create heading="Purchase Subscription">` |

| Detail | Type | Description |
|:-------|:---------|:------------------|
| :----- | :------- | :---------------- |
| `id` | `string` | A subscription ID |

@@ -147,0 +147,0 @@

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 not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc