@ankhorage/zora 4.0.0 → 4.1.0

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
  # Changelog
2
2
 
3
+ ## 4.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 39967b9: Expose SVG `source` rendering through the existing ZORA `Icon` component.
8
+
3
9
  ## 4.0.0
4
10
 
5
11
  ### Major Changes
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
4
4
  export type IconProps = ZoraBaseProps & SurfaceIconProps;
5
5
  /***
6
- * Renders an icon from a configured icon provider with theme-aware defaults.
6
+ * Renders either a named font icon or an SVG source through Surface with theme-aware defaults.
7
7
  */
8
8
  export declare const Icon: (props: IconProps) => React.ReactElement | null;
9
9
  //# sourceMappingURL=Icon.d.ts.map
@@ -5,7 +5,7 @@ function IconInner({ themeId: _themeId, mode: _mode, interactionPolicy: _interac
5
5
  return <SurfaceIcon {...props}/>;
6
6
  }
7
7
  /***
8
- * Renders an icon from a configured icon provider with theme-aware defaults.
8
+ * Renders either a named font icon or an SVG source through Surface with theme-aware defaults.
9
9
  */
10
10
  export const Icon = withZoraThemeScope(IconInner);
11
11
  //# sourceMappingURL=Icon.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/components/icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,WAAW,EAAsC,MAAM,oBAAoB,CAAC;AAC7F,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAKpE,SAAS,SAAS,CAAC,EACjB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,iBAAiB,EAAE,kBAAkB,EACrC,GAAG,KAAK,EACE;IACV,OAAO,CAAC,WAAW,CAAC,IAAI,KAAK,CAAC,EAAG,CAAC;AACpC,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAC","sourcesContent":["import { Icon as SurfaceIcon, type IconProps as SurfaceIconProps } from '@ankhorage/surface';\nimport React from 'react';\n\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\n\nexport type IconProps = ZoraBaseProps & SurfaceIconProps;\n\nfunction IconInner({\n themeId: _themeId,\n mode: _mode,\n interactionPolicy: _interactionPolicy,\n ...props\n}: IconProps) {\n return <SurfaceIcon {...props} />;\n}\n\n/***\n * Renders an icon from a configured icon provider with theme-aware defaults.\n */\nexport const Icon = withZoraThemeScope(IconInner);\n"]}
1
+ {"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/components/icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,WAAW,EAAsC,MAAM,oBAAoB,CAAC;AAC7F,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAKpE,SAAS,SAAS,CAAC,EACjB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,iBAAiB,EAAE,kBAAkB,EACrC,GAAG,KAAK,EACE;IACV,OAAO,CAAC,WAAW,CAAC,IAAI,KAAK,CAAC,EAAG,CAAC;AACpC,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAC","sourcesContent":["import { Icon as SurfaceIcon, type IconProps as SurfaceIconProps } from '@ankhorage/surface';\nimport React from 'react';\n\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\n\nexport type IconProps = ZoraBaseProps & SurfaceIconProps;\n\nfunction IconInner({\n themeId: _themeId,\n mode: _mode,\n interactionPolicy: _interactionPolicy,\n ...props\n}: IconProps) {\n return <SurfaceIcon {...props} />;\n}\n\n/***\n * Renders either a named font icon or an SVG source through Surface with theme-aware defaults.\n */\nexport const Icon = withZoraThemeScope(IconInner);\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ankhorage/zora",
3
3
  "type": "module",
4
- "version": "4.0.0",
4
+ "version": "4.1.0",
5
5
  "description": "Opinionated React Native and React Native Web UI kit built on @ankhorage/surface.",
6
6
  "homepage": "https://github.com/ankhorage/zora#readme",
7
7
  "bugs": {
@@ -33,12 +33,13 @@
33
33
  "react": "19.2.3",
34
34
  "react-native": "0.86.x",
35
35
  "react-native-safe-area-context": "~5.7.0",
36
+ "react-native-svg": "15.15.4",
36
37
  "react-native-web": "~0.21.0"
37
38
  },
38
39
  "dependencies": {
39
40
  "@ankhorage/color-theory": "^0.3.0",
40
41
  "@ankhorage/contracts": "^8.0.2",
41
- "@ankhorage/surface": "^3.3.0"
42
+ "@ankhorage/surface": "^3.4.1"
42
43
  },
43
44
  "files": [
44
45
  "dist",
@@ -94,7 +95,7 @@
94
95
  "version-packages": "ankhorage-changeset version"
95
96
  },
96
97
  "devDependencies": {
97
- "@ankhorage/devtools": "^1.9.4",
98
+ "@ankhorage/devtools": "^1.10.4",
98
99
  "@ankhorage/paradox": "^0.1.24",
99
100
  "@react-native-picker/picker": "2.11.4",
100
101
  "@react-native-vector-icons/fontawesome": "^13.1.3",
@@ -111,6 +112,7 @@
111
112
  "react-dom": "19.2.3",
112
113
  "react-native": "0.86.3",
113
114
  "react-native-safe-area-context": "~5.7.0",
115
+ "react-native-svg": "15.15.4",
114
116
  "react-native-web": "~0.21.0",
115
117
  "typescript": "~6.0.3"
116
118
  },
@@ -16,6 +16,6 @@ function IconInner({
16
16
  }
17
17
 
18
18
  /***
19
- * Renders an icon from a configured icon provider with theme-aware defaults.
19
+ * Renders either a named font icon or an SVG source through Surface with theme-aware defaults.
20
20
  */
21
21
  export const Icon = withZoraThemeScope(IconInner);
@@ -60,6 +60,8 @@ describe('portable ZORA package boundary', () => {
60
60
  expect(readValue(dependencies, '@ankhorage/contracts')).toMatch(CARET_SEMVER_RANGE);
61
61
  expect(peers.react).toMatch(EXACT_SEMVER_VERSION);
62
62
  expect(readValue(peers, 'react-native')).toMatch(MINOR_WILDCARD_SEMVER_RANGE);
63
+ expect(readValue(peers, 'react-native-svg')).toBe('15.15.4');
64
+ expect(readValue(development, 'react-native-svg')).toBe('15.15.4');
63
65
  expect(readValue(peers, 'react-native-web')).toMatch(TILDE_SEMVER_RANGE);
64
66
  expect(development.typescript).toMatch(TILDE_SEMVER_RANGE);
65
67
 
@@ -9,6 +9,6 @@ test('passes the isolated Surface 3 and RN Web 0.21 acceptance suite', () => {
9
9
  const output = `${subprocess.stdout.toString()}\n${subprocess.stderr.toString()}`;
10
10
 
11
11
  expect(subprocess.exitCode, output).toBe(0);
12
- expect(output).toContain('4 pass');
12
+ expect(output).toContain('5 pass');
13
13
  expect(output).toContain('0 fail');
14
14
  });