@newskit-render/checkout 1.7.4-alpha.0 → 1.8.0-alpha.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.
@@ -1,4 +1,4 @@
1
- export declare type UserTitle = {
1
+ export type UserTitle = {
2
2
  name: string;
3
3
  options: string[];
4
4
  placeholder?: string;
@@ -2,7 +2,7 @@
2
2
  import { ContextOptions } from '../../context';
3
3
  import { UncompiledTheme } from 'newskit';
4
4
  import { ThemeDropdownObject } from '@newskit-render/shared-components';
5
- export declare type LayoutTemplateProps = {
5
+ export type LayoutTemplateProps = {
6
6
  children: React.ReactNode;
7
7
  customTheme?: UncompiledTheme;
8
8
  themeDropdownObject?: ThemeDropdownObject;
@@ -14,7 +14,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
14
14
  function verb(n) { return function (v) { return step([n, v]); }; }
15
15
  function step(op) {
16
16
  if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
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
19
  if (y = 0, t) op = [op[0] & 2, t.value];
20
20
  switch (op[0]) {
@@ -21,7 +21,7 @@ interface PaymentDetailsPage {
21
21
  tab2: Omit<TabProps, 'children'>;
22
22
  };
23
23
  }
24
- export declare type ClosePosition = 'left' | 'right' | 'none';
24
+ export type ClosePosition = 'left' | 'right' | 'none';
25
25
  export interface AccountCreationPageProps {
26
26
  validation?: Record<string, any>;
27
27
  modalOverrides: {
@@ -1,5 +1,5 @@
1
1
  import { GetServerSidePropsResult, GetServerSidePropsContext } from 'next';
2
- declare type ServerSidePropsContext = GetServerSidePropsContext & {
2
+ type ServerSidePropsContext = GetServerSidePropsContext & {
3
3
  provider: string;
4
4
  };
5
5
  export declare const getProviderProps: (context: ServerSidePropsContext) => Promise<GetServerSidePropsResult<{
@@ -25,7 +25,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
25
25
  function verb(n) { return function (v) { return step([n, v]); }; }
26
26
  function step(op) {
27
27
  if (f) throw new TypeError("Generator is already executing.");
28
- while (_) try {
28
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
29
29
  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;
30
30
  if (y = 0, t) op = [op[0] & 2, t.value];
31
31
  switch (op[0]) {
@@ -1,4 +1,4 @@
1
1
  import { GetServerSidePropsContext } from 'next';
2
- export declare type ServerSidePropsContext = GetServerSidePropsContext & {
2
+ export type ServerSidePropsContext = GetServerSidePropsContext & {
3
3
  provider: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- export declare type UserTitle = {
1
+ export type UserTitle = {
2
2
  name: string;
3
3
  options: string[];
4
4
  placeholder?: string;
@@ -2,7 +2,7 @@
2
2
  import { ContextOptions } from '../../context';
3
3
  import { UncompiledTheme } from 'newskit';
4
4
  import { ThemeDropdownObject } from '@newskit-render/shared-components';
5
- export declare type LayoutTemplateProps = {
5
+ export type LayoutTemplateProps = {
6
6
  children: React.ReactNode;
7
7
  customTheme?: UncompiledTheme;
8
8
  themeDropdownObject?: ThemeDropdownObject;
@@ -13,7 +13,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
13
13
  function verb(n) { return function (v) { return step([n, v]); }; }
14
14
  function step(op) {
15
15
  if (f) throw new TypeError("Generator is already executing.");
16
- while (_) try {
16
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
17
  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;
18
18
  if (y = 0, t) op = [op[0] & 2, t.value];
19
19
  switch (op[0]) {
@@ -21,7 +21,7 @@ interface PaymentDetailsPage {
21
21
  tab2: Omit<TabProps, 'children'>;
22
22
  };
23
23
  }
24
- export declare type ClosePosition = 'left' | 'right' | 'none';
24
+ export type ClosePosition = 'left' | 'right' | 'none';
25
25
  export interface AccountCreationPageProps {
26
26
  validation?: Record<string, any>;
27
27
  modalOverrides: {
@@ -1,5 +1,5 @@
1
1
  import { GetServerSidePropsResult, GetServerSidePropsContext } from 'next';
2
- declare type ServerSidePropsContext = GetServerSidePropsContext & {
2
+ type ServerSidePropsContext = GetServerSidePropsContext & {
3
3
  provider: string;
4
4
  };
5
5
  export declare const getProviderProps: (context: ServerSidePropsContext) => Promise<GetServerSidePropsResult<{
@@ -24,7 +24,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
24
24
  function verb(n) { return function (v) { return step([n, v]); }; }
25
25
  function step(op) {
26
26
  if (f) throw new TypeError("Generator is already executing.");
27
- while (_) try {
27
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
28
28
  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;
29
29
  if (y = 0, t) op = [op[0] & 2, t.value];
30
30
  switch (op[0]) {
@@ -1,4 +1,4 @@
1
1
  import { GetServerSidePropsContext } from 'next';
2
- export declare type ServerSidePropsContext = GetServerSidePropsContext & {
2
+ export type ServerSidePropsContext = GetServerSidePropsContext & {
3
3
  provider: string;
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@newskit-render/checkout",
3
- "version": "1.7.4-alpha.0",
3
+ "version": "1.8.0-alpha.0",
4
4
  "description": "Newskit Render - Checkout package",
5
5
  "author": "",
6
6
  "license": "UNLICENSED",
@@ -33,8 +33,8 @@
33
33
  "@emotion/react": "11.9.3",
34
34
  "@emotion/styled": "11.9.3",
35
35
  "@hookform/resolvers": "2.8.3",
36
- "@newskit-render/shared-components": "^1.21.0",
37
- "@newskit-render/standalone-components": "^1.13.0-alpha.0",
36
+ "@newskit-render/shared-components": "^1.22.0-alpha.0",
37
+ "@newskit-render/standalone-components": "^1.14.0-alpha.0",
38
38
  "newskit": "6.4.0"
39
39
  },
40
40
  "devDependencies": {
@@ -56,15 +56,15 @@
56
56
  "jest-junit": "12.0.0",
57
57
  "jest-watch-typeahead": "1.0.0",
58
58
  "lint-staged": "12.1.7",
59
- "next": "12.3.0",
59
+ "next": "13.0.5",
60
60
  "prettier": "2.2.1",
61
61
  "react": "18.2.0",
62
62
  "react-dom": "18.2.0",
63
63
  "ts-jest": "27.1.3",
64
- "typescript": "4.8.3"
64
+ "typescript": "4.9.3"
65
65
  },
66
66
  "peerDependencies": {
67
- "next": ">= 12.1.0 <= 12.3.0",
67
+ "next": ">= 12.1.0 <= 13.0.5",
68
68
  "react": ">= 17.0.2 <= 18.2.0",
69
69
  "react-dom": ">= 17.0.2 <= 18.2.0"
70
70
  },