@shopify/ui-extensions 1.0.2 → 2.0.0-alpha.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/README.md +57 -1
- package/admin.d.ts +1 -0
- package/admin.esnext +1 -0
- package/admin.js +1 -0
- package/admin.mjs +1 -0
- package/build/cjs/{types/Banner.js → api.js} +0 -0
- package/build/cjs/components/BlockStack/BlockStack.js +11 -0
- package/build/cjs/components/BlockStack/README.md +1 -0
- package/build/cjs/components/Button/Button.js +11 -0
- package/build/cjs/components/Button/README.md +1 -0
- package/build/cjs/components/Text/README.md +1 -0
- package/build/cjs/components/Text/Text.js +11 -0
- package/build/cjs/components/TextField/README.md +1 -0
- package/build/cjs/components/TextField/TextField.js +11 -0
- package/build/cjs/components/View/README.md +1 -0
- package/build/cjs/components/View/View.js +11 -0
- package/build/cjs/components/index.js +45 -0
- package/build/cjs/components.js +45 -0
- package/build/cjs/{types/BlockStack.js → extension.js} +0 -0
- package/build/cjs/index.js +44 -1
- package/build/cjs/surfaces/admin/api/checkout-editor/README.md +1 -0
- package/build/cjs/{types/Heading.js → surfaces/admin/api/checkout-editor/render-settings.js} +0 -0
- package/build/cjs/surfaces/admin/api/standard/README.md +1 -0
- package/build/cjs/{types/InlineStack.js → surfaces/admin/api/standard/standard.js} +0 -0
- package/build/cjs/{types/Button.js → surfaces/admin/api.js} +0 -0
- package/build/cjs/{types/shared/index.js → surfaces/admin/components.js} +4 -4
- package/build/cjs/{types/index.js → surfaces/admin/extension-points.js} +0 -0
- package/build/cjs/surfaces/admin/extension.js +27 -0
- package/build/cjs/surfaces/admin/index.js +70 -0
- package/build/cjs/{types/shared/Spacing.js → surfaces/admin/shared.js} +0 -0
- package/build/cjs/surfaces/checkout/api/cart-line-details/README.md +1 -0
- package/build/{node/types/BlockStack.js → cjs/surfaces/checkout/api/cart-line-details/render-after.js} +0 -0
- package/build/{node/types/Button.js → cjs/surfaces/checkout/api/shared.js} +0 -0
- package/build/cjs/surfaces/checkout/api/standard/README.md +1 -0
- package/build/{node/types/Heading.js → cjs/surfaces/checkout/api/standard/standard.js} +0 -0
- package/build/{node/types/Banner.js → cjs/surfaces/checkout/api.js} +0 -0
- package/build/cjs/surfaces/checkout/components.js +18 -0
- package/build/{node/types/InlineStack.js → cjs/surfaces/checkout/extension-points.js} +0 -0
- package/build/cjs/surfaces/checkout/extension.js +27 -0
- package/build/cjs/surfaces/checkout/index.js +70 -0
- package/build/{node/types/index.js → cjs/surfaces/checkout/shared.js} +0 -0
- package/build/cjs/utilities/registration.js +110 -0
- package/build/esm/{types/Banner.mjs → api.mjs} +0 -0
- package/build/esm/components/BlockStack/BlockStack.mjs +2 -0
- package/build/esm/components/BlockStack/README.md +1 -0
- package/build/esm/components/Button/Button.mjs +2 -0
- package/build/esm/components/Button/README.md +1 -0
- package/build/esm/components/Text/README.md +1 -0
- package/build/esm/components/Text/Text.mjs +2 -0
- package/build/esm/components/TextField/README.md +1 -0
- package/build/esm/components/TextField/TextField.mjs +2 -0
- package/build/esm/components/View/README.md +1 -0
- package/build/esm/components/View/View.mjs +2 -0
- package/build/esm/components/index.mjs +5 -0
- package/build/esm/components.mjs +5 -0
- package/build/esm/{types/BlockStack.mjs → extension.mjs} +0 -0
- package/build/esm/index.mjs +3 -0
- package/build/esm/surfaces/admin/api/checkout-editor/README.md +1 -0
- package/build/esm/{types/Heading.mjs → surfaces/admin/api/checkout-editor/render-settings.mjs} +0 -0
- package/build/esm/surfaces/admin/api/standard/README.md +1 -0
- package/build/esm/{types/InlineStack.mjs → surfaces/admin/api/standard/standard.mjs} +0 -0
- package/build/esm/{types/Button.mjs → surfaces/admin/api.mjs} +0 -0
- package/build/esm/surfaces/admin/components.mjs +1 -0
- package/build/esm/{types/index.mjs → surfaces/admin/extension-points.mjs} +0 -0
- package/build/esm/surfaces/admin/extension.mjs +3 -0
- package/build/esm/surfaces/admin/index.mjs +5 -0
- package/build/esm/{types/shared/Spacing.mjs → surfaces/admin/shared.mjs} +0 -0
- package/build/esm/surfaces/checkout/api/cart-line-details/README.md +1 -0
- package/build/{esnext/types/BlockStack.esnext → esm/surfaces/checkout/api/cart-line-details/render-after.mjs} +0 -0
- package/build/{esnext/types/Button.esnext → esm/surfaces/checkout/api/shared.mjs} +0 -0
- package/build/esm/surfaces/checkout/api/standard/README.md +1 -0
- package/build/{esnext/types/Heading.esnext → esm/surfaces/checkout/api/standard/standard.mjs} +0 -0
- package/build/{esnext/types/Banner.esnext → esm/surfaces/checkout/api.mjs} +0 -0
- package/build/esm/surfaces/checkout/components.mjs +1 -0
- package/build/{esnext/types/InlineStack.esnext → esm/surfaces/checkout/extension-points.mjs} +0 -0
- package/build/esm/surfaces/checkout/extension.mjs +3 -0
- package/build/esm/surfaces/checkout/index.mjs +5 -0
- package/build/{esnext/types/index.esnext → esm/surfaces/checkout/shared.mjs} +0 -0
- package/build/esm/utilities/registration.mjs +101 -0
- package/build/esnext/{types/shared/Spacing.esnext → api.esnext} +0 -0
- package/build/esnext/components/BlockStack/BlockStack.esnext +2 -0
- package/build/esnext/components/BlockStack/README.md +1 -0
- package/build/esnext/components/Button/Button.esnext +2 -0
- package/build/esnext/components/Button/README.md +1 -0
- package/build/esnext/components/Text/README.md +1 -0
- package/build/esnext/components/Text/Text.esnext +2 -0
- package/build/esnext/components/TextField/README.md +1 -0
- package/build/esnext/components/TextField/TextField.esnext +2 -0
- package/build/esnext/components/View/README.md +1 -0
- package/build/esnext/components/View/View.esnext +2 -0
- package/build/esnext/components/index.esnext +5 -0
- package/build/esnext/components.esnext +5 -0
- package/build/esnext/extension.esnext +0 -0
- package/build/esnext/index.esnext +3 -0
- package/build/esnext/surfaces/admin/api/checkout-editor/README.md +1 -0
- package/build/esnext/surfaces/admin/api/checkout-editor/render-settings.esnext +0 -0
- package/build/esnext/surfaces/admin/api/standard/README.md +1 -0
- package/build/esnext/surfaces/admin/api/standard/standard.esnext +0 -0
- package/build/esnext/surfaces/admin/api.esnext +0 -0
- package/build/esnext/surfaces/admin/components.esnext +1 -0
- package/build/esnext/surfaces/admin/extension-points.esnext +0 -0
- package/build/esnext/surfaces/admin/extension.esnext +3 -0
- package/build/esnext/surfaces/admin/index.esnext +5 -0
- package/build/esnext/surfaces/admin/shared.esnext +0 -0
- package/build/esnext/surfaces/checkout/api/cart-line-details/README.md +1 -0
- package/build/esnext/surfaces/checkout/api/cart-line-details/render-after.esnext +0 -0
- package/build/esnext/surfaces/checkout/api/shared.esnext +0 -0
- package/build/esnext/surfaces/checkout/api/standard/README.md +1 -0
- package/build/esnext/surfaces/checkout/api/standard/standard.esnext +0 -0
- package/build/esnext/surfaces/checkout/api.esnext +0 -0
- package/build/esnext/surfaces/checkout/components.esnext +1 -0
- package/build/esnext/surfaces/checkout/extension-points.esnext +0 -0
- package/build/esnext/surfaces/checkout/extension.esnext +3 -0
- package/build/esnext/surfaces/checkout/index.esnext +5 -0
- package/build/esnext/surfaces/checkout/shared.esnext +0 -0
- package/build/esnext/utilities/registration.esnext +37 -0
- package/build/node/{types/shared/Spacing.js → api.js} +0 -0
- package/build/node/components/BlockStack/BlockStack.js +11 -0
- package/build/node/components/BlockStack/README.md +1 -0
- package/build/node/components/Button/Button.js +11 -0
- package/build/node/components/Button/README.md +1 -0
- package/build/node/components/Text/README.md +1 -0
- package/build/node/components/Text/Text.js +11 -0
- package/build/node/components/TextField/README.md +1 -0
- package/build/node/components/TextField/TextField.js +11 -0
- package/build/node/components/View/README.md +1 -0
- package/build/node/components/View/View.js +11 -0
- package/build/node/components/index.js +45 -0
- package/build/node/components.js +45 -0
- package/build/node/extension.js +1 -0
- package/build/node/index.js +44 -1
- package/build/node/surfaces/admin/api/checkout-editor/README.md +1 -0
- package/build/node/surfaces/admin/api/checkout-editor/render-settings.js +1 -0
- package/build/node/surfaces/admin/api/standard/README.md +1 -0
- package/build/node/surfaces/admin/api/standard/standard.js +1 -0
- package/build/node/surfaces/admin/api.js +1 -0
- package/build/node/{types/shared/index.js → surfaces/admin/components.js} +4 -4
- package/build/node/surfaces/admin/extension-points.js +1 -0
- package/build/node/surfaces/admin/extension.js +27 -0
- package/build/node/surfaces/admin/index.js +70 -0
- package/build/node/surfaces/admin/shared.js +1 -0
- package/build/node/surfaces/checkout/api/cart-line-details/README.md +1 -0
- package/build/node/surfaces/checkout/api/cart-line-details/render-after.js +1 -0
- package/build/node/surfaces/checkout/api/shared.js +1 -0
- package/build/node/surfaces/checkout/api/standard/README.md +1 -0
- package/build/node/surfaces/checkout/api/standard/standard.js +1 -0
- package/build/node/surfaces/checkout/api.js +1 -0
- package/build/node/surfaces/checkout/components.js +18 -0
- package/build/node/surfaces/checkout/extension-points.js +1 -0
- package/build/node/surfaces/checkout/extension.js +27 -0
- package/build/node/surfaces/checkout/index.js +70 -0
- package/build/node/surfaces/checkout/shared.js +1 -0
- package/build/node/utilities/registration.js +44 -0
- package/build/ts/api.d.ts +8 -0
- package/build/ts/api.d.ts.map +1 -0
- package/build/ts/{types/Banner.js → api.js} +0 -0
- package/build/ts/components/BlockStack/BlockStack.d.ts +8 -0
- package/build/ts/components/BlockStack/BlockStack.d.ts.map +1 -0
- package/build/ts/components/BlockStack/BlockStack.js +5 -0
- package/build/ts/components/Button/Button.d.ts +12 -0
- package/build/ts/components/Button/Button.d.ts.map +1 -0
- package/build/ts/components/Button/Button.js +5 -0
- package/build/ts/components/Text/Text.d.ts +8 -0
- package/build/ts/components/Text/Text.d.ts.map +1 -0
- package/build/ts/components/Text/Text.js +5 -0
- package/build/ts/components/TextField/TextField.d.ts +43 -0
- package/build/ts/components/TextField/TextField.d.ts.map +1 -0
- package/build/ts/components/TextField/TextField.js +5 -0
- package/build/ts/components/View/View.d.ts +8 -0
- package/build/ts/components/View/View.d.ts.map +1 -0
- package/build/ts/components/View/View.js +5 -0
- package/build/ts/components/index.d.ts +11 -0
- package/build/ts/components/index.d.ts.map +1 -0
- package/build/ts/components/index.js +13 -0
- package/build/ts/components.d.ts +11 -0
- package/build/ts/components.d.ts.map +1 -0
- package/build/ts/components.js +13 -0
- package/build/ts/extension.d.ts +15 -0
- package/build/ts/extension.d.ts.map +1 -0
- package/build/ts/{types/BlockStack.js → extension.js} +0 -0
- package/build/ts/index.d.ts +3 -1
- package/build/ts/index.d.ts.map +1 -1
- package/build/ts/index.js +17 -0
- package/build/ts/surfaces/admin/api/checkout-editor/render-settings.d.ts +19 -0
- package/build/ts/surfaces/admin/api/checkout-editor/render-settings.d.ts.map +1 -0
- package/build/ts/{types/Heading.js → surfaces/admin/api/checkout-editor/render-settings.js} +0 -0
- package/build/ts/surfaces/admin/api/standard/standard.d.ts +7 -0
- package/build/ts/surfaces/admin/api/standard/standard.d.ts.map +1 -0
- package/build/ts/{types/InlineStack.js → surfaces/admin/api/standard/standard.js} +0 -0
- package/build/ts/surfaces/admin/api.d.ts +3 -0
- package/build/ts/surfaces/admin/api.d.ts.map +1 -0
- package/build/ts/{types/Button.js → surfaces/admin/api.js} +0 -0
- package/build/ts/surfaces/admin/components.d.ts +2 -0
- package/build/ts/surfaces/admin/components.d.ts.map +1 -0
- package/build/ts/{types/shared/index.js → surfaces/admin/components.js} +1 -1
- package/build/ts/surfaces/admin/extension-points.d.ts +9 -0
- package/build/ts/surfaces/admin/extension-points.d.ts.map +1 -0
- package/build/ts/{types/index.js → surfaces/admin/extension-points.js} +0 -0
- package/build/ts/surfaces/admin/extension.d.ts +4 -0
- package/build/ts/surfaces/admin/extension.d.ts.map +1 -0
- package/build/ts/surfaces/admin/extension.js +20 -0
- package/build/ts/surfaces/admin/index.d.ts +6 -0
- package/build/ts/surfaces/admin/index.d.ts.map +1 -0
- package/build/ts/surfaces/admin/index.js +21 -0
- package/build/ts/surfaces/admin/shared.d.ts +8 -0
- package/build/ts/surfaces/admin/shared.d.ts.map +1 -0
- package/build/ts/{types/shared/Spacing.js → surfaces/admin/shared.js} +0 -0
- package/build/ts/surfaces/checkout/api/cart-line-details/render-after.d.ts +6 -0
- package/build/ts/surfaces/checkout/api/cart-line-details/render-after.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/cart-line-details/render-after.js +2 -0
- package/build/ts/surfaces/checkout/api/shared.d.ts +4 -0
- package/build/ts/surfaces/checkout/api/shared.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/shared.js +2 -0
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts +7 -0
- package/build/ts/surfaces/checkout/api/standard/standard.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api/standard/standard.js +2 -0
- package/build/ts/surfaces/checkout/api.d.ts +3 -0
- package/build/ts/surfaces/checkout/api.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/api.js +2 -0
- package/build/ts/surfaces/checkout/components.d.ts +2 -0
- package/build/ts/surfaces/checkout/components.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/components.js +17 -0
- package/build/ts/surfaces/checkout/extension-points.d.ts +10 -0
- package/build/ts/surfaces/checkout/extension-points.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/extension-points.js +2 -0
- package/build/ts/surfaces/checkout/extension.d.ts +4 -0
- package/build/ts/surfaces/checkout/extension.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/extension.js +20 -0
- package/build/ts/surfaces/checkout/index.d.ts +6 -0
- package/build/ts/surfaces/checkout/index.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/index.js +21 -0
- package/build/ts/surfaces/checkout/shared.d.ts +8 -0
- package/build/ts/surfaces/checkout/shared.d.ts.map +1 -0
- package/build/ts/surfaces/checkout/shared.js +2 -0
- package/build/ts/utilities/registration.d.ts +13 -0
- package/build/ts/utilities/registration.d.ts.map +1 -0
- package/build/ts/utilities/registration.js +111 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/checkout.d.ts +1 -0
- package/checkout.esnext +1 -0
- package/checkout.js +1 -0
- package/checkout.mjs +1 -0
- package/package.json +26 -4
- package/sewing-kit.config.ts +3 -1
- package/src/api.ts +8 -0
- package/src/components/BlockStack/BlockStack.ts +7 -0
- package/src/components/BlockStack/README.md +1 -0
- package/src/components/Button/Button.ts +10 -0
- package/src/components/Button/README.md +1 -0
- package/src/components/Text/README.md +1 -0
- package/src/components/Text/Text.ts +5 -0
- package/src/components/TextField/README.md +1 -0
- package/src/components/TextField/TextField.ts +45 -0
- package/src/components/View/README.md +1 -0
- package/src/components/View/View.ts +5 -0
- package/src/components/index.ts +14 -0
- package/src/components.ts +14 -0
- package/src/extension.ts +45 -0
- package/src/index.ts +3 -7
- package/src/surfaces/admin/api/checkout-editor/README.md +1 -0
- package/src/surfaces/admin/api/checkout-editor/render-settings.ts +26 -0
- package/src/surfaces/admin/api/standard/README.md +1 -0
- package/src/surfaces/admin/api/standard/standard.ts +8 -0
- package/src/surfaces/admin/api.ts +2 -0
- package/src/surfaces/admin/components.ts +1 -0
- package/src/surfaces/admin/extension-points.ts +17 -0
- package/src/surfaces/admin/extension.ts +7 -0
- package/src/surfaces/admin/index.ts +5 -0
- package/src/surfaces/admin/shared.ts +14 -0
- package/src/surfaces/checkout/api/cart-line-details/README.md +1 -0
- package/src/surfaces/checkout/api/cart-line-details/render-after.ts +7 -0
- package/src/surfaces/checkout/api/shared.ts +3 -0
- package/src/surfaces/checkout/api/standard/README.md +1 -0
- package/src/surfaces/checkout/api/standard/standard.ts +8 -0
- package/src/surfaces/checkout/api.ts +2 -0
- package/src/surfaces/checkout/components.ts +1 -0
- package/src/surfaces/checkout/extension-points.ts +21 -0
- package/src/surfaces/checkout/extension.ts +7 -0
- package/src/surfaces/checkout/index.ts +5 -0
- package/src/surfaces/checkout/shared.ts +14 -0
- package/src/utilities/registration.ts +60 -0
- package/build/esm/types/shared/index.mjs +0 -1
- package/build/esnext/types/shared/index.esnext +0 -1
- package/build/ts/types/Banner.d.ts +0 -10
- package/build/ts/types/Banner.d.ts.map +0 -1
- package/build/ts/types/BlockStack.d.ts +0 -14
- package/build/ts/types/BlockStack.d.ts.map +0 -1
- package/build/ts/types/Button.d.ts +0 -46
- package/build/ts/types/Button.d.ts.map +0 -1
- package/build/ts/types/Heading.d.ts +0 -14
- package/build/ts/types/Heading.d.ts.map +0 -1
- package/build/ts/types/InlineStack.d.ts +0 -19
- package/build/ts/types/InlineStack.d.ts.map +0 -1
- package/build/ts/types/index.d.ts +0 -6
- package/build/ts/types/index.d.ts.map +0 -1
- package/build/ts/types/shared/Spacing.d.ts +0 -2
- package/build/ts/types/shared/Spacing.d.ts.map +0 -1
- package/build/ts/types/shared/index.d.ts +0 -2
- package/build/ts/types/shared/index.d.ts.map +0 -1
- package/src/types/Banner.ts +0 -12
- package/src/types/BlockStack.ts +0 -14
- package/src/types/Button.ts +0 -45
- package/src/types/Heading.ts +0 -14
- package/src/types/InlineStack.ts +0 -19
- package/src/types/index.ts +0 -5
- package/src/types/shared/Spacing.ts +0 -7
- package/src/types/shared/index.ts +0 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.View = exports.TextField = exports.Text = exports.Button = exports.BlockStack = void 0;
|
|
4
|
+
var BlockStack_1 = require("./BlockStack/BlockStack");
|
|
5
|
+
Object.defineProperty(exports, "BlockStack", { enumerable: true, get: function () { return BlockStack_1.BlockStack; } });
|
|
6
|
+
var Button_1 = require("./Button/Button");
|
|
7
|
+
Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return Button_1.Button; } });
|
|
8
|
+
var Text_1 = require("./Text/Text");
|
|
9
|
+
Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return Text_1.Text; } });
|
|
10
|
+
var TextField_1 = require("./TextField/TextField");
|
|
11
|
+
Object.defineProperty(exports, "TextField", { enumerable: true, get: function () { return TextField_1.TextField; } });
|
|
12
|
+
var View_1 = require("./View/View");
|
|
13
|
+
Object.defineProperty(exports, "View", { enumerable: true, get: function () { return View_1.View; } });
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { BlockStack } from './components/BlockStack/BlockStack';
|
|
2
|
+
export type { BlockStackProps } from './components/BlockStack/BlockStack';
|
|
3
|
+
export { Button } from './components/Button/Button';
|
|
4
|
+
export type { ButtonProps } from './components/Button/Button';
|
|
5
|
+
export { Text } from './components/Text/Text';
|
|
6
|
+
export type { TextProps } from './components/Text/Text';
|
|
7
|
+
export { TextField } from './components/TextField/TextField';
|
|
8
|
+
export type { TextFieldProps } from './components/TextField/TextField';
|
|
9
|
+
export { View } from './components/View/View';
|
|
10
|
+
export type { ViewProps } from './components/View/View';
|
|
11
|
+
//# sourceMappingURL=components.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/components.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,oCAAoC,CAAC;AAC9D,YAAY,EAAC,eAAe,EAAC,MAAM,oCAAoC,CAAC;AAExE,OAAO,EAAC,MAAM,EAAC,MAAM,4BAA4B,CAAC;AAClD,YAAY,EAAC,WAAW,EAAC,MAAM,4BAA4B,CAAC;AAE5D,OAAO,EAAC,IAAI,EAAC,MAAM,wBAAwB,CAAC;AAC5C,YAAY,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC;AAEtD,OAAO,EAAC,SAAS,EAAC,MAAM,kCAAkC,CAAC;AAC3D,YAAY,EAAC,cAAc,EAAC,MAAM,kCAAkC,CAAC;AAErE,OAAO,EAAC,IAAI,EAAC,MAAM,wBAAwB,CAAC;AAC5C,YAAY,EAAC,SAAS,EAAC,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.View = exports.TextField = exports.Text = exports.Button = exports.BlockStack = void 0;
|
|
4
|
+
var BlockStack_1 = require("./components/BlockStack/BlockStack");
|
|
5
|
+
Object.defineProperty(exports, "BlockStack", { enumerable: true, get: function () { return BlockStack_1.BlockStack; } });
|
|
6
|
+
var Button_1 = require("./components/Button/Button");
|
|
7
|
+
Object.defineProperty(exports, "Button", { enumerable: true, get: function () { return Button_1.Button; } });
|
|
8
|
+
var Text_1 = require("./components/Text/Text");
|
|
9
|
+
Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return Text_1.Text; } });
|
|
10
|
+
var TextField_1 = require("./components/TextField/TextField");
|
|
11
|
+
Object.defineProperty(exports, "TextField", { enumerable: true, get: function () { return TextField_1.TextField; } });
|
|
12
|
+
var View_1 = require("./components/View/View");
|
|
13
|
+
Object.defineProperty(exports, "View", { enumerable: true, get: function () { return View_1.View; } });
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { RemoteRoot, RemoteChannel, RemoteComponentType } from '@remote-ui/core';
|
|
2
|
+
export interface Extension<Api, Result> {
|
|
3
|
+
(api: Api): Result;
|
|
4
|
+
}
|
|
5
|
+
export interface RenderExtensionConnection<AllowedComponents extends RemoteComponentType<string, any> = RemoteComponentType<any, any>> {
|
|
6
|
+
channel: RemoteChannel;
|
|
7
|
+
components: AllowedComponents[];
|
|
8
|
+
}
|
|
9
|
+
export interface RenderExtension<Api, AllowedComponents extends RemoteComponentType<string, any> = RemoteComponentType<any, any>> {
|
|
10
|
+
(connection: RenderExtensionConnection<AllowedComponents>, api: Api): void | Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
export interface RenderExtensionWithRemoteRoot<Api, AllowedComponents extends RemoteComponentType<string, any> = RemoteComponentType<any, any>> {
|
|
13
|
+
(root: RemoteRoot<AllowedComponents, AllowedComponents>, api: Api): void | Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=extension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../../src/extension.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,aAAa,EACb,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,SAAS,CAAC,GAAG,EAAE,MAAM;IACpC,CAAC,GAAG,EAAE,GAAG,GAAG,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,yBAAyB,CACxC,iBAAiB,SAAS,mBAAmB,CAC3C,MAAM,EACN,GAAG,CACJ,GAAG,mBAAmB,CAAC,GAAG,EAAE,GAAG,CAAC;IAEjC,OAAO,EAAE,aAAa,CAAC;IACvB,UAAU,EAAE,iBAAiB,EAAE,CAAC;CACjC;AAED,MAAM,WAAW,eAAe,CAC9B,GAAG,EACH,iBAAiB,SAAS,mBAAmB,CAC3C,MAAM,EACN,GAAG,CACJ,GAAG,mBAAmB,CAAC,GAAG,EAAE,GAAG,CAAC;IAEjC,CACE,UAAU,EAAE,yBAAyB,CAAC,iBAAiB,CAAC,EACxD,GAAG,EAAE,GAAG,GACP,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzB;AAED,MAAM,WAAW,6BAA6B,CAC5C,GAAG,EACH,iBAAiB,SAAS,mBAAmB,CAC3C,MAAM,EACN,GAAG,CACJ,GAAG,mBAAmB,CAAC,GAAG,EAAE,GAAG,CAAC;IAEjC,CACE,IAAI,EAAE,UAAU,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,EACtD,GAAG,EAAE,GAAG,GACP,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACzB"}
|
|
File without changes
|
package/build/ts/index.d.ts
CHANGED
package/build/ts/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
|
package/build/ts/index.js
CHANGED
|
@@ -1,2 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./api"), exports);
|
|
18
|
+
__exportStar(require("./components"), exports);
|
|
19
|
+
__exportStar(require("./extension"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { StandardApi } from '../standard/standard';
|
|
2
|
+
export interface ApplySettingsChangeResult {
|
|
3
|
+
type: 'success' | 'error';
|
|
4
|
+
}
|
|
5
|
+
export interface ApplySettingsChangeInput {
|
|
6
|
+
key: string;
|
|
7
|
+
value: string | number | boolean | null;
|
|
8
|
+
}
|
|
9
|
+
export interface Settings {
|
|
10
|
+
value: Record<string, unknown>;
|
|
11
|
+
subscribe(callback: (settings: Settings) => void, options?: {
|
|
12
|
+
signal?: AbortSignal;
|
|
13
|
+
}): Promise<Settings>;
|
|
14
|
+
}
|
|
15
|
+
export interface CheckoutEditorRenderSettingsApi extends StandardApi<'Admin::CheckoutEditor::RenderSettings'> {
|
|
16
|
+
settings: Settings;
|
|
17
|
+
applySettingsChange(input: ApplySettingsChangeInput): Promise<ApplySettingsChangeResult>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=render-settings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render-settings.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/checkout-editor/render-settings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AAEtD,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,wBAAwB;IACvC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;CACzC;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,SAAS,CACP,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,EACtC,OAAO,CAAC,EAAE;QAAC,MAAM,CAAC,EAAE,WAAW,CAAA;KAAC,GAC/B,OAAO,CAAC,QAAQ,CAAC,CAAC;CACtB;AAED,MAAM,WAAW,+BACf,SAAQ,WAAW,CAAC,uCAAuC,CAAC;IAC5D,QAAQ,EAAE,QAAQ,CAAC;IACnB,mBAAmB,CACjB,KAAK,EAAE,wBAAwB,GAC9B,OAAO,CAAC,yBAAyB,CAAC,CAAC;CACvC"}
|
|
File without changes
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { StandardApi as BaseStandardApi } from '../../../../api';
|
|
2
|
+
import type { ExtensionPoint as AnyExtensionPoint } from '../../extension-points';
|
|
3
|
+
export interface StandardApi<ExtensionPoint extends AnyExtensionPoint> extends BaseStandardApi {
|
|
4
|
+
readonly surface: 'admin';
|
|
5
|
+
readonly extensionPoint: ExtensionPoint;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=standard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standard.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/admin/api/standard/standard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,IAAI,eAAe,EAAC,MAAM,iBAAiB,CAAC;AACpE,OAAO,KAAK,EAAC,cAAc,IAAI,iBAAiB,EAAC,MAAM,wBAAwB,CAAC;AAEhF,MAAM,WAAW,WAAW,CAAC,cAAc,SAAS,iBAAiB,CACnE,SAAQ,eAAe;IACvB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;CACzC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/admin/api.ts"],"names":[],"mappings":"AAAA,YAAY,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACzD,YAAY,EAAC,+BAA+B,EAAC,MAAM,uCAAuC,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/admin/components.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
|
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("
|
|
17
|
+
__exportStar(require("../../components"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RenderExtension } from '../../extension';
|
|
2
|
+
import type { CheckoutEditorRenderSettingsApi } from './api';
|
|
3
|
+
import type { AnyComponent } from './shared';
|
|
4
|
+
export interface ExtensionPoints {
|
|
5
|
+
'Admin::CheckoutEditor::RenderSettings': RenderExtension<CheckoutEditorRenderSettingsApi, AnyComponent>;
|
|
6
|
+
}
|
|
7
|
+
export declare type ExtensionPoint = keyof ExtensionPoints;
|
|
8
|
+
export declare type ExtensionForExtensionPoint<T extends ExtensionPoint> = ExtensionPoints[T];
|
|
9
|
+
//# sourceMappingURL=extension-points.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extension-points.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/admin/extension-points.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,iBAAiB,CAAC;AAErD,OAAO,KAAK,EAAC,+BAA+B,EAAC,MAAM,OAAO,CAAC;AAC3D,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,UAAU,CAAC;AAE3C,MAAM,WAAW,eAAe;IAC9B,uCAAuC,EAAE,eAAe,CACtD,+BAA+B,EAC/B,YAAY,CACb,CAAC;CACH;AAED,oBAAY,cAAc,GAAG,MAAM,eAAe,CAAC;AAEnD,oBAAY,0BAA0B,CACpC,CAAC,SAAS,cAAc,IACtB,eAAe,CAAC,CAAC,CAAC,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/admin/extension.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AAExD,cAAc,iBAAiB,CAAC;AAEhC,eAAO,MAAM,SAAS,uFAAyD,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.extension = void 0;
|
|
18
|
+
var registration_1 = require("../../utilities/registration");
|
|
19
|
+
__exportStar(require("../../extension"), exports);
|
|
20
|
+
exports.extension = (0, registration_1.createExtensionRegistrationFunction)();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/admin/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./api"), exports);
|
|
18
|
+
__exportStar(require("./components"), exports);
|
|
19
|
+
__exportStar(require("./extension-points"), exports);
|
|
20
|
+
__exportStar(require("./extension"), exports);
|
|
21
|
+
__exportStar(require("./shared"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RemoteComponentType } from '@remote-ui/core';
|
|
2
|
+
declare type ComponentTypes = typeof import('./components');
|
|
3
|
+
export declare type Components = {
|
|
4
|
+
[K in keyof ComponentTypes]: ComponentTypes[K] extends RemoteComponentType<any, any> ? ComponentTypes[K] : never;
|
|
5
|
+
};
|
|
6
|
+
export declare type AnyComponent = Components[keyof Components];
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/admin/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AAEzD,aAAK,cAAc,GAAG,cAAc,cAAc,CAAC,CAAC;AAEpD,oBAAY,UAAU,GAAG;KACtB,CAAC,IAAI,MAAM,cAAc,GAAG,cAAc,CAAC,CAAC,CAAC,SAAS,mBAAmB,CACxE,GAAG,EACH,GAAG,CACJ,GACG,cAAc,CAAC,CAAC,CAAC,GACjB,KAAK;CACV,CAAC;AAEF,oBAAY,YAAY,GAAG,UAAU,CAAC,MAAM,UAAU,CAAC,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CartLine } from '../shared';
|
|
2
|
+
import type { StandardApi } from '../standard/standard';
|
|
3
|
+
export interface CartLineDetailsRenderAfterApi extends StandardApi<'Checkout::CartLineDetails::RenderAfter'> {
|
|
4
|
+
readonly target: CartLine;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=render-after.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"render-after.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/api/cart-line-details/render-after.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,QAAQ,EAAC,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,sBAAsB,CAAC;AAEtD,MAAM,WAAW,6BACf,SAAQ,WAAW,CAAC,wCAAwC,CAAC;IAC7D,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC;CAC3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../../src/surfaces/checkout/api/shared.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;CACZ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { StandardApi as BaseStandardApi } from '../../../../api';
|
|
2
|
+
import type { ExtensionPoint as AnyExtensionPoint } from '../../extension-points';
|
|
3
|
+
export interface StandardApi<ExtensionPoint extends AnyExtensionPoint> extends BaseStandardApi {
|
|
4
|
+
readonly surface: 'checkout';
|
|
5
|
+
readonly extensionPoint: ExtensionPoint;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=standard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standard.d.ts","sourceRoot":"","sources":["../../../../../../src/surfaces/checkout/api/standard/standard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,IAAI,eAAe,EAAC,MAAM,iBAAiB,CAAC;AACpE,OAAO,KAAK,EAAC,cAAc,IAAI,iBAAiB,EAAC,MAAM,wBAAwB,CAAC;AAEhF,MAAM,WAAW,WAAW,CAAC,cAAc,SAAS,iBAAiB,CACnE,SAAQ,eAAe;IACvB,QAAQ,CAAC,OAAO,EAAE,UAAU,CAAC;IAC7B,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;CACzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/checkout/api.ts"],"names":[],"mappings":"AAAA,YAAY,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACzD,YAAY,EAAC,6BAA6B,EAAC,MAAM,sCAAsC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/checkout/components.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("../../components"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { RenderExtension } from '../../extension';
|
|
2
|
+
import type { AnyComponent } from './shared';
|
|
3
|
+
import type { StandardApi, CartLineDetailsRenderAfterApi } from './api';
|
|
4
|
+
export interface ExtensionPoints {
|
|
5
|
+
'Checkout::Dynamic::Render': RenderExtension<StandardApi<'Checkout::Dynamic::Render'>, AnyComponent>;
|
|
6
|
+
'Checkout::CartLineDetails::RenderAfter': RenderExtension<CartLineDetailsRenderAfterApi, AnyComponent>;
|
|
7
|
+
}
|
|
8
|
+
export declare type ExtensionPoint = keyof ExtensionPoints;
|
|
9
|
+
export declare type ExtensionForExtensionPoint<T extends ExtensionPoint> = ExtensionPoints[T];
|
|
10
|
+
//# sourceMappingURL=extension-points.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extension-points.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/checkout/extension-points.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,iBAAiB,CAAC;AAErD,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAC,WAAW,EAAE,6BAA6B,EAAC,MAAM,OAAO,CAAC;AAEtE,MAAM,WAAW,eAAe;IAC9B,2BAA2B,EAAE,eAAe,CAC1C,WAAW,CAAC,2BAA2B,CAAC,EACxC,YAAY,CACb,CAAC;IACF,wCAAwC,EAAE,eAAe,CACvD,6BAA6B,EAC7B,YAAY,CACb,CAAC;CACH;AAED,oBAAY,cAAc,GAAG,MAAM,eAAe,CAAC;AAEnD,oBAAY,0BAA0B,CACpC,CAAC,SAAS,cAAc,IACtB,eAAe,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/checkout/extension.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AAExD,cAAc,iBAAiB,CAAC;AAEhC,eAAO,MAAM,SAAS,uFAAyD,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.extension = void 0;
|
|
18
|
+
var registration_1 = require("../../utilities/registration");
|
|
19
|
+
__exportStar(require("../../extension"), exports);
|
|
20
|
+
exports.extension = (0, registration_1.createExtensionRegistrationFunction)();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/checkout/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./api"), exports);
|
|
18
|
+
__exportStar(require("./components"), exports);
|
|
19
|
+
__exportStar(require("./extension-points"), exports);
|
|
20
|
+
__exportStar(require("./extension"), exports);
|
|
21
|
+
__exportStar(require("./shared"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RemoteComponentType } from '@remote-ui/core';
|
|
2
|
+
declare type ComponentTypes = typeof import('./components');
|
|
3
|
+
export declare type Components = {
|
|
4
|
+
[K in keyof ComponentTypes]: ComponentTypes[K] extends RemoteComponentType<any, any> ? ComponentTypes[K] : never;
|
|
5
|
+
};
|
|
6
|
+
export declare type AnyComponent = Components[keyof Components];
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/surfaces/checkout/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,mBAAmB,EAAC,MAAM,iBAAiB,CAAC;AAEzD,aAAK,cAAc,GAAG,cAAc,cAAc,CAAC,CAAC;AAEpD,oBAAY,UAAU,GAAG;KACtB,CAAC,IAAI,MAAM,cAAc,GAAG,cAAc,CAAC,CAAC,CAAC,SAAS,mBAAmB,CACxE,GAAG,EACH,GAAG,CACJ,GACG,cAAc,CAAC,CAAC,CAAC,GACjB,KAAK;CACV,CAAC;AAEF,oBAAY,YAAY,GAAG,UAAU,CAAC,MAAM,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { RenderExtension, RenderExtensionWithRemoteRoot } from '../extension';
|
|
2
|
+
export interface ExtensionRegistrationFunction<ExtensionPoints> {
|
|
3
|
+
<Point extends keyof ExtensionPoints>(_extensionPoint: Point, extensionWithRemoteRoot: ExtensionPoints[Point] extends RenderExtension<infer Api, infer AllowedComponents> ? RenderExtensionWithRemoteRoot<Api, AllowedComponents> : ExtensionPoints[Point]): ExtensionPoints[Point];
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* This function takes an extension function that is expecting a `RemoteRoot` as its
|
|
7
|
+
* first argument, and returns a new function that accepts a `RemoteChannel` instead.
|
|
8
|
+
* This is a convenience that allows the raw UI extension API to only expose the simpler
|
|
9
|
+
* `RemoteChannel` type, while allowing the extension to use the more powerful `RemoteRoot`,
|
|
10
|
+
* provided by a version of `@remote-ui/core` that the extension controls.
|
|
11
|
+
*/
|
|
12
|
+
export declare function createExtensionRegistrationFunction<ExtensionPoints>(): ExtensionRegistrationFunction<ExtensionPoints>;
|
|
13
|
+
//# sourceMappingURL=registration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registration.d.ts","sourceRoot":"","sources":["../../../src/utilities/registration.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EACf,6BAA6B,EAC9B,MAAM,cAAc,CAAC;AAEtB,MAAM,WAAW,6BAA6B,CAAC,eAAe;IAC5D,CAAC,KAAK,SAAS,MAAM,eAAe,EAClC,eAAe,EAAE,KAAK,EACtB,uBAAuB,EAAE,eAAe,CAAC,KAAK,CAAC,SAAS,eAAe,CACrE,MAAM,GAAG,EACT,MAAM,iBAAiB,CACxB,GACG,6BAA6B,CAAC,GAAG,EAAE,iBAAiB,CAAC,GACrD,eAAe,CAAC,KAAK,CAAC,GACzB,eAAe,CAAC,KAAK,CAAC,CAAC;CAC3B;AAED;;;;;;GAMG;AACH,wBAAgB,mCAAmC,CACjD,eAAe,KACZ,6BAA6B,CAAC,eAAe,CAAC,CAgClD"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (_) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
39
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
40
|
+
if (!m) return o;
|
|
41
|
+
var i = m.call(o), r, ar = [], e;
|
|
42
|
+
try {
|
|
43
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
44
|
+
}
|
|
45
|
+
catch (error) { e = { error: error }; }
|
|
46
|
+
finally {
|
|
47
|
+
try {
|
|
48
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
49
|
+
}
|
|
50
|
+
finally { if (e) throw e.error; }
|
|
51
|
+
}
|
|
52
|
+
return ar;
|
|
53
|
+
};
|
|
54
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
55
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
56
|
+
if (ar || !(i in from)) {
|
|
57
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
58
|
+
ar[i] = from[i];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
62
|
+
};
|
|
63
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
64
|
+
exports.createExtensionRegistrationFunction = void 0;
|
|
65
|
+
var core_1 = require("@remote-ui/core");
|
|
66
|
+
/**
|
|
67
|
+
* This function takes an extension function that is expecting a `RemoteRoot` as its
|
|
68
|
+
* first argument, and returns a new function that accepts a `RemoteChannel` instead.
|
|
69
|
+
* This is a convenience that allows the raw UI extension API to only expose the simpler
|
|
70
|
+
* `RemoteChannel` type, while allowing the extension to use the more powerful `RemoteRoot`,
|
|
71
|
+
* provided by a version of `@remote-ui/core` that the extension controls.
|
|
72
|
+
*/
|
|
73
|
+
function createExtensionRegistrationFunction() {
|
|
74
|
+
var extensionWrapper = function (_extensionPoint, extensionWithRemoteRoot) {
|
|
75
|
+
function extension() {
|
|
76
|
+
var args = [];
|
|
77
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
78
|
+
args[_i] = arguments[_i];
|
|
79
|
+
}
|
|
80
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
81
|
+
var result_1, _a, _b, channel, components, rest, root, result;
|
|
82
|
+
return __generator(this, function (_c) {
|
|
83
|
+
switch (_c.label) {
|
|
84
|
+
case 0:
|
|
85
|
+
if (!(args.length === 1 ||
|
|
86
|
+
typeof args[0] !== 'object' ||
|
|
87
|
+
args[0] == null ||
|
|
88
|
+
!('channel' in args[0]))) return [3 /*break*/, 2];
|
|
89
|
+
return [4 /*yield*/, extensionWithRemoteRoot.apply(void 0, __spreadArray([], __read(args), false))];
|
|
90
|
+
case 1:
|
|
91
|
+
result_1 = _c.sent();
|
|
92
|
+
return [2 /*return*/, result_1];
|
|
93
|
+
case 2:
|
|
94
|
+
_a = __read(args), _b = _a[0], channel = _b.channel, components = _b.components, rest = _a.slice(1);
|
|
95
|
+
root = (0, core_1.createRemoteRoot)(channel, { components: components, strict: true });
|
|
96
|
+
return [4 /*yield*/, extensionWithRemoteRoot.apply(void 0, __spreadArray([root], __read(rest), false))];
|
|
97
|
+
case 3:
|
|
98
|
+
result = _c.sent();
|
|
99
|
+
return [4 /*yield*/, root.mount()];
|
|
100
|
+
case 4:
|
|
101
|
+
_c.sent();
|
|
102
|
+
return [2 /*return*/, result];
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
return extension;
|
|
108
|
+
};
|
|
109
|
+
return extensionWrapper;
|
|
110
|
+
}
|
|
111
|
+
exports.createExtensionRegistrationFunction = createExtensionRegistrationFunction;
|