@shotstack/shotstack-canvas 1.6.5 → 1.6.6

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,3 +1,5 @@
1
+ import { components } from '@shotstack/schemas';
2
+
1
3
  declare const CANVAS_CONFIG: {
2
4
  DEFAULTS: {
3
5
  width: number;
@@ -22,6 +24,7 @@ declare const CANVAS_CONFIG: {
22
24
  ANIMATION_TYPES: readonly ["typewriter", "fadeIn", "slideIn", "shift", "ascend", "movingLetters"];
23
25
  };
24
26
 
27
+ type ShotstackRichTextAsset = components["schemas"]["RichTextAsset"];
25
28
  type RichTextValidated = Required<{
26
29
  type: "rich-text";
27
30
  text: string;
@@ -278,4 +281,4 @@ declare function createTextEngine(opts?: {
278
281
  destroy(): void;
279
282
  }>;
280
283
 
281
- export { type DrawOp, type EngineInit, type Glyph, type GradientSpec, type RGBA, type Renderer, type ShapedLine, type ValidAsset, createTextEngine, isGlyphFill, isShadowFill };
284
+ export { type DrawOp, type EngineInit, type Glyph, type GradientSpec, type RGBA, type Renderer, type ShapedLine, type ShotstackRichTextAsset, type ValidAsset, createTextEngine, isGlyphFill, isShadowFill };
@@ -1,3 +1,5 @@
1
+ import { components } from '@shotstack/schemas';
2
+
1
3
  declare const CANVAS_CONFIG: {
2
4
  DEFAULTS: {
3
5
  width: number;
@@ -22,6 +24,7 @@ declare const CANVAS_CONFIG: {
22
24
  ANIMATION_TYPES: readonly ["typewriter", "fadeIn", "slideIn", "shift", "ascend", "movingLetters"];
23
25
  };
24
26
 
27
+ type ShotstackRichTextAsset = components["schemas"]["RichTextAsset"];
25
28
  type RichTextValidated = Required<{
26
29
  type: "rich-text";
27
30
  text: string;
@@ -278,4 +281,4 @@ declare function createTextEngine(opts?: {
278
281
  destroy(): void;
279
282
  }>;
280
283
 
281
- export { type DrawOp, type EngineInit, type Glyph, type GradientSpec, type RGBA, type Renderer, type ShapedLine, type ValidAsset, createTextEngine, isGlyphFill, isShadowFill };
284
+ export { type DrawOp, type EngineInit, type Glyph, type GradientSpec, type RGBA, type Renderer, type ShapedLine, type ShotstackRichTextAsset, type ValidAsset, createTextEngine, isGlyphFill, isShadowFill };
@@ -1,3 +1,5 @@
1
+ import { components } from '@shotstack/schemas';
2
+
1
3
  declare const CANVAS_CONFIG: {
2
4
  DEFAULTS: {
3
5
  width: number;
@@ -22,6 +24,7 @@ declare const CANVAS_CONFIG: {
22
24
  ANIMATION_TYPES: readonly ["typewriter", "fadeIn", "slideIn", "shift", "ascend", "movingLetters"];
23
25
  };
24
26
 
27
+ type ShotstackRichTextAsset = components["schemas"]["RichTextAsset"];
25
28
  type RichTextValidated = Required<{
26
29
  type: "rich-text";
27
30
  text: string;
@@ -255,4 +258,4 @@ declare function createTextEngine(opts?: {
255
258
  destroy(): void;
256
259
  }>;
257
260
 
258
- export { type DrawOp, type EngineInit, type Glyph, type GradientSpec, type RGBA, type Renderer, type ShapedLine, type ValidAsset, createTextEngine, isGlyphFill, isShadowFill };
261
+ export { type DrawOp, type EngineInit, type Glyph, type GradientSpec, type RGBA, type Renderer, type ShapedLine, type ShotstackRichTextAsset, type ValidAsset, createTextEngine, isGlyphFill, isShadowFill };
package/package.json CHANGED
@@ -1,62 +1,63 @@
1
- {
2
- "name": "@shotstack/shotstack-canvas",
3
- "version": "1.6.5",
4
- "description": "Text layout & animation engine (HarfBuzz) for Node & Web - fully self-contained.",
5
- "type": "module",
6
- "main": "./dist/entry.node.cjs",
7
- "module": "./dist/entry.node.js",
8
- "browser": "./dist/entry.web.js",
9
- "types": "./dist/entry.node.d.ts",
10
- "exports": {
11
- ".": {
12
- "node": {
13
- "import": "./dist/entry.node.js",
14
- "require": "./dist/entry.node.cjs"
15
- },
16
- "browser": "./dist/entry.web.js",
17
- "default": "./dist/entry.web.js"
18
- }
19
- },
20
- "files": [
21
- "dist/**",
22
- "scripts/postinstall.js",
23
- "README.md",
24
- "LICENSE"
25
- ],
26
- "scripts": {
27
- "dev": "tsup --watch",
28
- "build": "tsup",
29
- "postinstall": "node scripts/postinstall.js",
30
- "vendor:harfbuzz": "node scripts/vendor-harfbuzz.js",
31
- "example:node": "node examples/node-example.mjs",
32
- "example:video": "node examples/node-video.mjs",
33
- "example:web": "vite dev examples/web-example",
34
- "prepublishOnly": "npm run build"
35
- },
36
- "publishConfig": {
37
- "access": "public",
38
- "registry": "https://registry.npmjs.org/"
39
- },
40
- "engines": {
41
- "node": ">=18"
42
- },
43
- "sideEffects": false,
44
- "dependencies": {
45
- "canvas": "npm:@napi-rs/canvas@^0.1.54",
46
- "ffmpeg-static": "^5.2.0",
47
- "fontkit": "^2.0.4",
48
- "harfbuzzjs": "0.4.12",
49
- "joi": "^17.13.3",
50
- "opentype.js": "^1.3.4"
51
- },
52
- "devDependencies": {
53
- "@types/fluent-ffmpeg": "2.1.27",
54
- "@types/node": "^20.14.10",
55
- "fluent-ffmpeg": "^2.1.3",
56
- "tsup": "^8.2.3",
57
- "typescript": "^5.5.3",
58
- "vite": "^5.3.3",
59
- "vite-plugin-top-level-await": "1.6.0",
60
- "vite-plugin-wasm": "3.5.0"
61
- }
62
- }
1
+ {
2
+ "name": "@shotstack/shotstack-canvas",
3
+ "version": "1.6.6",
4
+ "description": "Text layout & animation engine (HarfBuzz) for Node & Web - fully self-contained.",
5
+ "type": "module",
6
+ "main": "./dist/entry.node.cjs",
7
+ "module": "./dist/entry.node.js",
8
+ "browser": "./dist/entry.web.js",
9
+ "types": "./dist/entry.node.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "node": {
13
+ "import": "./dist/entry.node.js",
14
+ "require": "./dist/entry.node.cjs"
15
+ },
16
+ "browser": "./dist/entry.web.js",
17
+ "default": "./dist/entry.web.js"
18
+ }
19
+ },
20
+ "files": [
21
+ "dist/**",
22
+ "scripts/postinstall.js",
23
+ "README.md",
24
+ "LICENSE"
25
+ ],
26
+ "scripts": {
27
+ "dev": "tsup --watch",
28
+ "build": "tsup",
29
+ "postinstall": "node scripts/postinstall.js",
30
+ "vendor:harfbuzz": "node scripts/vendor-harfbuzz.js",
31
+ "example:node": "node examples/node-example.mjs",
32
+ "example:video": "node examples/node-video.mjs",
33
+ "example:web": "vite dev examples/web-example",
34
+ "prepublishOnly": "npm run build"
35
+ },
36
+ "publishConfig": {
37
+ "access": "public",
38
+ "registry": "https://registry.npmjs.org/"
39
+ },
40
+ "engines": {
41
+ "node": ">=18"
42
+ },
43
+ "sideEffects": false,
44
+ "dependencies": {
45
+ "@shotstack/schemas": "^1.0.1",
46
+ "canvas": "npm:@napi-rs/canvas@^0.1.54",
47
+ "ffmpeg-static": "^5.2.0",
48
+ "fontkit": "^2.0.4",
49
+ "harfbuzzjs": "0.4.12",
50
+ "joi": "^17.13.3",
51
+ "opentype.js": "^1.3.4"
52
+ },
53
+ "devDependencies": {
54
+ "@types/fluent-ffmpeg": "2.1.27",
55
+ "@types/node": "^20.14.10",
56
+ "fluent-ffmpeg": "^2.1.3",
57
+ "tsup": "^8.2.3",
58
+ "typescript": "^5.5.3",
59
+ "vite": "^5.3.3",
60
+ "vite-plugin-top-level-await": "1.6.0",
61
+ "vite-plugin-wasm": "3.5.0"
62
+ }
63
+ }