@wix/web5-core 1.63.2 → 1.63.4
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/cjs/index.js +10 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/theme/colorFormat.js +105 -0
- package/dist/cjs/theme/colorFormat.js.map +1 -0
- package/dist/cjs/theme/tokenContract.js +32 -8
- package/dist/cjs/theme/tokenContract.js.map +1 -1
- package/dist/cjs/utils/simulation.js +47 -0
- package/dist/cjs/utils/simulation.js.map +1 -0
- package/dist/esm/index.js +3 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/theme/colorFormat.js +99 -0
- package/dist/esm/theme/colorFormat.js.map +1 -0
- package/dist/esm/theme/tokenContract.js +34 -7
- package/dist/esm/theme/tokenContract.js.map +1 -1
- package/dist/esm/utils/simulation.js +42 -0
- package/dist/esm/utils/simulation.js.map +1 -0
- package/dist/types/index.d.ts +3 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/theme/colorFormat.d.ts +35 -0
- package/dist/types/theme/colorFormat.d.ts.map +1 -0
- package/dist/types/theme/tokenContract.d.ts +13 -0
- package/dist/types/theme/tokenContract.d.ts.map +1 -1
- package/dist/types/utils/simulation.d.ts +18 -0
- package/dist/types/utils/simulation.d.ts.map +1 -0
- package/package.json +2 -2
|
@@ -96,6 +96,19 @@ export declare const BRAND_TOKENS: ReadonlySet<string>;
|
|
|
96
96
|
* the declaration is built rather than trusted from the source.
|
|
97
97
|
*/
|
|
98
98
|
export declare const TOKEN_NAME_PATTERN: RegExp;
|
|
99
|
+
/**
|
|
100
|
+
* What the owner's panel offers, in the order it offers it.
|
|
101
|
+
*
|
|
102
|
+
* Derived from the contract rather than listed again beside it, so a token
|
|
103
|
+
* cannot be editable in one place and absent from the other. The order is the
|
|
104
|
+
* declaration order above, which reads outside-in — the page, then its text,
|
|
105
|
+
* then the things drawn on it — and is a better first impression than
|
|
106
|
+
* alphabetical or than the order the tokens happen to be defined for CSS.
|
|
107
|
+
*/
|
|
108
|
+
export declare const EDITABLE_TOKENS: readonly (readonly [
|
|
109
|
+
token: string,
|
|
110
|
+
entry: TokenContractEntry
|
|
111
|
+
])[];
|
|
99
112
|
/** `--radius` → `--web5-host-radius`. Derived, never stored: one fewer thing to get wrong. */
|
|
100
113
|
export declare function hostAliasFor(token: string): string;
|
|
101
114
|
/** Whether this token is written directly (brand) or as an alias (host, and anything unknown). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokenContract.d.ts","sourceRoot":"","sources":["../../../src/theme/tokenContract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AAEH,uEAAuE;AACvE,MAAM,MAAM,SAAS;AACnB,oFAAoF;AAClF,WAAW;AACb,iEAAiE;GAC/D,YAAY;AACd;yEACyE;GACvE,QAAQ,CAAC;AAEb,0EAA0E;AAC1E,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,CAAC;AAE3C,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,WAAW,CAAC;IACpB,IAAI,EAAE,SAAS,CAAC;IAChB,kDAAkD;IAClD,QAAQ,EAAE,OAAO,CAAC;IAClB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;
|
|
1
|
+
{"version":3,"file":"tokenContract.d.ts","sourceRoot":"","sources":["../../../src/theme/tokenContract.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AAEH,uEAAuE;AACvE,MAAM,MAAM,SAAS;AACnB,oFAAoF;AAClF,WAAW;AACb,iEAAiE;GAC/D,YAAY;AACd;yEACyE;GACvE,QAAQ,CAAC;AAEb,0EAA0E;AAC1E,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,CAAC;AAE3C,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,WAAW,CAAC;IACpB,IAAI,EAAE,SAAS,CAAC;IAChB,kDAAkD;IAClD,QAAQ,EAAE,OAAO,CAAC;IAClB,4EAA4E;IAC5E,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAsBD;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAAC,CA8C1E,CAAC;AAEL;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,WAAW,CAAC,MAAM,CAMrB,CAAC;AAEzB;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,QAAmB,CAAC;AAEnD;;;;;;;;GAQG;AACH,eAAO,MAAM,eAAe,EAAE,SAAS,CAAC,SAAS;IAC/C,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,kBAAkB;CAC1B,CAAC,EAEqD,CAAC;AAExD,8FAA8F;AAC9F,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAElD;AAED,kGAAkG;AAClG,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CAEnD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Synthetic-traffic detection.
|
|
3
|
+
*
|
|
4
|
+
* The prompt-simulation job opens host pages with `?isSimulation=true`. The
|
|
5
|
+
* embed runs inside an iframe on that host page, so the flag lives on the
|
|
6
|
+
* top/referrer URL, not the iframe's own location — all three are checked.
|
|
7
|
+
*
|
|
8
|
+
* Used to tag synthetic traffic: the BI `isSimulation` flag, and the
|
|
9
|
+
* `automation` header on Turn requests (so the BE excludes it from quota).
|
|
10
|
+
* Lives in web5-core so every surface (main chat + embed placements) shares one
|
|
11
|
+
* gate.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* True when the current page (or its top window / referrer) was opened with
|
|
15
|
+
* `?isSimulation=true`.
|
|
16
|
+
*/
|
|
17
|
+
export declare const isSimulationTraffic: () => boolean;
|
|
18
|
+
//# sourceMappingURL=simulation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simulation.d.ts","sourceRoot":"","sources":["../../../src/utils/simulation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAYH;;;GAGG;AACH,eAAO,MAAM,mBAAmB,QAAO,OAiBtC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/web5-core",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.63.
|
|
4
|
+
"version": "1.63.4",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "tsachis",
|
|
7
7
|
"email": "tsachis@wix.com"
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"wallaby": {
|
|
101
101
|
"autoDetect": true
|
|
102
102
|
},
|
|
103
|
-
"falconPackageHash": "
|
|
103
|
+
"falconPackageHash": "cecf690dfb053b4d4e5971a97e25c91a89c362ae94d889f369b5252c"
|
|
104
104
|
}
|