@tamagui/static 1.0.0-beta.152 → 1.0.0-beta.17
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/README.md +1 -5
- package/dist/cjs/constants.js +8 -0
- package/dist/cjs/extractor/accessSafe.js +4 -0
- package/dist/cjs/extractor/babelParse.js +5 -0
- package/dist/cjs/extractor/babelParse.js.map +2 -2
- package/dist/cjs/extractor/buildClassName.js +4 -0
- package/dist/cjs/extractor/createEvaluator.js +5 -0
- package/dist/cjs/extractor/createExtractor.js +150 -99
- package/dist/cjs/extractor/createExtractor.js.map +2 -2
- package/dist/cjs/extractor/ensureImportingConcat.js +4 -0
- package/dist/cjs/extractor/evaluateAstNode.js +4 -0
- package/dist/cjs/extractor/extractHelpers.js +11 -0
- package/dist/cjs/extractor/extractMediaStyle.js +5 -0
- package/dist/cjs/extractor/extractMediaStyle.js.map +2 -2
- package/dist/cjs/extractor/extractToClassNames.js +19 -8
- package/dist/cjs/extractor/extractToClassNames.js.map +2 -2
- package/dist/cjs/extractor/findTopmostFunction.js +4 -0
- package/dist/cjs/extractor/generatedUid.js +4 -0
- package/dist/cjs/extractor/getPrefixLogs.js +4 -0
- package/dist/cjs/extractor/getPropValueFromAttributes.js +4 -0
- package/dist/cjs/extractor/getSourceModule.js +4 -0
- package/dist/cjs/extractor/getStaticBindingsForScope.js +14 -1
- package/dist/cjs/extractor/getStaticBindingsForScope.js.map +2 -2
- package/dist/cjs/extractor/hoistClassNames.js +4 -0
- package/dist/cjs/extractor/literalToAst.js +5 -0
- package/dist/cjs/extractor/loadTamagui.js +69 -46
- package/dist/cjs/extractor/loadTamagui.js.map +2 -2
- package/dist/cjs/extractor/logLines.js +4 -0
- package/dist/cjs/extractor/normalizeTernaries.js +4 -0
- package/dist/cjs/extractor/removeUnusedHooks.js +4 -0
- package/dist/cjs/extractor/timer.js +46 -0
- package/dist/cjs/extractor/timer.js.map +7 -0
- package/dist/cjs/extractor/validHTMLAttributes.js +4 -0
- package/dist/cjs/index.js +6 -0
- package/dist/cjs/patchReactNativeWeb.js +23 -7
- package/dist/cjs/patchReactNativeWeb.js.map +2 -2
- package/dist/esm/extractor/babelParse.js.map +2 -2
- package/dist/esm/extractor/createExtractor.js +154 -106
- package/dist/esm/extractor/createExtractor.js.map +2 -2
- package/dist/esm/extractor/extractMediaStyle.js.map +2 -2
- package/dist/esm/extractor/extractToClassNames.js +15 -8
- package/dist/esm/extractor/extractToClassNames.js.map +2 -2
- package/dist/esm/extractor/getStaticBindingsForScope.js +10 -1
- package/dist/esm/extractor/getStaticBindingsForScope.js.map +2 -2
- package/dist/esm/extractor/loadTamagui.js +65 -46
- package/dist/esm/extractor/loadTamagui.js.map +2 -2
- package/dist/esm/extractor/timer.js +24 -0
- package/dist/esm/extractor/timer.js.map +7 -0
- package/dist/esm/patchReactNativeWeb.js +19 -7
- package/dist/esm/patchReactNativeWeb.js.map +2 -2
- package/dist/jsx/extractor/createExtractor.js +154 -106
- package/dist/jsx/extractor/extractToClassNames.js +15 -8
- package/dist/jsx/extractor/getStaticBindingsForScope.js +10 -1
- package/dist/jsx/extractor/loadTamagui.js +65 -46
- package/dist/jsx/extractor/timer.js +23 -0
- package/dist/jsx/patchReactNativeWeb.js +19 -7
- package/package.json +25 -25
- package/types/extractor/babelParse.d.ts.map +1 -1
- package/types/extractor/createExtractor.d.ts +2 -0
- package/types/extractor/createExtractor.d.ts.map +1 -1
- package/types/extractor/extractMediaStyle.d.ts +1 -1
- package/types/extractor/extractMediaStyle.d.ts.map +1 -1
- package/types/extractor/extractToClassNames.d.ts +2 -1
- package/types/extractor/extractToClassNames.d.ts.map +1 -1
- package/types/extractor/getStaticBindingsForScope.d.ts.map +1 -1
- package/types/extractor/loadTamagui.d.ts.map +1 -1
- package/types/extractor/timer.d.ts +5 -0
- package/types/extractor/timer.d.ts.map +1 -0
- package/types/patchReactNativeWeb.d.ts.map +1 -1
- package/LICENSE +0 -21
|
@@ -7,56 +7,75 @@ function loadTamagui(props) {
|
|
|
7
7
|
if (loadedTamagui) {
|
|
8
8
|
return loadedTamagui;
|
|
9
9
|
}
|
|
10
|
-
process.
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if (path === "@gorhom/bottom-sheet" || path.startsWith("react-native-reanimated")) {
|
|
20
|
-
return proxyWorm;
|
|
21
|
-
}
|
|
22
|
-
if (path.startsWith("react-native") && !path.startsWith("react-native-web/dist/cjs/exports")) {
|
|
23
|
-
return rnw;
|
|
10
|
+
const configPath = join(process.cwd(), props.config);
|
|
11
|
+
const { unregister } = require("esbuild-register/dist/node").register({
|
|
12
|
+
target: "es2019",
|
|
13
|
+
format: "cjs"
|
|
14
|
+
});
|
|
15
|
+
try {
|
|
16
|
+
process.env.IS_STATIC = "is_static";
|
|
17
|
+
if (typeof globalThis["__DEV__"] === "undefined") {
|
|
18
|
+
globalThis["__DEV__"] = process.env.NODE_ENV === "development";
|
|
24
19
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
20
|
+
const proxyWorm = require("@tamagui/proxy-worm");
|
|
21
|
+
const rnw = require("react-native-web");
|
|
22
|
+
const Mod = require("module");
|
|
23
|
+
const og = Mod.prototype.require;
|
|
24
|
+
Mod.prototype.require = function(path) {
|
|
25
|
+
if (path.endsWith(".css")) {
|
|
26
|
+
return {};
|
|
27
|
+
}
|
|
28
|
+
if (path === "@gorhom/bottom-sheet" || path.startsWith("react-native-reanimated") || path === "expo-linear-gradient") {
|
|
29
|
+
return proxyWorm;
|
|
30
|
+
}
|
|
31
|
+
if (path.startsWith("react-native") && !path.startsWith("react-native-web/dist/cjs/exports")) {
|
|
32
|
+
return rnw;
|
|
33
|
+
}
|
|
34
|
+
try {
|
|
35
|
+
return og.apply(this, arguments);
|
|
36
|
+
} catch (err) {
|
|
37
|
+
console.error("Tamagui error loading file:\n");
|
|
38
|
+
console.log(" ", path, "\n");
|
|
39
|
+
console.log(err.message);
|
|
40
|
+
console.log(err.stack);
|
|
41
|
+
process.exit(1);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
const exp = require(configPath);
|
|
45
|
+
const tamaguiConfig = exp["default"] || exp;
|
|
46
|
+
if (!tamaguiConfig || !tamaguiConfig.parsed) {
|
|
47
|
+
try {
|
|
48
|
+
const confPath = require.resolve(configPath);
|
|
49
|
+
console.log(`Received:`, tamaguiConfig);
|
|
50
|
+
throw new Error(`Can't find valid config in ${confPath}`);
|
|
51
|
+
} catch (err) {
|
|
52
|
+
throw err;
|
|
53
|
+
}
|
|
33
54
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
throw err;
|
|
55
|
+
const components = {};
|
|
56
|
+
for (const moduleName of props.components) {
|
|
57
|
+
const exported = require(moduleName);
|
|
58
|
+
for (const Name in exported) {
|
|
59
|
+
const val = exported[Name];
|
|
60
|
+
const staticConfig = val == null ? void 0 : val.staticConfig;
|
|
61
|
+
if (staticConfig) {
|
|
62
|
+
Object.assign(components, { [Name]: { staticConfig } });
|
|
63
|
+
}
|
|
64
|
+
}
|
|
45
65
|
}
|
|
66
|
+
process.env.IS_STATIC = void 0;
|
|
67
|
+
Mod.prototype.require = og;
|
|
68
|
+
createTamagui(tamaguiConfig);
|
|
69
|
+
loadedTamagui = {
|
|
70
|
+
components,
|
|
71
|
+
tamaguiConfig
|
|
72
|
+
};
|
|
73
|
+
return loadedTamagui;
|
|
74
|
+
} catch (err) {
|
|
75
|
+
throw err;
|
|
76
|
+
} finally {
|
|
77
|
+
unregister();
|
|
46
78
|
}
|
|
47
|
-
const components = {};
|
|
48
|
-
for (const module of props.components) {
|
|
49
|
-
const exported = require(module);
|
|
50
|
-
Object.assign(components, exported);
|
|
51
|
-
}
|
|
52
|
-
process.env.IS_STATIC = void 0;
|
|
53
|
-
Mod.prototype.require = og;
|
|
54
|
-
createTamagui(tamaguiConfig);
|
|
55
|
-
loadedTamagui = {
|
|
56
|
-
components,
|
|
57
|
-
tamaguiConfig
|
|
58
|
-
};
|
|
59
|
-
return loadedTamagui;
|
|
60
79
|
}
|
|
61
80
|
__name(loadTamagui, "loadTamagui");
|
|
62
81
|
export {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
+
const timer = /* @__PURE__ */ __name(() => {
|
|
4
|
+
const start = Date.now();
|
|
5
|
+
let last = start;
|
|
6
|
+
return {
|
|
7
|
+
mark: (name, print = false) => {
|
|
8
|
+
if (print) {
|
|
9
|
+
const took = Date.now() - last;
|
|
10
|
+
last = Date.now();
|
|
11
|
+
console.log(`Time ${name}: ${took}ms`);
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
done: (print = false) => {
|
|
15
|
+
if (print) {
|
|
16
|
+
console.log(`Total time: ${Date.now() - start}ms`);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
}, "timer");
|
|
21
|
+
export {
|
|
22
|
+
timer
|
|
23
|
+
};
|
|
@@ -15,6 +15,8 @@ function patchReactNativeWeb() {
|
|
|
15
15
|
}
|
|
16
16
|
const patches = [
|
|
17
17
|
{
|
|
18
|
+
id: "dom-props",
|
|
19
|
+
filePath: ["modules", "createDOMProps", "index.js"],
|
|
18
20
|
replacee: ` if (dataSet != null) {`,
|
|
19
21
|
replacer: `
|
|
20
22
|
if (props.dataSet && props.dataSet.className) {
|
|
@@ -22,15 +24,25 @@ function patchReactNativeWeb() {
|
|
|
22
24
|
classList = className
|
|
23
25
|
dataSet = dataSetRest
|
|
24
26
|
}
|
|
27
|
+
if (props.dataSet && props.dataSet.id) {
|
|
28
|
+
domProps['id'] = props.dataSet.id
|
|
29
|
+
}
|
|
25
30
|
if (dataSet != null) {`
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: "forward-props",
|
|
34
|
+
filePath: ["modules", "forwardedProps", "index.js"],
|
|
35
|
+
replacee: `dataSet: true,`,
|
|
36
|
+
replacer: `id: true, dataSet: true,`
|
|
26
37
|
}
|
|
27
38
|
];
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
for (const
|
|
39
|
+
for (const { filePath, replacee, replacer } of patches) {
|
|
40
|
+
const files = [
|
|
41
|
+
path.join(rootDir, "dist", ...filePath),
|
|
42
|
+
path.join(rootDir, "dist", "cjs", ...filePath)
|
|
43
|
+
];
|
|
44
|
+
for (const file of files) {
|
|
45
|
+
const contents = fs.readFileSync(file, "utf-8");
|
|
34
46
|
if (contents.includes(replacer)) {
|
|
35
47
|
continue;
|
|
36
48
|
}
|
|
@@ -42,7 +54,7 @@ function patchReactNativeWeb() {
|
|
|
42
54
|
continue;
|
|
43
55
|
}
|
|
44
56
|
console.log(" | patch " + path.relative(rootDir, file));
|
|
45
|
-
fs.writeFileSync(file, contents.
|
|
57
|
+
fs.writeFileSync(file, contents.replace(replacee, replacer));
|
|
46
58
|
}
|
|
47
59
|
}
|
|
48
60
|
const moduleEntry = path.join(rootDir, "dist", "index.js");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/static",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.17",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"typings": "types",
|
|
6
6
|
"main": "dist/cjs",
|
|
@@ -27,17 +27,37 @@
|
|
|
27
27
|
"access": "public"
|
|
28
28
|
},
|
|
29
29
|
"license": "MIT",
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@babel/core": "^7.15.5",
|
|
32
|
+
"@babel/generator": "^7.15.4",
|
|
33
|
+
"@babel/helper-plugin-utils": "^7.14.5",
|
|
34
|
+
"@babel/parser": "^7.15.7",
|
|
35
|
+
"@babel/traverse": "^7.15.4",
|
|
36
|
+
"@expo/match-media": "^0.3.0",
|
|
37
|
+
"@tamagui/build": "^1.0.0-beta.17",
|
|
38
|
+
"@tamagui/core-node": "^1.0.0-beta.17",
|
|
39
|
+
"@tamagui/fake-react-native": "^1.0.0-beta.17",
|
|
40
|
+
"@tamagui/helpers": "^1.0.0-beta.17",
|
|
41
|
+
"@tamagui/proxy-worm": "^1.0.0-beta.17",
|
|
42
|
+
"babel-literal-to-ast": "^2.1.0",
|
|
43
|
+
"esbuild": "^0.14.36",
|
|
44
|
+
"esbuild-register": "^3.3.2",
|
|
45
|
+
"find-cache-dir": "^3.3.2",
|
|
46
|
+
"fs-extra": "^9.1.0",
|
|
47
|
+
"invariant": "^2.2.4",
|
|
48
|
+
"lodash": "^4.17.21",
|
|
49
|
+
"tamagui": "^1.0.0-beta.17"
|
|
50
|
+
},
|
|
30
51
|
"devDependencies": {
|
|
31
52
|
"@babel/plugin-syntax-typescript": "^7.14.5",
|
|
32
53
|
"@babel/types": "^7.15.6",
|
|
33
54
|
"@dish/babel-preset": "^0.0.6",
|
|
34
|
-
"@tamagui/proxy-worm": "^1.0.0-beta.152+a2b40988",
|
|
35
55
|
"@testing-library/react": "13.0.0-alpha.4",
|
|
36
56
|
"@types/jest": "*",
|
|
37
57
|
"@types/node": "^16.11.9",
|
|
38
58
|
"@types/react-native": "^0.67.3",
|
|
39
59
|
"@types/webpack": "^4.41.26",
|
|
40
|
-
"babel-loader": "^8.2.
|
|
60
|
+
"babel-loader": "^8.2.5",
|
|
41
61
|
"css-loader": "^5.2.4",
|
|
42
62
|
"esbuild-loader": "^2.18.0",
|
|
43
63
|
"jest": "^27.3.1",
|
|
@@ -45,33 +65,13 @@
|
|
|
45
65
|
"react": "*",
|
|
46
66
|
"react-dom": "*",
|
|
47
67
|
"react-native-web": "^0.17.5",
|
|
48
|
-
"react-test-renderer": "18.
|
|
68
|
+
"react-test-renderer": "^18.1.0",
|
|
49
69
|
"style-loader": "^3.3.0",
|
|
50
70
|
"typescript": "^4.5.2",
|
|
51
71
|
"webpack": "^5.72.0"
|
|
52
72
|
},
|
|
53
|
-
"dependencies": {
|
|
54
|
-
"@babel/core": "^7.15.5",
|
|
55
|
-
"@babel/generator": "^7.15.4",
|
|
56
|
-
"@babel/helper-plugin-utils": "^7.14.5",
|
|
57
|
-
"@babel/parser": "^7.15.7",
|
|
58
|
-
"@babel/traverse": "^7.15.4",
|
|
59
|
-
"@expo/match-media": "^0.1.0",
|
|
60
|
-
"@tamagui/build": "^1.0.0-beta.152+a2b40988",
|
|
61
|
-
"@tamagui/core-node": "^1.0.0-beta.152+a2b40988",
|
|
62
|
-
"@tamagui/fake-react-native": "^1.0.0-beta.152+a2b40988",
|
|
63
|
-
"@tamagui/helpers": "^1.0.0-beta.152+a2b40988",
|
|
64
|
-
"babel-literal-to-ast": "^2.1.0",
|
|
65
|
-
"esbuild": "^0.14.36",
|
|
66
|
-
"esbuild-register": "^3.1.2",
|
|
67
|
-
"find-cache-dir": "^3.3.2",
|
|
68
|
-
"fs-extra": "^9.1.0",
|
|
69
|
-
"invariant": "^2.2.4",
|
|
70
|
-
"lodash": "^4.17.21",
|
|
71
|
-
"tamagui": "^1.0.0-beta.152+a2b40988"
|
|
72
|
-
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"react-native-web": "*"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "a49cc7ea6b93ba384e77a4880ae48ac4a5635c14"
|
|
77
77
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"babelParse.d.ts","sourceRoot":"","sources":["../../src/extractor/babelParse.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,WAAW,MAAM,eAAe,CAAA;AAE5C,eAAO,MAAM,aAAa,EAAE,WAAW,CAAC,
|
|
1
|
+
{"version":3,"file":"babelParse.d.ts","sourceRoot":"","sources":["../../src/extractor/babelParse.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,WAAW,MAAM,eAAe,CAAA;AAE5C,eAAO,MAAM,aAAa,EAAE,WAAW,CAAC,aAgBtC,CAAA;AAIF,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,GAAG,CAErD"}
|
|
@@ -16,6 +16,8 @@ export declare function createExtractor(): {
|
|
|
16
16
|
[key: string]: string | {
|
|
17
17
|
[key: string]: any;
|
|
18
18
|
};
|
|
19
|
+
}, {
|
|
20
|
+
[key: string]: import("@tamagui/core-node").GenericFont<string | number>;
|
|
19
21
|
}>;
|
|
20
22
|
parse: (fileOrPath: NodePath<t.Program> | t.File, { config, importsWhitelist, evaluateVars, shouldPrintDebug, sourcePath, onExtractTag, getFlattenedNode, disable, disableExtraction, disableExtractInlineMedia, disableExtractVariables, disableDebugAttr, prefixLogs, excludeProps, ...props }: ExtractorParseProps) => {
|
|
21
23
|
flattened: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createExtractor.d.ts","sourceRoot":"","sources":["../../src/extractor/createExtractor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createExtractor.d.ts","sourceRoot":"","sources":["../../src/extractor/createExtractor.ts"],"names":[],"mappings":"AAEA,OAAiB,EAAE,QAAQ,EAAW,MAAM,iBAAiB,CAAA;AAC7D,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AACjC,OAAO,EAGL,qBAAqB,EAOtB,MAAM,oBAAoB,CAAA;AAK3B,OAAO,EAIL,mBAAmB,EAEpB,MAAM,UAAU,CAAA;AAqCjB,oBAAY,SAAS,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,CAAA;AAI1D,wBAAgB,eAAe;;;;;;;;;;;;;;;;wBAqBb,SAAS,EAAE,OAAO,CAAC,GAAG,MAAM,kPAiBrC,mBAAmB;;;;;;EA0/C3B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NodePath } from '@babel/traverse';
|
|
2
2
|
import * as t from '@babel/types';
|
|
3
|
-
import
|
|
3
|
+
import { TamaguiInternalConfig } from '@tamagui/core-node';
|
|
4
4
|
import { StyleObject, Ternary } from '../types';
|
|
5
5
|
export declare function extractMediaStyle(ternary: Ternary, jsxPath: NodePath<t.JSXElement>, tamaguiConfig: TamaguiInternalConfig, sourcePath: string, importance?: number, shouldPrintDebug?: boolean | 'verbose'): {
|
|
6
6
|
mediaStyles: StyleObject[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractMediaStyle.d.ts","sourceRoot":"","sources":["../../src/extractor/extractMediaStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AACjC,OAAO,
|
|
1
|
+
{"version":3,"file":"extractMediaStyle.d.ts","sourceRoot":"","sources":["../../src/extractor/extractMediaStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AACjC,OAAO,EAAE,qBAAqB,EAAwC,MAAM,oBAAoB,CAAA;AAIhG,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAG/C,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,EAC/B,aAAa,EAAE,qBAAqB,EACpC,UAAU,EAAE,MAAM,EAClB,UAAU,SAAI,EACd,gBAAgB,GAAE,OAAO,GAAG,SAAiB;;;SAyE9C;AAiFD,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,EAC/B,IAAI,EAAE,CAAC,CAAC,UAAU,EAClB,UAAU,EAAE,MAAM,WAiBnB"}
|
|
@@ -10,8 +10,9 @@ export declare type ExtractedResponse = {
|
|
|
10
10
|
ast: t.File;
|
|
11
11
|
map: any;
|
|
12
12
|
};
|
|
13
|
-
export declare function extractToClassNames({ loader, extractor, source, sourcePath, options, shouldPrintDebug, threaded, cssPath, }: {
|
|
13
|
+
export declare function extractToClassNames({ loader, extractor, source, sourcePath, options, shouldPrintDebug, cssLoaderPath, threaded, cssPath, }: {
|
|
14
14
|
loader: LoaderContext<any>;
|
|
15
|
+
cssLoaderPath: string;
|
|
15
16
|
extractor: Extractor;
|
|
16
17
|
source: string | Buffer;
|
|
17
18
|
sourcePath: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractToClassNames.d.ts","sourceRoot":"","sources":["../../src/extractor/extractToClassNames.ts"],"names":[],"mappings":";AAKA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAKjC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAGvC,OAAO,EAAgC,cAAc,EAAW,MAAM,UAAU,CAAA;AAGhF,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"extractToClassNames.d.ts","sourceRoot":"","sources":["../../src/extractor/extractToClassNames.ts"],"names":[],"mappings":";AAKA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAA;AAKjC,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAGvC,OAAO,EAAgC,cAAc,EAAW,MAAM,UAAU,CAAA;AAGhF,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAiB7C,oBAAY,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,GAAG,EAAE,CAAC,CAAC,IAAI,CAAA;IACX,GAAG,EAAE,GAAG,CAAA;CACT,CAAA;AAED,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,SAAS,EACT,MAAM,EACN,UAAU,EACV,OAAO,EACP,gBAAgB,EAChB,aAAa,EACb,QAAQ,EACR,OAAO,GACR,EAAE;IACD,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,CAAA;IAC1B,aAAa,EAAE,MAAM,CAAA;IACrB,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,cAAc,CAAA;IACvB,gBAAgB,EAAE,OAAO,GAAG,SAAS,CAAA;IACrC,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,GAAG,iBAAiB,GAAG,IAAI,CAkY3B"}
|
|
@@ -1 +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;
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadTamagui.d.ts","sourceRoot":"","sources":["../../src/extractor/loadTamagui.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAK5E,wBAAgB,WAAW,CAAC,KAAK,EAAE;IAAE,UAAU,EAAE,MAAM,EAAE,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG;IAC5E,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAA;IAC5C,aAAa,EAAE,qBAAqB,CAAA;CACrC,
|
|
1
|
+
{"version":3,"file":"loadTamagui.d.ts","sourceRoot":"","sources":["../../src/extractor/loadTamagui.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAK5E,wBAAgB,WAAW,CAAC,KAAK,EAAE;IAAE,UAAU,EAAE,MAAM,EAAE,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG;IAC5E,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAA;IAC5C,aAAa,EAAE,qBAAqB,CAAA;CACrC,CAiIA"}
|
|
@@ -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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patchReactNativeWeb.d.ts","sourceRoot":"","sources":["../src/patchReactNativeWeb.ts"],"names":[],"mappings":"AAUA,wBAAgB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"patchReactNativeWeb.d.ts","sourceRoot":"","sources":["../src/patchReactNativeWeb.ts"],"names":[],"mappings":"AAUA,wBAAgB,mBAAmB,SA8FlC"}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2020 Nate Wienert
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|