@tamagui/static 1.0.1-beta.160 → 1.0.1-beta.161
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/types.js.map +1 -1
- package/package.json +14 -13
- package/src/types.ts +3 -26
- package/types/types.d.ts +2 -21
package/dist/types.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/types.ts"],
|
|
4
|
-
"sourcesContent": ["import type { NodePath } from '@babel/traverse'\nimport * as t from '@babel/types'\nimport type { PseudoStyles, StaticConfig } from '@tamagui/core-node'\nimport type { StyleObject } from '@tamagui/helpers'\nimport type { ViewStyle } from 'react-native'\n\nexport type { StyleObject } from '@tamagui/helpers'\n\nexport type ClassNameObject = t.StringLiteral | t.Expression\n\nexport interface CacheObject {\n [key: string]: any\n}\n\nexport interface LogOptions {\n clear?: boolean\n timestamp?: boolean\n error?: Error | null\n}\n\nexport interface Logger {\n info(msg: string, options?: LogOptions): void\n warn(msg: string, options?: LogOptions): void\n error(msg: string, options?: LogOptions): void\n}\n\nexport type ExtractorOptions = {\n logger?: Logger\n}\n\nexport
|
|
4
|
+
"sourcesContent": ["import type { NodePath } from '@babel/traverse'\nimport * as t from '@babel/types'\nimport type { PseudoStyles, StaticConfig } from '@tamagui/core-node'\nimport type { StyleObject } from '@tamagui/helpers'\nimport type { TamaguiOptions } from '@tamagui/helpers-node'\nimport type { ViewStyle } from 'react-native'\n\nexport type { TamaguiOptions } from '@tamagui/helpers-node'\n\nexport type { StyleObject } from '@tamagui/helpers'\n\nexport type ClassNameObject = t.StringLiteral | t.Expression\n\nexport interface CacheObject {\n [key: string]: any\n}\n\nexport interface LogOptions {\n clear?: boolean\n timestamp?: boolean\n error?: Error | null\n}\n\nexport interface Logger {\n info(msg: string, options?: LogOptions): void\n warn(msg: string, options?: LogOptions): void\n error(msg: string, options?: LogOptions): void\n}\n\nexport type ExtractorOptions = {\n logger?: Logger\n}\n\nexport type ExtractedAttrAttr = {\n type: 'attr'\n value: t.JSXAttribute | t.JSXSpreadAttribute\n}\n\nexport type ExtractedAttrStyle = {\n type: 'style'\n value: ViewStyle & PseudoStyles\n attr?: t.JSXAttribute | t.JSXSpreadAttribute\n name?: string\n}\n\nexport type ExtractedAttr =\n | ExtractedAttrAttr\n | { type: 'ternary'; value: Ternary }\n | ExtractedAttrStyle\n\nexport type ExtractTagProps = {\n attrs: ExtractedAttr[]\n node: t.JSXOpeningElement\n attemptEval: (exprNode: t.Node, evalFn?: ((node: t.Node) => any) | undefined) => any\n jsxPath: NodePath<t.JSXElement>\n programPath: NodePath<t.Program>\n originalNodeName: string\n lineNumbers: string\n filePath: string\n isFlattened: boolean\n completeProps: Record<string, any>\n staticConfig: StaticConfig\n}\n\nexport type ExtractorParseProps = TamaguiOptions & {\n target: 'native' | 'html'\n sourcePath?: string\n shouldPrintDebug?: boolean | 'verbose'\n onExtractTag: (props: ExtractTagProps) => void\n getFlattenedNode: (props: { isTextView: boolean; tag: string }) => string\n extractStyledDefinitions?: boolean\n // identifer, rule\n onStyleRule?: (identifier: string, rules: string[]) => void\n}\n\nexport interface Ternary {\n test: t.Expression\n // shorthand props that don't use hooks\n inlineMediaQuery?: string\n remove: Function\n consequent: Object | null\n alternate: Object | null\n}\n\nexport type ClassNameToStyleObj = {\n [key: string]: StyleObject\n}\n\nexport interface PluginContext {\n write: (path: string, rules: { [key: string]: string }) => any\n}\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/static",
|
|
3
|
-
"version": "1.0.1-beta.
|
|
3
|
+
"version": "1.0.1-beta.161",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"types": "./types/index.d.ts",
|
|
6
6
|
"main": "dist",
|
|
@@ -37,16 +37,17 @@
|
|
|
37
37
|
"@babel/runtime": "^7.18.9",
|
|
38
38
|
"@babel/traverse": "^7.18.11",
|
|
39
39
|
"@expo/match-media": "^0.3.0",
|
|
40
|
-
"@tamagui/build": "^1.0.1-beta.
|
|
41
|
-
"@tamagui/cli-color": "^1.0.1-beta.
|
|
42
|
-
"@tamagui/config-default-node": "^1.0.1-beta.
|
|
43
|
-
"@tamagui/core-node": "^1.0.1-beta.
|
|
44
|
-
"@tamagui/fake-react-native": "^1.0.1-beta.
|
|
45
|
-
"@tamagui/helpers": "^1.0.1-beta.
|
|
46
|
-
"@tamagui/
|
|
47
|
-
"@tamagui/
|
|
48
|
-
"@tamagui/
|
|
49
|
-
"@tamagui/
|
|
40
|
+
"@tamagui/build": "^1.0.1-beta.161",
|
|
41
|
+
"@tamagui/cli-color": "^1.0.1-beta.161",
|
|
42
|
+
"@tamagui/config-default-node": "^1.0.1-beta.161",
|
|
43
|
+
"@tamagui/core-node": "^1.0.1-beta.161",
|
|
44
|
+
"@tamagui/fake-react-native": "^1.0.1-beta.161",
|
|
45
|
+
"@tamagui/helpers": "^1.0.1-beta.161",
|
|
46
|
+
"@tamagui/helpers-node": "^1.0.1-beta.161",
|
|
47
|
+
"@tamagui/patch-rnw": "^1.0.1-beta.161",
|
|
48
|
+
"@tamagui/proxy-worm": "^1.0.1-beta.161",
|
|
49
|
+
"@tamagui/react-native-svg": "^1.0.1-beta.161",
|
|
50
|
+
"@tamagui/shorthands": "^1.0.1-beta.161",
|
|
50
51
|
"babel-literal-to-ast": "^2.1.0",
|
|
51
52
|
"esbuild": "^0.15.6",
|
|
52
53
|
"esbuild-register": "^3.3.3",
|
|
@@ -54,8 +55,8 @@
|
|
|
54
55
|
"fs-extra": "^10.1.0",
|
|
55
56
|
"invariant": "^2.2.4",
|
|
56
57
|
"lodash": "^4.17.21",
|
|
57
|
-
"react-native-web-lite": "^1.0.1-beta.
|
|
58
|
-
"tamagui": "^1.0.1-beta.
|
|
58
|
+
"react-native-web-lite": "^1.0.1-beta.161",
|
|
59
|
+
"tamagui": "^1.0.1-beta.161"
|
|
59
60
|
},
|
|
60
61
|
"devDependencies": {
|
|
61
62
|
"@babel/plugin-syntax-typescript": "^7.18.6",
|
package/src/types.ts
CHANGED
|
@@ -2,8 +2,11 @@ import type { NodePath } from '@babel/traverse'
|
|
|
2
2
|
import * as t from '@babel/types'
|
|
3
3
|
import type { PseudoStyles, StaticConfig } from '@tamagui/core-node'
|
|
4
4
|
import type { StyleObject } from '@tamagui/helpers'
|
|
5
|
+
import type { TamaguiOptions } from '@tamagui/helpers-node'
|
|
5
6
|
import type { ViewStyle } from 'react-native'
|
|
6
7
|
|
|
8
|
+
export type { TamaguiOptions } from '@tamagui/helpers-node'
|
|
9
|
+
|
|
7
10
|
export type { StyleObject } from '@tamagui/helpers'
|
|
8
11
|
|
|
9
12
|
export type ClassNameObject = t.StringLiteral | t.Expression
|
|
@@ -28,32 +31,6 @@ export type ExtractorOptions = {
|
|
|
28
31
|
logger?: Logger
|
|
29
32
|
}
|
|
30
33
|
|
|
31
|
-
export interface TamaguiOptions {
|
|
32
|
-
// module paths you want to compile with tamagui (for example ['tamagui'])
|
|
33
|
-
components: string[]
|
|
34
|
-
// your tamagui.config.ts
|
|
35
|
-
config?: string
|
|
36
|
-
evaluateVars?: boolean
|
|
37
|
-
importsWhitelist?: string[]
|
|
38
|
-
disable?: boolean
|
|
39
|
-
disableExtraction?: boolean
|
|
40
|
-
disableDebugAttr?: boolean
|
|
41
|
-
disableExtractInlineMedia?: boolean
|
|
42
|
-
disableExtractVariables?: boolean
|
|
43
|
-
excludeReactNativeWebExports?: string[]
|
|
44
|
-
exclude?: RegExp
|
|
45
|
-
logTimings?: boolean
|
|
46
|
-
prefixLogs?: string
|
|
47
|
-
|
|
48
|
-
// probably non user options
|
|
49
|
-
cssPath?: string
|
|
50
|
-
cssData?: any
|
|
51
|
-
deoptProps?: Set<string>
|
|
52
|
-
excludeProps?: Set<string>
|
|
53
|
-
inlineProps?: Set<string>
|
|
54
|
-
forceExtractStyleDefinitions?: boolean
|
|
55
|
-
}
|
|
56
|
-
|
|
57
34
|
export type ExtractedAttrAttr = {
|
|
58
35
|
type: 'attr'
|
|
59
36
|
value: t.JSXAttribute | t.JSXSpreadAttribute
|
package/types/types.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import type { NodePath } from '@babel/traverse';
|
|
|
2
2
|
import * as t from '@babel/types';
|
|
3
3
|
import type { PseudoStyles, StaticConfig } from '@tamagui/core-node';
|
|
4
4
|
import type { StyleObject } from '@tamagui/helpers';
|
|
5
|
+
import type { TamaguiOptions } from '@tamagui/helpers-node';
|
|
5
6
|
import type { ViewStyle } from 'react-native';
|
|
7
|
+
export type { TamaguiOptions } from '@tamagui/helpers-node';
|
|
6
8
|
export type { StyleObject } from '@tamagui/helpers';
|
|
7
9
|
export declare type ClassNameObject = t.StringLiteral | t.Expression;
|
|
8
10
|
export interface CacheObject {
|
|
@@ -21,27 +23,6 @@ export interface Logger {
|
|
|
21
23
|
export declare type ExtractorOptions = {
|
|
22
24
|
logger?: Logger;
|
|
23
25
|
};
|
|
24
|
-
export interface TamaguiOptions {
|
|
25
|
-
components: string[];
|
|
26
|
-
config?: string;
|
|
27
|
-
evaluateVars?: boolean;
|
|
28
|
-
importsWhitelist?: string[];
|
|
29
|
-
disable?: boolean;
|
|
30
|
-
disableExtraction?: boolean;
|
|
31
|
-
disableDebugAttr?: boolean;
|
|
32
|
-
disableExtractInlineMedia?: boolean;
|
|
33
|
-
disableExtractVariables?: boolean;
|
|
34
|
-
excludeReactNativeWebExports?: string[];
|
|
35
|
-
exclude?: RegExp;
|
|
36
|
-
logTimings?: boolean;
|
|
37
|
-
prefixLogs?: string;
|
|
38
|
-
cssPath?: string;
|
|
39
|
-
cssData?: any;
|
|
40
|
-
deoptProps?: Set<string>;
|
|
41
|
-
excludeProps?: Set<string>;
|
|
42
|
-
inlineProps?: Set<string>;
|
|
43
|
-
forceExtractStyleDefinitions?: boolean;
|
|
44
|
-
}
|
|
45
26
|
export declare type ExtractedAttrAttr = {
|
|
46
27
|
type: 'attr';
|
|
47
28
|
value: t.JSXAttribute | t.JSXSpreadAttribute;
|