@pdfme/common 2.0.0 → 2.0.2

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.
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DesignerReactProps = exports.DesignerProps = exports.PreviewReactProps = exports.PreviewProps = exports.UIProps = exports.UIOptions = exports.SchemaInputs = exports.GenerateProps = exports.GeneratorOptions = exports.CommonProps = exports.Inputs = exports.Template = exports.BasePdf = exports.Font = exports.SchemaForUI = exports.Schema = exports.BarcodeSchema = exports.ImageSchema = exports.TextSchema = exports.CommonSchema = exports.SchemaType = exports.BarcodeSchemaType = exports.schemaTypes = exports.barcodeSchemaTypes = exports.Alignment = exports.Size = exports.Lang = void 0;
4
4
  /* eslint dot-notation: "off"*/
5
5
  const zod_1 = require("zod");
6
- const langs = ['en', 'ja', 'ar', 'th'];
6
+ const langs = ['en', 'ja', 'ar', 'th', 'pl'];
7
7
  exports.Lang = zod_1.z.enum(langs);
8
8
  exports.Size = zod_1.z.object({ height: zod_1.z.number(), width: zod_1.z.number() });
9
9
  const alignments = ['left', 'center', 'right'];
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/schema.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,6BAAwB;AAExB,MAAM,KAAK,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AACnC,QAAA,IAAI,GAAG,OAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAErB,QAAA,IAAI,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAExE,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAU,CAAC;AAC3C,QAAA,SAAS,GAAG,OA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C,CAAC;SACzE,OAAO,CAAC,OAAC,CAAC,IAAI,EAAE,CAAC;SACjB,QAAQ,EAAE;IACb,IAAI,EAAE,YAAI;CACX,CAAC,CAAC;AAEH,yCAAyC;AAE5B,QAAA,aAAa,GAAG,eAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC;AAC5C,QAAA,kBAAkB,GAAG,qBAAa,CAAC,IAAI,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;IAClF,cAAc,EAAE,OAAC,CAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,gBAAQ,CAAC,CAAC,OAAO,CAAC,OAAC,CAAC,IAAI,EAAE,CAAC;IAC7D,IAAI,EAAE,YAAI;CACX,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  /* eslint dot-notation: "off"*/
2
2
  import { z } from 'zod';
3
- const langs = ['en', 'ja', 'ar', 'th'];
3
+ const langs = ['en', 'ja', 'ar', 'th', 'pl'];
4
4
  export const Lang = z.enum(langs);
5
5
  export const Size = z.object({ height: z.number(), width: z.number() });
6
6
  const alignments = ['left', 'center', 'right'];
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/schema.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,KAAK,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAU,CAAC;AAChD,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAElC,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAExE,MAAM,UAAU,GAAG,CAAC,MAAM,EAAE,QAAQ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
+ export declare const Lang: z.ZodEnum<["en", "ja", "ar", "th", "pl"]>;
3
3
  export declare const Size: z.ZodObject<{
4
4
  height: z.ZodNumber;
5
5
  width: z.ZodNumber;
@@ -1511,21 +1511,21 @@ export declare const UIOptions: z.ZodObject<{
1511
1511
  fallback?: boolean | undefined;
1512
1512
  subset?: boolean | undefined;
1513
1513
  }>>>;
1514
- lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th"]>>;
1514
+ lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th", "pl"]>>;
1515
1515
  }, "strip", z.ZodTypeAny, {
1516
1516
  font?: Record<string, {
1517
1517
  data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1518
1518
  fallback?: boolean | undefined;
1519
1519
  subset?: boolean | undefined;
1520
1520
  }> | undefined;
1521
- lang?: "th" | "en" | "ja" | "ar" | undefined;
1521
+ lang?: "th" | "en" | "ja" | "ar" | "pl" | undefined;
1522
1522
  }, {
1523
1523
  font?: Record<string, {
1524
1524
  data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1525
1525
  fallback?: boolean | undefined;
1526
1526
  subset?: boolean | undefined;
1527
1527
  }> | undefined;
1528
- lang?: "th" | "en" | "ja" | "ar" | undefined;
1528
+ lang?: "th" | "en" | "ja" | "ar" | "pl" | undefined;
1529
1529
  }>;
1530
1530
  export declare const UIProps: z.ZodObject<{
1531
1531
  template: z.ZodObject<{
@@ -1773,21 +1773,21 @@ export declare const UIProps: z.ZodObject<{
1773
1773
  fallback?: boolean | undefined;
1774
1774
  subset?: boolean | undefined;
1775
1775
  }>>>;
1776
- lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th"]>>;
1776
+ lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th", "pl"]>>;
1777
1777
  }, "strip", z.ZodTypeAny, {
1778
1778
  font?: Record<string, {
1779
1779
  data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1780
1780
  fallback?: boolean | undefined;
1781
1781
  subset?: boolean | undefined;
1782
1782
  }> | undefined;
1783
- lang?: "th" | "en" | "ja" | "ar" | undefined;
1783
+ lang?: "th" | "en" | "ja" | "ar" | "pl" | undefined;
1784
1784
  }, {
1785
1785
  font?: Record<string, {
1786
1786
  data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
1787
1787
  fallback?: boolean | undefined;
1788
1788
  subset?: boolean | undefined;
1789
1789
  }> | undefined;
1790
- lang?: "th" | "en" | "ja" | "ar" | undefined;
1790
+ lang?: "th" | "en" | "ja" | "ar" | "pl" | undefined;
1791
1791
  }>>;
1792
1792
  }, "strip", z.ZodTypeAny, {
1793
1793
  template: {
@@ -1841,7 +1841,7 @@ export declare const UIProps: z.ZodObject<{
1841
1841
  fallback?: boolean | undefined;
1842
1842
  subset?: boolean | undefined;
1843
1843
  }> | undefined;
1844
- lang?: "th" | "en" | "ja" | "ar" | undefined;
1844
+ lang?: "th" | "en" | "ja" | "ar" | "pl" | undefined;
1845
1845
  } | undefined;
1846
1846
  }, {
1847
1847
  template: {
@@ -1895,7 +1895,7 @@ export declare const UIProps: z.ZodObject<{
1895
1895
  fallback?: boolean | undefined;
1896
1896
  subset?: boolean | undefined;
1897
1897
  }> | undefined;
1898
- lang?: "th" | "en" | "ja" | "ar" | undefined;
1898
+ lang?: "th" | "en" | "ja" | "ar" | "pl" | undefined;
1899
1899
  } | undefined;
1900
1900
  }>;
1901
1901
  export declare const PreviewProps: z.ZodObject<{
@@ -2143,21 +2143,21 @@ export declare const PreviewProps: z.ZodObject<{
2143
2143
  fallback?: boolean | undefined;
2144
2144
  subset?: boolean | undefined;
2145
2145
  }>>>;
2146
- lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th"]>>;
2146
+ lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th", "pl"]>>;
2147
2147
  }, "strip", z.ZodTypeAny, {
2148
2148
  font?: Record<string, {
2149
2149
  data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2150
2150
  fallback?: boolean | undefined;
2151
2151
  subset?: boolean | undefined;
2152
2152
  }> | undefined;
2153
- lang?: "th" | "en" | "ja" | "ar" | undefined;
2153
+ lang?: "th" | "en" | "ja" | "ar" | "pl" | undefined;
2154
2154
  }, {
2155
2155
  font?: Record<string, {
2156
2156
  data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2157
2157
  fallback?: boolean | undefined;
2158
2158
  subset?: boolean | undefined;
2159
2159
  }> | undefined;
2160
- lang?: "th" | "en" | "ja" | "ar" | undefined;
2160
+ lang?: "th" | "en" | "ja" | "ar" | "pl" | undefined;
2161
2161
  }>>;
2162
2162
  domContainer: z.ZodType<HTMLElement, z.ZodTypeDef, HTMLElement>;
2163
2163
  inputs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
@@ -2214,7 +2214,7 @@ export declare const PreviewProps: z.ZodObject<{
2214
2214
  fallback?: boolean | undefined;
2215
2215
  subset?: boolean | undefined;
2216
2216
  }> | undefined;
2217
- lang?: "th" | "en" | "ja" | "ar" | undefined;
2217
+ lang?: "th" | "en" | "ja" | "ar" | "pl" | undefined;
2218
2218
  } | undefined;
2219
2219
  }, {
2220
2220
  template: {
@@ -2269,7 +2269,7 @@ export declare const PreviewProps: z.ZodObject<{
2269
2269
  fallback?: boolean | undefined;
2270
2270
  subset?: boolean | undefined;
2271
2271
  }> | undefined;
2272
- lang?: "th" | "en" | "ja" | "ar" | undefined;
2272
+ lang?: "th" | "en" | "ja" | "ar" | "pl" | undefined;
2273
2273
  } | undefined;
2274
2274
  }>;
2275
2275
  export declare const PreviewReactProps: z.ZodObject<{
@@ -2517,21 +2517,21 @@ export declare const PreviewReactProps: z.ZodObject<{
2517
2517
  fallback?: boolean | undefined;
2518
2518
  subset?: boolean | undefined;
2519
2519
  }>>>;
2520
- lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th"]>>;
2520
+ lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th", "pl"]>>;
2521
2521
  }, "strip", z.ZodTypeAny, {
2522
2522
  font?: Record<string, {
2523
2523
  data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2524
2524
  fallback?: boolean | undefined;
2525
2525
  subset?: boolean | undefined;
2526
2526
  }> | undefined;
2527
- lang?: "th" | "en" | "ja" | "ar" | undefined;
2527
+ lang?: "th" | "en" | "ja" | "ar" | "pl" | undefined;
2528
2528
  }, {
2529
2529
  font?: Record<string, {
2530
2530
  data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2531
2531
  fallback?: boolean | undefined;
2532
2532
  subset?: boolean | undefined;
2533
2533
  }> | undefined;
2534
- lang?: "th" | "en" | "ja" | "ar" | undefined;
2534
+ lang?: "th" | "en" | "ja" | "ar" | "pl" | undefined;
2535
2535
  }>>;
2536
2536
  inputs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodString>, "many">;
2537
2537
  onChangeInput: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodObject<{
@@ -2613,7 +2613,7 @@ export declare const PreviewReactProps: z.ZodObject<{
2613
2613
  fallback?: boolean | undefined;
2614
2614
  subset?: boolean | undefined;
2615
2615
  }> | undefined;
2616
- lang?: "th" | "en" | "ja" | "ar" | undefined;
2616
+ lang?: "th" | "en" | "ja" | "ar" | "pl" | undefined;
2617
2617
  } | undefined;
2618
2618
  onChangeInput?: ((args_0: {
2619
2619
  index: number;
@@ -2676,7 +2676,7 @@ export declare const PreviewReactProps: z.ZodObject<{
2676
2676
  fallback?: boolean | undefined;
2677
2677
  subset?: boolean | undefined;
2678
2678
  }> | undefined;
2679
- lang?: "th" | "en" | "ja" | "ar" | undefined;
2679
+ lang?: "th" | "en" | "ja" | "ar" | "pl" | undefined;
2680
2680
  } | undefined;
2681
2681
  onChangeInput?: ((args_0: {
2682
2682
  index: number;
@@ -2929,21 +2929,21 @@ export declare const DesignerProps: z.ZodObject<{
2929
2929
  fallback?: boolean | undefined;
2930
2930
  subset?: boolean | undefined;
2931
2931
  }>>>;
2932
- lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th"]>>;
2932
+ lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th", "pl"]>>;
2933
2933
  }, "strip", z.ZodTypeAny, {
2934
2934
  font?: Record<string, {
2935
2935
  data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2936
2936
  fallback?: boolean | undefined;
2937
2937
  subset?: boolean | undefined;
2938
2938
  }> | undefined;
2939
- lang?: "th" | "en" | "ja" | "ar" | undefined;
2939
+ lang?: "th" | "en" | "ja" | "ar" | "pl" | undefined;
2940
2940
  }, {
2941
2941
  font?: Record<string, {
2942
2942
  data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
2943
2943
  fallback?: boolean | undefined;
2944
2944
  subset?: boolean | undefined;
2945
2945
  }> | undefined;
2946
- lang?: "th" | "en" | "ja" | "ar" | undefined;
2946
+ lang?: "th" | "en" | "ja" | "ar" | "pl" | undefined;
2947
2947
  }>>;
2948
2948
  domContainer: z.ZodType<HTMLElement, z.ZodTypeDef, HTMLElement>;
2949
2949
  }, "strict", z.ZodTypeAny, {
@@ -2998,7 +2998,7 @@ export declare const DesignerProps: z.ZodObject<{
2998
2998
  fallback?: boolean | undefined;
2999
2999
  subset?: boolean | undefined;
3000
3000
  }> | undefined;
3001
- lang?: "th" | "en" | "ja" | "ar" | undefined;
3001
+ lang?: "th" | "en" | "ja" | "ar" | "pl" | undefined;
3002
3002
  } | undefined;
3003
3003
  }, {
3004
3004
  template: {
@@ -3052,7 +3052,7 @@ export declare const DesignerProps: z.ZodObject<{
3052
3052
  fallback?: boolean | undefined;
3053
3053
  subset?: boolean | undefined;
3054
3054
  }> | undefined;
3055
- lang?: "th" | "en" | "ja" | "ar" | undefined;
3055
+ lang?: "th" | "en" | "ja" | "ar" | "pl" | undefined;
3056
3056
  } | undefined;
3057
3057
  }>;
3058
3058
  export declare const DesignerReactProps: z.ZodObject<{
@@ -3300,21 +3300,21 @@ export declare const DesignerReactProps: z.ZodObject<{
3300
3300
  fallback?: boolean | undefined;
3301
3301
  subset?: boolean | undefined;
3302
3302
  }>>>;
3303
- lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th"]>>;
3303
+ lang: z.ZodOptional<z.ZodEnum<["en", "ja", "ar", "th", "pl"]>>;
3304
3304
  }, "strip", z.ZodTypeAny, {
3305
3305
  font?: Record<string, {
3306
3306
  data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3307
3307
  fallback?: boolean | undefined;
3308
3308
  subset?: boolean | undefined;
3309
3309
  }> | undefined;
3310
- lang?: "th" | "en" | "ja" | "ar" | undefined;
3310
+ lang?: "th" | "en" | "ja" | "ar" | "pl" | undefined;
3311
3311
  }, {
3312
3312
  font?: Record<string, {
3313
3313
  data: (string | ArrayBuffer | Uint8Array) & (string | ArrayBuffer | Uint8Array | undefined);
3314
3314
  fallback?: boolean | undefined;
3315
3315
  subset?: boolean | undefined;
3316
3316
  }> | undefined;
3317
- lang?: "th" | "en" | "ja" | "ar" | undefined;
3317
+ lang?: "th" | "en" | "ja" | "ar" | "pl" | undefined;
3318
3318
  }>>;
3319
3319
  onSaveTemplate: z.ZodFunction<z.ZodTuple<[z.ZodObject<{
3320
3320
  schemas: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodObject<{
@@ -3655,7 +3655,7 @@ export declare const DesignerReactProps: z.ZodObject<{
3655
3655
  fallback?: boolean | undefined;
3656
3656
  subset?: boolean | undefined;
3657
3657
  }> | undefined;
3658
- lang?: "th" | "en" | "ja" | "ar" | undefined;
3658
+ lang?: "th" | "en" | "ja" | "ar" | "pl" | undefined;
3659
3659
  } | undefined;
3660
3660
  }, {
3661
3661
  template: {
@@ -3756,6 +3756,6 @@ export declare const DesignerReactProps: z.ZodObject<{
3756
3756
  fallback?: boolean | undefined;
3757
3757
  subset?: boolean | undefined;
3758
3758
  }> | undefined;
3759
- lang?: "th" | "en" | "ja" | "ar" | undefined;
3759
+ lang?: "th" | "en" | "ja" | "ar" | "pl" | undefined;
3760
3760
  } | undefined;
3761
3761
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdfme/common",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "sideEffects": false,
5
5
  "author": "hand-dot",
6
6
  "license": "MIT",
package/src/schema.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /* eslint dot-notation: "off"*/
2
2
  import { z } from 'zod';
3
3
 
4
- const langs = ['en', 'ja', 'ar', 'th'] as const;
4
+ const langs = ['en', 'ja', 'ar', 'th', 'pl'] as const;
5
5
  export const Lang = z.enum(langs);
6
6
 
7
7
  export const Size = z.object({ height: z.number(), width: z.number() });