@pontive/pontkit-vue 1.6.0 → 1.7.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/dist/elements.generated.d.ts +16 -16
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -10
- package/dist/index.js +16 -35
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/pont2.generated.d.ts +0 -21
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Provider as PontProviderElement, SignedIn as PontSignedInElement, SignedOut as PontSignedOutElement, SignIn as PontSigninElement, SignUp as PontSignupElement, Invitation as PontInvitationElement, Consent as PontConsentElement, AccountMenu as PontAccountMenuElement, OrganizationSwitcher as PontOrganizationSwitcherElement, AccountSettings as PontAccountSettingsElement, MemberManagement as PontMemberManagementElement } from '@pontive/pontkit-core';
|
|
2
2
|
declare module "vue" {
|
|
3
3
|
interface GlobalComponents {
|
|
4
|
-
"pont-provider": typeof
|
|
5
|
-
"pont-
|
|
6
|
-
"pont-
|
|
7
|
-
"pont-signin": typeof
|
|
8
|
-
"pont-signup": typeof
|
|
9
|
-
"pont-
|
|
10
|
-
"pont-
|
|
11
|
-
"pont-account-menu": typeof
|
|
12
|
-
"pont-organization-switcher": typeof
|
|
13
|
-
"pont-account-
|
|
14
|
-
"pont-
|
|
15
|
-
"pont-urls-info": typeof PontUrlsInfo;
|
|
16
|
-
"pont-personal-info": typeof PontPersonalInfo;
|
|
4
|
+
"pont-provider": typeof PontProviderElement;
|
|
5
|
+
"pont-signed-in": typeof PontSignedInElement;
|
|
6
|
+
"pont-signed-out": typeof PontSignedOutElement;
|
|
7
|
+
"pont-signin": typeof PontSigninElement;
|
|
8
|
+
"pont-signup": typeof PontSignupElement;
|
|
9
|
+
"pont-invitation": typeof PontInvitationElement;
|
|
10
|
+
"pont-consent": typeof PontConsentElement;
|
|
11
|
+
"pont-account-menu": typeof PontAccountMenuElement;
|
|
12
|
+
"pont-organization-switcher": typeof PontOrganizationSwitcherElement;
|
|
13
|
+
"pont-account-settings": typeof PontAccountSettingsElement;
|
|
14
|
+
"pont-member-management": typeof PontMemberManagementElement;
|
|
17
15
|
}
|
|
18
16
|
}
|
|
19
|
-
/**
|
|
20
|
-
export declare const PONT_ELEMENTS: readonly ["pont-provider", "pont-
|
|
17
|
+
/** The app-facing tags. Vue leaves every `pont-*` tag alone, not only these. */
|
|
18
|
+
export declare const PONT_ELEMENTS: readonly ["pont-provider", "pont-signed-in", "pont-signed-out", "pont-signin", "pont-signup", "pont-invitation", "pont-consent", "pont-account-menu", "pont-organization-switcher", "pont-account-settings", "pont-member-management"];
|
|
19
|
+
/** The tag prefix every PontKit element carries. */
|
|
20
|
+
export declare const PONT_PREFIX = "pont-";
|
|
21
21
|
export {};
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("@pontive/pontkit-loader"),i=["pont-provider","pont-signed-in","pont-signed-out","pont-signin","pont-signup","pont-invitation","pont-consent","pont-account-menu","pont-organization-switcher","pont-account-settings","pont-member-management"],n="pont-";function s(t){return t.startsWith(n)}const o={install(t){e.loadWebComponents()}};exports.PONT_ELEMENTS=i;exports.PONT_PREFIX=n;exports.PontKit=o;exports.default=o;exports.isPontElement=s;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../src/elements.generated.ts","../src/
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../src/elements.generated.ts","../src/index.ts"],"sourcesContent":["// GENERATED by tools/gen-wrappers — do not edit.\n//\n// Source: @pontive/pontkit-core@1.43.0 custom-elements.json.\nimport type {\n Provider as PontProviderElement,\n SignedIn as PontSignedInElement,\n SignedOut as PontSignedOutElement,\n SignIn as PontSigninElement,\n SignUp as PontSignupElement,\n Invitation as PontInvitationElement,\n Consent as PontConsentElement,\n AccountMenu as PontAccountMenuElement,\n OrganizationSwitcher as PontOrganizationSwitcherElement,\n AccountSettings as PontAccountSettingsElement,\n MemberManagement as PontMemberManagementElement,\n} from \"@pontive/pontkit-core\";\n\ndeclare module \"vue\" {\n export interface GlobalComponents {\n \"pont-provider\": typeof PontProviderElement;\n \"pont-signed-in\": typeof PontSignedInElement;\n \"pont-signed-out\": typeof PontSignedOutElement;\n \"pont-signin\": typeof PontSigninElement;\n \"pont-signup\": typeof PontSignupElement;\n \"pont-invitation\": typeof PontInvitationElement;\n \"pont-consent\": typeof PontConsentElement;\n \"pont-account-menu\": typeof PontAccountMenuElement;\n \"pont-organization-switcher\": typeof PontOrganizationSwitcherElement;\n \"pont-account-settings\": typeof PontAccountSettingsElement;\n \"pont-member-management\": typeof PontMemberManagementElement;\n }\n}\n\n/** The app-facing tags. Vue leaves every `pont-*` tag alone, not only these. */\nexport const PONT_ELEMENTS = [\n \"pont-provider\",\n \"pont-signed-in\",\n \"pont-signed-out\",\n \"pont-signin\",\n \"pont-signup\",\n \"pont-invitation\",\n \"pont-consent\",\n \"pont-account-menu\",\n \"pont-organization-switcher\",\n \"pont-account-settings\",\n \"pont-member-management\",\n] as const;\n\n/** The tag prefix every PontKit element carries. */\nexport const PONT_PREFIX = \"pont-\";\n\nexport {};\n","/**\n * Vue bindings for PontKit.\n *\n * There are no wrapper components here, and that is the point: `pont-*` are\n * custom elements, so a Vue template mounts them directly once the compiler is\n * told not to resolve them as Vue components. What this package supplies is\n * the plugin that starts the CDN load, and the generated types that make\n * `<pont-signin>` resolve in a .vue file. The one thing a Vue app does that the\n * React binding does for it is inject the SDK into the provider:\n * `providerEl.sdk = Auth`, from `@pontive/oidc-client` (pontkit-core\n * docs/kit/provider.md).\n *\n * The React package needs wrappers because React's DOM handling does not: it\n * passes non-primitive props as attributes and does not listen for custom\n * events. Vue does both natively.\n */\nimport type { App, Plugin } from \"vue\";\nimport { loadWebComponents } from \"@pontive/pontkit-loader\";\nimport { PONT_PREFIX } from \"./elements.generated\";\n\nexport { PONT_ELEMENTS, PONT_PREFIX } from \"./elements.generated\";\n\n/**\n * True for every PontKit tag (`pont-*`): the app-facing ones in PONT_ELEMENTS,\n * and the primitives and render-spec elements they contain.\n *\n * A prefix rather than a list, because a template may hold any of them (a\n * render spec, `pont-signed-in`) and a tag Vue tries to resolve as a component\n * only warns at runtime.\n *\n * app.config.compilerOptions.isCustomElement = isPontElement;\n */\nexport function isPontElement(tag: string): boolean {\n return tag.startsWith(PONT_PREFIX);\n}\n\nexport const PontKit: Plugin = {\n install(_app: App) {\n // Fire-and-forget, like the React entry. A server render has no CDN to\n // reach and loadWebComponents() returns null there rather than rejecting.\n void loadWebComponents();\n },\n};\n\nexport default PontKit;\n"],"names":["PONT_ELEMENTS","PONT_PREFIX","isPontElement","tag","PontKit","_app","loadWebComponents"],"mappings":"uJAkCaA,EAAgB,CAC3B,gBACA,iBACA,kBACA,cACA,cACA,kBACA,eACA,oBACA,6BACA,wBACA,wBACF,EAGaC,EAAc,QCjBpB,SAASC,EAAcC,EAAsB,CAClD,OAAOA,EAAI,WAAWF,CAAW,CACnC,CAEO,MAAMG,EAAkB,CAC7B,QAAQC,EAAW,CAGZC,oBAAA,CACP,CACF"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
import { Plugin } from 'vue';
|
|
2
|
-
export { PONT_ELEMENTS } from './elements.generated';
|
|
3
|
-
export { PONT2_ELEMENTS, PONT2_PREFIX } from './pont2.generated';
|
|
2
|
+
export { PONT_ELEMENTS, PONT_PREFIX } from './elements.generated';
|
|
4
3
|
/**
|
|
5
|
-
* True for
|
|
4
|
+
* True for every PontKit tag (`pont-*`): the app-facing ones in PONT_ELEMENTS,
|
|
6
5
|
* and the primitives and render-spec elements they contain.
|
|
7
6
|
*
|
|
8
7
|
* A prefix rather than a list, because a template may hold any of them (a
|
|
9
|
-
* render spec, `
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
export declare function isPont2Element(tag: string): boolean;
|
|
13
|
-
/**
|
|
14
|
-
* True for the tags Vue must leave to the browser: the wrapped legacy tags,
|
|
15
|
-
* and every pont2 tag (both kits are in the one bundle).
|
|
8
|
+
* render spec, `pont-signed-in`) and a tag Vue tries to resolve as a component
|
|
9
|
+
* only warns at runtime.
|
|
16
10
|
*
|
|
17
11
|
* app.config.compilerOptions.isCustomElement = isPontElement;
|
|
18
12
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1,49 +1,30 @@
|
|
|
1
1
|
import { loadWebComponents as t } from "@pontive/pontkit-loader";
|
|
2
|
-
const
|
|
2
|
+
const p = [
|
|
3
3
|
"pont-provider",
|
|
4
|
-
"pont-
|
|
5
|
-
"pont-
|
|
4
|
+
"pont-signed-in",
|
|
5
|
+
"pont-signed-out",
|
|
6
6
|
"pont-signin",
|
|
7
7
|
"pont-signup",
|
|
8
|
-
"pont-
|
|
9
|
-
"pont-
|
|
8
|
+
"pont-invitation",
|
|
9
|
+
"pont-consent",
|
|
10
10
|
"pont-account-menu",
|
|
11
11
|
"pont-organization-switcher",
|
|
12
|
-
"pont-account-
|
|
13
|
-
"pont-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"pont2-provider",
|
|
18
|
-
"pont2-signed-in",
|
|
19
|
-
"pont2-signed-out",
|
|
20
|
-
"pont2-signin",
|
|
21
|
-
"pont2-signup",
|
|
22
|
-
"pont2-invitation",
|
|
23
|
-
"pont2-consent",
|
|
24
|
-
"pont2-account-menu",
|
|
25
|
-
"pont2-organization-switcher",
|
|
26
|
-
"pont2-account-settings",
|
|
27
|
-
"pont2-member-management"
|
|
28
|
-
], i = "pont2-";
|
|
29
|
-
function p(n) {
|
|
30
|
-
return n.startsWith(i);
|
|
31
|
-
}
|
|
32
|
-
function a(n) {
|
|
33
|
-
return o.includes(n) || p(n);
|
|
12
|
+
"pont-account-settings",
|
|
13
|
+
"pont-member-management"
|
|
14
|
+
], o = "pont-";
|
|
15
|
+
function e(n) {
|
|
16
|
+
return n.startsWith(o);
|
|
34
17
|
}
|
|
35
|
-
const
|
|
18
|
+
const s = {
|
|
36
19
|
install(n) {
|
|
37
20
|
t();
|
|
38
21
|
}
|
|
39
22
|
};
|
|
40
23
|
export {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
p as isPont2Element,
|
|
47
|
-
a as isPontElement
|
|
24
|
+
p as PONT_ELEMENTS,
|
|
25
|
+
o as PONT_PREFIX,
|
|
26
|
+
s as PontKit,
|
|
27
|
+
s as default,
|
|
28
|
+
e as isPontElement
|
|
48
29
|
};
|
|
49
30
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/elements.generated.ts","../src/
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/elements.generated.ts","../src/index.ts"],"sourcesContent":["// GENERATED by tools/gen-wrappers — do not edit.\n//\n// Source: @pontive/pontkit-core@1.43.0 custom-elements.json.\nimport type {\n Provider as PontProviderElement,\n SignedIn as PontSignedInElement,\n SignedOut as PontSignedOutElement,\n SignIn as PontSigninElement,\n SignUp as PontSignupElement,\n Invitation as PontInvitationElement,\n Consent as PontConsentElement,\n AccountMenu as PontAccountMenuElement,\n OrganizationSwitcher as PontOrganizationSwitcherElement,\n AccountSettings as PontAccountSettingsElement,\n MemberManagement as PontMemberManagementElement,\n} from \"@pontive/pontkit-core\";\n\ndeclare module \"vue\" {\n export interface GlobalComponents {\n \"pont-provider\": typeof PontProviderElement;\n \"pont-signed-in\": typeof PontSignedInElement;\n \"pont-signed-out\": typeof PontSignedOutElement;\n \"pont-signin\": typeof PontSigninElement;\n \"pont-signup\": typeof PontSignupElement;\n \"pont-invitation\": typeof PontInvitationElement;\n \"pont-consent\": typeof PontConsentElement;\n \"pont-account-menu\": typeof PontAccountMenuElement;\n \"pont-organization-switcher\": typeof PontOrganizationSwitcherElement;\n \"pont-account-settings\": typeof PontAccountSettingsElement;\n \"pont-member-management\": typeof PontMemberManagementElement;\n }\n}\n\n/** The app-facing tags. Vue leaves every `pont-*` tag alone, not only these. */\nexport const PONT_ELEMENTS = [\n \"pont-provider\",\n \"pont-signed-in\",\n \"pont-signed-out\",\n \"pont-signin\",\n \"pont-signup\",\n \"pont-invitation\",\n \"pont-consent\",\n \"pont-account-menu\",\n \"pont-organization-switcher\",\n \"pont-account-settings\",\n \"pont-member-management\",\n] as const;\n\n/** The tag prefix every PontKit element carries. */\nexport const PONT_PREFIX = \"pont-\";\n\nexport {};\n","/**\n * Vue bindings for PontKit.\n *\n * There are no wrapper components here, and that is the point: `pont-*` are\n * custom elements, so a Vue template mounts them directly once the compiler is\n * told not to resolve them as Vue components. What this package supplies is\n * the plugin that starts the CDN load, and the generated types that make\n * `<pont-signin>` resolve in a .vue file. The one thing a Vue app does that the\n * React binding does for it is inject the SDK into the provider:\n * `providerEl.sdk = Auth`, from `@pontive/oidc-client` (pontkit-core\n * docs/kit/provider.md).\n *\n * The React package needs wrappers because React's DOM handling does not: it\n * passes non-primitive props as attributes and does not listen for custom\n * events. Vue does both natively.\n */\nimport type { App, Plugin } from \"vue\";\nimport { loadWebComponents } from \"@pontive/pontkit-loader\";\nimport { PONT_PREFIX } from \"./elements.generated\";\n\nexport { PONT_ELEMENTS, PONT_PREFIX } from \"./elements.generated\";\n\n/**\n * True for every PontKit tag (`pont-*`): the app-facing ones in PONT_ELEMENTS,\n * and the primitives and render-spec elements they contain.\n *\n * A prefix rather than a list, because a template may hold any of them (a\n * render spec, `pont-signed-in`) and a tag Vue tries to resolve as a component\n * only warns at runtime.\n *\n * app.config.compilerOptions.isCustomElement = isPontElement;\n */\nexport function isPontElement(tag: string): boolean {\n return tag.startsWith(PONT_PREFIX);\n}\n\nexport const PontKit: Plugin = {\n install(_app: App) {\n // Fire-and-forget, like the React entry. A server render has no CDN to\n // reach and loadWebComponents() returns null there rather than rejecting.\n void loadWebComponents();\n },\n};\n\nexport default PontKit;\n"],"names":["PONT_ELEMENTS","PONT_PREFIX","isPontElement","tag","PontKit","_app","loadWebComponents"],"mappings":";AAkCO,MAAMA,IAAgB;AAAA,EAC3B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAGaC,IAAc;ACjBpB,SAASC,EAAcC,GAAsB;AAClD,SAAOA,EAAI,WAAWF,CAAW;AACnC;AAEO,MAAMG,IAAkB;AAAA,EAC7B,QAAQC,GAAW;AAGjB,IAAKC,EAAA;AAAA,EACP;AACF;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pontive/pontkit-vue",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Vue bindings for PontKit: the loader plugin and the element types.",
|
|
6
6
|
"type": "module",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"vue": "^3.4"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@pontive/pontkit-loader": "^1.
|
|
30
|
+
"@pontive/pontkit-loader": "^1.7.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@pontive/pontkit-core": "1.
|
|
33
|
+
"@pontive/pontkit-core": "1.43.0",
|
|
34
34
|
"vue": "^3.5.0"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Provider as Pont2ProviderElement, SignedIn as Pont2SignedInElement, SignedOut as Pont2SignedOutElement, SignIn as Pont2SigninElement, SignUp as Pont2SignupElement, Invitation as Pont2InvitationElement, Consent as Pont2ConsentElement, AccountMenu as Pont2AccountMenuElement, OrganizationSwitcher as Pont2OrganizationSwitcherElement, AccountSettings as Pont2AccountSettingsElement, MemberManagement as Pont2MemberManagementElement } from '@pontive/pontkit-core/pont2';
|
|
2
|
-
declare module "vue" {
|
|
3
|
-
interface GlobalComponents {
|
|
4
|
-
"pont2-provider": typeof Pont2ProviderElement;
|
|
5
|
-
"pont2-signed-in": typeof Pont2SignedInElement;
|
|
6
|
-
"pont2-signed-out": typeof Pont2SignedOutElement;
|
|
7
|
-
"pont2-signin": typeof Pont2SigninElement;
|
|
8
|
-
"pont2-signup": typeof Pont2SignupElement;
|
|
9
|
-
"pont2-invitation": typeof Pont2InvitationElement;
|
|
10
|
-
"pont2-consent": typeof Pont2ConsentElement;
|
|
11
|
-
"pont2-account-menu": typeof Pont2AccountMenuElement;
|
|
12
|
-
"pont2-organization-switcher": typeof Pont2OrganizationSwitcherElement;
|
|
13
|
-
"pont2-account-settings": typeof Pont2AccountSettingsElement;
|
|
14
|
-
"pont2-member-management": typeof Pont2MemberManagementElement;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
/** The app-facing pont2 tags. Vue leaves every `pont2-*` tag alone, not only these. */
|
|
18
|
-
export declare const PONT2_ELEMENTS: readonly ["pont2-provider", "pont2-signed-in", "pont2-signed-out", "pont2-signin", "pont2-signup", "pont2-invitation", "pont2-consent", "pont2-account-menu", "pont2-organization-switcher", "pont2-account-settings", "pont2-member-management"];
|
|
19
|
-
/** The pont2 tag prefix (renamed `pont-` at S7). */
|
|
20
|
-
export declare const PONT2_PREFIX = "pont2-";
|
|
21
|
-
export {};
|