@postnord/pn-marketweb-components 2.1.8 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/loader.cjs.js +1 -1
- package/cjs/pn-market-web-components.cjs.js +1 -1
- package/cjs/pn-marketweb-siteheader-login-button_5.cjs.entry.js +68 -58
- package/cjs/pn-share-item.cjs.entry.js +22 -0
- package/cjs/pn-share.cjs.entry.js +64 -0
- package/collection/collection-manifest.json +2 -0
- package/collection/components/cta/pn-share/pn-share-item.css +42 -0
- package/collection/components/cta/pn-share/pn-share-item.js +61 -0
- package/collection/components/cta/pn-share/pn-share.css +23 -0
- package/collection/components/cta/pn-share/pn-share.js +91 -0
- package/collection/components/cta/pn-share/pn-share.stories.js +22 -0
- package/collection/components/cta/pn-share/translations.js +17 -0
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.js +78 -68
- package/custom-elements/index.d.ts +12 -0
- package/custom-elements/index.js +188 -100
- package/esm/loader.js +1 -1
- package/esm/pn-market-web-components.js +1 -1
- package/esm/pn-marketweb-siteheader-login-button_5.entry.js +68 -58
- package/esm/pn-share-item.entry.js +18 -0
- package/esm/pn-share.entry.js +60 -0
- package/esm-es5/loader.js +1 -1
- package/esm-es5/pn-market-web-components.js +1 -1
- package/esm-es5/pn-marketweb-siteheader-login-button_5.entry.js +1 -1
- package/esm-es5/pn-share-item.entry.js +1 -0
- package/esm-es5/pn-share.entry.js +1 -0
- package/package.json +1 -1
- package/pn-market-web-components/p-086a72ca.system.entry.js +1 -0
- package/pn-market-web-components/p-138b1e76.entry.js +1 -0
- package/pn-market-web-components/{p-eb4eed7f.entry.js → p-381c034b.entry.js} +1 -1
- package/pn-market-web-components/p-67887512.system.js +1 -1
- package/pn-market-web-components/{p-aba46e52.system.entry.js → p-a5171cb9.system.entry.js} +1 -1
- package/pn-market-web-components/p-ecf712bb.system.entry.js +1 -0
- package/pn-market-web-components/p-ee589138.entry.js +1 -0
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/types/components/cta/pn-share/pn-share-item.d.ts +6 -0
- package/types/components/cta/pn-share/pn-share.d.ts +10 -0
- package/types/components/cta/pn-share/translations.d.ts +17 -0
- package/types/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login-profileselection.d.ts +3 -2
- package/types/components.d.ts +34 -0
- package/umd/pn-marketweb-init.js +1 -1
- package/umd/pn-marketweb-salesforce.js +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IUserInfo } from
|
|
2
|
-
import { LoginDialog, ProfileSelectorCustomerItem, ProfileSelectorOrganization, SiteHeaderI18N
|
|
1
|
+
import { IUserInfo } from '../../../globals/MarketWebLoginManager';
|
|
2
|
+
import { LoginDialog, LoginDialogLink, ProfileSelectorCustomerItem, ProfileSelectorOrganization, SiteHeaderI18N } from './pn-marketweb-siteheader-types';
|
|
3
3
|
export declare class PnMarketwebSiteheaderLoginProfileselection {
|
|
4
4
|
hostElement: HTMLElement;
|
|
5
5
|
loginDialog: LoginDialog;
|
|
@@ -19,5 +19,6 @@ export declare class PnMarketwebSiteheaderLoginProfileselection {
|
|
|
19
19
|
fetchProfiles(): Promise<void>;
|
|
20
20
|
adjustLoginLinks(): void;
|
|
21
21
|
updateUserInfo(): void;
|
|
22
|
+
filterLogoutLink(loggedInLinks: LoginDialogLink[]): LoginDialogLink[];
|
|
22
23
|
render(): any;
|
|
23
24
|
}
|
package/types/components.d.ts
CHANGED
|
@@ -595,6 +595,14 @@ export namespace Components {
|
|
|
595
595
|
"occupation": string;
|
|
596
596
|
"quote": string;
|
|
597
597
|
}
|
|
598
|
+
interface PnShare {
|
|
599
|
+
"language": string;
|
|
600
|
+
"link": string;
|
|
601
|
+
}
|
|
602
|
+
interface PnShareItem {
|
|
603
|
+
"link": string;
|
|
604
|
+
"text": string;
|
|
605
|
+
}
|
|
598
606
|
interface PnSidenav {
|
|
599
607
|
/**
|
|
600
608
|
* Specifies which language we want to show navigation in (sv,da,fi,no,en)
|
|
@@ -1041,6 +1049,18 @@ declare global {
|
|
|
1041
1049
|
prototype: HTMLPnQuoteCardElement;
|
|
1042
1050
|
new (): HTMLPnQuoteCardElement;
|
|
1043
1051
|
};
|
|
1052
|
+
interface HTMLPnShareElement extends Components.PnShare, HTMLStencilElement {
|
|
1053
|
+
}
|
|
1054
|
+
var HTMLPnShareElement: {
|
|
1055
|
+
prototype: HTMLPnShareElement;
|
|
1056
|
+
new (): HTMLPnShareElement;
|
|
1057
|
+
};
|
|
1058
|
+
interface HTMLPnShareItemElement extends Components.PnShareItem, HTMLStencilElement {
|
|
1059
|
+
}
|
|
1060
|
+
var HTMLPnShareItemElement: {
|
|
1061
|
+
prototype: HTMLPnShareItemElement;
|
|
1062
|
+
new (): HTMLPnShareItemElement;
|
|
1063
|
+
};
|
|
1044
1064
|
interface HTMLPnSidenavElement extends Components.PnSidenav, HTMLStencilElement {
|
|
1045
1065
|
}
|
|
1046
1066
|
var HTMLPnSidenavElement: {
|
|
@@ -1177,6 +1197,8 @@ declare global {
|
|
|
1177
1197
|
"pn-proxio-productcard-pricelink": HTMLPnProxioProductcardPricelinkElement;
|
|
1178
1198
|
"pn-quick-cta": HTMLPnQuickCtaElement;
|
|
1179
1199
|
"pn-quote-card": HTMLPnQuoteCardElement;
|
|
1200
|
+
"pn-share": HTMLPnShareElement;
|
|
1201
|
+
"pn-share-item": HTMLPnShareItemElement;
|
|
1180
1202
|
"pn-sidenav": HTMLPnSidenavElement;
|
|
1181
1203
|
"pn-sidenav-level": HTMLPnSidenavLevelElement;
|
|
1182
1204
|
"pn-sidenav-link": HTMLPnSidenavLinkElement;
|
|
@@ -1797,6 +1819,14 @@ declare namespace LocalJSX {
|
|
|
1797
1819
|
"occupation"?: string;
|
|
1798
1820
|
"quote"?: string;
|
|
1799
1821
|
}
|
|
1822
|
+
interface PnShare {
|
|
1823
|
+
"language"?: string;
|
|
1824
|
+
"link"?: string;
|
|
1825
|
+
}
|
|
1826
|
+
interface PnShareItem {
|
|
1827
|
+
"link"?: string;
|
|
1828
|
+
"text"?: string;
|
|
1829
|
+
}
|
|
1800
1830
|
interface PnSidenav {
|
|
1801
1831
|
/**
|
|
1802
1832
|
* Specifies which language we want to show navigation in (sv,da,fi,no,en)
|
|
@@ -1957,6 +1987,8 @@ declare namespace LocalJSX {
|
|
|
1957
1987
|
"pn-proxio-productcard-pricelink": PnProxioProductcardPricelink;
|
|
1958
1988
|
"pn-quick-cta": PnQuickCta;
|
|
1959
1989
|
"pn-quote-card": PnQuoteCard;
|
|
1990
|
+
"pn-share": PnShare;
|
|
1991
|
+
"pn-share-item": PnShareItem;
|
|
1960
1992
|
"pn-sidenav": PnSidenav;
|
|
1961
1993
|
"pn-sidenav-level": PnSidenavLevel;
|
|
1962
1994
|
"pn-sidenav-link": PnSidenavLink;
|
|
@@ -2033,6 +2065,8 @@ declare module "@stencil/core" {
|
|
|
2033
2065
|
"pn-proxio-productcard-pricelink": LocalJSX.PnProxioProductcardPricelink & JSXBase.HTMLAttributes<HTMLPnProxioProductcardPricelinkElement>;
|
|
2034
2066
|
"pn-quick-cta": LocalJSX.PnQuickCta & JSXBase.HTMLAttributes<HTMLPnQuickCtaElement>;
|
|
2035
2067
|
"pn-quote-card": LocalJSX.PnQuoteCard & JSXBase.HTMLAttributes<HTMLPnQuoteCardElement>;
|
|
2068
|
+
"pn-share": LocalJSX.PnShare & JSXBase.HTMLAttributes<HTMLPnShareElement>;
|
|
2069
|
+
"pn-share-item": LocalJSX.PnShareItem & JSXBase.HTMLAttributes<HTMLPnShareItemElement>;
|
|
2036
2070
|
"pn-sidenav": LocalJSX.PnSidenav & JSXBase.HTMLAttributes<HTMLPnSidenavElement>;
|
|
2037
2071
|
"pn-sidenav-level": LocalJSX.PnSidenavLevel & JSXBase.HTMLAttributes<HTMLPnSidenavLevelElement>;
|
|
2038
2072
|
"pn-sidenav-link": LocalJSX.PnSidenavLink & JSXBase.HTMLAttributes<HTMLPnSidenavLinkElement>;
|
package/umd/pn-marketweb-init.js
CHANGED
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
const s = document.createElement('script');
|
|
39
39
|
const currentScriptTag = document.querySelector('script[src*="pn-marketweb-init.js"]');
|
|
40
|
-
const currentScriptSrc = currentScriptTag.getAttribute('src').replace('@latest', '@2.
|
|
40
|
+
const currentScriptSrc = currentScriptTag.getAttribute('src').replace('@latest', '@2.2.0');
|
|
41
41
|
checkParameters(currentScriptSrc);
|
|
42
42
|
const loaderScriptSrc = currentScriptSrc.replace('pn-marketweb-init.js', 'standalone-loader.js');
|
|
43
43
|
s.setAttribute('type', 'module');
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
|
|
25
25
|
const s = document.createElement('script');
|
|
26
26
|
s.setAttribute('type', 'module');
|
|
27
|
-
s.setAttribute('src', 'https://cdn.jsdelivr.net/npm/@postnord/pn-marketweb-components@2.
|
|
27
|
+
s.setAttribute('src', 'https://cdn.jsdelivr.net/npm/@postnord/pn-marketweb-components@2.2.0/umd/standalone-loader-salesforce.js');
|
|
28
28
|
document.querySelector('head').appendChild(s);
|
|
29
29
|
|
|
30
30
|
const style = document.createElement('link');
|
|
31
31
|
style.setAttribute('rel', 'stylesheet');
|
|
32
|
-
style.setAttribute('href', 'https://cdn.jsdelivr.net/npm/@postnord/pn-marketweb-components@2.
|
|
32
|
+
style.setAttribute('href', 'https://cdn.jsdelivr.net/npm/@postnord/pn-marketweb-components@2.2.0/umd/pn-marketweb-wrongrembase.css');
|
|
33
33
|
document.querySelector('head').appendChild(style);
|
|
34
34
|
|
|
35
35
|
window['bindLanguageSelector'] = function () {
|