@manifoldco/component-plan-matrix
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -9,3 +9,3 @@ 'use strict'; | ||
return core.patchEsm().then(() => { | ||
core.bootstrapLazy([["manifold-button_7.cjs",[[0,"manifold-plan-matrix",{"productLabel":[1,"product-label"],"baseUrl":[1,"base-url"],"ctaText":[1,"cta-text"],"graphqlUrl":[1,"graphql-url"],"product":[32],"plans":[32],"labels":[32],"loading":[32]}],[0,"manifold-checkbox",{"inputId":[1,"input-id"],"name":[1],"checked":[4]}],[4,"manifold-button",{"href":[1]}],[0,"manifold-cost-tiers",{"minLimit":[2,"min-limit"],"maxLimit":[2,"max-limit"],"cost":[2],"unit":[1]}],[4,"manifold-metered"],[0,"manifold-thead",{"titleText":[1,"title-text"],"plan":[16]}],[0,"manifold-empty-cell"]]]], options); | ||
core.bootstrapLazy([["manifold-button_7.cjs",[[0,"manifold-plan-matrix",{"productId":[1,"product-id"],"baseUrl":[1,"base-url"],"ctaText":[1,"cta-text"],"graphqlUrl":[1,"graphql-url"],"product":[32],"plans":[32],"labels":[32],"loading":[32]}],[0,"manifold-checkbox",{"inputId":[1,"input-id"],"name":[1],"checked":[4]}],[4,"manifold-button",{"href":[1]}],[0,"manifold-cost-tiers",{"minLimit":[2,"min-limit"],"maxLimit":[2,"max-limit"],"cost":[2],"unit":[1]}],[4,"manifold-metered"],[0,"manifold-thead",{"titleText":[1,"title-text"],"plan":[16]}],[0,"manifold-empty-cell"]]]], options); | ||
}); | ||
@@ -12,0 +12,0 @@ }; |
@@ -141,3 +141,3 @@ 'use strict'; | ||
const query = "query PRODUCT($first: Int!, $label: String!) {\n product(label: $label) {\n plans(first: $first) {\n edges {\n node {\n displayName\n cost\n fixedFeatures(first: $first) {\n edges {\n node {\n displayName\n displayValue\n }\n }\n }\n meteredFeatures(first: $first) {\n edges {\n node {\n displayName\n numericDetails {\n unit\n costTiers {\n limit\n cost\n }\n }\n }\n }\n }\n configurableFeatures(first: $first) {\n edges {\n node {\n displayName\n type\n upgradable\n downgradable\n featureOptions {\n displayName\n cost\n value\n }\n numericDetails {\n increment\n min\n max\n unit\n costTiers {\n limit\n cost\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}\n"; | ||
const query = "query PRODUCT($first: Int!, $id: ID!) {\n product(id: $id) {\n plans(first: $first) {\n edges {\n node {\n displayName\n cost\n fixedFeatures(first: $first) {\n edges {\n node {\n displayName\n displayValue\n }\n }\n }\n meteredFeatures(first: $first) {\n edges {\n node {\n displayName\n numericDetails {\n unit\n costTiers {\n limit\n cost\n }\n }\n }\n }\n }\n configurableFeatures(first: $first) {\n edges {\n node {\n displayName\n type\n upgradable\n downgradable\n featureOptions {\n displayName\n cost\n value\n }\n numericDetails {\n increment\n min\n max\n unit\n costTiers {\n limit\n cost\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}\n"; | ||
@@ -148,4 +148,4 @@ const GRAPHQL_ENDPOINT = 'https://api.manifold.co/graphql'; | ||
core.registerInstance(this, hostRef); | ||
// Passed product label to the graphql endpoint | ||
this.productLabel = ''; | ||
// Passed product ID to the graphql endpoint | ||
this.productId = ''; | ||
// Base url for buttons | ||
@@ -164,3 +164,3 @@ this.baseUrl = '/signup'; | ||
const DEFAULT = 'ziggeo'; | ||
const variables = { label: this.productLabel || DEFAULT, first: 50 }; | ||
const variables = { id: this.productId || DEFAULT, first: 50 }; | ||
fetch(this.graphqlUrl || GRAPHQL_ENDPOINT, { | ||
@@ -167,0 +167,0 @@ method: 'POST', |
@@ -6,3 +6,3 @@ 'use strict'; | ||
core.patchBrowser().then(options => { | ||
return core.bootstrapLazy([["manifold-button_7.cjs",[[0,"manifold-plan-matrix",{"productLabel":[1,"product-label"],"baseUrl":[1,"base-url"],"ctaText":[1,"cta-text"],"graphqlUrl":[1,"graphql-url"],"product":[32],"plans":[32],"labels":[32],"loading":[32]}],[0,"manifold-checkbox",{"inputId":[1,"input-id"],"name":[1],"checked":[4]}],[4,"manifold-button",{"href":[1]}],[0,"manifold-cost-tiers",{"minLimit":[2,"min-limit"],"maxLimit":[2,"max-limit"],"cost":[2],"unit":[1]}],[4,"manifold-metered"],[0,"manifold-thead",{"titleText":[1,"title-text"],"plan":[16]}],[0,"manifold-empty-cell"]]]], options); | ||
return core.bootstrapLazy([["manifold-button_7.cjs",[[0,"manifold-plan-matrix",{"productId":[1,"product-id"],"baseUrl":[1,"base-url"],"ctaText":[1,"cta-text"],"graphqlUrl":[1,"graphql-url"],"product":[32],"plans":[32],"labels":[32],"loading":[32]}],[0,"manifold-checkbox",{"inputId":[1,"input-id"],"name":[1],"checked":[4]}],[4,"manifold-button",{"href":[1]}],[0,"manifold-cost-tiers",{"minLimit":[2,"min-limit"],"maxLimit":[2,"max-limit"],"cost":[2],"unit":[1]}],[4,"manifold-metered"],[0,"manifold-thead",{"titleText":[1,"title-text"],"plan":[16]}],[0,"manifold-empty-cell"]]]], options); | ||
}); |
@@ -6,4 +6,4 @@ import { h } from "@stencil/core"; | ||
constructor() { | ||
// Passed product label to the graphql endpoint | ||
this.productLabel = ''; | ||
// Passed product ID to the graphql endpoint | ||
this.productId = ''; | ||
// Base url for buttons | ||
@@ -22,3 +22,3 @@ this.baseUrl = '/signup'; | ||
const DEFAULT = 'ziggeo'; | ||
const variables = { label: this.productLabel || DEFAULT, first: 50 }; | ||
const variables = { id: this.productId || DEFAULT, first: 50 }; | ||
fetch(this.graphqlUrl || GRAPHQL_ENDPOINT, { | ||
@@ -130,3 +130,3 @@ method: 'POST', | ||
static get properties() { return { | ||
"productLabel": { | ||
"productId": { | ||
"type": "string", | ||
@@ -145,3 +145,3 @@ "mutable": false, | ||
}, | ||
"attribute": "product-label", | ||
"attribute": "product-id", | ||
"reflect": false, | ||
@@ -148,0 +148,0 @@ "defaultValue": "''" |
@@ -160,3 +160,3 @@ var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
}()); | ||
var query = "query PRODUCT($first: Int!, $label: String!) {\n product(label: $label) {\n plans(first: $first) {\n edges {\n node {\n displayName\n cost\n fixedFeatures(first: $first) {\n edges {\n node {\n displayName\n displayValue\n }\n }\n }\n meteredFeatures(first: $first) {\n edges {\n node {\n displayName\n numericDetails {\n unit\n costTiers {\n limit\n cost\n }\n }\n }\n }\n }\n configurableFeatures(first: $first) {\n edges {\n node {\n displayName\n type\n upgradable\n downgradable\n featureOptions {\n displayName\n cost\n value\n }\n numericDetails {\n increment\n min\n max\n unit\n costTiers {\n limit\n cost\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}\n"; | ||
var query = "query PRODUCT($first: Int!, $id: ID!) {\n product(id: $id) {\n plans(first: $first) {\n edges {\n node {\n displayName\n cost\n fixedFeatures(first: $first) {\n edges {\n node {\n displayName\n displayValue\n }\n }\n }\n meteredFeatures(first: $first) {\n edges {\n node {\n displayName\n numericDetails {\n unit\n costTiers {\n limit\n cost\n }\n }\n }\n }\n }\n configurableFeatures(first: $first) {\n edges {\n node {\n displayName\n type\n upgradable\n downgradable\n featureOptions {\n displayName\n cost\n value\n }\n numericDetails {\n increment\n min\n max\n unit\n costTiers {\n limit\n cost\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}\n"; | ||
var GRAPHQL_ENDPOINT = 'https://api.manifold.co/graphql'; | ||
@@ -166,4 +166,4 @@ var ManifoldPricing = /** @class */ (function () { | ||
registerInstance(this, hostRef); | ||
// Passed product label to the graphql endpoint | ||
this.productLabel = ''; | ||
// Passed product ID to the graphql endpoint | ||
this.productId = ''; | ||
// Base url for buttons | ||
@@ -183,3 +183,3 @@ this.baseUrl = '/signup'; | ||
var DEFAULT = 'ziggeo'; | ||
var variables = { label: this.productLabel || DEFAULT, first: 50 }; | ||
var variables = { id: this.productId || DEFAULT, first: 50 }; | ||
fetch(this.graphqlUrl || GRAPHQL_ENDPOINT, { | ||
@@ -186,0 +186,0 @@ method: 'POST', |
@@ -137,3 +137,3 @@ import { r as registerInstance, h, g as getElement } from './core-c0e836f9.js'; | ||
const query = "query PRODUCT($first: Int!, $label: String!) {\n product(label: $label) {\n plans(first: $first) {\n edges {\n node {\n displayName\n cost\n fixedFeatures(first: $first) {\n edges {\n node {\n displayName\n displayValue\n }\n }\n }\n meteredFeatures(first: $first) {\n edges {\n node {\n displayName\n numericDetails {\n unit\n costTiers {\n limit\n cost\n }\n }\n }\n }\n }\n configurableFeatures(first: $first) {\n edges {\n node {\n displayName\n type\n upgradable\n downgradable\n featureOptions {\n displayName\n cost\n value\n }\n numericDetails {\n increment\n min\n max\n unit\n costTiers {\n limit\n cost\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}\n"; | ||
const query = "query PRODUCT($first: Int!, $id: ID!) {\n product(id: $id) {\n plans(first: $first) {\n edges {\n node {\n displayName\n cost\n fixedFeatures(first: $first) {\n edges {\n node {\n displayName\n displayValue\n }\n }\n }\n meteredFeatures(first: $first) {\n edges {\n node {\n displayName\n numericDetails {\n unit\n costTiers {\n limit\n cost\n }\n }\n }\n }\n }\n configurableFeatures(first: $first) {\n edges {\n node {\n displayName\n type\n upgradable\n downgradable\n featureOptions {\n displayName\n cost\n value\n }\n numericDetails {\n increment\n min\n max\n unit\n costTiers {\n limit\n cost\n }\n }\n }\n }\n }\n }\n }\n }\n }\n}\n"; | ||
@@ -144,4 +144,4 @@ const GRAPHQL_ENDPOINT = 'https://api.manifold.co/graphql'; | ||
registerInstance(this, hostRef); | ||
// Passed product label to the graphql endpoint | ||
this.productLabel = ''; | ||
// Passed product ID to the graphql endpoint | ||
this.productId = ''; | ||
// Base url for buttons | ||
@@ -160,3 +160,3 @@ this.baseUrl = '/signup'; | ||
const DEFAULT = 'ziggeo'; | ||
const variables = { label: this.productLabel || DEFAULT, first: 50 }; | ||
const variables = { id: this.productId || DEFAULT, first: 50 }; | ||
fetch(this.graphqlUrl || GRAPHQL_ENDPOINT, { | ||
@@ -163,0 +163,0 @@ method: 'POST', |
@@ -1,1 +0,1 @@ | ||
import{p as t,b as a}from"./p-3fb78b3a.js";t().then(t=>a([["p-izqnwotd",[[0,"manifold-plan-matrix",{productLabel:[1,"product-label"],baseUrl:[1,"base-url"],ctaText:[1,"cta-text"],graphqlUrl:[1,"graphql-url"],product:[32],plans:[32],labels:[32],loading:[32]}],[0,"manifold-checkbox",{inputId:[1,"input-id"],name:[1],checked:[4]}],[4,"manifold-button",{href:[1]}],[0,"manifold-cost-tiers",{minLimit:[2,"min-limit"],maxLimit:[2,"max-limit"],cost:[2],unit:[1]}],[4,"manifold-metered"],[0,"manifold-thead",{titleText:[1,"title-text"],plan:[16]}],[0,"manifold-empty-cell"]]]],t)); | ||
import{p as t,b as i}from"./p-3fb78b3a.js";t().then(t=>i([["p-ch74kysj",[[0,"manifold-plan-matrix",{productId:[1,"product-id"],baseUrl:[1,"base-url"],ctaText:[1,"cta-text"],graphqlUrl:[1,"graphql-url"],product:[32],plans:[32],labels:[32],loading:[32]}],[0,"manifold-checkbox",{inputId:[1,"input-id"],name:[1],checked:[4]}],[4,"manifold-button",{href:[1]}],[0,"manifold-cost-tiers",{minLimit:[2,"min-limit"],maxLimit:[2,"max-limit"],cost:[2],unit:[1]}],[4,"manifold-metered"],[0,"manifold-thead",{titleText:[1,"title-text"],plan:[16]}],[0,"manifold-empty-cell"]]]],t)); |
@@ -1,1 +0,1 @@ | ||
System.register(["./p-7182637e.system.js"],(function(){"use strict";var t,e;return{setters:[function(i){t=i.p;e=i.b}],execute:function(){t().then((function(t){return e([["p-sbd07skr.system",[[0,"manifold-plan-matrix",{productLabel:[1,"product-label"],baseUrl:[1,"base-url"],ctaText:[1,"cta-text"],graphqlUrl:[1,"graphql-url"],product:[32],plans:[32],labels:[32],loading:[32]}],[0,"manifold-checkbox",{inputId:[1,"input-id"],name:[1],checked:[4]}],[4,"manifold-button",{href:[1]}],[0,"manifold-cost-tiers",{minLimit:[2,"min-limit"],maxLimit:[2,"max-limit"],cost:[2],unit:[1]}],[4,"manifold-metered"],[0,"manifold-thead",{titleText:[1,"title-text"],plan:[16]}],[0,"manifold-empty-cell"]]]],t)}))}}})); | ||
System.register(["./p-7182637e.system.js"],(function(){"use strict";var t,e;return{setters:[function(i){t=i.p;e=i.b}],execute:function(){t().then((function(t){return e([["p-vdwt4e6m.system",[[0,"manifold-plan-matrix",{productId:[1,"product-id"],baseUrl:[1,"base-url"],ctaText:[1,"cta-text"],graphqlUrl:[1,"graphql-url"],product:[32],plans:[32],labels:[32],loading:[32]}],[0,"manifold-checkbox",{inputId:[1,"input-id"],name:[1],checked:[4]}],[4,"manifold-button",{href:[1]}],[0,"manifold-cost-tiers",{minLimit:[2,"min-limit"],maxLimit:[2,"max-limit"],cost:[2],unit:[1]}],[4,"manifold-metered"],[0,"manifold-thead",{titleText:[1,"title-text"],plan:[16]}],[0,"manifold-empty-cell"]]]],t)}))}}})); |
@@ -35,3 +35,3 @@ /* eslint-disable */ | ||
'graphqlUrl'?: string; | ||
'productLabel'?: string; | ||
'productId'?: string; | ||
} | ||
@@ -120,3 +120,3 @@ interface ManifoldThead { | ||
'graphqlUrl'?: string; | ||
'productLabel'?: string; | ||
'productId'?: string; | ||
} | ||
@@ -123,0 +123,0 @@ interface ManifoldThead { |
@@ -8,3 +8,3 @@ import { ProductQuery } from 'types/graphql'; | ||
el: HTMLElement; | ||
productLabel?: string; | ||
productId?: string; | ||
baseUrl?: string; | ||
@@ -11,0 +11,0 @@ ctaText?: string; |
@@ -495,2 +495,3 @@ export declare type Maybe<T> = T; | ||
displayName: Scalars['String']; | ||
featureOptions?: Maybe<Array<ProductConfigurableFeatureOption>>; | ||
}; | ||
@@ -513,2 +514,5 @@ export declare type ProductConfigurableFeature = { | ||
__typename?: 'ProductConfigurableFeatureNumericDetails'; | ||
increment: Scalars['Int']; | ||
min: Scalars['Int']; | ||
max: Scalars['Int']; | ||
unit: Scalars['String']; | ||
@@ -527,2 +531,3 @@ costTiers: Array<ProductFeatureCostTier>; | ||
displayName: Scalars['String']; | ||
cost: Scalars['Int']; | ||
}; | ||
@@ -952,3 +957,3 @@ export declare type ProductConfigurableFeaturesOrderBy = { | ||
first: Scalars['Int']; | ||
label: Scalars['String']; | ||
id: Scalars['ID']; | ||
}; | ||
@@ -955,0 +960,0 @@ export declare type ProductQuery = ({ |
{ | ||
"name": "@manifoldco/component-plan-matrix", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "Stencil Component Starter", |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
14590
904059