gigaboard 1.3.0 → 1.3.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.
package/dist/pieces.cjs CHANGED
@@ -15,7 +15,7 @@ var pieceSets = Object.freeze({
15
15
  merida: chunkBWNBPN3P_cjs.merida,
16
16
  neo: chunkAYVQCHSG_cjs.neo
17
17
  });
18
- var PACKAGE_VERSION = "1.3.0";
18
+ var PACKAGE_VERSION = "1.3.2";
19
19
 
20
20
  Object.defineProperty(exports, "alpha", {
21
21
  enumerable: true,
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/pieces/index.ts"],"names":["alpha","cburnett","neo","merida"],"mappings":";;;;;;;;;;AAyDO,IAAM,SAAA,GAAY,OAAO,MAAA,CAAO;AAAA,SACrCA,uBAAA;AAAA,YACAC,0BAAA;AAAA,EACA,QAAA,EAAAC,qBAAA;AAAA,UACAC,wBAAA;AAAA,OACAD;AACF,CAAC;AAKM,IAAM,eAAA,GAAkB","file":"pieces.cjs","sourcesContent":["/**\n * `gigaboard/pieces` — piece renderers for `<Chessboard/>`.\n *\n * Every set is a URL-backed `PieceRenderer` built by\n * {@link createImagePieceSet}. Ships **image** pieces (chess.com's public\n * PNG CDN by default) rather than inline SVG so the JS budget stays under\n * 1 KB per set — the pixels live in the browser's image cache, not in\n * your bundle.\n *\n * ### Tree-shaking\n *\n * Import a specific set from its sub-path to keep your bundle minimal:\n *\n * ```tsx\n * import { neo } from \"gigaboard/pieces/neo\"; // chess.com default\n * import { chesscom } from \"gigaboard/pieces/chesscom\"; // alias of `neo`\n * import { alpha } from \"gigaboard/pieces/alpha\";\n * import { cburnett } from \"gigaboard/pieces/cburnett\";\n * import { merida } from \"gigaboard/pieces/merida\";\n * ```\n *\n * Or bring the whole registry (useful when building a piece-set picker):\n *\n * ```tsx\n * import { pieceSets } from \"gigaboard/pieces\";\n * ```\n *\n * ### Custom chess.com styles\n *\n * chess.com hosts ~25 piece styles — if one of them isn't exported here\n * you can plug its slug into {@link chesscomPieceUrls} and build the\n * renderer yourself:\n *\n * ```tsx\n * import { chesscomPieceUrls, createImagePieceSet } from \"gigaboard/pieces\";\n * const marble = createImagePieceSet(chesscomPieceUrls(\"marble\"));\n * ```\n */\n\nimport { alpha } from \"./sets/alpha.js\";\nimport { cburnett } from \"./sets/cburnett.js\";\nimport { chesscom } from \"./sets/chesscom.js\";\nimport { merida } from \"./sets/merida.js\";\nimport { neo } from \"./sets/neo.js\";\n\nexport type {\n PieceRenderer,\n PieceUrlTable,\n} from \"./create-image-piece-set.js\";\nexport {\n BOARD_CELL_KEY,\n chesscomPieceUrls,\n createImagePieceSet,\n} from \"./create-image-piece-set.js\";\nexport { alpha, cburnett, chesscom, merida, neo };\n\n/** Registry of every built-in set. Handy when building piece-set pickers. */\nexport const pieceSets = Object.freeze({\n alpha,\n cburnett,\n chesscom,\n merida,\n neo,\n});\n\n/** Union of built-in piece-set names. */\nexport type PieceSetName = keyof typeof pieceSets;\n\nexport const PACKAGE_VERSION = \"1.3.0\";\n"]}
1
+ {"version":3,"sources":["../src/pieces/index.ts"],"names":["alpha","cburnett","neo","merida"],"mappings":";;;;;;;;;;AAyDO,IAAM,SAAA,GAAY,OAAO,MAAA,CAAO;AAAA,SACrCA,uBAAA;AAAA,YACAC,0BAAA;AAAA,EACA,QAAA,EAAAC,qBAAA;AAAA,UACAC,wBAAA;AAAA,OACAD;AACF,CAAC;AAKM,IAAM,eAAA,GAAkB","file":"pieces.cjs","sourcesContent":["/**\n * `gigaboard/pieces` — piece renderers for `<Chessboard/>`.\n *\n * Every set is a URL-backed `PieceRenderer` built by\n * {@link createImagePieceSet}. Ships **image** pieces (chess.com's public\n * PNG CDN by default) rather than inline SVG so the JS budget stays under\n * 1 KB per set — the pixels live in the browser's image cache, not in\n * your bundle.\n *\n * ### Tree-shaking\n *\n * Import a specific set from its sub-path to keep your bundle minimal:\n *\n * ```tsx\n * import { neo } from \"gigaboard/pieces/neo\"; // chess.com default\n * import { chesscom } from \"gigaboard/pieces/chesscom\"; // alias of `neo`\n * import { alpha } from \"gigaboard/pieces/alpha\";\n * import { cburnett } from \"gigaboard/pieces/cburnett\";\n * import { merida } from \"gigaboard/pieces/merida\";\n * ```\n *\n * Or bring the whole registry (useful when building a piece-set picker):\n *\n * ```tsx\n * import { pieceSets } from \"gigaboard/pieces\";\n * ```\n *\n * ### Custom chess.com styles\n *\n * chess.com hosts ~25 piece styles — if one of them isn't exported here\n * you can plug its slug into {@link chesscomPieceUrls} and build the\n * renderer yourself:\n *\n * ```tsx\n * import { chesscomPieceUrls, createImagePieceSet } from \"gigaboard/pieces\";\n * const marble = createImagePieceSet(chesscomPieceUrls(\"marble\"));\n * ```\n */\n\nimport { alpha } from \"./sets/alpha.js\";\nimport { cburnett } from \"./sets/cburnett.js\";\nimport { chesscom } from \"./sets/chesscom.js\";\nimport { merida } from \"./sets/merida.js\";\nimport { neo } from \"./sets/neo.js\";\n\nexport type {\n PieceRenderer,\n PieceUrlTable,\n} from \"./create-image-piece-set.js\";\nexport {\n BOARD_CELL_KEY,\n chesscomPieceUrls,\n createImagePieceSet,\n} from \"./create-image-piece-set.js\";\nexport { alpha, cburnett, chesscom, merida, neo };\n\n/** Registry of every built-in set. Handy when building piece-set pickers. */\nexport const pieceSets = Object.freeze({\n alpha,\n cburnett,\n chesscom,\n merida,\n neo,\n});\n\n/** Union of built-in piece-set names. */\nexport type PieceSetName = keyof typeof pieceSets;\n\nexport const PACKAGE_VERSION = \"1.3.2\";\n"]}
package/dist/pieces.d.cts CHANGED
@@ -16,6 +16,6 @@ declare const pieceSets: Readonly<{
16
16
  }>;
17
17
  /** Union of built-in piece-set names. */
18
18
  type PieceSetName = keyof typeof pieceSets;
19
- declare const PACKAGE_VERSION = "1.3.0";
19
+ declare const PACKAGE_VERSION = "1.3.2";
20
20
 
21
21
  export { PACKAGE_VERSION, PieceRenderer, type PieceSetName, pieceSets };
package/dist/pieces.d.ts CHANGED
@@ -16,6 +16,6 @@ declare const pieceSets: Readonly<{
16
16
  }>;
17
17
  /** Union of built-in piece-set names. */
18
18
  type PieceSetName = keyof typeof pieceSets;
19
- declare const PACKAGE_VERSION = "1.3.0";
19
+ declare const PACKAGE_VERSION = "1.3.2";
20
20
 
21
21
  export { PACKAGE_VERSION, PieceRenderer, type PieceSetName, pieceSets };
package/dist/pieces.js CHANGED
@@ -17,7 +17,7 @@ var pieceSets = Object.freeze({
17
17
  merida,
18
18
  neo
19
19
  });
20
- var PACKAGE_VERSION = "1.3.0";
20
+ var PACKAGE_VERSION = "1.3.2";
21
21
 
22
22
  export { PACKAGE_VERSION, pieceSets };
23
23
  //# sourceMappingURL=pieces.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/pieces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAyDO,IAAM,SAAA,GAAY,OAAO,MAAA,CAAO;AAAA,EACrC,KAAA;AAAA,EACA,QAAA;AAAA,EACA,QAAA,EAAA,GAAA;AAAA,EACA,MAAA;AAAA,EACA;AACF,CAAC;AAKM,IAAM,eAAA,GAAkB","file":"pieces.js","sourcesContent":["/**\n * `gigaboard/pieces` — piece renderers for `<Chessboard/>`.\n *\n * Every set is a URL-backed `PieceRenderer` built by\n * {@link createImagePieceSet}. Ships **image** pieces (chess.com's public\n * PNG CDN by default) rather than inline SVG so the JS budget stays under\n * 1 KB per set — the pixels live in the browser's image cache, not in\n * your bundle.\n *\n * ### Tree-shaking\n *\n * Import a specific set from its sub-path to keep your bundle minimal:\n *\n * ```tsx\n * import { neo } from \"gigaboard/pieces/neo\"; // chess.com default\n * import { chesscom } from \"gigaboard/pieces/chesscom\"; // alias of `neo`\n * import { alpha } from \"gigaboard/pieces/alpha\";\n * import { cburnett } from \"gigaboard/pieces/cburnett\";\n * import { merida } from \"gigaboard/pieces/merida\";\n * ```\n *\n * Or bring the whole registry (useful when building a piece-set picker):\n *\n * ```tsx\n * import { pieceSets } from \"gigaboard/pieces\";\n * ```\n *\n * ### Custom chess.com styles\n *\n * chess.com hosts ~25 piece styles — if one of them isn't exported here\n * you can plug its slug into {@link chesscomPieceUrls} and build the\n * renderer yourself:\n *\n * ```tsx\n * import { chesscomPieceUrls, createImagePieceSet } from \"gigaboard/pieces\";\n * const marble = createImagePieceSet(chesscomPieceUrls(\"marble\"));\n * ```\n */\n\nimport { alpha } from \"./sets/alpha.js\";\nimport { cburnett } from \"./sets/cburnett.js\";\nimport { chesscom } from \"./sets/chesscom.js\";\nimport { merida } from \"./sets/merida.js\";\nimport { neo } from \"./sets/neo.js\";\n\nexport type {\n PieceRenderer,\n PieceUrlTable,\n} from \"./create-image-piece-set.js\";\nexport {\n BOARD_CELL_KEY,\n chesscomPieceUrls,\n createImagePieceSet,\n} from \"./create-image-piece-set.js\";\nexport { alpha, cburnett, chesscom, merida, neo };\n\n/** Registry of every built-in set. Handy when building piece-set pickers. */\nexport const pieceSets = Object.freeze({\n alpha,\n cburnett,\n chesscom,\n merida,\n neo,\n});\n\n/** Union of built-in piece-set names. */\nexport type PieceSetName = keyof typeof pieceSets;\n\nexport const PACKAGE_VERSION = \"1.3.0\";\n"]}
1
+ {"version":3,"sources":["../src/pieces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAyDO,IAAM,SAAA,GAAY,OAAO,MAAA,CAAO;AAAA,EACrC,KAAA;AAAA,EACA,QAAA;AAAA,EACA,QAAA,EAAA,GAAA;AAAA,EACA,MAAA;AAAA,EACA;AACF,CAAC;AAKM,IAAM,eAAA,GAAkB","file":"pieces.js","sourcesContent":["/**\n * `gigaboard/pieces` — piece renderers for `<Chessboard/>`.\n *\n * Every set is a URL-backed `PieceRenderer` built by\n * {@link createImagePieceSet}. Ships **image** pieces (chess.com's public\n * PNG CDN by default) rather than inline SVG so the JS budget stays under\n * 1 KB per set — the pixels live in the browser's image cache, not in\n * your bundle.\n *\n * ### Tree-shaking\n *\n * Import a specific set from its sub-path to keep your bundle minimal:\n *\n * ```tsx\n * import { neo } from \"gigaboard/pieces/neo\"; // chess.com default\n * import { chesscom } from \"gigaboard/pieces/chesscom\"; // alias of `neo`\n * import { alpha } from \"gigaboard/pieces/alpha\";\n * import { cburnett } from \"gigaboard/pieces/cburnett\";\n * import { merida } from \"gigaboard/pieces/merida\";\n * ```\n *\n * Or bring the whole registry (useful when building a piece-set picker):\n *\n * ```tsx\n * import { pieceSets } from \"gigaboard/pieces\";\n * ```\n *\n * ### Custom chess.com styles\n *\n * chess.com hosts ~25 piece styles — if one of them isn't exported here\n * you can plug its slug into {@link chesscomPieceUrls} and build the\n * renderer yourself:\n *\n * ```tsx\n * import { chesscomPieceUrls, createImagePieceSet } from \"gigaboard/pieces\";\n * const marble = createImagePieceSet(chesscomPieceUrls(\"marble\"));\n * ```\n */\n\nimport { alpha } from \"./sets/alpha.js\";\nimport { cburnett } from \"./sets/cburnett.js\";\nimport { chesscom } from \"./sets/chesscom.js\";\nimport { merida } from \"./sets/merida.js\";\nimport { neo } from \"./sets/neo.js\";\n\nexport type {\n PieceRenderer,\n PieceUrlTable,\n} from \"./create-image-piece-set.js\";\nexport {\n BOARD_CELL_KEY,\n chesscomPieceUrls,\n createImagePieceSet,\n} from \"./create-image-piece-set.js\";\nexport { alpha, cburnett, chesscom, merida, neo };\n\n/** Registry of every built-in set. Handy when building piece-set pickers. */\nexport const pieceSets = Object.freeze({\n alpha,\n cburnett,\n chesscom,\n merida,\n neo,\n});\n\n/** Union of built-in piece-set names. */\nexport type PieceSetName = keyof typeof pieceSets;\n\nexport const PACKAGE_VERSION = \"1.3.2\";\n"]}
@@ -97,6 +97,6 @@ declare const themes: Readonly<{
97
97
  }>;
98
98
  /** Union of the built-in theme names. */
99
99
  type ThemeName = keyof typeof themes;
100
- declare const PACKAGE_VERSION = "1.3.0";
100
+ declare const PACKAGE_VERSION = "1.3.2";
101
101
 
102
102
  export { PACKAGE_VERSION as P, type Theme as T, type ThemeName as a, brown as b, blue, green as g, themes as t, wood as w };
@@ -97,6 +97,6 @@ declare const themes: Readonly<{
97
97
  }>;
98
98
  /** Union of the built-in theme names. */
99
99
  type ThemeName = keyof typeof themes;
100
- declare const PACKAGE_VERSION = "1.3.0";
100
+ declare const PACKAGE_VERSION = "1.3.2";
101
101
 
102
102
  export { PACKAGE_VERSION as P, type Theme as T, type ThemeName as a, brown as b, blue, green as g, themes as t, wood as w };
package/dist/themes.cjs CHANGED
@@ -12,7 +12,7 @@ var themes = Object.freeze({
12
12
  green: chunkG6ZFOJZR_cjs.green,
13
13
  wood: chunkVYSVIIZA_cjs.wood
14
14
  });
15
- var PACKAGE_VERSION = "1.3.0";
15
+ var PACKAGE_VERSION = "1.3.2";
16
16
 
17
17
  Object.defineProperty(exports, "brown", {
18
18
  enumerable: true,
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/themes/index.ts"],"names":["brown","blue","green","wood"],"mappings":";;;;;;;;AAoCO,IAAM,MAAA,GAAS,OAAO,MAAA,CAAO;AAAA,SAClCA,uBAAA;AAAA,QACAC,sBAAA;AAAA,SACAC,uBAAA;AAAA,QACAC;AACF,CAAC;AAKM,IAAM,eAAA,GAAkB","file":"themes.cjs","sourcesContent":["/**\n * `gigaboard/themes` — CSS-variable-only board themes.\n *\n * Each theme ships as a frozen record of CSS custom-property pairs that the\n * React layer writes inline on the board container at first paint. Themes\n * are CSS-only and carry zero runtime cost beyond the one-time variable\n * assignment.\n *\n * Import sub-paths to keep bundles minimal:\n *\n * ```tsx\n * import { brown } from \"gigaboard/themes/brown\";\n * import { green } from \"gigaboard/themes/green\"; // chess.com default\n * import { blue } from \"gigaboard/themes/blue\";\n * import { wood } from \"gigaboard/themes/wood\";\n * ```\n *\n * Or pull the full set from the package root (convenient for theme pickers,\n * at a marginally larger bundle cost):\n *\n * ```tsx\n * import { brown, green, blue, wood } from \"gigaboard/themes\";\n * ```\n */\n\nimport { blue } from \"./blue.js\";\nimport { brown } from \"./brown.js\";\nimport { green } from \"./green.js\";\nimport { wood } from \"./wood.js\";\n\n/** Shape of a board theme: CSS custom-property pairs. */\nexport type Theme = Readonly<Record<string, string>>;\n\nexport { blue, brown, green, wood };\n\n/** Registry mapping a theme name to its theme object. */\nexport const themes = Object.freeze({\n brown,\n blue,\n green,\n wood,\n}) satisfies Readonly<Record<string, Theme>>;\n\n/** Union of the built-in theme names. */\nexport type ThemeName = keyof typeof themes;\n\nexport const PACKAGE_VERSION = \"1.3.0\";\n"]}
1
+ {"version":3,"sources":["../src/themes/index.ts"],"names":["brown","blue","green","wood"],"mappings":";;;;;;;;AAoCO,IAAM,MAAA,GAAS,OAAO,MAAA,CAAO;AAAA,SAClCA,uBAAA;AAAA,QACAC,sBAAA;AAAA,SACAC,uBAAA;AAAA,QACAC;AACF,CAAC;AAKM,IAAM,eAAA,GAAkB","file":"themes.cjs","sourcesContent":["/**\n * `gigaboard/themes` — CSS-variable-only board themes.\n *\n * Each theme ships as a frozen record of CSS custom-property pairs that the\n * React layer writes inline on the board container at first paint. Themes\n * are CSS-only and carry zero runtime cost beyond the one-time variable\n * assignment.\n *\n * Import sub-paths to keep bundles minimal:\n *\n * ```tsx\n * import { brown } from \"gigaboard/themes/brown\";\n * import { green } from \"gigaboard/themes/green\"; // chess.com default\n * import { blue } from \"gigaboard/themes/blue\";\n * import { wood } from \"gigaboard/themes/wood\";\n * ```\n *\n * Or pull the full set from the package root (convenient for theme pickers,\n * at a marginally larger bundle cost):\n *\n * ```tsx\n * import { brown, green, blue, wood } from \"gigaboard/themes\";\n * ```\n */\n\nimport { blue } from \"./blue.js\";\nimport { brown } from \"./brown.js\";\nimport { green } from \"./green.js\";\nimport { wood } from \"./wood.js\";\n\n/** Shape of a board theme: CSS custom-property pairs. */\nexport type Theme = Readonly<Record<string, string>>;\n\nexport { blue, brown, green, wood };\n\n/** Registry mapping a theme name to its theme object. */\nexport const themes = Object.freeze({\n brown,\n blue,\n green,\n wood,\n}) satisfies Readonly<Record<string, Theme>>;\n\n/** Union of the built-in theme names. */\nexport type ThemeName = keyof typeof themes;\n\nexport const PACKAGE_VERSION = \"1.3.2\";\n"]}
package/dist/themes.js CHANGED
@@ -14,7 +14,7 @@ var themes = Object.freeze({
14
14
  green,
15
15
  wood
16
16
  });
17
- var PACKAGE_VERSION = "1.3.0";
17
+ var PACKAGE_VERSION = "1.3.2";
18
18
 
19
19
  export { PACKAGE_VERSION, themes };
20
20
  //# sourceMappingURL=themes.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/themes/index.ts"],"names":[],"mappings":";;;;;;;;;;AAoCO,IAAM,MAAA,GAAS,OAAO,MAAA,CAAO;AAAA,EAClC,KAAA;AAAA,EACA,IAAA;AAAA,EACA,KAAA;AAAA,EACA;AACF,CAAC;AAKM,IAAM,eAAA,GAAkB","file":"themes.js","sourcesContent":["/**\n * `gigaboard/themes` — CSS-variable-only board themes.\n *\n * Each theme ships as a frozen record of CSS custom-property pairs that the\n * React layer writes inline on the board container at first paint. Themes\n * are CSS-only and carry zero runtime cost beyond the one-time variable\n * assignment.\n *\n * Import sub-paths to keep bundles minimal:\n *\n * ```tsx\n * import { brown } from \"gigaboard/themes/brown\";\n * import { green } from \"gigaboard/themes/green\"; // chess.com default\n * import { blue } from \"gigaboard/themes/blue\";\n * import { wood } from \"gigaboard/themes/wood\";\n * ```\n *\n * Or pull the full set from the package root (convenient for theme pickers,\n * at a marginally larger bundle cost):\n *\n * ```tsx\n * import { brown, green, blue, wood } from \"gigaboard/themes\";\n * ```\n */\n\nimport { blue } from \"./blue.js\";\nimport { brown } from \"./brown.js\";\nimport { green } from \"./green.js\";\nimport { wood } from \"./wood.js\";\n\n/** Shape of a board theme: CSS custom-property pairs. */\nexport type Theme = Readonly<Record<string, string>>;\n\nexport { blue, brown, green, wood };\n\n/** Registry mapping a theme name to its theme object. */\nexport const themes = Object.freeze({\n brown,\n blue,\n green,\n wood,\n}) satisfies Readonly<Record<string, Theme>>;\n\n/** Union of the built-in theme names. */\nexport type ThemeName = keyof typeof themes;\n\nexport const PACKAGE_VERSION = \"1.3.0\";\n"]}
1
+ {"version":3,"sources":["../src/themes/index.ts"],"names":[],"mappings":";;;;;;;;;;AAoCO,IAAM,MAAA,GAAS,OAAO,MAAA,CAAO;AAAA,EAClC,KAAA;AAAA,EACA,IAAA;AAAA,EACA,KAAA;AAAA,EACA;AACF,CAAC;AAKM,IAAM,eAAA,GAAkB","file":"themes.js","sourcesContent":["/**\n * `gigaboard/themes` — CSS-variable-only board themes.\n *\n * Each theme ships as a frozen record of CSS custom-property pairs that the\n * React layer writes inline on the board container at first paint. Themes\n * are CSS-only and carry zero runtime cost beyond the one-time variable\n * assignment.\n *\n * Import sub-paths to keep bundles minimal:\n *\n * ```tsx\n * import { brown } from \"gigaboard/themes/brown\";\n * import { green } from \"gigaboard/themes/green\"; // chess.com default\n * import { blue } from \"gigaboard/themes/blue\";\n * import { wood } from \"gigaboard/themes/wood\";\n * ```\n *\n * Or pull the full set from the package root (convenient for theme pickers,\n * at a marginally larger bundle cost):\n *\n * ```tsx\n * import { brown, green, blue, wood } from \"gigaboard/themes\";\n * ```\n */\n\nimport { blue } from \"./blue.js\";\nimport { brown } from \"./brown.js\";\nimport { green } from \"./green.js\";\nimport { wood } from \"./wood.js\";\n\n/** Shape of a board theme: CSS custom-property pairs. */\nexport type Theme = Readonly<Record<string, string>>;\n\nexport { blue, brown, green, wood };\n\n/** Registry mapping a theme name to its theme object. */\nexport const themes = Object.freeze({\n brown,\n blue,\n green,\n wood,\n}) satisfies Readonly<Record<string, Theme>>;\n\n/** Union of the built-in theme names. */\nexport type ThemeName = keyof typeof themes;\n\nexport const PACKAGE_VERSION = \"1.3.2\";\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gigaboard",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "Ultra-fast React chessboard with owned state, byte-scoped subscriptions, refs-only drag, polished default theme and pieces, sounds, arrows, premoves, and SSR static rendering.",
5
5
  "license": "MIT",
6
6
  "author": "Yahor Barkouski (forked as gigaboard)",