@tamagui/helpers-node 1.0.1-beta.193 → 1.0.1-beta.195

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/types.ts"],
4
- "sourcesContent": ["export interface TamaguiOptions {\n // module paths you want to compile with tamagui (for example ['tamagui'])\n components: string[]\n // your tamagui.config.ts\n config?: string\n importsWhitelist?: string[]\n disable?: boolean\n disableExtraction?: boolean\n disableFlattening?: boolean\n disableDebugAttr?: boolean\n disableExtractInlineMedia?: boolean\n disableExtractVariables?: boolean | 'theme'\n excludeReactNativeWebExports?: string[]\n logTimings?: boolean\n prefixLogs?: string\n\n // probably non user options\n disableExtractFoundComponents?: boolean\n evaluateVars?: boolean\n cssPath?: string\n cssData?: any\n deoptProps?: Set<string>\n excludeProps?: Set<string>\n inlineProps?: Set<string>\n forceExtractStyleDefinitions?: boolean\n}\n"],
4
+ "sourcesContent": ["export interface TamaguiOptions {\n /**\n * module paths you want to compile with tamagui (for example ['tamagui'])\n * */\n components: string[]\n /**\n * your tamagui.config.ts\n */\n config?: string\n /**\n * Tamagui can follow imports and evaluate them when parsing styles, leading to\n * higher percent of flattened / optimized views. We normalize this to be the\n * full path of the file, always ending in \".js\".\n *\n * So to have Tamagui partially evaluate \"app/src/constants.tsx\" you can put\n * [\"app/src/constants.js\"].\n */\n importsWhitelist?: string[]\n /**\n * Whitelist file extensions to evaluate\n *\n * @default ['.tsx', '.jsx']\n */\n includeExtensions?: string[]\n /**\n * Web-only. Allows you to trim the bundle size of react-native-web.\n * Pass in values like ['Switch', 'Modal'].\n */\n excludeReactNativeWebExports?: string[]\n /**\n * Enable logging the time it takes to extract.\n *\n * @default true\n */\n logTimings?: boolean\n /**\n * Custom prefix for the timing logs\n */\n prefixLogs?: string\n /**\n * Completely disable tamagui for these files\n */\n disable?: boolean | string[]\n /**\n * Disable just optimization for these files, but enable helpful debug attributes.\n */\n disableExtraction?: boolean | string[]\n /**\n * Disable just the addition of data- attributes that are added in dev mode to help\n * tie DOM to your filename/component-name.\n */\n disableDebugAttr?: boolean\n /**\n * (Advanced) Disable evaluation of useMedia() hook\n */\n disableExtractInlineMedia?: boolean\n /**\n * (Advanced) Disable just view flattening.\n */\n disableFlattening?: boolean\n /**\n * (Advanced) Disable extracting to theme variables.\n */\n disableExtractVariables?: boolean | 'theme'\n\n // probably non user options\n disableExtractFoundComponents?: boolean | string[]\n evaluateVars?: boolean\n cssPath?: string\n cssData?: any\n deoptProps?: Set<string>\n excludeProps?: Set<string>\n inlineProps?: Set<string>\n forceExtractStyleDefinitions?: boolean\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/helpers-node",
3
- "version": "1.0.1-beta.193",
3
+ "version": "1.0.1-beta.195",
4
4
  "source": "src/index.ts",
5
5
  "types": "./types/index.d.ts",
6
6
  "main": "./dist",
@@ -16,7 +16,7 @@
16
16
  "clean:build": "tamagui-build clean:build"
17
17
  },
18
18
  "devDependencies": {
19
- "@tamagui/build": "^1.0.1-beta.193",
19
+ "@tamagui/build": "^1.0.1-beta.195",
20
20
  "fs-extra": "^10.1.0"
21
21
  },
22
22
  "publishConfig": {
package/src/types.ts CHANGED
@@ -1,21 +1,70 @@
1
1
  export interface TamaguiOptions {
2
- // module paths you want to compile with tamagui (for example ['tamagui'])
2
+ /**
3
+ * module paths you want to compile with tamagui (for example ['tamagui'])
4
+ * */
3
5
  components: string[]
4
- // your tamagui.config.ts
6
+ /**
7
+ * your tamagui.config.ts
8
+ */
5
9
  config?: string
10
+ /**
11
+ * Tamagui can follow imports and evaluate them when parsing styles, leading to
12
+ * higher percent of flattened / optimized views. We normalize this to be the
13
+ * full path of the file, always ending in ".js".
14
+ *
15
+ * So to have Tamagui partially evaluate "app/src/constants.tsx" you can put
16
+ * ["app/src/constants.js"].
17
+ */
6
18
  importsWhitelist?: string[]
7
- disable?: boolean
8
- disableExtraction?: boolean
9
- disableFlattening?: boolean
10
- disableDebugAttr?: boolean
11
- disableExtractInlineMedia?: boolean
12
- disableExtractVariables?: boolean | 'theme'
19
+ /**
20
+ * Whitelist file extensions to evaluate
21
+ *
22
+ * @default ['.tsx', '.jsx']
23
+ */
24
+ includeExtensions?: string[]
25
+ /**
26
+ * Web-only. Allows you to trim the bundle size of react-native-web.
27
+ * Pass in values like ['Switch', 'Modal'].
28
+ */
13
29
  excludeReactNativeWebExports?: string[]
30
+ /**
31
+ * Enable logging the time it takes to extract.
32
+ *
33
+ * @default true
34
+ */
14
35
  logTimings?: boolean
36
+ /**
37
+ * Custom prefix for the timing logs
38
+ */
15
39
  prefixLogs?: string
40
+ /**
41
+ * Completely disable tamagui for these files
42
+ */
43
+ disable?: boolean | string[]
44
+ /**
45
+ * Disable just optimization for these files, but enable helpful debug attributes.
46
+ */
47
+ disableExtraction?: boolean | string[]
48
+ /**
49
+ * Disable just the addition of data- attributes that are added in dev mode to help
50
+ * tie DOM to your filename/component-name.
51
+ */
52
+ disableDebugAttr?: boolean
53
+ /**
54
+ * (Advanced) Disable evaluation of useMedia() hook
55
+ */
56
+ disableExtractInlineMedia?: boolean
57
+ /**
58
+ * (Advanced) Disable just view flattening.
59
+ */
60
+ disableFlattening?: boolean
61
+ /**
62
+ * (Advanced) Disable extracting to theme variables.
63
+ */
64
+ disableExtractVariables?: boolean | 'theme'
16
65
 
17
66
  // probably non user options
18
- disableExtractFoundComponents?: boolean
67
+ disableExtractFoundComponents?: boolean | string[]
19
68
  evaluateVars?: boolean
20
69
  cssPath?: string
21
70
  cssData?: any
package/types/types.d.ts CHANGED
@@ -1,17 +1,68 @@
1
1
  export interface TamaguiOptions {
2
+ /**
3
+ * module paths you want to compile with tamagui (for example ['tamagui'])
4
+ * */
2
5
  components: string[];
6
+ /**
7
+ * your tamagui.config.ts
8
+ */
3
9
  config?: string;
10
+ /**
11
+ * Tamagui can follow imports and evaluate them when parsing styles, leading to
12
+ * higher percent of flattened / optimized views. We normalize this to be the
13
+ * full path of the file, always ending in ".js".
14
+ *
15
+ * So to have Tamagui partially evaluate "app/src/constants.tsx" you can put
16
+ * ["app/src/constants.js"].
17
+ */
4
18
  importsWhitelist?: string[];
5
- disable?: boolean;
6
- disableExtraction?: boolean;
7
- disableFlattening?: boolean;
8
- disableDebugAttr?: boolean;
9
- disableExtractInlineMedia?: boolean;
10
- disableExtractVariables?: boolean | 'theme';
19
+ /**
20
+ * Whitelist file extensions to evaluate
21
+ *
22
+ * @default ['.tsx', '.jsx']
23
+ */
24
+ includeExtensions?: string[];
25
+ /**
26
+ * Web-only. Allows you to trim the bundle size of react-native-web.
27
+ * Pass in values like ['Switch', 'Modal'].
28
+ */
11
29
  excludeReactNativeWebExports?: string[];
30
+ /**
31
+ * Enable logging the time it takes to extract.
32
+ *
33
+ * @default true
34
+ */
12
35
  logTimings?: boolean;
36
+ /**
37
+ * Custom prefix for the timing logs
38
+ */
13
39
  prefixLogs?: string;
14
- disableExtractFoundComponents?: boolean;
40
+ /**
41
+ * Completely disable tamagui for these files
42
+ */
43
+ disable?: boolean | string[];
44
+ /**
45
+ * Disable just optimization for these files, but enable helpful debug attributes.
46
+ */
47
+ disableExtraction?: boolean | string[];
48
+ /**
49
+ * Disable just the addition of data- attributes that are added in dev mode to help
50
+ * tie DOM to your filename/component-name.
51
+ */
52
+ disableDebugAttr?: boolean;
53
+ /**
54
+ * (Advanced) Disable evaluation of useMedia() hook
55
+ */
56
+ disableExtractInlineMedia?: boolean;
57
+ /**
58
+ * (Advanced) Disable just view flattening.
59
+ */
60
+ disableFlattening?: boolean;
61
+ /**
62
+ * (Advanced) Disable extracting to theme variables.
63
+ */
64
+ disableExtractVariables?: boolean | 'theme';
65
+ disableExtractFoundComponents?: boolean | string[];
15
66
  evaluateVars?: boolean;
16
67
  cssPath?: string;
17
68
  cssData?: any;