@shopware-ag/admin-extension-sdk
Advanced tools
Comparing version 0.0.34 to 0.0.35
@@ -1,1 +0,1 @@ | ||
var Ie=Object.defineProperty;var A=Object.getOwnPropertySymbols;var Oe=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable;var M=(o,s,a)=>s in o?Ie(o,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):o[s]=a,P=(o,s)=>{for(var a in s||(s={}))Oe.call(s,a)&&M(o,a,s[a]);if(A)for(var a of A(s))Le.call(s,a)&&M(o,a,s[a]);return o};var N=(o,s,a)=>(M(o,typeof s!="symbol"?s+"":s,a),a);(function(o,s){typeof exports=="object"&&typeof module!="undefined"?s(exports):typeof define=="function"&&define.amd?define(["exports"],s):(o=typeof globalThis!="undefined"?globalThis:o||self,s(o.sw={}))})(this,function(o){var D;"use strict";function s(){return String(Date.now().toString(36)+Math.random().toString(36).substr(2))}function a(e,t){for(let n in e){const i=e[n];t.apply(this,[e,n,i]),I(i)&&a(i,t)}}function I(e){return e!==null&&typeof e=="object"}function h(){return new URLSearchParams(window.location.search).get("location-id")}function U(){const e=window.location;return new URL(e.pathname,e.origin).toString()}function C(e){J(e)}function $(e){q(e)}const O={};let L=!1;function W(){if(L)return;L=!0,K({})("__function__",async({args:t,id:n})=>await Promise.resolve(O[n](...t)))}function J(e){a(e,(t,n,i)=>{if(typeof i=="function"){const r=s();O[r]=i,t[n]={__type__:"__function__",id:r},W()}})}function q(e){a(e,(t,n,i)=>{if(I(i)&&i.__type__&&i.__type__==="__function__"&&typeof i.id=="string"){const r=i.id;t[n]=(...c)=>_("__function__",{args:c,id:r})}})}const b={notificationDispatch:{},windowRedirect:{},windowReload:{},contextLanguage:{},contextEnvironment:{},contextLocale:{},contextCurrency:{},getPageTitle:{},uiComponentSectionRenderer:{},uiTabsAddTabItem:{},locationUpdateHeight:{},menuItemAdd:{},__function__:{},__registerWindow__:{},_multiply:{},_subtract:{},_privileges:{create:["user"],read:["user"],update:["user"],delete:["user"]}};function B(e){const t=R(e),n=Y(window.location);return!t||Object.keys(t).length<=0?null:E(t,n)}function F(e,t,n){const i=R(e),r=G(t,n);return r?E(i,r.permissions):null}function R(e){return b[e]}function Y(e){const n=new URLSearchParams(e.search).get("privileges");return n?JSON.parse(n):{}}function E(e,t){const n=Object.keys(e),i=[];return n.forEach(r=>{var c;(c=e[r])==null||c.forEach(d=>{var l;((l=t[r])==null?void 0:l.includes(d))||i.push(`${r}:${d}`)})}),i.length>=1?i:null}function G(e,t){let n=null;return Object.values(e).forEach(i=>{i.baseUrl===t&&(n=i)}),n}class y extends Error{constructor(t,n){super(`Your app is missing the priviliges ${n.join(", ")} for action "${t}".`);N(this,"missingPrivileges");this.missingPrivileges=n,Object.setPrototypeOf(this,y.prototype)}}const j=new Set;function _(e,t,n){const i=B(e);if(i!==null){const w=new y(e,i);return Promise.reject(w)}const r=s(),c=t!=null?t:{},d={_type:e,_data:c,_callbackId:r};C(d);const l=JSON.stringify(d);let g=!1;const m=7e3;return new Promise((w,Me)=>{const T=function(k){if(typeof k.data!="string")return;let p;try{p=JSON.parse(k.data)}catch{return}!Z(p)||p._callbackId===r&&(!p.hasOwnProperty("_response")||(window.removeEventListener("message",T),g||(g=!0,w(p._response))))};window.addEventListener("message",T);let v=!0;try{v=!window.parent.origin}catch{}const Pe=!v&&window.parent.__CYPRESS__?window:window.parent,H=v?document.referrer:window.parent.origin;n?n.postMessage(l,H):Pe.postMessage(l,H),setTimeout(()=>{g||Me("Send timeout expired. It could be possible that no handler for the postMessage request exists or that the handler freezed.")},m)})}function S(e,t,n){const i=async function(r){var m;if(b[e]&&Object.keys(b[e]).length&&(!n||F(e,n,r.origin)!==null)||typeof r.data!="string")return;let c;try{c=JSON.parse(r.data)}catch{return}if(!X(c)||c._type!==e)return;$(c);const d=await Promise.resolve(t(c._data,{_event_:r})),l={_callbackId:c._callbackId,_type:c._type,_response:d!=null?d:null},g=JSON.stringify(l);r.source?r.source.postMessage(g,{targetOrigin:(m=r.origin)!=null?m:"*"}):window.postMessage(g,window.origin)};return window.addEventListener("message",i),()=>window.removeEventListener("message",i)}function K(e){return(t,n)=>S(t,n,e)}function Q(e,t){return S(e,t,{})}function u(e,t){return n=>_(e,P(P({},t),n))}function x(e){return t=>Q(e,t)}(async()=>{S("__registerWindow__",(e,t)=>{t._event_.source?j.add(t._event_.source):j.add(window)},{}),await _("__registerWindow__",{})})().catch(e=>console.error(e));function X(e){const t=e;return!!t._type&&!!t._data&&!!t._callbackId}function Z(e){const t=e;return!!t._type&&!!t.hasOwnProperty("_response")&&!!t._callbackId}const V=u("windowRedirect"),ee=u("windowReload",{});var te=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",redirect:V,reload:ee});const ne=u("notificationDispatch");var ie=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",dispatch:ne});const re=u("contextLanguage",{}),oe=x("contextLanguage"),se=u("contextEnvironment",{}),ae=u("contextLocale",{}),ce=x("contextLocale"),ue=u("contextCurrency",{});var de=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",getLanguage:re,subscribeLanguage:oe,getEnvironment:se,getLocale:ae,subscribeLocale:ce,getCurrency:ue});const le=u("uiComponentSectionRenderer",{src:(D=U())!=null?D:void 0});var ge=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",add:le}),_e=e=>({addTabItem:u("uiTabsAddTabItem",{positionId:e})});const fe=e=>h()===e,pe=()=>window!==window.parent,z=e=>{if(e)return _("locationUpdateHeight",{height:e,locationId:h()});const t=document.documentElement.offsetHeight;return _("locationUpdateHeight",{height:t,locationId:h()})};let f=null;const me=()=>{f=new ResizeObserver(()=>{z()}),f.observe(document.body)},we=()=>{f&&(f.unobserve(document.body),f.disconnect())},he="sw-main-hidden";var be=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",is:fe,isIframe:pe,updateHeight:z,startAutoResizer:me,stopAutoResizer:we,MAIN_HIDDEN:he});const ye=u("menuItemAdd");var Se=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",addMenuItem:ye});const ve={componentSection:ge,tabs:_e,menu:Se};o.context=de,o.location=be,o.notification=ie,o.ui=ve,o.window=te,Object.defineProperty(o,"__esModule",{value:!0}),o[Symbol.toStringTag]="Module"}); | ||
var Le=Object.defineProperty;var k=Object.getOwnPropertySymbols;var Re=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable;var M=(r,s,a)=>s in r?Le(r,s,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[s]=a,I=(r,s)=>{for(var a in s||(s={}))Re.call(s,a)&&M(r,a,s[a]);if(k)for(var a of k(s))je.call(s,a)&&M(r,a,s[a]);return r};var N=(r,s,a)=>(M(r,typeof s!="symbol"?s+"":s,a),a);(function(r,s){typeof exports=="object"&&typeof module!="undefined"?s(exports):typeof define=="function"&&define.amd?define(["exports"],s):(r=typeof globalThis!="undefined"?globalThis:r||self,s(r.sw={}))})(this,function(r){var x;"use strict";function s(){return String(Date.now().toString(36)+Math.random().toString(36).substr(2))}function a(e,t){for(let n in e){const i=e[n];t.apply(this,[e,n,i]),P(i)&&a(i,t)}}function P(e){return e!==null&&typeof e=="object"}function h(){return new URLSearchParams(window.location.search).get("location-id")}function U(){const e=window.location;return new URL(e.pathname,e.origin).toString()}function C(e){J(e)}function $(e){q(e)}const O={};let L=!1;function W(){if(L)return;L=!0,K({})("__function__",async({args:t,id:n})=>await Promise.resolve(O[n](...t)))}function J(e){a(e,(t,n,i)=>{if(typeof i=="function"){const o=s();O[o]=i,t[n]={__type__:"__function__",id:o},W()}})}function q(e){a(e,(t,n,i)=>{if(P(i)&&i.__type__&&i.__type__==="__function__"&&typeof i.id=="string"){const o=i.id;t[n]=(...c)=>_("__function__",{args:c,id:o})}})}const b={notificationDispatch:{},windowRedirect:{},windowReload:{},contextLanguage:{},contextEnvironment:{},contextLocale:{},contextCurrency:{},getPageTitle:{},uiComponentSectionRenderer:{},uiTabsAddTabItem:{},locationUpdateHeight:{},menuItemAdd:{},settingsItemAdd:{},__function__:{},__registerWindow__:{},_multiply:{},_subtract:{},_privileges:{create:["user"],read:["user"],update:["user"],delete:["user"]}};function B(e){const t=R(e),n=Y(window.location);return!t||Object.keys(t).length<=0?null:j(t,n)}function F(e,t,n){const i=R(e),o=G(t,n);return o?j(i,o.permissions):null}function R(e){return b[e]}function Y(e){const n=new URLSearchParams(e.search).get("privileges");return n?JSON.parse(n):{}}function j(e,t){const n=Object.keys(e),i=[];return n.forEach(o=>{var c;(c=e[o])==null||c.forEach(d=>{var l;((l=t[o])==null?void 0:l.includes(d))||i.push(`${o}:${d}`)})}),i.length>=1?i:null}function G(e,t){let n=null;return Object.values(e).forEach(i=>{i.baseUrl===t&&(n=i)}),n}class y extends Error{constructor(t,n){super(`Your app is missing the priviliges ${n.join(", ")} for action "${t}".`);N(this,"missingPrivileges");this.missingPrivileges=n,Object.setPrototypeOf(this,y.prototype)}}const E=new Set;function _(e,t,n){const i=B(e);if(i!==null){const w=new y(e,i);return Promise.reject(w)}const o=s(),c=t!=null?t:{},d={_type:e,_data:c,_callbackId:o};C(d);const l=JSON.stringify(d);let g=!1;const m=7e3;return new Promise((w,Pe)=>{const D=function(H){if(typeof H.data!="string")return;let p;try{p=JSON.parse(H.data)}catch{return}!Z(p)||p._callbackId===o&&(!p.hasOwnProperty("_response")||(window.removeEventListener("message",D),g||(g=!0,w(p._response))))};window.addEventListener("message",D);let v=!0;try{v=!window.parent.origin}catch{}const Oe=!v&&window.parent.__CYPRESS__?window:window.parent,A=v?document.referrer:window.parent.origin;n?n.postMessage(l,A):Oe.postMessage(l,A),setTimeout(()=>{g||Pe("Send timeout expired. It could be possible that no handler for the postMessage request exists or that the handler freezed.")},m)})}function S(e,t,n){const i=async function(o){var m;if(b[e]&&Object.keys(b[e]).length&&(!n||F(e,n,o.origin)!==null)||typeof o.data!="string")return;let c;try{c=JSON.parse(o.data)}catch{return}if(!X(c)||c._type!==e)return;$(c);const d=await Promise.resolve(t(c._data,{_event_:o})),l={_callbackId:c._callbackId,_type:c._type,_response:d!=null?d:null},g=JSON.stringify(l);o.source?o.source.postMessage(g,{targetOrigin:(m=o.origin)!=null?m:"*"}):window.postMessage(g,window.origin)};return window.addEventListener("message",i),()=>window.removeEventListener("message",i)}function K(e){return(t,n)=>S(t,n,e)}function Q(e,t){return S(e,t,{})}function u(e,t){return n=>_(e,I(I({},t),n))}function z(e){return t=>Q(e,t)}(async()=>{S("__registerWindow__",(e,t)=>{t._event_.source?E.add(t._event_.source):E.add(window)},{}),await _("__registerWindow__",{})})().catch(e=>console.error(e));function X(e){const t=e;return!!t._type&&!!t._data&&!!t._callbackId}function Z(e){const t=e;return!!t._type&&!!t.hasOwnProperty("_response")&&!!t._callbackId}const V=u("windowRedirect"),ee=u("windowReload",{});var te=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",redirect:V,reload:ee});const ne=u("notificationDispatch");var ie=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",dispatch:ne});const oe=u("contextLanguage",{}),re=z("contextLanguage"),se=u("contextEnvironment",{}),ae=u("contextLocale",{}),ce=z("contextLocale"),ue=u("contextCurrency",{});var de=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",getLanguage:oe,subscribeLanguage:re,getEnvironment:se,getLocale:ae,subscribeLocale:ce,getCurrency:ue});const le=u("uiComponentSectionRenderer",{src:(x=U())!=null?x:void 0});var ge=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",add:le}),_e=e=>({addTabItem:u("uiTabsAddTabItem",{positionId:e})});const fe=e=>h()===e,pe=()=>window!==window.parent,T=e=>{if(e)return _("locationUpdateHeight",{height:e,locationId:h()});const t=document.documentElement.offsetHeight;return _("locationUpdateHeight",{height:t,locationId:h()})};let f=null;const me=()=>{f=new ResizeObserver(()=>{T()}),f.observe(document.body)},we=()=>{f&&(f.unobserve(document.body),f.disconnect())},he="sw-main-hidden";var be=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",is:fe,isIframe:pe,updateHeight:T,startAutoResizer:me,stopAutoResizer:we,MAIN_HIDDEN:he});const ye=u("menuItemAdd");var Se=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",addMenuItem:ye});const ve=u("settingsItemAdd");var Me=Object.freeze({__proto__:null,[Symbol.toStringTag]:"Module",addSettingsItem:ve});const Ie={componentSection:ge,tabs:_e,menu:Se,settings:Me};r.context=de,r.location=be,r.notification=ie,r.ui=Ie,r.window=te,Object.defineProperty(r,"__esModule",{value:!0}),r[Symbol.toStringTag]="Module"}); |
@@ -54,5 +54,5 @@ import { ShopwareMessageTypes } from './messages.types'; | ||
*/ | ||
export declare function createSender<MESSAGE_TYPE extends keyof ShopwareMessageTypes>(messageType: MESSAGE_TYPE, baseMessageOptions: MessageDataType<MESSAGE_TYPE>): (messageOptions?: MessageDataType<MESSAGE_TYPE>) => Promise<ShopwareMessageTypes[MESSAGE_TYPE]["responseType"]>; | ||
export declare function createSender<MESSAGE_TYPE extends keyof ShopwareMessageTypes, BASE_OPTIONS extends Partial<MessageDataType<MESSAGE_TYPE>>>(messageType: MESSAGE_TYPE, baseMessageOptions: BASE_OPTIONS): (messageOptions: Omit<MessageDataType<MESSAGE_TYPE>, keyof BASE_OPTIONS>) => Promise<ShopwareMessageTypes[MESSAGE_TYPE]["responseType"]>; | ||
export declare function createSender<MESSAGE_TYPE extends keyof ShopwareMessageTypes>(messageType: MESSAGE_TYPE): (messageOptions: MessageDataType<MESSAGE_TYPE>) => Promise<ShopwareMessageTypes[MESSAGE_TYPE]["responseType"]>; | ||
export declare function createSender<MESSAGE_TYPE extends keyof ShopwareMessageTypes>(messageType: MESSAGE_TYPE, baseMessageOptions: MessageDataType<MESSAGE_TYPE>): (messageOptions?: MessageDataType<MESSAGE_TYPE>) => Promise<ShopwareMessageTypes[MESSAGE_TYPE]['responseType']>; | ||
export declare function createSender<MESSAGE_TYPE extends keyof ShopwareMessageTypes, BASE_OPTIONS extends Partial<MessageDataType<MESSAGE_TYPE>>>(messageType: MESSAGE_TYPE, baseMessageOptions: BASE_OPTIONS): (messageOptions: Omit<MessageDataType<MESSAGE_TYPE>, keyof BASE_OPTIONS>) => Promise<ShopwareMessageTypes[MESSAGE_TYPE]['responseType']>; | ||
export declare function createSender<MESSAGE_TYPE extends keyof ShopwareMessageTypes>(messageType: MESSAGE_TYPE): (messageOptions: MessageDataType<MESSAGE_TYPE>) => Promise<ShopwareMessageTypes[MESSAGE_TYPE]['responseType']>; | ||
/** | ||
@@ -59,0 +59,0 @@ * Factory method which creates a handler so that the type don't need to be |
@@ -6,3 +6,4 @@ import * as window from './window'; | ||
import * as location from './location'; | ||
import * as menu from './ui/menuItem'; | ||
import * as menu from './ui/menu'; | ||
import * as settings from './ui/settings'; | ||
declare const ui: { | ||
@@ -14,2 +15,3 @@ componentSection: typeof componentSection; | ||
menu: typeof menu; | ||
settings: typeof settings; | ||
}; | ||
@@ -16,0 +18,0 @@ /** |
@@ -7,3 +7,4 @@ import * as window from './window'; | ||
import * as location from './location'; | ||
import * as menu from './ui/menuItem'; | ||
import * as menu from './ui/menu'; | ||
import * as settings from './ui/settings'; | ||
const ui = { | ||
@@ -13,2 +14,3 @@ componentSection, | ||
menu, | ||
settings, | ||
}; | ||
@@ -15,0 +17,0 @@ /** |
@@ -7,3 +7,4 @@ import { notificationDispatch } from './notification/index'; | ||
import { locationUpdateHeight } from './location/index'; | ||
import { menuItemAdd } from './ui/menuItem'; | ||
import { menuItemAdd } from './ui/menu'; | ||
import { settingsItemAdd } from './ui/settings'; | ||
/** | ||
@@ -26,2 +27,3 @@ * Contains all shopware send types. | ||
menuItemAdd: menuItemAdd; | ||
settingsItemAdd: settingsItemAdd; | ||
__function__: __function__; | ||
@@ -28,0 +30,0 @@ __registerWindow__: __registerWindow__; |
@@ -18,2 +18,3 @@ /** | ||
menuItemAdd: {}; | ||
settingsItemAdd: {}; | ||
__function__: {}; | ||
@@ -20,0 +21,0 @@ __registerWindow__: {}; |
@@ -1,2 +0,2 @@ | ||
import { _privileges } from "./messages/_privileges"; | ||
import { _privileges } from './messages/_privileges'; | ||
/** | ||
@@ -19,2 +19,3 @@ * Determines which privileges are needed for a certain message type. | ||
menuItemAdd: {}, | ||
settingsItemAdd: {}, | ||
__function__: {}, | ||
@@ -21,0 +22,0 @@ __registerWindow__: {}, |
@@ -1,2 +0,2 @@ | ||
import { ShopwareMessageTypes } from "../messages.types"; | ||
import { ShopwareMessageTypes } from '../messages.types'; | ||
export default class MissingPrivilegesError extends Error { | ||
@@ -3,0 +3,0 @@ missingPrivileges: Array<string>; |
{ | ||
"name": "@shopware-ag/admin-extension-sdk", | ||
"version": "0.0.34", | ||
"version": "0.0.35", | ||
"repository": "git://github.com/shopware/admin-extension-sdk.git", | ||
@@ -5,0 +5,0 @@ "description": "The SDK for App iframes to communicate with the Shopware Adminstration", |
@@ -54,5 +54,5 @@ import { ShopwareMessageTypes } from './messages.types'; | ||
*/ | ||
export declare function createSender<MESSAGE_TYPE extends keyof ShopwareMessageTypes>(messageType: MESSAGE_TYPE, baseMessageOptions: MessageDataType<MESSAGE_TYPE>): (messageOptions?: MessageDataType<MESSAGE_TYPE>) => Promise<ShopwareMessageTypes[MESSAGE_TYPE]["responseType"]>; | ||
export declare function createSender<MESSAGE_TYPE extends keyof ShopwareMessageTypes, BASE_OPTIONS extends Partial<MessageDataType<MESSAGE_TYPE>>>(messageType: MESSAGE_TYPE, baseMessageOptions: BASE_OPTIONS): (messageOptions: Omit<MessageDataType<MESSAGE_TYPE>, keyof BASE_OPTIONS>) => Promise<ShopwareMessageTypes[MESSAGE_TYPE]["responseType"]>; | ||
export declare function createSender<MESSAGE_TYPE extends keyof ShopwareMessageTypes>(messageType: MESSAGE_TYPE): (messageOptions: MessageDataType<MESSAGE_TYPE>) => Promise<ShopwareMessageTypes[MESSAGE_TYPE]["responseType"]>; | ||
export declare function createSender<MESSAGE_TYPE extends keyof ShopwareMessageTypes>(messageType: MESSAGE_TYPE, baseMessageOptions: MessageDataType<MESSAGE_TYPE>): (messageOptions?: MessageDataType<MESSAGE_TYPE>) => Promise<ShopwareMessageTypes[MESSAGE_TYPE]['responseType']>; | ||
export declare function createSender<MESSAGE_TYPE extends keyof ShopwareMessageTypes, BASE_OPTIONS extends Partial<MessageDataType<MESSAGE_TYPE>>>(messageType: MESSAGE_TYPE, baseMessageOptions: BASE_OPTIONS): (messageOptions: Omit<MessageDataType<MESSAGE_TYPE>, keyof BASE_OPTIONS>) => Promise<ShopwareMessageTypes[MESSAGE_TYPE]['responseType']>; | ||
export declare function createSender<MESSAGE_TYPE extends keyof ShopwareMessageTypes>(messageType: MESSAGE_TYPE): (messageOptions: MessageDataType<MESSAGE_TYPE>) => Promise<ShopwareMessageTypes[MESSAGE_TYPE]['responseType']>; | ||
/** | ||
@@ -59,0 +59,0 @@ * Factory method which creates a handler so that the type don't need to be |
@@ -6,3 +6,4 @@ import * as window from './window'; | ||
import * as location from './location'; | ||
import * as menu from './ui/menuItem'; | ||
import * as menu from './ui/menu'; | ||
import * as settings from './ui/settings'; | ||
declare const ui: { | ||
@@ -14,2 +15,3 @@ componentSection: typeof componentSection; | ||
menu: typeof menu; | ||
settings: typeof settings; | ||
}; | ||
@@ -16,0 +18,0 @@ /** |
@@ -29,3 +29,3 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
else if (typeof define === "function" && define.amd) { | ||
define(["require", "exports", "./window", "./notification", "./context", "./ui/componentSection", "./ui/tabs", "./location", "./ui/menuItem"], factory); | ||
define(["require", "exports", "./window", "./notification", "./context", "./ui/componentSection", "./ui/tabs", "./location", "./ui/menu", "./ui/settings"], factory); | ||
} | ||
@@ -46,3 +46,4 @@ })(function (require, exports) { | ||
exports.location = location; | ||
const menu = __importStar(require("./ui/menuItem")); | ||
const menu = __importStar(require("./ui/menu")); | ||
const settings = __importStar(require("./ui/settings")); | ||
const ui = { | ||
@@ -52,2 +53,3 @@ componentSection, | ||
menu, | ||
settings, | ||
}; | ||
@@ -54,0 +56,0 @@ exports.ui = ui; |
@@ -7,3 +7,4 @@ import { notificationDispatch } from './notification/index'; | ||
import { locationUpdateHeight } from './location/index'; | ||
import { menuItemAdd } from './ui/menuItem'; | ||
import { menuItemAdd } from './ui/menu'; | ||
import { settingsItemAdd } from './ui/settings'; | ||
/** | ||
@@ -26,2 +27,3 @@ * Contains all shopware send types. | ||
menuItemAdd: menuItemAdd; | ||
settingsItemAdd: settingsItemAdd; | ||
__function__: __function__; | ||
@@ -28,0 +30,0 @@ __registerWindow__: __registerWindow__; |
@@ -18,2 +18,3 @@ /** | ||
menuItemAdd: {}; | ||
settingsItemAdd: {}; | ||
__function__: {}; | ||
@@ -20,0 +21,0 @@ __registerWindow__: {}; |
@@ -31,2 +31,3 @@ (function (factory) { | ||
menuItemAdd: {}, | ||
settingsItemAdd: {}, | ||
__function__: {}, | ||
@@ -33,0 +34,0 @@ __registerWindow__: {}, |
@@ -1,2 +0,2 @@ | ||
import { ShopwareMessageTypes } from "../messages.types"; | ||
import { ShopwareMessageTypes } from '../messages.types'; | ||
export default class MissingPrivilegesError extends Error { | ||
@@ -3,0 +3,0 @@ missingPrivileges: Array<string>; |
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
185663
117
2674