@astryxdesign/native 0.7.5-canary.dae1747 → 0.7.5-canary.dc5a8cf

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/native",
3
- "version": "0.7.5-canary.dae1747",
3
+ "version": "0.7.5-canary.dc5a8cf",
4
4
  "description": "Experimental native platforms for Astryx (iOS, Android, macOS, Windows) — published to npm only under the @canary dist-tag; never released as a stable (latest) version.",
5
5
  "author": "Meta Open Source",
6
6
  "license": "MIT",
@@ -70,10 +70,10 @@
70
70
  }
71
71
  },
72
72
  "peerDependencies": {
73
- "@astryxdesign/core": "0.7.5-canary.dae1747"
73
+ "@astryxdesign/core": "0.7.5-canary.dc5a8cf"
74
74
  },
75
75
  "devDependencies": {
76
- "@astryxdesign/core": "0.7.5-canary.dae1747"
76
+ "@astryxdesign/core": "0.7.5-canary.dc5a8cf"
77
77
  },
78
78
  "scripts": {
79
79
  "build": "node ../../scripts/clean-dist.mjs && tsc --project tsconfig.build.json && node scripts/generate.mjs --types",
@@ -117,7 +117,15 @@ describe('native contracts', () => {
117
117
  expect(icon!.core.icon).toMatchObject({type: {kind: 'icon'}});
118
118
  expect(icon!.core.icon.optional).toBe(false);
119
119
  expect(Object.keys(icon!.core)).toEqual(['icon', 'color', 'size', 'label']);
120
- expect(icon!.webOnly.map(prop => prop.name)).toEqual(['xstyle']);
120
+ // `variant` names come from core's augmentable `IconVariantMap`, which has
121
+ // no portable definition yet, so the prop stays on the web.
122
+ expect(icon!.webOnly).toEqual([
123
+ {
124
+ name: 'variant',
125
+ reason: 'type "IconVariant" has no portable definition yet',
126
+ },
127
+ {name: 'xstyle', reason: 'web styling input'},
128
+ ]);
121
129
 
122
130
  const swift = generateSwift(contracts);
123
131
  expect(swift['Icon.swift']).toContain('public var icon: IconName');