@fragmentsx/client-core 0.2.1 → 0.2.3
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 +53 -15
- package/dist/index.es.js +53 -15
- package/package.json +4 -4
- 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 -30
- package/dist/plugins/fetch/index.d.ts.map +0 -1
- package/dist/plugins/fetch/queries/AreaListQuery.d.ts +0 -43
- 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 -31
- package/dist/plugins/fetch/queries/FragmentQuery.d.ts.map +0 -1
- package/dist/plugins/fetch/queries/parts.d.ts +0 -5
- package/dist/plugins/fetch/queries/parts.d.ts.map +0 -1
- package/dist/plugins/fonts/index.d.ts +0 -10
- package/dist/plugins/fonts/index.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 -9
- 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/destroyStyle.d.ts +0 -2
- package/dist/plugins/styleSheet/utils/destroyStyle.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/injectStyle.d.ts +0 -2
- package/dist/plugins/styleSheet/utils/injectStyle.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/plugins/styles/index.d.ts +0 -3
- package/dist/plugins/styles/index.d.ts.map +0 -1
package/dist/index.cjs.js
CHANGED
|
@@ -232,6 +232,7 @@ const nodes = createConstants$1(
|
|
|
232
232
|
"FragmentInstance",
|
|
233
233
|
"Instance",
|
|
234
234
|
"Collection",
|
|
235
|
+
"ArrayItem",
|
|
235
236
|
"Breakpoint",
|
|
236
237
|
"Frame",
|
|
237
238
|
"Image",
|
|
@@ -247,7 +248,11 @@ const nodes = createConstants$1(
|
|
|
247
248
|
"Border",
|
|
248
249
|
"Paint",
|
|
249
250
|
"Link",
|
|
251
|
+
"Interaction",
|
|
250
252
|
"Classname",
|
|
253
|
+
"GoalEvent",
|
|
254
|
+
"MutateEvent",
|
|
255
|
+
"TextHighlight",
|
|
251
256
|
"ImagePaint"
|
|
252
257
|
);
|
|
253
258
|
const fragmentGrowingMode = createConstants$1("auto", "fill");
|
|
@@ -349,7 +354,12 @@ const variableTransforms = createConstants$1(
|
|
|
349
354
|
const renderTarget = createConstants$1("canvas", "document");
|
|
350
355
|
const renderMode = createConstants$1("viewport", "parent", "fixed");
|
|
351
356
|
const interactions = createConstants$1("click", "mouseover", "appear");
|
|
352
|
-
const eventMode = createConstants$1(
|
|
357
|
+
const eventMode = createConstants$1(
|
|
358
|
+
"goal",
|
|
359
|
+
"mutate",
|
|
360
|
+
"callback",
|
|
361
|
+
"tracker"
|
|
362
|
+
);
|
|
353
363
|
const scopeTypes = createConstants$1(
|
|
354
364
|
"AreaScope",
|
|
355
365
|
"InstanceScope",
|
|
@@ -1268,15 +1278,7 @@ const OverflowSchema = layerField(/* @__PURE__ */ picklist(Object.keys(overflow)
|
|
|
1268
1278
|
});
|
|
1269
1279
|
const BorderRadiusSchema = layerField(/* @__PURE__ */ string(), { fallback: "0px" });
|
|
1270
1280
|
const InteractionsSchema = /* @__PURE__ */ object({
|
|
1271
|
-
interactions: layerField(
|
|
1272
|
-
/* @__PURE__ */ array(
|
|
1273
|
-
/* @__PURE__ */ object({
|
|
1274
|
-
on: /* @__PURE__ */ enum_(Object.keys(interactions)),
|
|
1275
|
-
event: /* @__PURE__ */ nullable(linkValidator)
|
|
1276
|
-
})
|
|
1277
|
-
),
|
|
1278
|
-
{ fallback: [] }
|
|
1279
|
-
)
|
|
1281
|
+
interactions: layerField(/* @__PURE__ */ array(linkValidator), { fallback: [] })
|
|
1280
1282
|
});
|
|
1281
1283
|
const CssOverrideSchema = /* @__PURE__ */ object({
|
|
1282
1284
|
cssOverride: layerField(/* @__PURE__ */ string(), { fallback: "" })
|
|
@@ -1317,6 +1319,7 @@ const CssOverrideSchema = /* @__PURE__ */ object({
|
|
|
1317
1319
|
textAlign: layerField(/* @__PURE__ */ string(), { fallback: "left" }),
|
|
1318
1320
|
parent: layerField(/* @__PURE__ */ nullable(/* @__PURE__ */ string()), { overridable: false }),
|
|
1319
1321
|
link: layerField(linkValidator),
|
|
1322
|
+
highlight: layerField(linkValidator),
|
|
1320
1323
|
...GraphFieldSchema.entries,
|
|
1321
1324
|
...OverridesSchema.entries,
|
|
1322
1325
|
...CssOverrideSchema.entries,
|
|
@@ -1556,7 +1559,7 @@ const CssOverrideSchema = /* @__PURE__ */ object({
|
|
|
1556
1559
|
fallback: variableType.Array
|
|
1557
1560
|
}),
|
|
1558
1561
|
parent: layerField(/* @__PURE__ */ nullable(/* @__PURE__ */ string()), { overridable: false }),
|
|
1559
|
-
defaultValue: layerField(/* @__PURE__ */ array(
|
|
1562
|
+
defaultValue: layerField(/* @__PURE__ */ array(linkValidator), { fallback: [] }),
|
|
1560
1563
|
definition: layerField(linkValidator, { fallback: null }),
|
|
1561
1564
|
required: layerField(/* @__PURE__ */ boolean(), { fallback: false }),
|
|
1562
1565
|
...GraphFieldSchema.entries
|
|
@@ -1641,6 +1644,12 @@ const CssOverrideSchema = /* @__PURE__ */ object({
|
|
|
1641
1644
|
fallback: true
|
|
1642
1645
|
})
|
|
1643
1646
|
});
|
|
1647
|
+
/* @__PURE__ */ object({
|
|
1648
|
+
parent: layerField(/* @__PURE__ */ nullable(/* @__PURE__ */ string()), { overridable: false }),
|
|
1649
|
+
...GraphFieldSchema.entries,
|
|
1650
|
+
on: /* @__PURE__ */ enum_(Object.keys(interactions)),
|
|
1651
|
+
event: layerField(linkValidator)
|
|
1652
|
+
});
|
|
1644
1653
|
/* @__PURE__ */ object({
|
|
1645
1654
|
parent: layerField(/* @__PURE__ */ nullable(/* @__PURE__ */ string()), { overridable: false }),
|
|
1646
1655
|
value: layerField(/* @__PURE__ */ string(), { fallback: "" }),
|
|
@@ -1650,6 +1659,32 @@ const CssOverrideSchema = /* @__PURE__ */ object({
|
|
|
1650
1659
|
}),
|
|
1651
1660
|
...GraphFieldSchema.entries
|
|
1652
1661
|
});
|
|
1662
|
+
/* @__PURE__ */ object({
|
|
1663
|
+
parent: layerField(/* @__PURE__ */ nullable(/* @__PURE__ */ string()), { overridable: false }),
|
|
1664
|
+
goalId: layerField(/* @__PURE__ */ number(), { overridable: false }),
|
|
1665
|
+
...GraphFieldSchema.entries
|
|
1666
|
+
});
|
|
1667
|
+
/* @__PURE__ */ object({
|
|
1668
|
+
parent: layerField(/* @__PURE__ */ nullable(/* @__PURE__ */ string()), { overridable: false }),
|
|
1669
|
+
target: layerField(linkValidator),
|
|
1670
|
+
value: layerField(/* @__PURE__ */ any()),
|
|
1671
|
+
...GraphFieldSchema.entries
|
|
1672
|
+
});
|
|
1673
|
+
/* @__PURE__ */ object({
|
|
1674
|
+
color: layerField(/* @__PURE__ */ string(), { fallback: null }),
|
|
1675
|
+
lineHeight: layerField(/* @__PURE__ */ number(), { fallback: null }),
|
|
1676
|
+
fontSize: layerField(/* @__PURE__ */ number(), { fallback: null }),
|
|
1677
|
+
textDecoration: layerField(/* @__PURE__ */ picklist(Object.keys(textDecorations)), {
|
|
1678
|
+
fallback: null
|
|
1679
|
+
}),
|
|
1680
|
+
parent: layerField(/* @__PURE__ */ nullable(/* @__PURE__ */ string()), { overridable: false }),
|
|
1681
|
+
...GraphFieldSchema.entries
|
|
1682
|
+
});
|
|
1683
|
+
/* @__PURE__ */ object({
|
|
1684
|
+
parent: layerField(/* @__PURE__ */ nullable(/* @__PURE__ */ string()), { overridable: false }),
|
|
1685
|
+
value: layerField(/* @__PURE__ */ any(), { fallback: null }),
|
|
1686
|
+
...GraphFieldSchema.entries
|
|
1687
|
+
});
|
|
1653
1688
|
const BASE_HEADERS = {
|
|
1654
1689
|
"Content-Type": "application/json"
|
|
1655
1690
|
};
|
|
@@ -1710,14 +1745,17 @@ const linkedCssChunk = `linkedCssChunk {
|
|
|
1710
1745
|
id
|
|
1711
1746
|
content
|
|
1712
1747
|
}`;
|
|
1748
|
+
const linkedFragments = `{
|
|
1749
|
+
id
|
|
1750
|
+
document
|
|
1751
|
+
${googleFonts}
|
|
1752
|
+
${linkedCssChunk}
|
|
1753
|
+
}`;
|
|
1713
1754
|
const fragment = `
|
|
1714
1755
|
{
|
|
1715
1756
|
id
|
|
1716
1757
|
document
|
|
1717
|
-
linkedFragments {
|
|
1718
|
-
id
|
|
1719
|
-
document
|
|
1720
|
-
}
|
|
1758
|
+
linkedFragments ${linkedFragments}
|
|
1721
1759
|
${googleFonts}
|
|
1722
1760
|
${linkedCssChunk}
|
|
1723
1761
|
}
|
package/dist/index.es.js
CHANGED
|
@@ -230,6 +230,7 @@ const nodes = createConstants$1(
|
|
|
230
230
|
"FragmentInstance",
|
|
231
231
|
"Instance",
|
|
232
232
|
"Collection",
|
|
233
|
+
"ArrayItem",
|
|
233
234
|
"Breakpoint",
|
|
234
235
|
"Frame",
|
|
235
236
|
"Image",
|
|
@@ -245,7 +246,11 @@ const nodes = createConstants$1(
|
|
|
245
246
|
"Border",
|
|
246
247
|
"Paint",
|
|
247
248
|
"Link",
|
|
249
|
+
"Interaction",
|
|
248
250
|
"Classname",
|
|
251
|
+
"GoalEvent",
|
|
252
|
+
"MutateEvent",
|
|
253
|
+
"TextHighlight",
|
|
249
254
|
"ImagePaint"
|
|
250
255
|
);
|
|
251
256
|
const fragmentGrowingMode = createConstants$1("auto", "fill");
|
|
@@ -347,7 +352,12 @@ const variableTransforms = createConstants$1(
|
|
|
347
352
|
const renderTarget = createConstants$1("canvas", "document");
|
|
348
353
|
const renderMode = createConstants$1("viewport", "parent", "fixed");
|
|
349
354
|
const interactions = createConstants$1("click", "mouseover", "appear");
|
|
350
|
-
const eventMode = createConstants$1(
|
|
355
|
+
const eventMode = createConstants$1(
|
|
356
|
+
"goal",
|
|
357
|
+
"mutate",
|
|
358
|
+
"callback",
|
|
359
|
+
"tracker"
|
|
360
|
+
);
|
|
351
361
|
const scopeTypes = createConstants$1(
|
|
352
362
|
"AreaScope",
|
|
353
363
|
"InstanceScope",
|
|
@@ -1266,15 +1276,7 @@ const OverflowSchema = layerField(/* @__PURE__ */ picklist(Object.keys(overflow)
|
|
|
1266
1276
|
});
|
|
1267
1277
|
const BorderRadiusSchema = layerField(/* @__PURE__ */ string(), { fallback: "0px" });
|
|
1268
1278
|
const InteractionsSchema = /* @__PURE__ */ object({
|
|
1269
|
-
interactions: layerField(
|
|
1270
|
-
/* @__PURE__ */ array(
|
|
1271
|
-
/* @__PURE__ */ object({
|
|
1272
|
-
on: /* @__PURE__ */ enum_(Object.keys(interactions)),
|
|
1273
|
-
event: /* @__PURE__ */ nullable(linkValidator)
|
|
1274
|
-
})
|
|
1275
|
-
),
|
|
1276
|
-
{ fallback: [] }
|
|
1277
|
-
)
|
|
1279
|
+
interactions: layerField(/* @__PURE__ */ array(linkValidator), { fallback: [] })
|
|
1278
1280
|
});
|
|
1279
1281
|
const CssOverrideSchema = /* @__PURE__ */ object({
|
|
1280
1282
|
cssOverride: layerField(/* @__PURE__ */ string(), { fallback: "" })
|
|
@@ -1315,6 +1317,7 @@ const CssOverrideSchema = /* @__PURE__ */ object({
|
|
|
1315
1317
|
textAlign: layerField(/* @__PURE__ */ string(), { fallback: "left" }),
|
|
1316
1318
|
parent: layerField(/* @__PURE__ */ nullable(/* @__PURE__ */ string()), { overridable: false }),
|
|
1317
1319
|
link: layerField(linkValidator),
|
|
1320
|
+
highlight: layerField(linkValidator),
|
|
1318
1321
|
...GraphFieldSchema.entries,
|
|
1319
1322
|
...OverridesSchema.entries,
|
|
1320
1323
|
...CssOverrideSchema.entries,
|
|
@@ -1554,7 +1557,7 @@ const CssOverrideSchema = /* @__PURE__ */ object({
|
|
|
1554
1557
|
fallback: variableType.Array
|
|
1555
1558
|
}),
|
|
1556
1559
|
parent: layerField(/* @__PURE__ */ nullable(/* @__PURE__ */ string()), { overridable: false }),
|
|
1557
|
-
defaultValue: layerField(/* @__PURE__ */ array(
|
|
1560
|
+
defaultValue: layerField(/* @__PURE__ */ array(linkValidator), { fallback: [] }),
|
|
1558
1561
|
definition: layerField(linkValidator, { fallback: null }),
|
|
1559
1562
|
required: layerField(/* @__PURE__ */ boolean(), { fallback: false }),
|
|
1560
1563
|
...GraphFieldSchema.entries
|
|
@@ -1639,6 +1642,12 @@ const CssOverrideSchema = /* @__PURE__ */ object({
|
|
|
1639
1642
|
fallback: true
|
|
1640
1643
|
})
|
|
1641
1644
|
});
|
|
1645
|
+
/* @__PURE__ */ object({
|
|
1646
|
+
parent: layerField(/* @__PURE__ */ nullable(/* @__PURE__ */ string()), { overridable: false }),
|
|
1647
|
+
...GraphFieldSchema.entries,
|
|
1648
|
+
on: /* @__PURE__ */ enum_(Object.keys(interactions)),
|
|
1649
|
+
event: layerField(linkValidator)
|
|
1650
|
+
});
|
|
1642
1651
|
/* @__PURE__ */ object({
|
|
1643
1652
|
parent: layerField(/* @__PURE__ */ nullable(/* @__PURE__ */ string()), { overridable: false }),
|
|
1644
1653
|
value: layerField(/* @__PURE__ */ string(), { fallback: "" }),
|
|
@@ -1648,6 +1657,32 @@ const CssOverrideSchema = /* @__PURE__ */ object({
|
|
|
1648
1657
|
}),
|
|
1649
1658
|
...GraphFieldSchema.entries
|
|
1650
1659
|
});
|
|
1660
|
+
/* @__PURE__ */ object({
|
|
1661
|
+
parent: layerField(/* @__PURE__ */ nullable(/* @__PURE__ */ string()), { overridable: false }),
|
|
1662
|
+
goalId: layerField(/* @__PURE__ */ number(), { overridable: false }),
|
|
1663
|
+
...GraphFieldSchema.entries
|
|
1664
|
+
});
|
|
1665
|
+
/* @__PURE__ */ object({
|
|
1666
|
+
parent: layerField(/* @__PURE__ */ nullable(/* @__PURE__ */ string()), { overridable: false }),
|
|
1667
|
+
target: layerField(linkValidator),
|
|
1668
|
+
value: layerField(/* @__PURE__ */ any()),
|
|
1669
|
+
...GraphFieldSchema.entries
|
|
1670
|
+
});
|
|
1671
|
+
/* @__PURE__ */ object({
|
|
1672
|
+
color: layerField(/* @__PURE__ */ string(), { fallback: null }),
|
|
1673
|
+
lineHeight: layerField(/* @__PURE__ */ number(), { fallback: null }),
|
|
1674
|
+
fontSize: layerField(/* @__PURE__ */ number(), { fallback: null }),
|
|
1675
|
+
textDecoration: layerField(/* @__PURE__ */ picklist(Object.keys(textDecorations)), {
|
|
1676
|
+
fallback: null
|
|
1677
|
+
}),
|
|
1678
|
+
parent: layerField(/* @__PURE__ */ nullable(/* @__PURE__ */ string()), { overridable: false }),
|
|
1679
|
+
...GraphFieldSchema.entries
|
|
1680
|
+
});
|
|
1681
|
+
/* @__PURE__ */ object({
|
|
1682
|
+
parent: layerField(/* @__PURE__ */ nullable(/* @__PURE__ */ string()), { overridable: false }),
|
|
1683
|
+
value: layerField(/* @__PURE__ */ any(), { fallback: null }),
|
|
1684
|
+
...GraphFieldSchema.entries
|
|
1685
|
+
});
|
|
1651
1686
|
const BASE_HEADERS = {
|
|
1652
1687
|
"Content-Type": "application/json"
|
|
1653
1688
|
};
|
|
@@ -1708,14 +1743,17 @@ const linkedCssChunk = `linkedCssChunk {
|
|
|
1708
1743
|
id
|
|
1709
1744
|
content
|
|
1710
1745
|
}`;
|
|
1746
|
+
const linkedFragments = `{
|
|
1747
|
+
id
|
|
1748
|
+
document
|
|
1749
|
+
${googleFonts}
|
|
1750
|
+
${linkedCssChunk}
|
|
1751
|
+
}`;
|
|
1711
1752
|
const fragment = `
|
|
1712
1753
|
{
|
|
1713
1754
|
id
|
|
1714
1755
|
document
|
|
1715
|
-
linkedFragments {
|
|
1716
|
-
id
|
|
1717
|
-
document
|
|
1718
|
-
}
|
|
1756
|
+
linkedFragments ${linkedFragments}
|
|
1719
1757
|
${googleFonts}
|
|
1720
1758
|
${linkedCssChunk}
|
|
1721
1759
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fragmentsx/client-core",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@graph-state/checkers": "^0.1.3",
|
|
23
|
-
"@graph-state/core": "^0.13.
|
|
24
|
-
"@fragmentsx/
|
|
25
|
-
"@fragmentsx/
|
|
23
|
+
"@graph-state/core": "^0.13.2",
|
|
24
|
+
"@fragmentsx/definition": "0.2.1",
|
|
25
|
+
"@fragmentsx/utils": "0.2.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@graph-state/plugin-logger": "^0.3.0",
|
|
@@ -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;AAYxD,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,sGAkCrD,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,30 +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
|
-
cacheCssChunks: Map<number, string>;
|
|
16
|
-
cacheAreaDocuments: Map<string, AreaCacheEntity>;
|
|
17
|
-
readCssChunk: (id: number) => string | null;
|
|
18
|
-
readFragment: (fragmentId: number) => string | null;
|
|
19
|
-
readArea: (areaCode: string) => AreaCacheEntity | null;
|
|
20
|
-
queryFragment: (fragmentId: number) => unknown;
|
|
21
|
-
queryArea: (areaCode: string) => AreaCacheEntity;
|
|
22
|
-
queryAreaList: (areaCodes: string[]) => AreaCacheEntity[];
|
|
23
|
-
query: ReturnType<typeof createFetcher>["query"];
|
|
24
|
-
sendBeacon: ReturnType<typeof fetchBeacon>["sendBeacon"];
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
export declare const fetchPlugin: Plugin;
|
|
29
|
-
export {};
|
|
30
|
-
//# 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,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YACpC,kBAAkB,EAAE,GAAG,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;YACjD,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC;YAC5C,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,MAyNzB,CAAC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export interface AreaListQueryReturn {
|
|
2
|
-
clientAreas: {
|
|
3
|
-
areaId: number;
|
|
4
|
-
campaignId: number;
|
|
5
|
-
areaProperties: unknown[];
|
|
6
|
-
projectProperties: unknown[];
|
|
7
|
-
font: {
|
|
8
|
-
id: number;
|
|
9
|
-
family: string;
|
|
10
|
-
files: {
|
|
11
|
-
url: string;
|
|
12
|
-
}[];
|
|
13
|
-
};
|
|
14
|
-
variant: {
|
|
15
|
-
id: number;
|
|
16
|
-
fragment: {
|
|
17
|
-
props: Record<string, unknown>;
|
|
18
|
-
fragment: {
|
|
19
|
-
id: number;
|
|
20
|
-
document: string;
|
|
21
|
-
linkedFragments: {
|
|
22
|
-
id: number;
|
|
23
|
-
document: string;
|
|
24
|
-
};
|
|
25
|
-
googleFonts: {
|
|
26
|
-
id: number;
|
|
27
|
-
family: string;
|
|
28
|
-
files: {
|
|
29
|
-
url: string;
|
|
30
|
-
}[];
|
|
31
|
-
}[];
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
}[];
|
|
36
|
-
}
|
|
37
|
-
export declare const getAreaListQuery: (areaCodes: string) => {
|
|
38
|
-
query: string;
|
|
39
|
-
variables: {
|
|
40
|
-
areaCodes: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
//# 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":"AAEA,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE;QACX,MAAM,EAAE,MAAM,CAAC;QACf,UAAU,EAAE,MAAM,CAAC;QACnB,cAAc,EAAE,OAAO,EAAE,CAAC;QAC1B,iBAAiB,EAAE,OAAO,EAAE,CAAC;QAC7B,IAAI,EAAE;YACJ,EAAE,EAAE,MAAM,CAAC;YACX,MAAM,EAAE,MAAM,CAAC;YACf,KAAK,EAAE;gBACL,GAAG,EAAE,MAAM,CAAC;aACb,EAAE,CAAC;SACL,CAAC;QACF,OAAO,EAAE;YACP,EAAE,EAAE,MAAM,CAAC;YACX,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;oBACF,WAAW,EAAE;wBACX,EAAE,EAAE,MAAM,CAAC;wBACX,MAAM,EAAE,MAAM,CAAC;wBACf,KAAK,EAAE;4BACL,GAAG,EAAE,MAAM,CAAC;yBACb,EAAE,CAAC;qBACL,EAAE,CAAC;iBACL,CAAC;aACH,CAAC;SACH,CAAC;KACH,EAAE,CAAC;CACL;AAED,eAAO,MAAM,gBAAgB,cAAe,MAAM;;;;;CAiCjD,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":"AAEA,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;;;;;CAgB5C,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
interface Fragment {
|
|
2
|
-
id: number;
|
|
3
|
-
document: string;
|
|
4
|
-
linkedFragments: Fragment;
|
|
5
|
-
googleFonts: {
|
|
6
|
-
id: number;
|
|
7
|
-
family: string;
|
|
8
|
-
files: {
|
|
9
|
-
url: string;
|
|
10
|
-
}[];
|
|
11
|
-
}[];
|
|
12
|
-
linkedCssChunk: {
|
|
13
|
-
id: number;
|
|
14
|
-
content: string;
|
|
15
|
-
}[];
|
|
16
|
-
}
|
|
17
|
-
export interface QueryReturnSelf {
|
|
18
|
-
fragment: Fragment[];
|
|
19
|
-
}
|
|
20
|
-
export interface QueryReturnNotSelf {
|
|
21
|
-
clientFragment: Fragment;
|
|
22
|
-
}
|
|
23
|
-
export declare const getFragmentQuery: <TIsSelf extends boolean>(fragmentId: number, isSelf?: TIsSelf) => {
|
|
24
|
-
query: string;
|
|
25
|
-
variables: {
|
|
26
|
-
fragmentId: number;
|
|
27
|
-
};
|
|
28
|
-
_type: TIsSelf extends true ? QueryReturnSelf : QueryReturnNotSelf;
|
|
29
|
-
};
|
|
30
|
-
export {};
|
|
31
|
-
//# 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":"AAEA,UAAU,QAAQ;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,QAAQ,CAAC;IAC1B,WAAW,EAAE;QACX,EAAE,EAAE,MAAM,CAAC;QACX,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE;YACL,GAAG,EAAE,MAAM,CAAC;SACb,EAAE,CAAC;KACL,EAAE,CAAC;IACJ,cAAc,EAAE;QACd,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,MAAM,CAAC;KACjB,EAAE,CAAC;CACL;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,QAAQ,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,QAAQ,CAAC;CAC1B;AAED,eAAO,MAAM,gBAAgB,GAAI,OAAO,SAAS,OAAO,cAC1C,MAAM,WACT,OAAO;;;;;WAiBQ,OAAO,SAAS,IAAI,GACtC,eAAe,GACf,kBAAkB;CAEzB,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const googleFonts = "googleFonts {\n id\n variants\n subsets\n family\n version\n files {\n url\n variant\n }\n category\n }";
|
|
2
|
-
export declare const linkedCssChunk = "linkedCssChunk {\n id\n content\n }";
|
|
3
|
-
export declare const linkedFragments = "{\n id\n document\n googleFonts {\n id\n variants\n subsets\n family\n version\n files {\n url\n variant\n }\n category\n }\n linkedCssChunk {\n id\n content\n }\n }";
|
|
4
|
-
export declare const fragment = "\n {\n id\n document\n linkedFragments {\n id\n document\n }\n googleFonts {\n id\n variants\n subsets\n family\n version\n files {\n url\n variant\n }\n category\n }\n linkedCssChunk {\n id\n content\n }\n }\n ";
|
|
5
|
-
//# sourceMappingURL=parts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parts.d.ts","sourceRoot":"","sources":["../../../../src/plugins/fetch/queries/parts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,qOAWd,CAAC;AAEX,eAAO,MAAM,cAAc,iEAGjB,CAAC;AAEX,eAAO,MAAM,eAAe,+WAKlB,CAAC;AAEX,eAAO,MAAM,QAAQ,2bAWZ,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/fonts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAI3C,OAAO,QAAQ,mBAAmB,CAAC;IACjC,UAAU,UAAU;QAClB,MAAM,EAAE;YACN,YAAY,EAAE,CAAC,IAAI,KAAA,KAAK,IAAI,CAAC;SAC9B,CAAC;KACH;CACF;AAED,eAAO,MAAM,WAAW,EAAE,MAgEzB,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;AAgBjE,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,MAqGlC,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,MAuGxB,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;AAeD,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;AAkB3C,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,+JAE1B,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: (globalState: any) => 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,wBACpB,MAkFd,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;AAoChE,eAAO,MAAM,sBAAsB,EAAE,MAgEpC,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,9 +0,0 @@
|
|
|
1
|
-
import { Graph, GraphState, LinkKey } from '@graph-state/core';
|
|
2
|
-
export interface AutoInjectorControls {
|
|
3
|
-
mount: () => void;
|
|
4
|
-
unmount: () => void;
|
|
5
|
-
injectStyle: (styles: string, customKey?: string) => void;
|
|
6
|
-
removeStyle: (customKey?: string) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const autoInjector: (key: string, state: GraphState, graphKey: LinkKey, transformStyles?: (graph: Graph) => string[]) => AutoInjectorControls;
|
|
9
|
-
//# 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;AAI/D,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1D,WAAW,EAAE,CAAC,SAAS,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC3C;AAED,eAAO,MAAM,YAAY,QAClB,MAAM,SACJ,UAAU,YACP,OAAO,oBACC,CAAC,KAAK,EAAE,KAAK,KAAK,MAAM,EAAE,KAC3C,oBA+EF,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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"destroyStyle.d.ts","sourceRoot":"","sources":["../../../../src/plugins/styleSheet/utils/destroyStyle.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,OAAQ,MAAM,kCAUtC,CAAC"}
|
|
@@ -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,EAoCf,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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"injectStyle.d.ts","sourceRoot":"","sources":["../../../../src/plugins/styleSheet/utils/injectStyle.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,OAAQ,MAAM,UAAU,MAAM,6BAsBrD,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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/plugins/styles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAKrE,eAAO,MAAM,YAAY,EAAE,MA2C1B,CAAC"}
|