@vtex/checkout 0.16.7 → 0.17.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/cli.d.ts +2 -1
- package/dist/cli.js +2 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/build.js +10 -1
- package/dist/commands/build.js.map +1 -1
- package/dist/commands/create.d.ts +3 -1
- package/dist/commands/create.js +26 -6
- package/dist/commands/create.js.map +1 -1
- package/dist/commands/dev.d.ts +1 -0
- package/dist/commands/dev.js +35 -6
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/index.js +1 -0
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/scripts-init.d.ts +10 -0
- package/dist/commands/scripts-init.js +58 -0
- package/dist/commands/scripts-init.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/bundler.d.ts +11 -1
- package/dist/lib/bundler.js +49 -21
- package/dist/lib/bundler.js.map +1 -1
- package/dist/lib/checkout-config.d.ts +50 -0
- package/dist/lib/checkout-config.js +179 -0
- package/dist/lib/checkout-config.js.map +1 -0
- package/dist/lib/constants.d.ts +7 -1
- package/dist/lib/constants.js +7 -1
- package/dist/lib/constants.js.map +1 -1
- package/dist/lib/extensions-config.d.ts +18 -0
- package/dist/lib/extensions-config.js +12 -0
- package/dist/lib/extensions-config.js.map +1 -0
- package/dist/lib/project-files.d.ts +50 -0
- package/dist/lib/project-files.js +158 -0
- package/dist/lib/project-files.js.map +1 -0
- package/dist/lib/scripts-watcher.d.ts +28 -0
- package/dist/lib/scripts-watcher.js +79 -0
- package/dist/lib/scripts-watcher.js.map +1 -0
- package/dist/scripts/allowed-scripts.d.ts +77 -0
- package/dist/scripts/allowed-scripts.js +97 -0
- package/dist/scripts/allowed-scripts.js.map +1 -0
- package/dist/scripts/define-checkout-config.d.ts +38 -0
- package/dist/scripts/define-checkout-config.js +9 -0
- package/dist/scripts/define-checkout-config.js.map +1 -0
- package/dist/scripts/index.d.ts +5 -0
- package/dist/scripts/index.js +4 -0
- package/dist/scripts/index.js.map +1 -0
- package/dist/scripts/resolve-scripts.d.ts +35 -0
- package/dist/scripts/resolve-scripts.js +285 -0
- package/dist/scripts/resolve-scripts.js.map +1 -0
- package/dist/scripts/types.d.ts +56 -0
- package/dist/scripts/types.js +2 -0
- package/dist/scripts/types.js.map +1 -0
- package/package.json +1 -1
- package/template/checkout.config.ts +13 -0
- package/template/tsconfig.json +1 -1
package/package.json
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { defineCheckoutConfig } from '@vtex/checkout';
|
|
2
|
+
|
|
3
|
+
// Third-party tags allowed on checkout. You choose a tag by id and fill in its
|
|
4
|
+
// params; VTEX provides the URL and the script. Slots: 'head-top', 'head-bottom',
|
|
5
|
+
// 'body-top', 'body-bottom'. Run `checkout build` to validate this file.
|
|
6
|
+
//
|
|
7
|
+
// Example:
|
|
8
|
+
// scripts: {
|
|
9
|
+
// 'head-top': [{ id: 'google-gtm', params: { gtmId: 'GTM-XXXXXXX' } }],
|
|
10
|
+
// },
|
|
11
|
+
export default defineCheckoutConfig({
|
|
12
|
+
scripts: {},
|
|
13
|
+
});
|