@aglyn/aglyn 1.14.0 → 1.15.1
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/package.json +11 -11
- package/src/lib/app-utils/buy-now-pay-later.d.ts +45 -0
- package/src/lib/app-utils/buy-now-pay-later.js +68 -0
- package/src/lib/app-utils/buy-now-pay-later.js.map +1 -0
- package/src/lib/app-utils/contexts.d.ts +1 -0
- package/src/lib/app-utils/contexts.js +1 -0
- package/src/lib/app-utils/contexts.js.map +1 -1
- package/src/lib/app-utils/docs-help-sections.generated.js +6 -3
- package/src/lib/app-utils/docs-help-sections.generated.js.map +1 -1
- package/src/lib/app-utils/docs-help.generated.d.ts +6 -6
- package/src/lib/app-utils/docs-help.generated.js +14 -1
- package/src/lib/app-utils/docs-help.generated.js.map +1 -1
- package/src/lib/app-utils/docs-index.generated.js +20 -20
- package/src/lib/app-utils/docs-index.generated.js.map +1 -1
- package/src/lib/app-utils/entity-picker-context.d.ts +6 -0
- package/src/lib/app-utils/entity-picker-context.js.map +1 -1
- package/src/lib/app-utils/host-status.js +1 -1
- package/src/lib/app-utils/host-status.js.map +1 -1
- package/src/lib/app-utils/org-role-grants.js +1 -1
- package/src/lib/app-utils/org-role-grants.js.map +1 -1
- package/src/lib/app-utils/page-header-record-context.d.ts +15 -0
- package/src/lib/app-utils/page-header-record-context.js +13 -4
- package/src/lib/app-utils/page-header-record-context.js.map +1 -1
- package/src/lib/app-utils/plan-entitlements.d.ts +125 -46
- package/src/lib/app-utils/plan-entitlements.js +118 -49
- package/src/lib/app-utils/plan-entitlements.js.map +1 -1
- package/src/lib/app-utils/plugin-bundle-checks.d.ts +14 -2
- package/src/lib/app-utils/plugin-bundle-checks.js +82 -7
- package/src/lib/app-utils/plugin-bundle-checks.js.map +1 -1
- package/src/lib/app-utils/plugin-connection-editor.d.ts +48 -0
- package/src/lib/app-utils/plugin-connection-editor.js +46 -0
- package/src/lib/app-utils/plugin-connection-editor.js.map +1 -0
- package/src/lib/app-utils/plugin-connection-record.d.ts +42 -0
- package/src/lib/app-utils/plugin-connection-record.js +48 -0
- package/src/lib/app-utils/plugin-connection-record.js.map +1 -0
- package/src/lib/app-utils/plugin-connection-records-context.d.ts +23 -0
- package/src/lib/app-utils/plugin-connection-records-context.js +29 -0
- package/src/lib/app-utils/plugin-connection-records-context.js.map +1 -0
- package/src/lib/app-utils/plugin-connection-records.d.ts +42 -0
- package/src/lib/app-utils/plugin-connection-records.js +56 -0
- package/src/lib/app-utils/plugin-connection-records.js.map +1 -0
- package/src/lib/app-utils/plugin-connections.d.ts +320 -0
- package/src/lib/app-utils/plugin-connections.js +895 -0
- package/src/lib/app-utils/plugin-connections.js.map +1 -0
- package/src/lib/app-utils/plugin-elements.d.ts +104 -0
- package/src/lib/app-utils/plugin-elements.js +128 -0
- package/src/lib/app-utils/plugin-elements.js.map +1 -0
- package/src/lib/app-utils/plugin-manifest.d.ts +20 -75
- package/src/lib/app-utils/plugin-manifest.js +65 -100
- package/src/lib/app-utils/plugin-manifest.js.map +1 -1
- package/src/lib/app-utils/realm-elements-context.d.ts +16 -0
- package/src/lib/app-utils/realm-elements-context.js +16 -0
- package/src/lib/app-utils/realm-elements-context.js.map +1 -1
- package/src/lib/app-utils/realm-host-surface.generated.js +1 -0
- package/src/lib/app-utils/realm-host-surface.generated.js.map +1 -1
- package/src/lib/app-utils/release-flags.d.ts +1 -1
- package/src/lib/app-utils/release-flags.js +35 -0
- package/src/lib/app-utils/release-flags.js.map +1 -1
- package/src/lib/app-utils/server.d.ts +1 -0
- package/src/lib/app-utils/server.js +2 -0
- package/src/lib/app-utils/server.js.map +1 -1
- package/src/lib/app-utils/site-context.d.ts +9 -0
- package/src/lib/app-utils/site-context.js.map +1 -1
- package/src/lib/app-utils/site-starter.d.ts +6 -0
- package/src/lib/app-utils/site-starter.js +15 -0
- package/src/lib/app-utils/site-starter.js.map +1 -1
- package/src/lib/plugin-manager/feature-plugins.d.ts +25 -0
- package/src/lib/plugin-manager/feature-plugins.js +10 -0
- package/src/lib/plugin-manager/feature-plugins.js.map +1 -1
- package/src/lib/plugin-manager/first-party-plugins.generated.js +12 -0
- package/src/lib/plugin-manager/first-party-plugins.generated.js.map +1 -1
- package/src/lib/plugin-manager/index.d.ts +1 -0
- package/src/lib/plugin-manager/index.js +1 -0
- package/src/lib/plugin-manager/index.js.map +1 -1
- package/src/lib/plugin-manager/plugin-artifact-inventory.d.ts +5 -0
- package/src/lib/plugin-manager/plugin-artifact-inventory.js.map +1 -1
- package/src/lib/plugin-manager/plugin-record-lists.d.ts +18 -0
- package/src/lib/plugin-manager/plugin-record-lists.js +13 -0
- package/src/lib/plugin-manager/plugin-record-lists.js.map +1 -1
- package/src/lib/plugin-manager/plugin-site-csp.d.ts +36 -0
- package/src/lib/plugin-manager/plugin-site-csp.js +50 -1
- package/src/lib/plugin-manager/plugin-site-csp.js.map +1 -1
- package/src/lib/plugin-manager/realm-host-aglyn.generated.js +61 -59
- package/src/lib/plugin-manager/realm-host-aglyn.generated.js.map +1 -1
- package/src/lib/plugin-manager/site-page-enricher-services.d.ts +35 -0
- package/src/lib/plugin-manager/site-page-enricher-services.js +35 -0
- package/src/lib/plugin-manager/site-page-enricher-services.js.map +1 -0
- package/src/lib/plugin-manager/site-page-hooks.js +16 -3
- package/src/lib/plugin-manager/site-page-hooks.js.map +1 -1
- package/src/lib/plugin-manager/video-embed-provider.d.ts +28 -0
- package/src/lib/plugin-manager/video-embed-provider.js +21 -0
- package/src/lib/plugin-manager/video-embed-provider.js.map +1 -1
- package/src/lib/plugin-manager/video-embed-providers.generated.js +3 -1
- package/src/lib/plugin-manager/video-embed-providers.generated.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aglyn/aglyn",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"homepage": "https://aglyn.com",
|
|
6
6
|
"repository": {
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
"./package.json": "./package.json"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@aglyn/shared-data-enums": "1.
|
|
41
|
-
"@aglyn/shared-data-mdi": "1.
|
|
42
|
-
"@aglyn/shared-data-types": "1.
|
|
43
|
-
"@aglyn/shared-util-email": "1.
|
|
44
|
-
"@aglyn/shared-util-first-touch": "1.
|
|
45
|
-
"@aglyn/shared-util-http": "1.
|
|
46
|
-
"@aglyn/shared-util-logger": "1.
|
|
47
|
-
"@aglyn/shared-util-timestamp": "1.
|
|
48
|
-
"@aglyn/shared-util-tools": "1.
|
|
49
|
-
"@aglyn/shared-util-vendor": "1.
|
|
40
|
+
"@aglyn/shared-data-enums": "1.15.1",
|
|
41
|
+
"@aglyn/shared-data-mdi": "1.15.1",
|
|
42
|
+
"@aglyn/shared-data-types": "1.15.1",
|
|
43
|
+
"@aglyn/shared-util-email": "1.15.1",
|
|
44
|
+
"@aglyn/shared-util-first-touch": "1.15.1",
|
|
45
|
+
"@aglyn/shared-util-http": "1.15.1",
|
|
46
|
+
"@aglyn/shared-util-logger": "1.15.1",
|
|
47
|
+
"@aglyn/shared-util-timestamp": "1.15.1",
|
|
48
|
+
"@aglyn/shared-util-tools": "1.15.1",
|
|
49
|
+
"@aglyn/shared-util-vendor": "1.15.1",
|
|
50
50
|
"@data-driven-forms/react-form-renderer": "^4.2.0",
|
|
51
51
|
"@msgpack/msgpack": "^3.1.3",
|
|
52
52
|
"@types/unist": "^3.0.3",
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Aglyn LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* NO CHECKOUT ON A SITE OFFERS BUY-NOW-PAY-LATER (AGL-4198).
|
|
19
|
+
*
|
|
20
|
+
* Every charge a site takes is a destination charge on the platform's Stripe
|
|
21
|
+
* account, so Stripe offers the methods the platform's payment method
|
|
22
|
+
* configuration turns on, and that configuration has `klarna` and `affirm` on
|
|
23
|
+
* beside the card family. Those cost Stripe about 6% + 30¢ (Affirm's enhanced
|
|
24
|
+
* plans 7.99%), against 2.9% + 30¢ for a card, and the processing half of
|
|
25
|
+
* every application fee is sized before the buyer chooses. So each Checkout
|
|
26
|
+
* Session a site opens excludes them by name, and the fee is priced at the
|
|
27
|
+
* card rate (`SALE_PROCESSING_PERCENT`).
|
|
28
|
+
*
|
|
29
|
+
* Exclusion, not `payment_method_types`: the sessions keep dynamic payment
|
|
30
|
+
* methods, so a seller's own switches (AGL-3629) and Stripe's per-order
|
|
31
|
+
* filtering still apply, and `excluded_payment_method_types` is accepted at
|
|
32
|
+
* the account default API version and at the in-page checkout's pinned one.
|
|
33
|
+
* What stays possible is the card family (a card, Apple Pay, Google Pay, Link,
|
|
34
|
+
* Cash App Pay, Amazon Pay, all 2.9% + 30¢ on Stripe's US pricing) and
|
|
35
|
+
* stablecoins (1.5%) where a seller turns them on.
|
|
36
|
+
*/
|
|
37
|
+
export declare const BUY_NOW_PAY_LATER_PAYMENT_METHOD_TYPES: readonly ["klarna", "afterpay_clearpay", "affirm"];
|
|
38
|
+
export type BuyNowPayLaterPaymentMethodType = (typeof BUY_NOW_PAY_LATER_PAYMENT_METHOD_TYPES)[number];
|
|
39
|
+
/**
|
|
40
|
+
* Exclude every buy-now-pay-later method on a Checkout Session's params,
|
|
41
|
+
* after whatever the params already exclude, without naming one twice. A
|
|
42
|
+
* session that pins `payment_method_types` already offers nothing else, and
|
|
43
|
+
* Stripe refuses both on one session, so it is left alone.
|
|
44
|
+
*/
|
|
45
|
+
export declare function excludeBuyNowPayLater<T extends URLSearchParams | Record<string, unknown>>(params: T): T;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Aglyn LLC
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/ /**
|
|
17
|
+
* NO CHECKOUT ON A SITE OFFERS BUY-NOW-PAY-LATER (AGL-4198).
|
|
18
|
+
*
|
|
19
|
+
* Every charge a site takes is a destination charge on the platform's Stripe
|
|
20
|
+
* account, so Stripe offers the methods the platform's payment method
|
|
21
|
+
* configuration turns on, and that configuration has `klarna` and `affirm` on
|
|
22
|
+
* beside the card family. Those cost Stripe about 6% + 30¢ (Affirm's enhanced
|
|
23
|
+
* plans 7.99%), against 2.9% + 30¢ for a card, and the processing half of
|
|
24
|
+
* every application fee is sized before the buyer chooses. So each Checkout
|
|
25
|
+
* Session a site opens excludes them by name, and the fee is priced at the
|
|
26
|
+
* card rate (`SALE_PROCESSING_PERCENT`).
|
|
27
|
+
*
|
|
28
|
+
* Exclusion, not `payment_method_types`: the sessions keep dynamic payment
|
|
29
|
+
* methods, so a seller's own switches (AGL-3629) and Stripe's per-order
|
|
30
|
+
* filtering still apply, and `excluded_payment_method_types` is accepted at
|
|
31
|
+
* the account default API version and at the in-page checkout's pinned one.
|
|
32
|
+
* What stays possible is the card family (a card, Apple Pay, Google Pay, Link,
|
|
33
|
+
* Cash App Pay, Amazon Pay, all 2.9% + 30¢ on Stripe's US pricing) and
|
|
34
|
+
* stablecoins (1.5%) where a seller turns them on.
|
|
35
|
+
*/ export const BUY_NOW_PAY_LATER_PAYMENT_METHOD_TYPES = [
|
|
36
|
+
'klarna',
|
|
37
|
+
'afterpay_clearpay',
|
|
38
|
+
'affirm'
|
|
39
|
+
];
|
|
40
|
+
const EXCLUDED_KEY = /^excluded_payment_method_types\[(\d+)\]$/;
|
|
41
|
+
/**
|
|
42
|
+
* Exclude every buy-now-pay-later method on a Checkout Session's params,
|
|
43
|
+
* after whatever the params already exclude, without naming one twice. A
|
|
44
|
+
* session that pins `payment_method_types` already offers nothing else, and
|
|
45
|
+
* Stripe refuses both on one session, so it is left alone.
|
|
46
|
+
*/ export function excludeBuyNowPayLater(params) {
|
|
47
|
+
const entries = params instanceof URLSearchParams ? [
|
|
48
|
+
...params.entries()
|
|
49
|
+
] : Object.entries(params);
|
|
50
|
+
if (entries.some(([key])=>key.startsWith('payment_method_types'))) return params;
|
|
51
|
+
const already = new Set();
|
|
52
|
+
let next = 0;
|
|
53
|
+
for (const [key, value] of entries){
|
|
54
|
+
const match = EXCLUDED_KEY.exec(key);
|
|
55
|
+
if (!match) continue;
|
|
56
|
+
already.add(String(value));
|
|
57
|
+
next = Math.max(next, Number(match[1]) + 1);
|
|
58
|
+
}
|
|
59
|
+
for (const type of BUY_NOW_PAY_LATER_PAYMENT_METHOD_TYPES){
|
|
60
|
+
if (already.has(type)) continue;
|
|
61
|
+
const key = `excluded_payment_method_types[${next++}]`;
|
|
62
|
+
if (params instanceof URLSearchParams) params.set(key, type);
|
|
63
|
+
else params[key] = type;
|
|
64
|
+
}
|
|
65
|
+
return params;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
//# sourceMappingURL=buy-now-pay-later.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../libs/aglyn/src/lib/app-utils/buy-now-pay-later.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2026 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * NO CHECKOUT ON A SITE OFFERS BUY-NOW-PAY-LATER (AGL-4198).\n *\n * Every charge a site takes is a destination charge on the platform's Stripe\n * account, so Stripe offers the methods the platform's payment method\n * configuration turns on, and that configuration has `klarna` and `affirm` on\n * beside the card family. Those cost Stripe about 6% + 30¢ (Affirm's enhanced\n * plans 7.99%), against 2.9% + 30¢ for a card, and the processing half of\n * every application fee is sized before the buyer chooses. So each Checkout\n * Session a site opens excludes them by name, and the fee is priced at the\n * card rate (`SALE_PROCESSING_PERCENT`).\n *\n * Exclusion, not `payment_method_types`: the sessions keep dynamic payment\n * methods, so a seller's own switches (AGL-3629) and Stripe's per-order\n * filtering still apply, and `excluded_payment_method_types` is accepted at\n * the account default API version and at the in-page checkout's pinned one.\n * What stays possible is the card family (a card, Apple Pay, Google Pay, Link,\n * Cash App Pay, Amazon Pay, all 2.9% + 30¢ on Stripe's US pricing) and\n * stablecoins (1.5%) where a seller turns them on.\n */\nexport const BUY_NOW_PAY_LATER_PAYMENT_METHOD_TYPES = [\n 'klarna',\n 'afterpay_clearpay',\n 'affirm',\n] as const\n\nexport type BuyNowPayLaterPaymentMethodType =\n (typeof BUY_NOW_PAY_LATER_PAYMENT_METHOD_TYPES)[number]\n\nconst EXCLUDED_KEY = /^excluded_payment_method_types\\[(\\d+)\\]$/\n\n/**\n * Exclude every buy-now-pay-later method on a Checkout Session's params,\n * after whatever the params already exclude, without naming one twice. A\n * session that pins `payment_method_types` already offers nothing else, and\n * Stripe refuses both on one session, so it is left alone.\n */\nexport function excludeBuyNowPayLater<T extends URLSearchParams | Record<string, unknown>>(\n params: T,\n): T {\n const entries: Array<[string, unknown]> =\n params instanceof URLSearchParams ? [...params.entries()] : Object.entries(params)\n if (entries.some(([key]) => key.startsWith('payment_method_types'))) return params\n const already = new Set<string>()\n let next = 0\n for (const [key, value] of entries) {\n const match = EXCLUDED_KEY.exec(key)\n if (!match) continue\n already.add(String(value))\n next = Math.max(next, Number(match[1]) + 1)\n }\n for (const type of BUY_NOW_PAY_LATER_PAYMENT_METHOD_TYPES) {\n if (already.has(type)) continue\n const key = `excluded_payment_method_types[${next++}]`\n if (params instanceof URLSearchParams) params.set(key, type)\n else (params as Record<string, unknown>)[key] = type\n }\n return params\n}\n"],"names":["BUY_NOW_PAY_LATER_PAYMENT_METHOD_TYPES","EXCLUDED_KEY","excludeBuyNowPayLater","params","entries","URLSearchParams","Object","some","key","startsWith","already","Set","next","value","match","exec","add","String","Math","max","Number","type","has","set"],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED;;;;;;;;;;;;;;;;;;;CAmBC,GACD,OAAO,MAAMA,yCAAyC;IACpD;IACA;IACA;CACD,CAAS;AAKV,MAAMC,eAAe;AAErB;;;;;CAKC,GACD,OAAO,SAASC,sBACdC,MAAS;IAET,MAAMC,UACJD,kBAAkBE,kBAAkB;WAAIF,OAAOC,OAAO;KAAG,GAAGE,OAAOF,OAAO,CAACD;IAC7E,IAAIC,QAAQG,IAAI,CAAC,CAAC,CAACC,IAAI,GAAKA,IAAIC,UAAU,CAAC,0BAA0B,OAAON;IAC5E,MAAMO,UAAU,IAAIC;IACpB,IAAIC,OAAO;IACX,KAAK,MAAM,CAACJ,KAAKK,MAAM,IAAIT,QAAS;QAClC,MAAMU,QAAQb,aAAac,IAAI,CAACP;QAChC,IAAI,CAACM,OAAO;QACZJ,QAAQM,GAAG,CAACC,OAAOJ;QACnBD,OAAOM,KAAKC,GAAG,CAACP,MAAMQ,OAAON,KAAK,CAAC,EAAE,IAAI;IAC3C;IACA,KAAK,MAAMO,QAAQrB,uCAAwC;QACzD,IAAIU,QAAQY,GAAG,CAACD,OAAO;QACvB,MAAMb,MAAM,CAAC,8BAA8B,EAAEI,OAAO,CAAC,CAAC;QACtD,IAAIT,kBAAkBE,iBAAiBF,OAAOoB,GAAG,CAACf,KAAKa;aAClD,AAAClB,MAAkC,CAACK,IAAI,GAAGa;IAClD;IACA,OAAOlB;AACT"}
|
|
@@ -33,6 +33,7 @@ export * from './node-identity';
|
|
|
33
33
|
export * from './page-header-actions-context';
|
|
34
34
|
export * from './page-header-help-context';
|
|
35
35
|
export * from './page-header-record-context';
|
|
36
|
+
export * from './plugin-connection-record';
|
|
36
37
|
export * from './screen-link-context';
|
|
37
38
|
export * from './site-context';
|
|
38
39
|
export * from './transfer-launcher-context';
|
|
@@ -31,6 +31,7 @@ export * from "./node-identity.js";
|
|
|
31
31
|
export * from "./page-header-actions-context.js";
|
|
32
32
|
export * from "./page-header-help-context.js";
|
|
33
33
|
export * from "./page-header-record-context.js";
|
|
34
|
+
export * from "./plugin-connection-record.js";
|
|
34
35
|
export * from "./screen-link-context.js";
|
|
35
36
|
export * from "./site-context.js";
|
|
36
37
|
export * from "./transfer-launcher-context.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../libs/aglyn/src/lib/app-utils/contexts.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2022 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Client-only React contexts that live in @aglyn/aglyn (not a UI lib) so\n * every canvas-rendering surface — console, plugins, tenant render — shares\n * ONE context module instance (a second instance renders the site blank).\n * They call `createContext` at module scope, which App Router forbids in a\n * Server Component's module graph, so they are split out of the server-safe\n * `./server` barrel and only reachable via the full `@aglyn/aglyn` barrel\n * (client) — never `@aglyn/aglyn/server` (AGL-405).\n */\nexport * from './console-widget-slot-context'\nexport * from './deployment-capabilities-context'\nexport * from './enabled-plugins-context'\nexport * from './entity-picker-context'\nexport * from './link-target-search-context'\nexport * from './media-picker-context'\nexport * from './node-identity'\nexport * from './page-header-actions-context'\nexport * from './page-header-help-context'\nexport * from './page-header-record-context'\nexport * from './screen-link-context'\nexport * from './site-context'\nexport * from './transfer-launcher-context'\n"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED;;;;;;;;CAQC,GACD,cAAc,mCAA+B;AAC7C,cAAc,uCAAmC;AACjD,cAAc,+BAA2B;AACzC,cAAc,6BAAyB;AACvC,cAAc,kCAA8B;AAC5C,cAAc,4BAAwB;AACtC,cAAc,qBAAiB;AAC/B,cAAc,mCAA+B;AAC7C,cAAc,gCAA4B;AAC1C,cAAc,kCAA8B;AAC5C,cAAc,2BAAuB;AACrC,cAAc,oBAAgB;AAC9B,cAAc,iCAA6B"}
|
|
1
|
+
{"version":3,"sources":["../../../../../../libs/aglyn/src/lib/app-utils/contexts.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2022 Aglyn LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n/**\n * Client-only React contexts that live in @aglyn/aglyn (not a UI lib) so\n * every canvas-rendering surface — console, plugins, tenant render — shares\n * ONE context module instance (a second instance renders the site blank).\n * They call `createContext` at module scope, which App Router forbids in a\n * Server Component's module graph, so they are split out of the server-safe\n * `./server` barrel and only reachable via the full `@aglyn/aglyn` barrel\n * (client) — never `@aglyn/aglyn/server` (AGL-405).\n */\nexport * from './console-widget-slot-context'\nexport * from './deployment-capabilities-context'\nexport * from './enabled-plugins-context'\nexport * from './entity-picker-context'\nexport * from './link-target-search-context'\nexport * from './media-picker-context'\nexport * from './node-identity'\nexport * from './page-header-actions-context'\nexport * from './page-header-help-context'\nexport * from './page-header-record-context'\nexport * from './plugin-connection-record'\nexport * from './screen-link-context'\nexport * from './site-context'\nexport * from './transfer-launcher-context'\n"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;CAeC,GAED;;;;;;;;CAQC,GACD,cAAc,mCAA+B;AAC7C,cAAc,uCAAmC;AACjD,cAAc,+BAA2B;AACzC,cAAc,6BAAyB;AACvC,cAAc,kCAA8B;AAC5C,cAAc,4BAAwB;AACtC,cAAc,qBAAiB;AAC/B,cAAc,mCAA+B;AAC7C,cAAc,gCAA4B;AAC1C,cAAc,kCAA8B;AAC5C,cAAc,gCAA4B;AAC1C,cAAc,2BAAuB;AACrC,cAAc,oBAAgB;AAC9B,cAAc,iCAA6B"}
|
|
@@ -215,7 +215,8 @@
|
|
|
215
215
|
catalog: {
|
|
216
216
|
'#categories-and-tags': 'The Categories & collections card, in the products hub\'s catalog, organizes your products into categories and collections that storefront pages and filters use.',
|
|
217
217
|
'#review-moderation': 'The Review moderation card, in the products hub\'s Promotions section, lists your reviews so you can publish, hide and reply to them.',
|
|
218
|
-
'#review-settings': 'The Reviews card on Products → Promotions decides who can review your products and when customers are asked for a review.'
|
|
218
|
+
'#review-settings': 'The Reviews card on Products → Promotions decides who can review your products and when customers are asked for a review.',
|
|
219
|
+
'#subscriptions-list': 'Products → Subscriptions lists every subscription on the site, newest first.'
|
|
219
220
|
},
|
|
220
221
|
commerce: {
|
|
221
222
|
'#commerce-analytics': 'The Commerce analytics card, in the Analytics section of the products hub, shows the last 30 days of revenue, orders and average order value, a 14-day revenue trend and your top products.',
|
|
@@ -425,6 +426,7 @@
|
|
|
425
426
|
'#find-plugins': 'Plugins is its own section in the organization navigation, next to Marketplace.',
|
|
426
427
|
'#manage-plugins': 'Plugins, in the organization navigation, is where you switch plugins on and off for the whole workspace — the ones you installed from the Marketplace, listed first, and Aglyn\'s own built-in plugins below them.',
|
|
427
428
|
'#permissions-and-data': 'The Permissions & data card shows what a marketplace plugin declared it can reach, so you can check it before you rely on it.',
|
|
429
|
+
'#plugin-connections': 'Some plugins show information from another service, such as your business listing\'s reviews.',
|
|
428
430
|
'#plugin-on-one-site': 'Open a plugin from Site Admin → Plugins to see whether it runs on this site, and why: the workspace switch, and this site\'s own choice.',
|
|
429
431
|
'#site-plugins': 'A site can run fewer plugins than the workspace enables. Site Admin → Plugins lists the workspace-enabled plugins in two groups, Built in and Installed from the marketplace; turn a switch off and press Save site…',
|
|
430
432
|
'#step-3-reviews': 'Ratings on a listing come only from people with a verified email whose organization actually installed it.',
|
|
@@ -513,10 +515,10 @@
|
|
|
513
515
|
},
|
|
514
516
|
posHardware: {
|
|
515
517
|
'#bought-from-us-in-person': 'At an event, Aglyn may sell you a reader in person. You pay at Aglyn\'s register, take the reader with you, and the order joins your workspace.',
|
|
516
|
-
'#buy-a-reader-from-aglyn': 'The Hardware card on Products → Point of sale sells
|
|
518
|
+
'#buy-a-reader-from-aglyn': 'The Hardware card on Products → Point of sale sells card readers and their accessories.',
|
|
517
519
|
'#card-readers-to-set-up': 'A reader bought in person waits on Products → Point of sale, in a Card readers to set up card, until you set it up on a store.',
|
|
518
520
|
'#hardware-purchase-records': 'Aglyn is the seller of these readers, so it keeps a record of each sale for tax and accounting: the items and their prices, shipping, tax, the total, the order\'s status dates, Stripe\'s payment references, and the…',
|
|
519
|
-
'#reader-start-up-screen': 'While a
|
|
521
|
+
'#reader-start-up-screen': 'While a Touchscreen reader (S700 or S710) or Countertop reader (WisePOS E) waits for a payment, it shows a start-up screen.',
|
|
520
522
|
'#receipt-printers': 'A cloud receipt printer collects its work from Aglyn over the internet, so a receipt prints from the register on any device, even one with no printer driver, and even when the printer is on a different network.'
|
|
521
523
|
},
|
|
522
524
|
posOperations: {
|
|
@@ -540,6 +542,7 @@
|
|
|
540
542
|
'#authoring-your-listing': 'Your listing IS your storefront — it renders on the detail page every buyer sees.',
|
|
541
543
|
'#before-you-publish': 'The last section of the page asks you to confirm a short checklist, in full view of the publish button, and publishing is blocked until you do (and until you tick the publisher agreement box directly above the button).',
|
|
542
544
|
'#bundle-and-manifest': 'The Bundle and manifest section of the publish page takes your built bundle and its manifest: choose the bundle file, then choose the manifest file or paste its JSON.',
|
|
545
|
+
'#connection-credentials': 'A plugin whose manifest declares connections signs site owners in to another service with your OAuth app.',
|
|
543
546
|
'#edit-listing': 'Select Edit listing on your own listing\'s detail page and the page becomes the editor for what buyers see: name, summary, rich-text body and media.',
|
|
544
547
|
'#install-card': 'The Install card on a listing\'s detail page is where an install happens: choose where it lands — all sites, selected sites, or the whole organization for a plugin — then confirm.',
|
|
545
548
|
'#installed-from-the-marketplace': 'Installed from the marketplace, on the workspace\'s Plugins page, lists every marketplace item this workspace has installed — org-wide, or the sites it is on — with the version it is pinned to and whether an update is…',
|