@expo/html-elements 58.0.0 → 58.0.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 +10 -0
- package/build/css/createSafeStyledView.native.d.ts +1 -1
- package/build/elements/Anchor.d.ts +1 -1
- package/build/elements/Lists.d.ts +1 -1
- package/build/elements/Rules.d.ts +1 -1
- package/build/elements/Table.d.ts +8 -8
- package/build/elements/Text.d.ts +11 -11
- package/build/primitives/View.d.ts +3 -3
- package/build/primitives/createDevView.d.ts +1 -1
- package/package.json +3 -3
- package/src/primitives/View.tsx +3 -3
- package/.npmignore +0 -3
- package/.tsbuildinfo +0 -1
- package/.turbo/turbo-build.log +0 -24
- package/.turbo/turbo-depscheck.log +0 -1
- package/.turbo/turbo-test.log +0 -22
- package/.turbo/turbo-typecheck.log +0 -1
- package/babel/jest.config.js +0 -8
- package/jest-setup.js +0 -1
- package/tsconfig.json +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,16 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 58.0.2 — 2026-09-21
|
|
14
|
+
|
|
15
|
+
_This version does not introduce any user-facing changes._
|
|
16
|
+
|
|
17
|
+
## 58.0.1 — 2026-09-14
|
|
18
|
+
|
|
19
|
+
### 💡 Others
|
|
20
|
+
|
|
21
|
+
- Upgrade React Native to 0.88.0-rc.0 ([#49910](https://github.com/expo/expo/pull/49910) by [@gabrieldonadel](https://github.com/gabrieldonadel))
|
|
22
|
+
|
|
13
23
|
## 58.0.0 — 2026-09-10
|
|
14
24
|
|
|
15
25
|
### 🐛 Bug fixes
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare function createSafeStyledView<TView extends React.ComponentType<any>>(View: TView): ({ style, ...props }: any) =>
|
|
2
|
+
export declare function createSafeStyledView<TView extends React.ComponentType<any>>(View: TView): ({ style, ...props }: any) => React.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { LinkProps } from './Text.types';
|
|
2
|
-
export declare function A({ href, target, download, rel, ...props }: LinkProps): import("react
|
|
2
|
+
export declare function A({ href, target, download, rel, ...props }: LinkProps): import("react").JSX.Element;
|
|
@@ -3,5 +3,5 @@ import type { TextProps } from '../primitives/Text';
|
|
|
3
3
|
import type { ViewProps } from '../primitives/View';
|
|
4
4
|
export declare const UL: ComponentType<ViewProps>;
|
|
5
5
|
type LIProps = TextProps | ViewProps;
|
|
6
|
-
export declare function LI(props: PropsWithChildren<LIProps>): import("react
|
|
6
|
+
export declare function LI(props: PropsWithChildren<LIProps>): import("react").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ViewProps } from '../primitives/View';
|
|
2
|
-
export declare function HR(props: ViewProps): import("react
|
|
2
|
+
export declare function HR(props: ViewProps): import("react").JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { TableTextProps } from '../primitives/Table';
|
|
2
2
|
import type { TextProps } from '../primitives/Text';
|
|
3
3
|
import type { ViewProps } from '../primitives/View';
|
|
4
|
-
export declare function Table(props: ViewProps): import("react
|
|
5
|
-
export declare function THead(props: ViewProps): import("react
|
|
6
|
-
export declare function TBody(props: ViewProps): import("react
|
|
7
|
-
export declare function TFoot(props: ViewProps): import("react
|
|
8
|
-
export declare function TH(props: TableTextProps): import("react
|
|
9
|
-
export declare function TR(props: ViewProps): import("react
|
|
10
|
-
export declare function TD(props: TableTextProps): import("react
|
|
11
|
-
export declare function Caption(props: TextProps): import("react
|
|
4
|
+
export declare function Table(props: ViewProps): import("react").JSX.Element;
|
|
5
|
+
export declare function THead(props: ViewProps): import("react").JSX.Element;
|
|
6
|
+
export declare function TBody(props: ViewProps): import("react").JSX.Element;
|
|
7
|
+
export declare function TFoot(props: ViewProps): import("react").JSX.Element;
|
|
8
|
+
export declare function TH(props: TableTextProps): import("react").JSX.Element;
|
|
9
|
+
export declare function TR(props: ViewProps): import("react").JSX.Element;
|
|
10
|
+
export declare function TD(props: TableTextProps): import("react").JSX.Element;
|
|
11
|
+
export declare function Caption(props: TextProps): import("react").JSX.Element;
|
package/build/elements/Text.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import type { TextProps } from '../primitives/Text';
|
|
2
2
|
import type { ViewProps } from '../primitives/View';
|
|
3
3
|
import type { BlockQuoteProps, QuoteProps, TimeProps } from './Text.types';
|
|
4
|
-
export declare function P({ style, ...props }: TextProps): import("react
|
|
5
|
-
export declare function B({ style, ...props }: TextProps): import("react
|
|
6
|
-
export declare function S({ style, ...props }: TextProps): import("react
|
|
7
|
-
export declare function I({ style, ...props }: TextProps): import("react
|
|
8
|
-
export declare function Q({ children, cite, style, ...props }: QuoteProps): import("react
|
|
9
|
-
export declare function BlockQuote({ style, cite, ...props }: BlockQuoteProps): import("react
|
|
10
|
-
export declare function BR({ style, ...props }: TextProps): import("react
|
|
11
|
-
export declare function Mark({ style, ...props }: TextProps): import("react
|
|
12
|
-
export declare function Code({ style, ...props }: TextProps): import("react
|
|
4
|
+
export declare function P({ style, ...props }: TextProps): import("react").JSX.Element;
|
|
5
|
+
export declare function B({ style, ...props }: TextProps): import("react").JSX.Element;
|
|
6
|
+
export declare function S({ style, ...props }: TextProps): import("react").JSX.Element;
|
|
7
|
+
export declare function I({ style, ...props }: TextProps): import("react").JSX.Element;
|
|
8
|
+
export declare function Q({ children, cite, style, ...props }: QuoteProps): import("react").JSX.Element;
|
|
9
|
+
export declare function BlockQuote({ style, cite, ...props }: BlockQuoteProps): import("react").JSX.Element;
|
|
10
|
+
export declare function BR({ style, ...props }: TextProps): import("react").JSX.Element;
|
|
11
|
+
export declare function Mark({ style, ...props }: TextProps): import("react").JSX.Element;
|
|
12
|
+
export declare function Code({ style, ...props }: TextProps): import("react").JSX.Element;
|
|
13
13
|
type PreProps = TextProps | ViewProps;
|
|
14
|
-
export declare function Pre(props: PreProps): import("react
|
|
15
|
-
export declare function Time({ dateTime, ...props }: TimeProps): import("react
|
|
14
|
+
export declare function Pre(props: PreProps): import("react").JSX.Element;
|
|
15
|
+
export declare function Time({ dateTime, ...props }: TimeProps): import("react").JSX.Element;
|
|
16
16
|
export declare const Strong: typeof B;
|
|
17
17
|
export declare const Del: typeof S;
|
|
18
18
|
export declare const EM: typeof I;
|
|
@@ -34,11 +34,11 @@ export interface WebViewStyle {
|
|
|
34
34
|
/** @platform web */
|
|
35
35
|
backgroundOrigin?: 'border-box' | 'content-box' | 'padding-box';
|
|
36
36
|
/** @platform web */
|
|
37
|
-
backgroundPosition?: string;
|
|
37
|
+
backgroundPosition?: NativeViewStyle['backgroundPosition'] | string;
|
|
38
38
|
/** @platform web */
|
|
39
|
-
backgroundRepeat?: string;
|
|
39
|
+
backgroundRepeat?: NativeViewStyle['backgroundRepeat'] | string;
|
|
40
40
|
/** @platform web */
|
|
41
|
-
backgroundSize?: string;
|
|
41
|
+
backgroundSize?: NativeViewStyle['backgroundSize'] | string;
|
|
42
42
|
/** @platform web */
|
|
43
43
|
boxShadow?: string | readonly BoxShadowValue[];
|
|
44
44
|
/** @platform web */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
/** Extend a view with a `children` filter that asserts more helpful warnings/errors. */
|
|
3
|
-
export declare function createDevView<TView extends React.ComponentType<any>>(View: TView): ({ children, ...props }: any) =>
|
|
3
|
+
export declare function createDevView<TView extends React.ComponentType<any>>(View: TView): ({ children, ...props }: any) => React.JSX.Element;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/html-elements",
|
|
3
|
-
"version": "58.0.
|
|
3
|
+
"version": "58.0.2",
|
|
4
4
|
"description": "Universal semantic HTML React components for iOS, Android, web, and desktop",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"expo",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@testing-library/jest-dom": "^6.6.3",
|
|
48
48
|
"@testing-library/react": "^16.3.0",
|
|
49
49
|
"@testing-library/react-native": "^13.3.0",
|
|
50
|
-
"@types/react": "~19.
|
|
50
|
+
"@types/react": "~19.3.0",
|
|
51
51
|
"expo-module-scripts": "56.0.3"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
}
|
|
86
86
|
]
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "ebb1fd7569c9c9e172cb9abd73dfede027c1d674",
|
|
89
89
|
"scripts": {
|
|
90
90
|
"build": "expo-build src",
|
|
91
91
|
"clean": "expo-module clean",
|
package/src/primitives/View.tsx
CHANGED
|
@@ -48,11 +48,11 @@ export interface WebViewStyle {
|
|
|
48
48
|
/** @platform web */
|
|
49
49
|
backgroundOrigin?: 'border-box' | 'content-box' | 'padding-box';
|
|
50
50
|
/** @platform web */
|
|
51
|
-
backgroundPosition?: string;
|
|
51
|
+
backgroundPosition?: NativeViewStyle['backgroundPosition'] | string;
|
|
52
52
|
/** @platform web */
|
|
53
|
-
backgroundRepeat?: string;
|
|
53
|
+
backgroundRepeat?: NativeViewStyle['backgroundRepeat'] | string;
|
|
54
54
|
/** @platform web */
|
|
55
|
-
backgroundSize?: string;
|
|
55
|
+
backgroundSize?: NativeViewStyle['backgroundSize'] | string;
|
|
56
56
|
/** @platform web */
|
|
57
57
|
boxShadow?: string | readonly BoxShadowValue[];
|
|
58
58
|
/** @platform web */
|
package/.npmignore
DELETED
package/.tsbuildinfo
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":"6.0.3"}
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
$ expo-build src
|
|
2
|
-
src/Elements.tsx
|
|
3
|
-
src/css/createSafeStyledView.native.tsx
|
|
4
|
-
src/css/createSafeStyledView.tsx
|
|
5
|
-
src/css/filterStyles.ts
|
|
6
|
-
src/css/units.ts
|
|
7
|
-
src/elements/Anchor.tsx
|
|
8
|
-
src/elements/Headings.tsx
|
|
9
|
-
src/elements/Layout.tsx
|
|
10
|
-
src/elements/Lists.tsx
|
|
11
|
-
src/elements/Rules.tsx
|
|
12
|
-
src/elements/Rules.web.tsx
|
|
13
|
-
src/elements/Table.tsx
|
|
14
|
-
src/elements/Table.web.tsx
|
|
15
|
-
src/elements/Text.tsx
|
|
16
|
-
src/elements/Text.types.ts
|
|
17
|
-
src/primitives/Image.tsx
|
|
18
|
-
src/primitives/RNWView.tsx
|
|
19
|
-
src/primitives/Table.tsx
|
|
20
|
-
src/primitives/Text.tsx
|
|
21
|
-
src/primitives/View.tsx
|
|
22
|
-
src/primitives/createDevView.tsx
|
|
23
|
-
src/ts-declarations/process.d.ts
|
|
24
|
-
src/ts-declarations/react-native-web.d.ts
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
$ expo-module depscheck
|
package/.turbo/turbo-test.log
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
$ pnpm test:babel && pnpm test:src
|
|
2
|
-
$ jest --config babel/jest.config.js
|
|
3
|
-
node:internal/modules/cjs/loader:1404
|
|
4
|
-
throw err;
|
|
5
|
-
^
|
|
6
|
-
|
|
7
|
-
Error: Cannot find module '/Users/alanhughes/Work/expo/node_modules/.pnpm/jest@29.7.0_@types+node@22.19.15_ts-node@10.9.2_@swc+core@1.15.18_@types+node@22.19.15_typescript@6.0.3_/node_modules/jest/bin/jest.js'
|
|
8
|
-
[90m at Function._resolveFilename (node:internal/modules/cjs/loader:1401:15)[39m
|
|
9
|
-
[90m at defaultResolveImpl (node:internal/modules/cjs/loader:1057:19)[39m
|
|
10
|
-
[90m at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1062:22)[39m
|
|
11
|
-
[90m at Function._load (node:internal/modules/cjs/loader:1211:37)[39m
|
|
12
|
-
[90m at TracingChannel.traceSync (node:diagnostics_channel:322:14)[39m
|
|
13
|
-
[90m at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)[39m
|
|
14
|
-
[90m at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5)[39m
|
|
15
|
-
[90m at node:internal/main/run_main_module:36:49[39m {
|
|
16
|
-
code: [32m'MODULE_NOT_FOUND'[39m,
|
|
17
|
-
requireStack: []
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
Node.js v22.17.0
|
|
21
|
-
[ELIFECYCLE] Command failed with exit code 1.
|
|
22
|
-
[ELIFECYCLE] Test failed. See above for more details.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
$ tsc -p tsconfig.json
|
package/babel/jest.config.js
DELETED
package/jest-setup.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@testing-library/jest-dom';
|