@plasmicapp/loader-react 1.0.153 → 1.0.156
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/component-lookup.d.ts +2 -1
- package/dist/loader-react.cjs.development.js +86 -2
- package/dist/loader-react.cjs.development.js.map +1 -1
- package/dist/loader-react.cjs.production.min.js +1 -1
- package/dist/loader-react.cjs.production.min.js.map +1 -1
- package/dist/loader-react.esm.js +87 -3
- package/dist/loader-react.esm.js.map +1 -1
- package/dist/loader.d.ts +6 -1
- package/dist/variation.d.ts +1 -0
- package/package.json +5 -5
package/dist/loader.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentMeta as InternalCodeComponentMeta, GlobalContextMeta as InternalGlobalContextMeta, TraitMeta } from '@plasmicapp/host';
|
|
2
|
-
import { ComponentMeta, LoaderBundleCache, LoaderBundleOutput, PageMeta } from '@plasmicapp/loader-core';
|
|
2
|
+
import { ComponentMeta, LoaderBundleCache, LoaderBundleOutput, PageMeta, TrackRenderOptions } from '@plasmicapp/loader-core';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { ComponentLookup } from './component-lookup';
|
|
5
5
|
import { GlobalVariantSpec } from './PlasmicRootProvider';
|
|
@@ -58,6 +58,7 @@ export declare class InternalPlasmicComponentLoader {
|
|
|
58
58
|
private roots;
|
|
59
59
|
private globalVariants;
|
|
60
60
|
private bundle;
|
|
61
|
+
private tracker;
|
|
61
62
|
private substitutedComponents;
|
|
62
63
|
private substitutedGlobalVariantHooks;
|
|
63
64
|
constructor(opts: InitOptions);
|
|
@@ -79,6 +80,7 @@ export declare class InternalPlasmicComponentLoader {
|
|
|
79
80
|
fetchComponents(): Promise<ComponentMeta[]>;
|
|
80
81
|
getLookup(): ComponentLookup;
|
|
81
82
|
getActiveSplits(): import("@plasmicapp/loader-core").Split[];
|
|
83
|
+
trackConversion(value?: number): void;
|
|
82
84
|
private fetchMissingData;
|
|
83
85
|
private maybeReportClientSideFetch;
|
|
84
86
|
getActiveVariation(opts: {
|
|
@@ -86,6 +88,8 @@ export declare class InternalPlasmicComponentLoader {
|
|
|
86
88
|
getKnownValue: (key: string) => string | undefined;
|
|
87
89
|
updateKnownValue: (key: string, value: string) => void;
|
|
88
90
|
}): Promise<Record<string, string>>;
|
|
91
|
+
getTeamIds(): string[];
|
|
92
|
+
trackRender(opts?: TrackRenderOptions): void;
|
|
89
93
|
private fetchAllData;
|
|
90
94
|
private mergeBundle;
|
|
91
95
|
private refreshRegistry;
|
|
@@ -170,6 +174,7 @@ export declare class PlasmicComponentLoader {
|
|
|
170
174
|
}): Promise<Record<string, string>>;
|
|
171
175
|
getExternalVariation(variation: Record<string, string>): Record<string, string>;
|
|
172
176
|
getActiveSplits(): import("@plasmicapp/loader-core").Split[];
|
|
177
|
+
trackConversion(value?: number): void;
|
|
173
178
|
clearCache(): void;
|
|
174
179
|
}
|
|
175
180
|
export {};
|
package/dist/variation.d.ts
CHANGED
|
@@ -4,5 +4,6 @@ export declare function getPlasmicCookieValues(): {
|
|
|
4
4
|
[k: string]: string;
|
|
5
5
|
};
|
|
6
6
|
export declare function updatePlasmicCookieValue(key: string, value: string): void;
|
|
7
|
+
export declare function ensureVariationCookies(variation?: Record<string, string>): void;
|
|
7
8
|
export declare const getGlobalVariantsFromSplits: (splits: Split[], variation: Record<string, string>) => GlobalVariantSpec[];
|
|
8
9
|
export declare const mergeGlobalVariantsSpec: (target: GlobalVariantSpec[], from: GlobalVariantSpec[]) => GlobalVariantSpec[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicapp/loader-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.156",
|
|
4
4
|
"module": "dist/loader-react.esm.js",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@plasmicapp/host": "1.0.71",
|
|
26
|
-
"@plasmicapp/loader-core": "1.0.
|
|
27
|
-
"@plasmicapp/loader-splits": "1.0.
|
|
28
|
-
"@plasmicapp/query": "0.1.
|
|
26
|
+
"@plasmicapp/loader-core": "1.0.77",
|
|
27
|
+
"@plasmicapp/loader-splits": "1.0.12",
|
|
28
|
+
"@plasmicapp/query": "0.1.52",
|
|
29
29
|
"pascalcase": "^1.0.0",
|
|
30
30
|
"react-is": "^17.0.2",
|
|
31
31
|
"react-ssr-prepass": "^1.4.0"
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"typescript": "^4.3.2"
|
|
75
75
|
},
|
|
76
76
|
"license": "MIT",
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "ce99baa8847ea403f2cca0a269cc7761991939d0"
|
|
78
78
|
}
|