@ankhorage/zora-tabletop 0.1.1 → 0.1.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @ankhorage/zora-tabletop
2
2
 
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 952a91d: Align plugin placement metadata with ZORA 19 extension hosts, validate composition against ZORA 19.0.1, and refresh the development dependency baseline.
8
+
3
9
  ## 0.1.1
4
10
 
5
11
  ### Patch Changes
package/dist/plugin.d.ts CHANGED
@@ -268,10 +268,10 @@ export declare const ZORA_TABLETOP_PLUGIN: {
268
268
  };
269
269
  readonly placements: readonly [{
270
270
  readonly child: "PokerTrainingTable";
271
- readonly parents: readonly ["Box", "Card", "Container", "Grid", "Panel", "Screen", "ScreenSection", "Stack"];
271
+ readonly parents: readonly ["Card", "Grid", "Screen", "ScreenSection", "View"];
272
272
  }, {
273
273
  readonly child: "TabletopTable";
274
- readonly parents: readonly ["Box", "Card", "Container", "Grid", "Panel", "Screen", "ScreenSection", "Stack"];
274
+ readonly parents: readonly ["Card", "Grid", "Screen", "ScreenSection", "View"];
275
275
  }];
276
276
  };
277
277
  //# sourceMappingURL=plugin.d.ts.map
@@ -513,10 +513,10 @@ export declare const ZORA_PLUGIN_METADATA: {
513
513
  };
514
514
  readonly placements: readonly [{
515
515
  readonly child: "PokerTrainingTable";
516
- readonly parents: readonly ["Box", "Card", "Container", "Grid", "Panel", "Screen", "ScreenSection", "Stack"];
516
+ readonly parents: readonly ["Card", "Grid", "Screen", "ScreenSection", "View"];
517
517
  }, {
518
518
  readonly child: "TabletopTable";
519
- readonly parents: readonly ["Box", "Card", "Container", "Grid", "Panel", "Screen", "ScreenSection", "Stack"];
519
+ readonly parents: readonly ["Card", "Grid", "Screen", "ScreenSection", "View"];
520
520
  }];
521
521
  };
522
522
  //# sourceMappingURL=registry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG/B,CAAC;AAEX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcvB,CAAC"}
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG/B,CAAC;AAIX,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcvB,CAAC"}
package/dist/registry.js CHANGED
@@ -4,6 +4,7 @@ export const ZORA_TABLETOP_COMPONENT_META = {
4
4
  PokerTrainingTable: pokerTrainingTableMeta,
5
5
  TabletopTable: tabletopTableMeta,
6
6
  };
7
+ const TABLETOP_PLACEMENT_PARENTS = ['Card', 'Grid', 'Screen', 'ScreenSection', 'View'];
7
8
  export const ZORA_PLUGIN_METADATA = {
8
9
  packageName: '@ankhorage/zora-tabletop',
9
10
  displayName: 'ZORA Tabletop',
@@ -11,11 +12,11 @@ export const ZORA_PLUGIN_METADATA = {
11
12
  placements: [
12
13
  {
13
14
  child: 'PokerTrainingTable',
14
- parents: ['Box', 'Card', 'Container', 'Grid', 'Panel', 'Screen', 'ScreenSection', 'Stack'],
15
+ parents: TABLETOP_PLACEMENT_PARENTS,
15
16
  },
16
17
  {
17
18
  child: 'TabletopTable',
18
- parents: ['Box', 'Card', 'Container', 'Grid', 'Panel', 'Screen', 'ScreenSection', 'Stack'],
19
+ parents: TABLETOP_PLACEMENT_PARENTS,
19
20
  },
20
21
  ],
21
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,uEAAuE,CAAC;AAC/G,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAE3C,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,kBAAkB,EAAE,sBAAsB;IAC1C,aAAa,EAAE,iBAAiB;CACxB,CAAC;AAEX,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,WAAW,EAAE,0BAA0B;IACvC,WAAW,EAAE,eAAe;IAC5B,aAAa,EAAE,4BAA4B;IAC3C,UAAU,EAAE;QACV;YACE,KAAK,EAAE,oBAAoB;YAC3B,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,OAAO,CAAC;SAC3F;QACD;YACE,KAAK,EAAE,eAAe;YACtB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,OAAO,CAAC;SAC3F;KACF;CACO,CAAC","sourcesContent":["import { pokerTrainingTableMeta } from './features/game-presentations/adapters/inbound/pokerTrainingTableMeta';\nimport { tabletopTableMeta } from './meta';\n\nexport const ZORA_TABLETOP_COMPONENT_META = {\n PokerTrainingTable: pokerTrainingTableMeta,\n TabletopTable: tabletopTableMeta,\n} as const;\n\nexport const ZORA_PLUGIN_METADATA = {\n packageName: '@ankhorage/zora-tabletop',\n displayName: 'ZORA Tabletop',\n componentMeta: ZORA_TABLETOP_COMPONENT_META,\n placements: [\n {\n child: 'PokerTrainingTable',\n parents: ['Box', 'Card', 'Container', 'Grid', 'Panel', 'Screen', 'ScreenSection', 'Stack'],\n },\n {\n child: 'TabletopTable',\n parents: ['Box', 'Card', 'Container', 'Grid', 'Panel', 'Screen', 'ScreenSection', 'Stack'],\n },\n ],\n} as const;\n"]}
1
+ {"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,uEAAuE,CAAC;AAC/G,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAE3C,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,kBAAkB,EAAE,sBAAsB;IAC1C,aAAa,EAAE,iBAAiB;CACxB,CAAC;AAEX,MAAM,0BAA0B,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,CAAU,CAAC;AAEhG,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,WAAW,EAAE,0BAA0B;IACvC,WAAW,EAAE,eAAe;IAC5B,aAAa,EAAE,4BAA4B;IAC3C,UAAU,EAAE;QACV;YACE,KAAK,EAAE,oBAAoB;YAC3B,OAAO,EAAE,0BAA0B;SACpC;QACD;YACE,KAAK,EAAE,eAAe;YACtB,OAAO,EAAE,0BAA0B;SACpC;KACF;CACO,CAAC","sourcesContent":["import { pokerTrainingTableMeta } from './features/game-presentations/adapters/inbound/pokerTrainingTableMeta';\nimport { tabletopTableMeta } from './meta';\n\nexport const ZORA_TABLETOP_COMPONENT_META = {\n PokerTrainingTable: pokerTrainingTableMeta,\n TabletopTable: tabletopTableMeta,\n} as const;\n\nconst TABLETOP_PLACEMENT_PARENTS = ['Card', 'Grid', 'Screen', 'ScreenSection', 'View'] as const;\n\nexport const ZORA_PLUGIN_METADATA = {\n packageName: '@ankhorage/zora-tabletop',\n displayName: 'ZORA Tabletop',\n componentMeta: ZORA_TABLETOP_COMPONENT_META,\n placements: [\n {\n child: 'PokerTrainingTable',\n parents: TABLETOP_PLACEMENT_PARENTS,\n },\n {\n child: 'TabletopTable',\n parents: TABLETOP_PLACEMENT_PARENTS,\n },\n ],\n} as const;\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ankhorage/zora-tabletop",
3
3
  "type": "module",
4
- "version": "0.1.1",
4
+ "version": "0.1.2",
5
5
  "description": "Tabletop and card-game UI primitives for React Native and React Native Web, built on ZORA.",
6
6
  "homepage": "https://github.com/ankhorage/zora-tabletop#readme",
7
7
  "bugs": {
@@ -76,8 +76,7 @@
76
76
  "devDependencies": {
77
77
  "@ankhorage/devtools": "^1.11.11",
78
78
  "@ankhorage/paradox": "^0.1.24",
79
- "@ankhorage/zora": "^4.2.2",
80
- "@react-native-picker/picker": "2.11.4",
79
+ "@ankhorage/zora": "^19.0.1",
81
80
  "@react-native-vector-icons/fontawesome": "^13.1.3",
82
81
  "@react-native-vector-icons/fontawesome5": "^13.1.3",
83
82
  "@react-native-vector-icons/fontawesome6": "^13.1.3",
package/src/meta.test.ts CHANGED
@@ -1,8 +1,9 @@
1
+ import { composeZoraPluginMetadata, ZORA_CORE_PLUGIN_METADATA } from '@ankhorage/zora/metadata';
1
2
  import { describe, expect, test } from 'bun:test';
2
3
 
3
4
  import { pokerTrainingTableMeta } from './features/game-presentations/adapters/inbound/pokerTrainingTableMeta';
4
5
  import { tabletopTableMeta } from './meta';
5
- import { ZORA_TABLETOP_COMPONENT_META } from './registry';
6
+ import { ZORA_PLUGIN_METADATA, ZORA_TABLETOP_COMPONENT_META } from './registry';
6
7
 
7
8
  describe('ZORA tabletop component metadata', () => {
8
9
  test('exposes TabletopTable as a directly authorable manifest node', () => {
@@ -52,3 +53,15 @@ describe('ZORA tabletop component metadata', () => {
52
53
  ]);
53
54
  });
54
55
  });
56
+
57
+ describe('ZORA 19 plugin composition', () => {
58
+ test('uses only declared core extension hosts', () => {
59
+ expect(() =>
60
+ composeZoraPluginMetadata([ZORA_CORE_PLUGIN_METADATA, ZORA_PLUGIN_METADATA]),
61
+ ).not.toThrow();
62
+ expect(ZORA_PLUGIN_METADATA.placements.map((placement) => placement.parents)).toEqual([
63
+ ['Card', 'Grid', 'Screen', 'ScreenSection', 'View'],
64
+ ['Card', 'Grid', 'Screen', 'ScreenSection', 'View'],
65
+ ]);
66
+ });
67
+ });
package/src/registry.ts CHANGED
@@ -6,6 +6,8 @@ export const ZORA_TABLETOP_COMPONENT_META = {
6
6
  TabletopTable: tabletopTableMeta,
7
7
  } as const;
8
8
 
9
+ const TABLETOP_PLACEMENT_PARENTS = ['Card', 'Grid', 'Screen', 'ScreenSection', 'View'] as const;
10
+
9
11
  export const ZORA_PLUGIN_METADATA = {
10
12
  packageName: '@ankhorage/zora-tabletop',
11
13
  displayName: 'ZORA Tabletop',
@@ -13,11 +15,11 @@ export const ZORA_PLUGIN_METADATA = {
13
15
  placements: [
14
16
  {
15
17
  child: 'PokerTrainingTable',
16
- parents: ['Box', 'Card', 'Container', 'Grid', 'Panel', 'Screen', 'ScreenSection', 'Stack'],
18
+ parents: TABLETOP_PLACEMENT_PARENTS,
17
19
  },
18
20
  {
19
21
  child: 'TabletopTable',
20
- parents: ['Box', 'Card', 'Container', 'Grid', 'Panel', 'Screen', 'ScreenSection', 'Stack'],
22
+ parents: TABLETOP_PLACEMENT_PARENTS,
21
23
  },
22
24
  ],
23
25
  } as const;