@manifoldco/web-components
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -8,5 +8,5 @@ 'use strict'; | ||
const defineCustomElements = (win, options) => index.patchEsm().then(() => { | ||
return index.bootstrapLazy([["manifold-plan-table.cjs",[[1,"manifold-plan-table",{"slug":[1],"clientKey":[1,"client-key"],"product":[32],"client":[32]}]]]], options); | ||
return index.bootstrapLazy([["manifold-plan-table.cjs",[[1,"manifold-plan-table",{"slug":[1],"clientKey":[1,"client-key"],"env":[1],"product":[32],"client":[32]}]]]], options); | ||
}); | ||
exports.defineCustomElements = defineCustomElements; |
@@ -6,3 +6,3 @@ 'use strict'; | ||
index.patchBrowser().then(options => { | ||
return index.bootstrapLazy([["manifold-plan-table.cjs",[[1,"manifold-plan-table",{"slug":[1],"clientKey":[1,"client-key"],"product":[32],"client":[32]}]]]], options); | ||
return index.bootstrapLazy([["manifold-plan-table.cjs",[[1,"manifold-plan-table",{"slug":[1],"clientKey":[1,"client-key"],"env":[1],"product":[32],"client":[32]}]]]], options); | ||
}); |
@@ -8,2 +8,5 @@ import { Component, Host, State, Prop, h } from '@stencil/core'; | ||
export class ManifoldPlanTable { | ||
constructor() { | ||
this.env = 'prod'; | ||
} | ||
componentWillLoad() { | ||
@@ -14,4 +17,11 @@ if (this.slug === '___manifold-sample-product___') { | ||
else { | ||
let url = 'https://graphql.manifold.co/graphql'; | ||
if (this.env === 'stage') { | ||
url = 'https://graphql.stage.manifold.co/graphql'; | ||
} | ||
else if (this.env === 'local') { | ||
url = 'http://localhost:8080/graphql'; | ||
} | ||
this.client = createClient({ | ||
url: 'https://graphql.manifold.co/graphql', | ||
url, | ||
fetchOptions: { | ||
@@ -172,2 +182,20 @@ headers: { | ||
"reflect": false | ||
}, | ||
"env": { | ||
"type": "string", | ||
"mutable": false, | ||
"complexType": { | ||
"original": "'prod' | 'stage' | 'local'", | ||
"resolved": "\"local\" | \"prod\" | \"stage\"", | ||
"references": {} | ||
}, | ||
"required": false, | ||
"optional": false, | ||
"docs": { | ||
"tags": [], | ||
"text": "" | ||
}, | ||
"attribute": "env", | ||
"reflect": false, | ||
"defaultValue": "'prod'" | ||
} | ||
@@ -174,0 +202,0 @@ }; } |
@@ -1,1 +0,1 @@ | ||
import{p as a,b as e}from"./p-15558ebb.js";a().then(a=>e([["p-a1a78b20",[[1,"manifold-plan-table",{slug:[1],clientKey:[1,"client-key"],product:[32],client:[32]}]]]],a)); | ||
import{p as e,b as l}from"./p-15558ebb.js";e().then(e=>l([["p-9013cb4e",[[1,"manifold-plan-table",{slug:[1],clientKey:[1,"client-key"],env:[1],product:[32],client:[32]}]]]],e)); |
@@ -1,1 +0,1 @@ | ||
System.register(["./p-966db66d.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-26cce578.system",[[1,"manifold-plan-table",{slug:[1],clientKey:[1,"client-key"],product:[32],client:[32]}]]]],e)}))}}})); | ||
System.register(["./p-966db66d.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-78863cd7.system",[[1,"manifold-plan-table",{slug:[1],clientKey:[1,"client-key"],env:[1],product:[32],client:[32]}]]]],e)}))}}})); |
@@ -11,2 +11,3 @@ /* eslint-disable */ | ||
"clientKey": string; | ||
"env": "prod" | "stage" | "local"; | ||
"slug": string; | ||
@@ -29,2 +30,3 @@ } | ||
"clientKey"?: string; | ||
"env"?: "prod" | "stage" | "local"; | ||
"slug"?: string; | ||
@@ -31,0 +33,0 @@ } |
@@ -7,2 +7,3 @@ import { ComponentInterface } from '../../stencil-public-runtime'; | ||
clientKey: string; | ||
env: 'prod' | 'stage' | 'local'; | ||
product: GetProductQuery['product']; | ||
@@ -9,0 +10,0 @@ client: Client; |
{ | ||
"name": "@manifoldco/web-components", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "Manifold's Web Components", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
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
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
1455665
23898