@plasmicapp/loader-splits 1.0.47 → 1.0.48
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/index.d.ts +22 -2
- package/package.json +3 -3
- package/dist/random.d.ts +0 -1
- package/dist/variation.d.ts +0 -16
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import type { Split } from '@plasmicapp/loader-fetcher';
|
|
2
|
+
|
|
3
|
+
declare interface ExternalIDsFilters {
|
|
4
|
+
projectIds?: string[];
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export declare function getActiveVariation(opts: {
|
|
8
|
+
splits: Split[];
|
|
9
|
+
traits: Record<string, string | number | boolean>;
|
|
10
|
+
getKnownValue?: (key: string) => string | undefined;
|
|
11
|
+
updateKnownValue?: (key: string, value: string) => void;
|
|
12
|
+
getRandomValue?: (key: string) => number;
|
|
13
|
+
enableUnseededExperiments?: boolean;
|
|
14
|
+
}): Record<string, string>;
|
|
15
|
+
|
|
16
|
+
export declare function getExternalIds(splits: Split[], variation: Record<string, string>, filters?: ExternalIDsFilters): Record<string, string>;
|
|
17
|
+
|
|
18
|
+
export declare const getSeededRandomFunction: (strSeed: string) => () => number;
|
|
19
|
+
|
|
20
|
+
export declare const getSplitKey: (split: Split) => string;
|
|
21
|
+
|
|
22
|
+
export { }
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.0.
|
|
2
|
+
"version": "1.0.48",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"types": "./dist/index.d.ts",
|
|
5
5
|
"main": "./dist/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
}
|
|
39
39
|
],
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@plasmicapp/loader-fetcher": "1.0.
|
|
41
|
+
"@plasmicapp/loader-fetcher": "1.0.42",
|
|
42
42
|
"@types/json-logic-js": "^1.2.1"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "48a2877c3dc093d101508fcdde2fd213055fdab9"
|
|
51
51
|
}
|
package/dist/random.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getSeededRandomFunction: (strSeed: string) => () => number;
|
package/dist/variation.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Split } from "@plasmicapp/loader-fetcher";
|
|
2
|
-
export declare const PLASMIC_SEED = "plasmic_seed";
|
|
3
|
-
export declare const getSplitKey: (split: Split) => string;
|
|
4
|
-
export declare function getActiveVariation(opts: {
|
|
5
|
-
splits: Split[];
|
|
6
|
-
traits: Record<string, string | number | boolean>;
|
|
7
|
-
getKnownValue?: (key: string) => string | undefined;
|
|
8
|
-
updateKnownValue?: (key: string, value: string) => void;
|
|
9
|
-
getRandomValue?: (key: string) => number;
|
|
10
|
-
enableUnseededExperiments?: boolean;
|
|
11
|
-
}): Record<string, string>;
|
|
12
|
-
interface ExternalIDsFilters {
|
|
13
|
-
projectIds?: string[];
|
|
14
|
-
}
|
|
15
|
-
export declare function getExternalIds(splits: Split[], variation: Record<string, string>, filters?: ExternalIDsFilters): Record<string, string>;
|
|
16
|
-
export {};
|