@fragmentsx/client-core 0.1.3 → 0.1.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/index.cjs.js +24 -6
- package/dist/index.es.js +24 -6
- package/package.json +1 -1
- package/dist/fragmentsClient.d.ts +0 -26
- package/dist/fragmentsClient.d.ts.map +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/plugins/fetch/beacon.d.ts +0 -4
- package/dist/plugins/fetch/beacon.d.ts.map +0 -1
- package/dist/plugins/fetch/emptyFragment.d.ts +0 -50
- package/dist/plugins/fetch/emptyFragment.d.ts.map +0 -1
- package/dist/plugins/fetch/fetcher.d.ts +0 -8
- package/dist/plugins/fetch/fetcher.d.ts.map +0 -1
- package/dist/plugins/fetch/index.d.ts +0 -28
- package/dist/plugins/fetch/index.d.ts.map +0 -1
- package/dist/plugins/fetch/queries/AreaListQuery.d.ts +0 -26
- package/dist/plugins/fetch/queries/AreaListQuery.d.ts.map +0 -1
- package/dist/plugins/fetch/queries/AreaQuery.d.ts +0 -24
- package/dist/plugins/fetch/queries/AreaQuery.d.ts.map +0 -1
- package/dist/plugins/fetch/queries/FragmentQuery.d.ts +0 -28
- package/dist/plugins/fetch/queries/FragmentQuery.d.ts.map +0 -1
- package/dist/plugins/fragments/index.d.ts +0 -17
- package/dist/plugins/fragments/index.d.ts.map +0 -1
- package/dist/plugins/lifecycle/globalManagerLifeCycle.d.ts +0 -16
- package/dist/plugins/lifecycle/globalManagerLifeCycle.d.ts.map +0 -1
- package/dist/plugins/load/index.d.ts +0 -18
- package/dist/plugins/load/index.d.ts.map +0 -1
- package/dist/plugins/metrics/globalMetrics.d.ts +0 -11
- package/dist/plugins/metrics/globalMetrics.d.ts.map +0 -1
- package/dist/plugins/metrics/index.d.ts +0 -3
- package/dist/plugins/metrics/index.d.ts.map +0 -1
- package/dist/plugins/metrics/queries/addClientMetric.d.ts +0 -2
- package/dist/plugins/metrics/queries/addClientMetric.d.ts.map +0 -1
- package/dist/plugins/metrics/trackAdPixel.d.ts +0 -4
- package/dist/plugins/metrics/trackAdPixel.d.ts.map +0 -1
- package/dist/plugins/scopes/index.d.ts +0 -11
- package/dist/plugins/scopes/index.d.ts.map +0 -1
- package/dist/plugins/ssr/index.d.ts +0 -11
- package/dist/plugins/ssr/index.d.ts.map +0 -1
- package/dist/plugins/styleSheet/fragment/index.d.ts +0 -9
- package/dist/plugins/styleSheet/fragment/index.d.ts.map +0 -1
- package/dist/plugins/styleSheet/global/index.d.ts +0 -3
- package/dist/plugins/styleSheet/global/index.d.ts.map +0 -1
- package/dist/plugins/styleSheet/index.d.ts +0 -3
- package/dist/plugins/styleSheet/index.d.ts.map +0 -1
- package/dist/plugins/styleSheet/utils/autoInjector.d.ts +0 -7
- package/dist/plugins/styleSheet/utils/autoInjector.d.ts.map +0 -1
- package/dist/plugins/styleSheet/utils/buildCssBlock.d.ts +0 -6
- package/dist/plugins/styleSheet/utils/buildCssBlock.d.ts.map +0 -1
- package/dist/plugins/styleSheet/utils/compareRules.d.ts +0 -3
- package/dist/plugins/styleSheet/utils/compareRules.d.ts.map +0 -1
- package/dist/plugins/styleSheet/utils/findGroups.d.ts +0 -11
- package/dist/plugins/styleSheet/utils/findGroups.d.ts.map +0 -1
- package/dist/plugins/styleSheet/utils/getAllChildren.d.ts +0 -4
- package/dist/plugins/styleSheet/utils/getAllChildren.d.ts.map +0 -1
- package/dist/plugins/styleSheet/utils/makeCss.d.ts +0 -5
- package/dist/plugins/styleSheet/utils/makeCss.d.ts.map +0 -1
- package/dist/plugins/styleSheet/utils/toCSS.d.ts +0 -3
- package/dist/plugins/styleSheet/utils/toCSS.d.ts.map +0 -1
package/dist/index.cjs.js
CHANGED
|
@@ -735,6 +735,7 @@ const renderMode = createConstants$1("viewport", "parent", "fixed");
|
|
|
735
735
|
const interactions = createConstants$1("click", "mouseover", "appear");
|
|
736
736
|
const eventMode = createConstants$1("goal", "callback", "tracker");
|
|
737
737
|
const scopeTypes = createConstants$1(
|
|
738
|
+
"AreaScope",
|
|
738
739
|
"InstanceScope",
|
|
739
740
|
"FragmentScope",
|
|
740
741
|
"CollectionScope",
|
|
@@ -1579,7 +1580,8 @@ const SceneSchema = /* @__PURE__ */ object({
|
|
|
1579
1580
|
}),
|
|
1580
1581
|
visible: layerField(/* @__PURE__ */ boolean(), { fallback: true, variable: true }),
|
|
1581
1582
|
rotate: layerField(/* @__PURE__ */ number(), { fallback: null }),
|
|
1582
|
-
zIndex: layerField(/* @__PURE__ */ number(), { fallback:
|
|
1583
|
+
zIndex: layerField(/* @__PURE__ */ number(), { fallback: null }),
|
|
1584
|
+
classnames: layerField(/* @__PURE__ */ array(/* @__PURE__ */ number()), { fallback: [] })
|
|
1583
1585
|
});
|
|
1584
1586
|
const FillSchema = /* @__PURE__ */ object({
|
|
1585
1587
|
fillType: layerField(/* @__PURE__ */ picklist(Object.keys(paintMode)), {
|
|
@@ -1726,7 +1728,7 @@ const LinkSchema = /* @__PURE__ */ object({
|
|
|
1726
1728
|
fallback: ""
|
|
1727
1729
|
}),
|
|
1728
1730
|
whiteSpace: layerField(/* @__PURE__ */ enum_(Object.keys(whiteSpace)), {
|
|
1729
|
-
fallback: whiteSpace.
|
|
1731
|
+
fallback: whiteSpace.normal
|
|
1730
1732
|
}),
|
|
1731
1733
|
textAlign: layerField(/* @__PURE__ */ string(), { fallback: "left" }),
|
|
1732
1734
|
parent: layerField(/* @__PURE__ */ nullable(/* @__PURE__ */ string()), { overridable: false }),
|
|
@@ -1848,6 +1850,7 @@ const LinkSchema = /* @__PURE__ */ object({
|
|
|
1848
1850
|
required: layerField(/* @__PURE__ */ boolean(), { fallback: false }),
|
|
1849
1851
|
placeholder: layerField(/* @__PURE__ */ string(), { fallback: "" }),
|
|
1850
1852
|
isTextarea: layerField(/* @__PURE__ */ boolean(), { fallback: false }),
|
|
1853
|
+
isRich: layerField(/* @__PURE__ */ boolean(), { fallback: false }),
|
|
1851
1854
|
...GraphFieldSchema.entries
|
|
1852
1855
|
});
|
|
1853
1856
|
/* @__PURE__ */ object({
|
|
@@ -2062,6 +2065,8 @@ var isBrowser_default = typeof window !== "undefined";
|
|
|
2062
2065
|
var getKey = (v) => isKey(v) ? v.slice(1) : null;
|
|
2063
2066
|
var isKey = (v) => typeof v === "string" && v.startsWith("$");
|
|
2064
2067
|
function hashGenerator(layerKey) {
|
|
2068
|
+
if (!(layerKey == null ? void 0 : layerKey.length))
|
|
2069
|
+
return layerKey;
|
|
2065
2070
|
let hash = 0;
|
|
2066
2071
|
for (let i2 = 0; i2 < layerKey.length; i2++) {
|
|
2067
2072
|
hash = (hash << 5) - hash + layerKey.charCodeAt(i2);
|
|
@@ -2087,9 +2092,12 @@ const getAreaListQuery = (areaCodes) => {
|
|
|
2087
2092
|
return {
|
|
2088
2093
|
query: `query($areaCodes: [String!]!) {
|
|
2089
2094
|
clientAreas(areaCodes: $areaCodes) {
|
|
2095
|
+
areaId
|
|
2096
|
+
campaignId
|
|
2090
2097
|
areaProperties
|
|
2091
2098
|
projectProperties
|
|
2092
2099
|
variant {
|
|
2100
|
+
id
|
|
2093
2101
|
fragment {
|
|
2094
2102
|
props
|
|
2095
2103
|
fragment {
|
|
@@ -2203,6 +2211,9 @@ const fetchPlugin = (state) => {
|
|
|
2203
2211
|
return acc;
|
|
2204
2212
|
}, area.variant.fragment.props);
|
|
2205
2213
|
const entity = {
|
|
2214
|
+
areaId: area.areaId,
|
|
2215
|
+
campaignId: area.campaignId,
|
|
2216
|
+
variantId: area.variant.id,
|
|
2206
2217
|
fragmentId: area.variant.fragment.fragment.id,
|
|
2207
2218
|
props: resultProps
|
|
2208
2219
|
};
|
|
@@ -2295,10 +2306,14 @@ const makeCss = (styles, layerResolver) => (layerKey) => {
|
|
|
2295
2306
|
};
|
|
2296
2307
|
};
|
|
2297
2308
|
const autoInjector = (key, state, graphKey, transformStyles) => {
|
|
2309
|
+
let countDepends = 0;
|
|
2298
2310
|
const removeStyle = () => {
|
|
2299
2311
|
if (!isBrowser_default) return;
|
|
2300
|
-
|
|
2301
|
-
if (
|
|
2312
|
+
countDepends--;
|
|
2313
|
+
if (countDepends <= 0) {
|
|
2314
|
+
const el = document.getElementById(key);
|
|
2315
|
+
if (el) el.remove();
|
|
2316
|
+
}
|
|
2302
2317
|
};
|
|
2303
2318
|
const injectStyle = (styles) => {
|
|
2304
2319
|
if (!isBrowser_default) return;
|
|
@@ -2306,6 +2321,7 @@ const autoInjector = (key, state, graphKey, transformStyles) => {
|
|
|
2306
2321
|
removeStyle();
|
|
2307
2322
|
return;
|
|
2308
2323
|
}
|
|
2324
|
+
countDepends++;
|
|
2309
2325
|
const existing = document.getElementById(key);
|
|
2310
2326
|
if (existing && existing.tagName === "STYLE") {
|
|
2311
2327
|
existing.textContent = styles;
|
|
@@ -2334,6 +2350,7 @@ const autoInjector = (key, state, graphKey, transformStyles) => {
|
|
|
2334
2350
|
const mount = () => {
|
|
2335
2351
|
isMounted = true;
|
|
2336
2352
|
if (pendingStyles) {
|
|
2353
|
+
countDepends++;
|
|
2337
2354
|
injectStyle(pendingStyles);
|
|
2338
2355
|
} else {
|
|
2339
2356
|
removeStyle();
|
|
@@ -2538,6 +2555,7 @@ const fragmentsPlugin = (options) => (state) => {
|
|
|
2538
2555
|
[fragmentId]: manager
|
|
2539
2556
|
}
|
|
2540
2557
|
});
|
|
2558
|
+
return manager;
|
|
2541
2559
|
};
|
|
2542
2560
|
const getManager = (fragmentId) => {
|
|
2543
2561
|
var _a, _b;
|
|
@@ -2560,8 +2578,8 @@ const fragmentsPlugin = (options) => (state) => {
|
|
|
2560
2578
|
});
|
|
2561
2579
|
return state;
|
|
2562
2580
|
};
|
|
2563
|
-
const addClientMetric = `mutation AddClientMetric($type: ClientMetricType!, $value:
|
|
2564
|
-
addClientMetric(metric: {metricType: $type,
|
|
2581
|
+
const addClientMetric = `mutation AddClientMetric($type: ClientMetricType!, $value: GoalAchievementPost!) {
|
|
2582
|
+
addClientMetric(metric: {metricType: $type, achievement: $value})
|
|
2565
2583
|
}`;
|
|
2566
2584
|
const pendingPixels = /* @__PURE__ */ new Set();
|
|
2567
2585
|
const sendWithImage = (url) => {
|
package/dist/index.es.js
CHANGED
|
@@ -733,6 +733,7 @@ const renderMode = createConstants$1("viewport", "parent", "fixed");
|
|
|
733
733
|
const interactions = createConstants$1("click", "mouseover", "appear");
|
|
734
734
|
const eventMode = createConstants$1("goal", "callback", "tracker");
|
|
735
735
|
const scopeTypes = createConstants$1(
|
|
736
|
+
"AreaScope",
|
|
736
737
|
"InstanceScope",
|
|
737
738
|
"FragmentScope",
|
|
738
739
|
"CollectionScope",
|
|
@@ -1577,7 +1578,8 @@ const SceneSchema = /* @__PURE__ */ object({
|
|
|
1577
1578
|
}),
|
|
1578
1579
|
visible: layerField(/* @__PURE__ */ boolean(), { fallback: true, variable: true }),
|
|
1579
1580
|
rotate: layerField(/* @__PURE__ */ number(), { fallback: null }),
|
|
1580
|
-
zIndex: layerField(/* @__PURE__ */ number(), { fallback:
|
|
1581
|
+
zIndex: layerField(/* @__PURE__ */ number(), { fallback: null }),
|
|
1582
|
+
classnames: layerField(/* @__PURE__ */ array(/* @__PURE__ */ number()), { fallback: [] })
|
|
1581
1583
|
});
|
|
1582
1584
|
const FillSchema = /* @__PURE__ */ object({
|
|
1583
1585
|
fillType: layerField(/* @__PURE__ */ picklist(Object.keys(paintMode)), {
|
|
@@ -1724,7 +1726,7 @@ const LinkSchema = /* @__PURE__ */ object({
|
|
|
1724
1726
|
fallback: ""
|
|
1725
1727
|
}),
|
|
1726
1728
|
whiteSpace: layerField(/* @__PURE__ */ enum_(Object.keys(whiteSpace)), {
|
|
1727
|
-
fallback: whiteSpace.
|
|
1729
|
+
fallback: whiteSpace.normal
|
|
1728
1730
|
}),
|
|
1729
1731
|
textAlign: layerField(/* @__PURE__ */ string(), { fallback: "left" }),
|
|
1730
1732
|
parent: layerField(/* @__PURE__ */ nullable(/* @__PURE__ */ string()), { overridable: false }),
|
|
@@ -1846,6 +1848,7 @@ const LinkSchema = /* @__PURE__ */ object({
|
|
|
1846
1848
|
required: layerField(/* @__PURE__ */ boolean(), { fallback: false }),
|
|
1847
1849
|
placeholder: layerField(/* @__PURE__ */ string(), { fallback: "" }),
|
|
1848
1850
|
isTextarea: layerField(/* @__PURE__ */ boolean(), { fallback: false }),
|
|
1851
|
+
isRich: layerField(/* @__PURE__ */ boolean(), { fallback: false }),
|
|
1849
1852
|
...GraphFieldSchema.entries
|
|
1850
1853
|
});
|
|
1851
1854
|
/* @__PURE__ */ object({
|
|
@@ -2060,6 +2063,8 @@ var isBrowser_default = typeof window !== "undefined";
|
|
|
2060
2063
|
var getKey = (v) => isKey(v) ? v.slice(1) : null;
|
|
2061
2064
|
var isKey = (v) => typeof v === "string" && v.startsWith("$");
|
|
2062
2065
|
function hashGenerator(layerKey) {
|
|
2066
|
+
if (!(layerKey == null ? void 0 : layerKey.length))
|
|
2067
|
+
return layerKey;
|
|
2063
2068
|
let hash = 0;
|
|
2064
2069
|
for (let i2 = 0; i2 < layerKey.length; i2++) {
|
|
2065
2070
|
hash = (hash << 5) - hash + layerKey.charCodeAt(i2);
|
|
@@ -2085,9 +2090,12 @@ const getAreaListQuery = (areaCodes) => {
|
|
|
2085
2090
|
return {
|
|
2086
2091
|
query: `query($areaCodes: [String!]!) {
|
|
2087
2092
|
clientAreas(areaCodes: $areaCodes) {
|
|
2093
|
+
areaId
|
|
2094
|
+
campaignId
|
|
2088
2095
|
areaProperties
|
|
2089
2096
|
projectProperties
|
|
2090
2097
|
variant {
|
|
2098
|
+
id
|
|
2091
2099
|
fragment {
|
|
2092
2100
|
props
|
|
2093
2101
|
fragment {
|
|
@@ -2201,6 +2209,9 @@ const fetchPlugin = (state) => {
|
|
|
2201
2209
|
return acc;
|
|
2202
2210
|
}, area.variant.fragment.props);
|
|
2203
2211
|
const entity = {
|
|
2212
|
+
areaId: area.areaId,
|
|
2213
|
+
campaignId: area.campaignId,
|
|
2214
|
+
variantId: area.variant.id,
|
|
2204
2215
|
fragmentId: area.variant.fragment.fragment.id,
|
|
2205
2216
|
props: resultProps
|
|
2206
2217
|
};
|
|
@@ -2293,10 +2304,14 @@ const makeCss = (styles, layerResolver) => (layerKey) => {
|
|
|
2293
2304
|
};
|
|
2294
2305
|
};
|
|
2295
2306
|
const autoInjector = (key, state, graphKey, transformStyles) => {
|
|
2307
|
+
let countDepends = 0;
|
|
2296
2308
|
const removeStyle = () => {
|
|
2297
2309
|
if (!isBrowser_default) return;
|
|
2298
|
-
|
|
2299
|
-
if (
|
|
2310
|
+
countDepends--;
|
|
2311
|
+
if (countDepends <= 0) {
|
|
2312
|
+
const el = document.getElementById(key);
|
|
2313
|
+
if (el) el.remove();
|
|
2314
|
+
}
|
|
2300
2315
|
};
|
|
2301
2316
|
const injectStyle = (styles) => {
|
|
2302
2317
|
if (!isBrowser_default) return;
|
|
@@ -2304,6 +2319,7 @@ const autoInjector = (key, state, graphKey, transformStyles) => {
|
|
|
2304
2319
|
removeStyle();
|
|
2305
2320
|
return;
|
|
2306
2321
|
}
|
|
2322
|
+
countDepends++;
|
|
2307
2323
|
const existing = document.getElementById(key);
|
|
2308
2324
|
if (existing && existing.tagName === "STYLE") {
|
|
2309
2325
|
existing.textContent = styles;
|
|
@@ -2332,6 +2348,7 @@ const autoInjector = (key, state, graphKey, transformStyles) => {
|
|
|
2332
2348
|
const mount = () => {
|
|
2333
2349
|
isMounted = true;
|
|
2334
2350
|
if (pendingStyles) {
|
|
2351
|
+
countDepends++;
|
|
2335
2352
|
injectStyle(pendingStyles);
|
|
2336
2353
|
} else {
|
|
2337
2354
|
removeStyle();
|
|
@@ -2536,6 +2553,7 @@ const fragmentsPlugin = (options) => (state) => {
|
|
|
2536
2553
|
[fragmentId]: manager
|
|
2537
2554
|
}
|
|
2538
2555
|
});
|
|
2556
|
+
return manager;
|
|
2539
2557
|
};
|
|
2540
2558
|
const getManager = (fragmentId) => {
|
|
2541
2559
|
var _a, _b;
|
|
@@ -2558,8 +2576,8 @@ const fragmentsPlugin = (options) => (state) => {
|
|
|
2558
2576
|
});
|
|
2559
2577
|
return state;
|
|
2560
2578
|
};
|
|
2561
|
-
const addClientMetric = `mutation AddClientMetric($type: ClientMetricType!, $value:
|
|
2562
|
-
addClientMetric(metric: {metricType: $type,
|
|
2579
|
+
const addClientMetric = `mutation AddClientMetric($type: ClientMetricType!, $value: GoalAchievementPost!) {
|
|
2580
|
+
addClientMetric(metric: {metricType: $type, achievement: $value})
|
|
2563
2581
|
}`;
|
|
2564
2582
|
const pendingPixels = /* @__PURE__ */ new Set();
|
|
2565
2583
|
const sendWithImage = (url) => {
|
package/package.json
CHANGED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Plugin } from '@graph-state/core';
|
|
2
|
-
declare module "@graph-state/core" {
|
|
3
|
-
interface GraphState {
|
|
4
|
-
env: {
|
|
5
|
-
isSelf: boolean;
|
|
6
|
-
apiToken: string;
|
|
7
|
-
backendEndpoint: string;
|
|
8
|
-
referer?: string;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
interface Options {
|
|
13
|
-
apiToken: string;
|
|
14
|
-
referer?: string;
|
|
15
|
-
backendEndpoint?: string;
|
|
16
|
-
isSelf?: boolean;
|
|
17
|
-
fragmentPlugins?: Plugin[];
|
|
18
|
-
}
|
|
19
|
-
export declare const PLUGIN_TYPES: {
|
|
20
|
-
FragmentsPlugin: "FragmentsPlugin";
|
|
21
|
-
GlobalStylesheet: "GlobalStylesheet";
|
|
22
|
-
FragmentStylesheet: "FragmentStylesheet";
|
|
23
|
-
};
|
|
24
|
-
export declare const createFragmentsClient: (options: Options) => import('@graph-state/core').GraphState<import('@graph-state/core').SystemFields, "GlobalManager">;
|
|
25
|
-
export {};
|
|
26
|
-
//# sourceMappingURL=fragmentsClient.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fragmentsClient.d.ts","sourceRoot":"","sources":["../src/fragmentsClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAUxD,OAAO,QAAQ,mBAAmB,CAAC;IACjC,UAAU,UAAU;QAClB,GAAG,EAAE;YACH,MAAM,EAAE,OAAO,CAAC;YAChB,QAAQ,EAAE,MAAM,CAAC;YACjB,eAAe,EAAE,MAAM,CAAC;YACxB,OAAO,CAAC,EAAE,MAAM,CAAC;SAClB,CAAC;KACH;CACF;AAED,UAAU,OAAO;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED,eAAO,MAAM,YAAY;;;;CAIxB,CAAC;AAEF,eAAO,MAAM,qBAAqB,YAAa,OAAO,sGAgCrD,CAAC"}
|
package/dist/index.d.ts
DELETED
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"beacon.d.ts","sourceRoot":"","sources":["../../../src/plugins/fetch/beacon.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,YAAa,MAAM;wBAMd,OAAO;CAWnC,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export declare const getEmptyFragment: (fragmentId: string) => {
|
|
2
|
-
[x: string]: {
|
|
3
|
-
_type: string;
|
|
4
|
-
_id: string;
|
|
5
|
-
children: string[];
|
|
6
|
-
layoutSizingHorizontal: string;
|
|
7
|
-
layoutSizingVertical: string;
|
|
8
|
-
horizontalGrow: string;
|
|
9
|
-
verticalGrow: string;
|
|
10
|
-
renderMode: string;
|
|
11
|
-
opacity: number;
|
|
12
|
-
visible: boolean;
|
|
13
|
-
overflow: string;
|
|
14
|
-
overrides: never[];
|
|
15
|
-
properties: string[];
|
|
16
|
-
parent?: undefined;
|
|
17
|
-
width?: undefined;
|
|
18
|
-
height?: undefined;
|
|
19
|
-
fillType?: undefined;
|
|
20
|
-
positionType?: undefined;
|
|
21
|
-
solidFill?: undefined;
|
|
22
|
-
name?: undefined;
|
|
23
|
-
isPrimary?: undefined;
|
|
24
|
-
threshold?: undefined;
|
|
25
|
-
} | {
|
|
26
|
-
_type: string;
|
|
27
|
-
_id: string;
|
|
28
|
-
opacity: number;
|
|
29
|
-
parent: string;
|
|
30
|
-
visible: boolean;
|
|
31
|
-
overflow: string;
|
|
32
|
-
children: never[];
|
|
33
|
-
width: number;
|
|
34
|
-
height: number;
|
|
35
|
-
layoutSizingHorizontal: string;
|
|
36
|
-
layoutSizingVertical: string;
|
|
37
|
-
fillType: string;
|
|
38
|
-
positionType: string;
|
|
39
|
-
solidFill: string;
|
|
40
|
-
name: string;
|
|
41
|
-
isPrimary: boolean;
|
|
42
|
-
threshold: number;
|
|
43
|
-
horizontalGrow?: undefined;
|
|
44
|
-
verticalGrow?: undefined;
|
|
45
|
-
renderMode?: undefined;
|
|
46
|
-
overrides?: undefined;
|
|
47
|
-
properties?: undefined;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=emptyFragment.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"emptyFragment.d.ts","sourceRoot":"","sources":["../../../src/plugins/fetch/emptyFragment.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,eAAgB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuClD,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const createFetcher: (baseUrl: string, defaultHeaders?: HeadersInit) => {
|
|
2
|
-
query: <T>(query: string, variables?: Record<string, unknown>, options?: RequestInit) => Promise<{
|
|
3
|
-
data: T;
|
|
4
|
-
}>;
|
|
5
|
-
invalidate: (endpoint: string, options?: RequestInit) => void;
|
|
6
|
-
clearCache: () => void;
|
|
7
|
-
};
|
|
8
|
-
//# sourceMappingURL=fetcher.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../src/plugins/fetch/fetcher.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,aAAa,YACf,MAAM,mBACC,WAAW;YAWN,CAAC,SACb,MAAM,cACF,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YACzB,WAAW,KACnB,OAAO,CAAC;QAAE,IAAI,EAAE,CAAC,CAAA;KAAE,CAAC;2BAwCO,MAAM,YAAY,WAAW;;CAO5D,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Plugin } from '@graph-state/core';
|
|
2
|
-
import { createFetcher } from './fetcher';
|
|
3
|
-
import { fetchBeacon } from './beacon';
|
|
4
|
-
interface AreaCacheEntity {
|
|
5
|
-
fragmentId: number;
|
|
6
|
-
props: Record<string, unknown>;
|
|
7
|
-
}
|
|
8
|
-
declare module "@graph-state/core" {
|
|
9
|
-
interface GraphState {
|
|
10
|
-
$fetch: {
|
|
11
|
-
/**
|
|
12
|
-
* Хранятся документы от фрагментов
|
|
13
|
-
*/
|
|
14
|
-
cacheDocuments: Map<number, string>;
|
|
15
|
-
cacheAreaDocuments: Map<string, AreaCacheEntity>;
|
|
16
|
-
readFragment: (fragmentId: number) => string | null;
|
|
17
|
-
readArea: (areaCode: string) => AreaCacheEntity | null;
|
|
18
|
-
queryFragment: (fragmentId: number) => unknown;
|
|
19
|
-
queryArea: (areaCode: string) => AreaCacheEntity;
|
|
20
|
-
queryAreaList: (areaCodes: string[]) => AreaCacheEntity[];
|
|
21
|
-
query: ReturnType<typeof createFetcher>["query"];
|
|
22
|
-
sendBeacon: ReturnType<typeof fetchBeacon>["sendBeacon"];
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
export declare const fetchPlugin: Plugin;
|
|
27
|
-
export {};
|
|
28
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/fetch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAG1C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAgBrD,UAAU,eAAe;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAED,OAAO,QAAQ,mBAAmB,CAAC;IACjC,UAAU,UAAU;QAClB,MAAM,EAAE;YACN;;eAEG;YACH,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YACpC,kBAAkB,EAAE,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;YACjD,YAAY,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;YACpD,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,eAAe,GAAG,IAAI,CAAC;YACvD,aAAa,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,CAAC;YAC/C,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,eAAe,CAAC;YACjD,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,eAAe,EAAE,CAAC;YAC1D,KAAK,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,OAAO,CAAC,CAAC;YACjD,UAAU,EAAE,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,YAAY,CAAC,CAAC;SAC1D,CAAC;KACH;CACF;AAED,eAAO,MAAM,WAAW,EAAE,MA8IzB,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export interface AreaListQueryReturn {
|
|
2
|
-
clientAreas: {
|
|
3
|
-
areaProperties: unknown[];
|
|
4
|
-
projectProperties: unknown[];
|
|
5
|
-
variant: {
|
|
6
|
-
fragment: {
|
|
7
|
-
props: Record<string, unknown>;
|
|
8
|
-
fragment: {
|
|
9
|
-
id: number;
|
|
10
|
-
document: string;
|
|
11
|
-
linkedFragments: {
|
|
12
|
-
id: number;
|
|
13
|
-
document: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
}[];
|
|
19
|
-
}
|
|
20
|
-
export declare const getAreaListQuery: (areaCodes: string) => {
|
|
21
|
-
query: string;
|
|
22
|
-
variables: {
|
|
23
|
-
areaCodes: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=AreaListQuery.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AreaListQuery.d.ts","sourceRoot":"","sources":["../../../../src/plugins/fetch/queries/AreaListQuery.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE;QACX,cAAc,EAAE,OAAO,EAAE,CAAC;QAC1B,iBAAiB,EAAE,OAAO,EAAE,CAAC;QAC7B,OAAO,EAAE;YACP,QAAQ,EAAE;gBACR,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBAC/B,QAAQ,EAAE;oBACR,EAAE,EAAE,MAAM,CAAC;oBACX,QAAQ,EAAE,MAAM,CAAC;oBACjB,eAAe,EAAE;wBACf,EAAE,EAAE,MAAM,CAAC;wBACX,QAAQ,EAAE,MAAM,CAAC;qBAClB,CAAC;iBACH,CAAC;aACH,CAAC;SACH,CAAC;KACH,EAAE,CAAC;CACL;AAED,eAAO,MAAM,gBAAgB,cAAe,MAAM;;;;;CAyBjD,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export interface AreaQueryReturn {
|
|
2
|
-
clientArea: {
|
|
3
|
-
variant: {
|
|
4
|
-
fragment: {
|
|
5
|
-
props: Record<string, unknown>;
|
|
6
|
-
fragment: {
|
|
7
|
-
id: number;
|
|
8
|
-
document: string;
|
|
9
|
-
linkedFragments: {
|
|
10
|
-
id: number;
|
|
11
|
-
document: string;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
export declare const getAreaQuery: (areaCode: string) => {
|
|
19
|
-
query: string;
|
|
20
|
-
variables: {
|
|
21
|
-
areaCode: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=AreaQuery.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AreaQuery.d.ts","sourceRoot":"","sources":["../../../../src/plugins/fetch/queries/AreaQuery.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE;QACV,OAAO,EAAE;YACP,QAAQ,EAAE;gBACR,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBAC/B,QAAQ,EAAE;oBACR,EAAE,EAAE,MAAM,CAAC;oBACX,QAAQ,EAAE,MAAM,CAAC;oBACjB,eAAe,EAAE;wBACf,EAAE,EAAE,MAAM,CAAC;wBACX,QAAQ,EAAE,MAAM,CAAC;qBAClB,CAAC;iBACH,CAAC;aACH,CAAC;SACH,CAAC;KACH,CAAC;CACH;AAED,eAAO,MAAM,YAAY,aAAc,MAAM;;;;;CAuB5C,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export interface QueryReturnSelf {
|
|
2
|
-
fragment: {
|
|
3
|
-
id: number;
|
|
4
|
-
document: string;
|
|
5
|
-
linkedFragments: {
|
|
6
|
-
id: number;
|
|
7
|
-
document: string;
|
|
8
|
-
};
|
|
9
|
-
}[];
|
|
10
|
-
}
|
|
11
|
-
export interface QueryReturnNotSelf {
|
|
12
|
-
clientFragment: {
|
|
13
|
-
id: number;
|
|
14
|
-
document: string;
|
|
15
|
-
linkedFragments: {
|
|
16
|
-
id: number;
|
|
17
|
-
document: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
export declare const getFragmentQuery: <TIsSelf extends boolean>(fragmentId: number, isSelf?: TIsSelf) => {
|
|
22
|
-
query: string;
|
|
23
|
-
variables: {
|
|
24
|
-
fragmentId: number;
|
|
25
|
-
};
|
|
26
|
-
_type: TIsSelf extends true ? QueryReturnSelf : QueryReturnNotSelf;
|
|
27
|
-
};
|
|
28
|
-
//# sourceMappingURL=FragmentQuery.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FragmentQuery.d.ts","sourceRoot":"","sources":["../../../../src/plugins/fetch/queries/FragmentQuery.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE;QACR,EAAE,EAAE,MAAM,CAAC;QACX,QAAQ,EAAE,MAAM,CAAC;QACjB,eAAe,EAAE;YACf,EAAE,EAAE,MAAM,CAAC;YACX,QAAQ,EAAE,MAAM,CAAC;SAClB,CAAC;KACH,EAAE,CAAC;CACL;AAED,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE;QACd,EAAE,EAAE,MAAM,CAAC;QACX,QAAQ,EAAE,MAAM,CAAC;QACjB,eAAe,EAAE;YACf,EAAE,EAAE,MAAM,CAAC;YACX,QAAQ,EAAE,MAAM,CAAC;SAClB,CAAC;KACH,CAAC;CACH;AAED,eAAO,MAAM,gBAAgB,GAAI,OAAO,SAAS,OAAO,cAC1C,MAAM,WACT,OAAO;;;;;WA8BQ,OAAO,SAAS,IAAI,GACtC,eAAe,GACf,kBAAkB;CAEzB,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { LinkKey, Plugin } from '@graph-state/core';
|
|
2
|
-
declare module "@graph-state/core" {
|
|
3
|
-
interface GraphState {
|
|
4
|
-
$fragments: {
|
|
5
|
-
key: LinkKey;
|
|
6
|
-
createFragmentManager: (fragmentId: number, initialDocument?: unknown) => void;
|
|
7
|
-
getManager: (fragmentId: number) => GraphState;
|
|
8
|
-
getManagers: () => Record<number, GraphState>;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
interface FragmentsPluginOptions {
|
|
13
|
-
plugins?: Plugin[];
|
|
14
|
-
}
|
|
15
|
-
export declare const fragmentsPlugin: (options: FragmentsPluginOptions) => Plugin;
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/fragments/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAejE,OAAO,QAAQ,mBAAmB,CAAC;IACjC,UAAU,UAAU;QAClB,UAAU,EAAE;YACV,GAAG,EAAE,OAAO,CAAC;YACb,qBAAqB,EAAE,CACrB,UAAU,EAAE,MAAM,EAClB,eAAe,CAAC,EAAE,OAAO,KACtB,IAAI,CAAC;YACV,UAAU,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,UAAU,CAAC;YAC/C,WAAW,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;SAC/C,CAAC;KACH;CACF;AAED,UAAU,sBAAsB;IAC9B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,eAAO,MAAM,eAAe,YAChB,sBAAsB,KAAG,MAmGlC,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { LinkKey, Plugin } from '@graph-state/core';
|
|
2
|
-
interface LifeCycleGraph {
|
|
3
|
-
_type: "LifeCycle";
|
|
4
|
-
status: "init" | "release" | null;
|
|
5
|
-
}
|
|
6
|
-
declare module "@graph-state/core" {
|
|
7
|
-
interface GraphState {
|
|
8
|
-
$lifeCycle: {
|
|
9
|
-
key: LinkKey;
|
|
10
|
-
on: (callback: (graph: LifeCycleGraph) => void) => ReturnType<GraphState["subscribe"]>;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export declare const globalManagerLifeCyclePlugin: Plugin;
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=globalManagerLifeCycle.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"globalManagerLifeCycle.d.ts","sourceRoot":"","sources":["../../../src/plugins/lifecycle/globalManagerLifeCycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEpD,UAAU,cAAc;IACtB,KAAK,EAAE,WAAW,CAAC;IACnB,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAAC;CACnC;AAED,OAAO,QAAQ,mBAAmB,CAAC;IACjC,UAAU,UAAU;QAClB,UAAU,EAAE;YACV,GAAG,EAAE,OAAO,CAAC;YACb,EAAE,EAAE,CACF,QAAQ,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,KACtC,UAAU,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC;SAC1C,CAAC;KACH;CACF;AAED,eAAO,MAAM,4BAA4B,EAAE,MAe1C,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Plugin } from '@graph-state/core';
|
|
2
|
-
declare module "@graph-state/core" {
|
|
3
|
-
interface GraphState {
|
|
4
|
-
$load: {
|
|
5
|
-
loadFragment: (fragmentID: number, options?: LoadPluginOptions) => GraphState;
|
|
6
|
-
loadArea: (areaCode: string, options?: LoadPluginOptions) => {
|
|
7
|
-
fragmentId: number;
|
|
8
|
-
props: unknown;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
interface LoadPluginOptions {
|
|
14
|
-
suspense?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare const loadPlugin: Plugin;
|
|
17
|
-
export {};
|
|
18
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/load/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEvD,OAAO,QAAQ,mBAAmB,CAAC;IACjC,UAAU,UAAU;QAClB,KAAK,EAAE;YACL,YAAY,EAAE,CACZ,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,iBAAiB,KACxB,UAAU,CAAC;YAChB,QAAQ,EAAE,CACR,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE,iBAAiB,KACxB;gBACH,UAAU,EAAE,MAAM,CAAC;gBACnB,KAAK,EAAE,OAAO,CAAC;aAChB,CAAC;SACH,CAAC;KACH;CACF;AAED,UAAU,iBAAiB;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,UAAU,EAAE,MAkGxB,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Plugin } from '@graph-state/core';
|
|
2
|
-
declare module "@graph-state/core" {
|
|
3
|
-
interface GraphState {
|
|
4
|
-
$metrics: {
|
|
5
|
-
reachGoal: (goal: string) => void;
|
|
6
|
-
trackAdPixel: (pixelUrl: string) => void;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
export declare const globalMetricsPlugin: Plugin;
|
|
11
|
-
//# sourceMappingURL=globalMetrics.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"globalMetrics.d.ts","sourceRoot":"","sources":["../../../src/plugins/metrics/globalMetrics.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAK3C,OAAO,QAAQ,mBAAmB,CAAC;IACjC,UAAU,UAAU;QAClB,QAAQ,EAAE;YACR,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;YAClC,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;SAC1C,CAAC;KACH;CACF;AAQD,eAAO,MAAM,mBAAmB,EAAE,MAkBjC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/metrics/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAW3C,eAAO,MAAM,aAAa,EAAE,MA4B3B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"addClientMetric.d.ts","sourceRoot":"","sources":["../../../../src/plugins/metrics/queries/addClientMetric.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,iJAE1B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trackAdPixel.d.ts","sourceRoot":"","sources":["../../../src/plugins/metrics/trackAdPixel.ts"],"names":[],"mappings":"AAEA,KAAK,YAAY,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI,CAAC;AAyDpD,eAAO,MAAM,YAAY,aACb,MAAM,iBACD,YAAY,SAgC5B,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Plugin } from '@graph-state/core';
|
|
2
|
-
declare module "@graph-state/core" {
|
|
3
|
-
interface GraphState {
|
|
4
|
-
$ssr: {
|
|
5
|
-
extractData: () => unknown;
|
|
6
|
-
restoreData: (input: unknown) => void;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
export declare const scopesPlugin: Plugin;
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/scopes/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,QAAQ,mBAAmB,CAAC;IACjC,UAAU,UAAU;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,MAAM,OAAO,CAAC;YAC3B,WAAW,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;SACvC,CAAC;KACH;CACF;AAED,eAAO,MAAM,YAAY,EAAE,MAa1B,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Plugin } from '@graph-state/core';
|
|
2
|
-
declare module "@graph-state/core" {
|
|
3
|
-
interface GraphState {
|
|
4
|
-
$ssr: {
|
|
5
|
-
extractData: () => unknown;
|
|
6
|
-
restoreData: (input: unknown) => void;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
export declare const ssrPlugin: Plugin;
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/ssr/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAG3C,OAAO,QAAQ,mBAAmB,CAAC;IACjC,UAAU,UAAU;QAClB,IAAI,EAAE;YACJ,WAAW,EAAE,MAAM,OAAO,CAAC;YAC3B,WAAW,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;SACvC,CAAC;KACH;CACF;AAED,eAAO,MAAM,SAAS,EAAE,MAmDvB,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { GraphState, Plugin } from '@graph-state/core';
|
|
2
|
-
import { CSSRules } from '../utils/compareRules';
|
|
3
|
-
/**
|
|
4
|
-
* Тип для кэша стилей слоя
|
|
5
|
-
*/
|
|
6
|
-
export type LayerStyles = Record<string, CSSRules>;
|
|
7
|
-
export type LayerResolver = GraphState["resolve"];
|
|
8
|
-
export declare const fragmentStylesheetPlugin: Plugin;
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/styleSheet/fragment/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,UAAU,EAAW,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAQ/E,OAAO,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AAEnE;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AAEnD,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC;AAmHlD,eAAO,MAAM,wBAAwB,EAAE,MA2DtC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/plugins/styleSheet/global/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAmChE,eAAO,MAAM,sBAAsB,EAAE,MAgDpC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/styleSheet/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Graph, GraphState, LinkKey } from '@graph-state/core';
|
|
2
|
-
export interface AutoInjectorControls {
|
|
3
|
-
mount: () => void;
|
|
4
|
-
unmount: () => void;
|
|
5
|
-
}
|
|
6
|
-
export declare const autoInjector: (key: string, state: GraphState, graphKey: LinkKey, transformStyles?: (graph: Graph) => string[]) => AutoInjectorControls;
|
|
7
|
-
//# sourceMappingURL=autoInjector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"autoInjector.d.ts","sourceRoot":"","sources":["../../../../src/plugins/styleSheet/utils/autoInjector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG/D,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,YAAY,QAClB,MAAM,SACJ,UAAU,YACP,OAAO,oBACC,CAAC,KAAK,EAAE,KAAK,KAAK,MAAM,EAAE,KAC3C,oBA+DF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"buildCssBlock.d.ts","sourceRoot":"","sources":["../../../../src/plugins/styleSheet/utils/buildCssBlock.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAErD,eAAO,MAAM,aAAa,UAAW,QAAQ,GAAG,SAAS,KAAG,MAI3D,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"compareRules.d.ts","sourceRoot":"","sources":["../../../../src/plugins/styleSheet/utils/compareRules.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;AAEvD,wBAAgB,YAAY,CAC1B,IAAI,GAAE,QAAa,EACnB,IAAI,GAAE,QAAa,GAClB,QAAQ,CAWV"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { LinkKey } from '@graph-state/core';
|
|
2
|
-
import { LayerResolver, LayerStyles } from '../fragment';
|
|
3
|
-
export interface FragmentGroup {
|
|
4
|
-
fragmentLayerKey: LinkKey;
|
|
5
|
-
fragment: any;
|
|
6
|
-
primary: any;
|
|
7
|
-
smaller: any[];
|
|
8
|
-
larger: any[];
|
|
9
|
-
}
|
|
10
|
-
export declare const findGroups: (styles: LayerStyles, layerResolver: LayerResolver) => FragmentGroup[];
|
|
11
|
-
//# sourceMappingURL=findGroups.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"findGroups.d.ts","sourceRoot":"","sources":["../../../../src/plugins/styleSheet/utils/findGroups.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEzD,MAAM,WAAW,aAAa;IAC5B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,QAAQ,EAAE,GAAG,CAAC;IACd,OAAO,EAAE,GAAG,CAAC;IACb,OAAO,EAAE,GAAG,EAAE,CAAC;IACf,MAAM,EAAE,GAAG,EAAE,CAAC;CACf;AAED,eAAO,MAAM,UAAU,WACb,WAAW,iBACJ,aAAa,KAC3B,aAAa,EAmCf,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getAllChildren.d.ts","sourceRoot":"","sources":["../../../../src/plugins/styleSheet/utils/getAllChildren.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,OAAO,EAAe,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAe,MAAM,aAAa,CAAC;AAEzD,eAAO,MAAM,cAAc,kBACV,aAAa,YAClB,OAAO,QACZ,MAAM,EAAE,KACZ,MAAM,EAeR,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { LinkKey } from '@graph-state/core';
|
|
2
|
-
import { CSSBlock } from './buildCssBlock';
|
|
3
|
-
import { LayerResolver, LayerStyles } from '../fragment';
|
|
4
|
-
export declare const makeCss: (styles: LayerStyles, layerResolver: LayerResolver) => (layerKey: LinkKey) => CSSBlock;
|
|
5
|
-
//# sourceMappingURL=makeCss.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"makeCss.d.ts","sourceRoot":"","sources":["../../../../src/plugins/styleSheet/utils/makeCss.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAIhE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEzD,eAAO,MAAM,OAAO,WACT,WAAW,iBAAiB,aAAa,gBACvC,OAAO,KAAG,QAoBpB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toCSS.d.ts","sourceRoot":"","sources":["../../../../src/plugins/styleSheet/utils/toCSS.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE/C,eAAO,MAAM,KAAK,WAAY,QAAQ,KAAG,MAU1B,CAAC"}
|