@schematichq/schematic-components 2.1.0 → 2.1.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.
@@ -11239,7 +11239,7 @@ var reducer = (state, action) => {
11239
11239
  // src/context/EmbedProvider.tsx
11240
11240
  var import_jsx_runtime2 = require("react/jsx-runtime");
11241
11241
  var getCustomHeaders = (sessionId) => ({
11242
- "X-Schematic-Components-Version": "2.1.0",
11242
+ "X-Schematic-Components-Version": "2.1.1",
11243
11243
  "X-Schematic-Session-ID": sessionId
11244
11244
  });
11245
11245
  var EmbedProvider = ({
@@ -12381,12 +12381,13 @@ var import_react22 = require("react");
12381
12381
  // src/components/ui/modal/styles.ts
12382
12382
  var Overlay = dt(Box)`
12383
12383
  position: absolute;
12384
- top: 50%;
12385
- left: 50%;
12384
+ top: 0;
12385
+ right: 0;
12386
+ bottom: 0;
12387
+ left: 0;
12386
12388
  z-index: 999999;
12387
- transform: translate(-50%, -50%);
12388
12389
  width: 100%;
12389
- height: 100%;
12390
+ height: 100vh;
12390
12391
  overflow: hidden;
12391
12392
  scrollbar-width: thin;
12392
12393
  scrollbar-gutter: stable both-edges;
@@ -18506,7 +18507,7 @@ var registerWrapper = function registerWrapper2(stripe, startTime) {
18506
18507
  }
18507
18508
  stripe._registerWrapper({
18508
18509
  name: "stripe-js",
18509
- version: "8.2.0",
18510
+ version: "8.3.0",
18510
18511
  startTime
18511
18512
  });
18512
18513
  };
@@ -18581,7 +18582,7 @@ var initStripe = function initStripe2(maybeStripe, args, startTime) {
18581
18582
  var version = runtimeVersionToUrlVersion(maybeStripe.version);
18582
18583
  var expectedVersion = RELEASE_TRAIN;
18583
18584
  if (isTestKey && version !== expectedVersion) {
18584
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("8.2.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
18585
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("8.3.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
18585
18586
  }
18586
18587
  var stripe = maybeStripe.apply(void 0, args);
18587
18588
  registerWrapper(stripe, startTime);
@@ -5753,7 +5753,7 @@ declare interface ModalHeaderProps {
5753
5753
  onClose?: () => void;
5754
5754
  }
5755
5755
 
5756
- declare interface ModalProps extends React.HTMLAttributes<HTMLElement> {
5756
+ export declare interface ModalProps extends React.HTMLAttributes<HTMLElement> {
5757
5757
  children: React.ReactNode;
5758
5758
  size?: ModalSize;
5759
5759
  top?: number;
@@ -11179,7 +11179,7 @@ var reducer = (state, action) => {
11179
11179
  // src/context/EmbedProvider.tsx
11180
11180
  import { jsx, jsxs } from "react/jsx-runtime";
11181
11181
  var getCustomHeaders = (sessionId) => ({
11182
- "X-Schematic-Components-Version": "2.1.0",
11182
+ "X-Schematic-Components-Version": "2.1.1",
11183
11183
  "X-Schematic-Session-ID": sessionId
11184
11184
  });
11185
11185
  var EmbedProvider = ({
@@ -12327,12 +12327,13 @@ import {
12327
12327
  // src/components/ui/modal/styles.ts
12328
12328
  var Overlay = dt(Box)`
12329
12329
  position: absolute;
12330
- top: 50%;
12331
- left: 50%;
12330
+ top: 0;
12331
+ right: 0;
12332
+ bottom: 0;
12333
+ left: 0;
12332
12334
  z-index: 999999;
12333
- transform: translate(-50%, -50%);
12334
12335
  width: 100%;
12335
- height: 100%;
12336
+ height: 100vh;
12336
12337
  overflow: hidden;
12337
12338
  scrollbar-width: thin;
12338
12339
  scrollbar-gutter: stable both-edges;
@@ -18468,7 +18469,7 @@ var registerWrapper = function registerWrapper2(stripe, startTime) {
18468
18469
  }
18469
18470
  stripe._registerWrapper({
18470
18471
  name: "stripe-js",
18471
- version: "8.2.0",
18472
+ version: "8.3.0",
18472
18473
  startTime
18473
18474
  });
18474
18475
  };
@@ -18543,7 +18544,7 @@ var initStripe = function initStripe2(maybeStripe, args, startTime) {
18543
18544
  var version = runtimeVersionToUrlVersion(maybeStripe.version);
18544
18545
  var expectedVersion = RELEASE_TRAIN;
18545
18546
  if (isTestKey && version !== expectedVersion) {
18546
- console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("8.2.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
18547
+ console.warn("Stripe.js@".concat(version, " was loaded on the page, but @stripe/stripe-js@").concat("8.3.0", " expected Stripe.js@").concat(expectedVersion, ". This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning"));
18547
18548
  }
18548
18549
  var stripe = maybeStripe.apply(void 0, args);
18549
18550
  registerWrapper(stripe, startTime);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schematichq/schematic-components",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "main": "dist/schematic-components.cjs.js",
5
5
  "module": "dist/schematic-components.esm.js",
6
6
  "types": "dist/schematic-components.d.ts",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@schematichq/schematic-icons": "^0.5.2",
36
- "@stripe/stripe-js": "^8.2.0",
36
+ "@stripe/stripe-js": "^8.3.0",
37
37
  "i18next": "^25.6.0",
38
38
  "lodash": "^4.17.21",
39
39
  "pako": "^2.1.0",
@@ -42,16 +42,16 @@
42
42
  "uuid": "^13.0.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@eslint/js": "^9.39.0",
46
- "@eslint/json": "^0.13.2",
47
- "@eslint/markdown": "^7.5.0",
45
+ "@eslint/js": "^9.39.1",
46
+ "@eslint/json": "^0.14.0",
47
+ "@eslint/markdown": "^7.5.1",
48
48
  "@jest/globals": "^30.2.0",
49
- "@microsoft/api-extractor": "^7.53.3",
49
+ "@microsoft/api-extractor": "^7.54.0",
50
50
  "@openapitools/openapi-generator-cli": "^2.25.0",
51
51
  "@stripe/react-stripe-js": "^5.3.0",
52
- "@swc/core": "^1.14.0",
52
+ "@swc/core": "^1.15.0",
53
53
  "@swc/jest": "^0.2.39",
54
- "@swc/plugin-styled-components": "^10.0.0",
54
+ "@swc/plugin-styled-components": "^11.0.0",
55
55
  "@testing-library/dom": "^10.4.1",
56
56
  "@testing-library/jest-dom": "^6.9.1",
57
57
  "@testing-library/react": "^16.3.0",
@@ -61,7 +61,7 @@
61
61
  "@types/react": "^19.2.2",
62
62
  "@types/react-dom": "^19.2.2",
63
63
  "esbuild": "^0.25.12",
64
- "eslint": "^9.39.0",
64
+ "eslint": "^9.39.1",
65
65
  "eslint-import-resolver-typescript": "^4.4.4",
66
66
  "eslint-plugin-import": "^2.32.0",
67
67
  "eslint-plugin-jest": "^29.0.1",