@tamagui/static 1.0.1-beta.100 → 1.0.1-beta.101

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.
Files changed (33) hide show
  1. package/package.json +9 -9
  2. package/types/constants.d.ts +6 -0
  3. package/types/constants.d.ts.map +1 -0
  4. package/types/extractor/accessSafe.d.ts +3 -0
  5. package/types/extractor/accessSafe.d.ts.map +1 -0
  6. package/types/extractor/babelParse.d.ts +5 -0
  7. package/types/extractor/babelParse.d.ts.map +1 -0
  8. package/types/extractor/ensureImportingConcat.d.ts +4 -0
  9. package/types/extractor/ensureImportingConcat.d.ts.map +1 -0
  10. package/types/extractor/evaluateAstNode.d.ts +3 -0
  11. package/types/extractor/evaluateAstNode.d.ts.map +1 -0
  12. package/types/extractor/findTopmostFunction.d.ts +4 -0
  13. package/types/extractor/findTopmostFunction.d.ts.map +1 -0
  14. package/types/extractor/generatedUid.d.ts +5 -0
  15. package/types/extractor/generatedUid.d.ts.map +1 -0
  16. package/types/extractor/getPropValueFromAttributes.d.ts +3 -0
  17. package/types/extractor/getPropValueFromAttributes.d.ts.map +1 -0
  18. package/types/extractor/getSourceModule.d.ts +16 -0
  19. package/types/extractor/getSourceModule.d.ts.map +1 -0
  20. package/types/extractor/getStaticBindingsForScope.d.ts +4 -0
  21. package/types/extractor/getStaticBindingsForScope.d.ts.map +1 -0
  22. package/types/extractor/hoistClassNames.d.ts +6 -0
  23. package/types/extractor/hoistClassNames.d.ts.map +1 -0
  24. package/types/extractor/literalToAst.d.ts +4 -0
  25. package/types/extractor/literalToAst.d.ts.map +1 -0
  26. package/types/extractor/logLines.d.ts +2 -0
  27. package/types/extractor/logLines.d.ts.map +1 -0
  28. package/types/extractor/removeUnusedHooks.d.ts +3 -0
  29. package/types/extractor/removeUnusedHooks.d.ts.map +1 -0
  30. package/types/extractor/timer.d.ts +5 -0
  31. package/types/extractor/timer.d.ts.map +1 -0
  32. package/types/extractor/validHTMLAttributes.d.ts +98 -0
  33. package/types/extractor/validHTMLAttributes.d.ts.map +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/static",
3
- "version": "1.0.1-beta.100",
3
+ "version": "1.0.1-beta.101",
4
4
  "source": "src/index.ts",
5
5
  "types": "./types/index.d.ts",
6
6
  "main": "dist/cjs",
@@ -38,12 +38,12 @@
38
38
  "@babel/parser": "^7.15.7",
39
39
  "@babel/traverse": "^7.15.4",
40
40
  "@expo/match-media": "^0.3.0",
41
- "@tamagui/build": "^1.0.1-beta.100",
42
- "@tamagui/core-node": "^1.0.1-beta.100",
43
- "@tamagui/fake-react-native": "^1.0.1-beta.100",
44
- "@tamagui/helpers": "^1.0.1-beta.100",
45
- "@tamagui/patch-rnw": "^1.0.1-beta.100",
46
- "@tamagui/proxy-worm": "^1.0.1-beta.100",
41
+ "@tamagui/build": "^1.0.1-beta.101",
42
+ "@tamagui/core-node": "^1.0.1-beta.101",
43
+ "@tamagui/fake-react-native": "^1.0.1-beta.101",
44
+ "@tamagui/helpers": "^1.0.1-beta.101",
45
+ "@tamagui/patch-rnw": "^1.0.1-beta.101",
46
+ "@tamagui/proxy-worm": "^1.0.1-beta.101",
47
47
  "babel-literal-to-ast": "^2.1.0",
48
48
  "esbuild": "^0.14.48",
49
49
  "esbuild-register": "^3.3.2",
@@ -51,7 +51,7 @@
51
51
  "fs-extra": "^10.1.0",
52
52
  "invariant": "^2.2.4",
53
53
  "lodash": "^4.17.21",
54
- "tamagui": "^1.0.1-beta.100"
54
+ "tamagui": "^1.0.1-beta.101"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@babel/plugin-syntax-typescript": "^7.14.5",
@@ -61,7 +61,7 @@
61
61
  "@testing-library/react": "^13.3.0",
62
62
  "@types/jest": "*",
63
63
  "@types/node": "^16.11.9",
64
- "@types/react-native": "^0.67.3",
64
+ "@types/react-native": "^0.69.2",
65
65
  "@types/webpack": "^4.41.26",
66
66
  "babel-loader": "^8.2.5",
67
67
  "css-loader": "^5.2.4",
@@ -0,0 +1,6 @@
1
+ export declare const CSS_FILE_NAME = "__snack.css";
2
+ export declare const MEDIA_SEP = "_";
3
+ export declare const cacheDir: any;
4
+ export declare const FAILED_EVAL: unique symbol;
5
+ export declare const CONCAT_CLASSNAME_IMPORT = "concatClassName";
6
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,gBAAgB,CAAA;AAI1C,eAAO,MAAM,SAAS,MAAM,CAAA;AAG5B,eAAO,MAAM,QAAQ,KAAkD,CAAA;AAEvE,eAAO,MAAM,WAAW,eAA8B,CAAA;AACtD,eAAO,MAAM,uBAAuB,oBAAoB,CAAA"}
@@ -0,0 +1,3 @@
1
+ import * as t from '@babel/types';
2
+ export declare function accessSafe(obj: t.Expression, member: string): t.LogicalExpression;
3
+ //# sourceMappingURL=accessSafe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accessSafe.d.ts","sourceRoot":"","sources":["../../src/extractor/accessSafe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAIjC,wBAAgB,UAAU,CAAC,GAAG,EAAE,CAAC,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,iBAAiB,CAajF"}
@@ -0,0 +1,5 @@
1
+ /// <reference types="node" />
2
+ import * as babelParser from '@babel/parser';
3
+ export declare const parserOptions: babelParser.ParserOptions;
4
+ export declare function babelParse(code: string | Buffer): any;
5
+ //# sourceMappingURL=babelParse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"babelParse.d.ts","sourceRoot":"","sources":["../../src/extractor/babelParse.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,WAAW,MAAM,eAAe,CAAA;AAiB5C,eAAO,MAAM,aAAa,EAAE,WAAW,CAAC,aAGtC,CAAA;AAIF,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,GAAG,CAErD"}
@@ -0,0 +1,4 @@
1
+ import { NodePath } from '@babel/traverse';
2
+ import * as t from '@babel/types';
3
+ export declare function ensureImportingConcat(path: NodePath<t.Program>): void;
4
+ //# sourceMappingURL=ensureImportingConcat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ensureImportingConcat.d.ts","sourceRoot":"","sources":["../../src/extractor/ensureImportingConcat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAMjC,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,QA+B9D"}
@@ -0,0 +1,3 @@
1
+ import * as t from '@babel/types';
2
+ export declare function evaluateAstNode(exprNode: t.Node | undefined | null, evalFn?: (node: t.Node) => any, shouldPrintDebug?: boolean | 'verbose'): any;
3
+ //# sourceMappingURL=evaluateAstNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evaluateAstNode.d.ts","sourceRoot":"","sources":["../../src/extractor/evaluateAstNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAEjC,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,CAAC,CAAC,IAAI,GAAG,SAAS,GAAG,IAAI,EACnC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,KAAK,GAAG,EAC9B,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,GACrC,GAAG,CAkHL"}
@@ -0,0 +1,4 @@
1
+ import { NodePath } from '@babel/traverse';
2
+ import * as t from '@babel/types';
3
+ export declare function findTopmostFunction(jsxPath: NodePath<t.JSXElement>): NodePath<any> | null;
4
+ //# sourceMappingURL=findTopmostFunction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"findTopmostFunction.d.ts","sourceRoot":"","sources":["../../src/extractor/findTopmostFunction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAEjC,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,wBAkBlE"}
@@ -0,0 +1,5 @@
1
+ declare module '@babel/types' {
2
+ function toIdentifier(input: string): string;
3
+ }
4
+ export declare function generateUid(scope: any, name: string): string;
5
+ //# sourceMappingURL=generatedUid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generatedUid.d.ts","sourceRoot":"","sources":["../../src/extractor/generatedUid.ts"],"names":[],"mappings":"AAIA,OAAO,QAAQ,cAAc,CAAC;IAC5B,SAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CACpD;AAGD,wBAAgB,WAAW,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAiC5D"}
@@ -0,0 +1,3 @@
1
+ import * as t from '@babel/types';
2
+ export declare function getPropValueFromAttributes(propName: string, attrs: (t.JSXAttribute | t.JSXSpreadAttribute)[]): t.Expression | null;
3
+ //# sourceMappingURL=getPropValueFromAttributes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPropValueFromAttributes.d.ts","sourceRoot":"","sources":["../../src/extractor/getPropValueFromAttributes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAoBjC,wBAAgB,0BAA0B,CACxC,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,CAAC,CAAC,CAAC,YAAY,GAAG,CAAC,CAAC,kBAAkB,CAAC,EAAE,GAC/C,CAAC,CAAC,UAAU,GAAG,IAAI,CAmErB"}
@@ -0,0 +1,16 @@
1
+ import * as t from '@babel/types';
2
+ export interface SourceModule {
3
+ sourceModule?: string;
4
+ imported?: string;
5
+ local?: string;
6
+ destructured?: boolean;
7
+ usesImportSyntax: boolean;
8
+ }
9
+ export declare function getSourceModule(itemName: string, itemBinding: {
10
+ constant?: boolean;
11
+ path: {
12
+ node: t.Node;
13
+ parent: any;
14
+ };
15
+ }): SourceModule | null;
16
+ //# sourceMappingURL=getSourceModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSourceModule.d.ts","sourceRoot":"","sources":["../../src/extractor/getSourceModule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAEjC,MAAM,WAAW,YAAY;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,gBAAgB,EAAE,OAAO,CAAA;CAC1B;AAED,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,EAAE;QAAE,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC;QAAC,MAAM,EAAE,GAAG,CAAA;KAAE,CAAA;CACpC,GACA,YAAY,GAAG,IAAI,CAoFrB"}
@@ -0,0 +1,4 @@
1
+ import { NodePath } from '@babel/traverse';
2
+ import * as t from '@babel/types';
3
+ export declare function getStaticBindingsForScope(scope: NodePath<t.JSXElement>['scope'], whitelist: string[] | undefined, sourcePath: string, bindingCache: Record<string, string | null>, shouldPrintDebug: boolean | 'verbose'): Record<string, any>;
4
+ //# sourceMappingURL=getStaticBindingsForScope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getStaticBindingsForScope.d.ts","sourceRoot":"","sources":["../../src/extractor/getStaticBindingsForScope.ts"],"names":[],"mappings":"AAEA,OAAO,EAAW,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAwCjC,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,EACtC,SAAS,sBAAe,EACxB,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,EAC3C,gBAAgB,EAAE,OAAO,GAAG,SAAS,GACpC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAqIrB"}
@@ -0,0 +1,6 @@
1
+ import { NodePath } from '@babel/traverse';
2
+ import * as t from '@babel/types';
3
+ export declare function hoistClassNames(path: NodePath<t.JSXElement>, existing: {
4
+ [key: string]: t.Identifier;
5
+ }, expr: t.Expression): any;
6
+ //# sourceMappingURL=hoistClassNames.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hoistClassNames.d.ts","sourceRoot":"","sources":["../../src/extractor/hoistClassNames.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAEjC,wBAAgB,eAAe,CAC7B,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,EAC5B,QAAQ,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC,UAAU,CAAA;CAAE,EACzC,IAAI,EAAE,CAAC,CAAC,UAAU,OAsCnB"}
@@ -0,0 +1,4 @@
1
+ import * as t from '@babel/types';
2
+ export declare function literalToAst(literal: any): t.Expression;
3
+ export declare function astToLiteral(node: any): any;
4
+ //# sourceMappingURL=literalToAst.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"literalToAst.d.ts","sourceRoot":"","sources":["../../src/extractor/literalToAst.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAEjC,wBAAgB,YAAY,CAAC,OAAO,EAAE,GAAG,GAAG,CAAC,CAAC,UAAU,CA6BvD;AAID,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG,OA4BrC"}
@@ -0,0 +1,2 @@
1
+ export declare const logLines: (str: string, singleLine?: boolean) => string;
2
+ //# sourceMappingURL=logLines.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logLines.d.ts","sourceRoot":"","sources":["../../src/extractor/logLines.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,QAAS,MAAM,iCAanC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { NodePath } from '@babel/traverse';
2
+ export declare function removeUnusedHooks(compFn: NodePath<any>, shouldPrintDebug: boolean | 'verbose'): void;
3
+ //# sourceMappingURL=removeUnusedHooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"removeUnusedHooks.d.ts","sourceRoot":"","sources":["../../src/extractor/removeUnusedHooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAQ1C,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,gBAAgB,EAAE,OAAO,GAAG,SAAS,QAmE7F"}
@@ -0,0 +1,5 @@
1
+ export declare const timer: () => {
2
+ mark: (name: string, print?: boolean) => void;
3
+ done: (print?: boolean) => void;
4
+ };
5
+ //# sourceMappingURL=timer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timer.d.ts","sourceRoot":"","sources":["../../src/extractor/timer.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK;iBAID,MAAM;;CAatB,CAAA"}
@@ -0,0 +1,98 @@
1
+ export declare const validHTMLAttributes: {
2
+ autocomplete: boolean;
3
+ border: boolean;
4
+ contenteditable: boolean;
5
+ crossorigin: boolean;
6
+ dir: boolean;
7
+ draggable: boolean;
8
+ enctype: boolean;
9
+ formenctype: boolean;
10
+ formmethod: boolean;
11
+ formtarget: boolean;
12
+ inputmode: boolean;
13
+ kind: boolean;
14
+ link: boolean;
15
+ method: boolean;
16
+ preload: boolean;
17
+ referrerpolicy: boolean;
18
+ rel: boolean;
19
+ rev: boolean;
20
+ role: boolean;
21
+ sandbox: boolean;
22
+ shape: boolean;
23
+ spellcheck: boolean;
24
+ target: boolean;
25
+ translate: boolean;
26
+ type: boolean;
27
+ wrap: boolean;
28
+ 'aria-autocomplete': boolean;
29
+ 'aria-busy': boolean;
30
+ 'aria-checked': boolean;
31
+ 'aria-current': boolean;
32
+ 'aria-disabled': boolean;
33
+ 'aria-expanded': boolean;
34
+ 'aria-haspopup': boolean;
35
+ 'aria-hidden': boolean;
36
+ 'aria-invalid': boolean;
37
+ 'aria-polite': boolean;
38
+ 'aria-modal': boolean;
39
+ 'aria-multiline': boolean;
40
+ 'aria-multiselectable': boolean;
41
+ 'aria-orientation': boolean;
42
+ 'aria-pressed': boolean;
43
+ 'aria-readonly': boolean;
44
+ 'aria-relevant': boolean;
45
+ 'aria-required': boolean;
46
+ 'aria-selected': boolean;
47
+ 'aria-sort': boolean;
48
+ };
49
+ export declare const validAccessibilityAttributes: {
50
+ accessibilityRole: boolean;
51
+ accessibilityActiveDescendant: boolean;
52
+ accessibilityAtomic: boolean;
53
+ accessibilityAutoComplete: boolean;
54
+ accessibilityBusy: boolean;
55
+ accessibilityChecked: boolean;
56
+ accessibilityColumnCount: boolean;
57
+ accessibilityColumnIndex: boolean;
58
+ accessibilityColumnSpan: boolean;
59
+ accessibilityControls: boolean;
60
+ accessibilityCurrent: boolean;
61
+ accessibilityDescribedBy: boolean;
62
+ accessibilityDetails: boolean;
63
+ disabled: boolean;
64
+ accessibilityErrorMessage: boolean;
65
+ accessibilityExpanded: boolean;
66
+ accessibilityFlowTo: boolean;
67
+ accessibilityHasPopup: boolean;
68
+ accessibilityHidden: boolean;
69
+ accessibilityInvalid: boolean;
70
+ accessibilityKeyShortcuts: boolean;
71
+ accessibilityLabel: boolean;
72
+ accessibilityLabelledBy: boolean;
73
+ accessibilityLevel: boolean;
74
+ accessibilityLiveRegion: boolean;
75
+ accessibilityModal: boolean;
76
+ accessibilityMultiline: boolean;
77
+ accessibilityMultiSelectable: boolean;
78
+ accessibilityOrientation: boolean;
79
+ accessibilityOwns: boolean;
80
+ accessibilityPlaceholder: boolean;
81
+ accessibilityPosInSet: boolean;
82
+ accessibilityPressed: boolean;
83
+ accessibilityReadOnly: boolean;
84
+ accessibilityRequired: boolean;
85
+ accessibilityRoleDescription: boolean;
86
+ accessibilityRowCount: boolean;
87
+ accessibilityRowIndex: boolean;
88
+ accessibilityRowSpan: boolean;
89
+ accessibilitySelected: boolean;
90
+ accessibilitySetSize: boolean;
91
+ accessibilitySort: boolean;
92
+ accessibilityValueMax: boolean;
93
+ accessibilityValueMin: boolean;
94
+ accessibilityValueNow: boolean;
95
+ accessibilityValueText: boolean;
96
+ nativeID: boolean;
97
+ };
98
+ //# sourceMappingURL=validHTMLAttributes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validHTMLAttributes.d.ts","sourceRoot":"","sources":["../../src/extractor/validHTMLAttributes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+C/B,CAAA;AAGD,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDxC,CAAA"}