@syntrologie/runtime-sdk 0.2.0 → 0.2.1
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/smart-canvas.esm.js +1 -1
- package/dist/smart-canvas.esm.js.map +3 -3
- package/dist/smart-canvas.js +41 -41
- package/dist/smart-canvas.js.map +2 -2
- package/dist/smart-canvas.min.js +1 -1
- package/dist/smart-canvas.min.js.map +3 -3
- package/dist/telemetry/adapters/posthog.d.ts +1 -1
- package/dist/telemetry/adapters/posthog.js +1 -1
- package/dist/telemetry/adapters/posthog.js.map +1 -1
- package/package.json +1 -1
package/dist/smart-canvas.js
CHANGED
|
@@ -42,9 +42,9 @@ var SyntrologieSDK = (() => {
|
|
|
42
42
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
43
43
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
44
44
|
|
|
45
|
-
// node_modules/react/cjs/react.development.js
|
|
45
|
+
// ../../node_modules/react/cjs/react.development.js
|
|
46
46
|
var require_react_development = __commonJS({
|
|
47
|
-
"node_modules/react/cjs/react.development.js"(exports, module) {
|
|
47
|
+
"../../node_modules/react/cjs/react.development.js"(exports, module) {
|
|
48
48
|
"use strict";
|
|
49
49
|
if (true) {
|
|
50
50
|
(function() {
|
|
@@ -1916,9 +1916,9 @@ var SyntrologieSDK = (() => {
|
|
|
1916
1916
|
}
|
|
1917
1917
|
});
|
|
1918
1918
|
|
|
1919
|
-
// node_modules/react/index.js
|
|
1919
|
+
// ../../node_modules/react/index.js
|
|
1920
1920
|
var require_react = __commonJS({
|
|
1921
|
-
"node_modules/react/index.js"(exports, module) {
|
|
1921
|
+
"../../node_modules/react/index.js"(exports, module) {
|
|
1922
1922
|
"use strict";
|
|
1923
1923
|
if (false) {
|
|
1924
1924
|
module.exports = null;
|
|
@@ -1928,9 +1928,9 @@ var SyntrologieSDK = (() => {
|
|
|
1928
1928
|
}
|
|
1929
1929
|
});
|
|
1930
1930
|
|
|
1931
|
-
// node_modules/react/cjs/react-jsx-runtime.development.js
|
|
1931
|
+
// ../../node_modules/react/cjs/react-jsx-runtime.development.js
|
|
1932
1932
|
var require_react_jsx_runtime_development = __commonJS({
|
|
1933
|
-
"node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
|
|
1933
|
+
"../../node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
|
|
1934
1934
|
"use strict";
|
|
1935
1935
|
if (true) {
|
|
1936
1936
|
(function() {
|
|
@@ -2821,9 +2821,9 @@ var SyntrologieSDK = (() => {
|
|
|
2821
2821
|
}
|
|
2822
2822
|
});
|
|
2823
2823
|
|
|
2824
|
-
// node_modules/react/jsx-runtime.js
|
|
2824
|
+
// ../../node_modules/react/jsx-runtime.js
|
|
2825
2825
|
var require_jsx_runtime = __commonJS({
|
|
2826
|
-
"node_modules/react/jsx-runtime.js"(exports, module) {
|
|
2826
|
+
"../../node_modules/react/jsx-runtime.js"(exports, module) {
|
|
2827
2827
|
"use strict";
|
|
2828
2828
|
if (false) {
|
|
2829
2829
|
module.exports = null;
|
|
@@ -2833,9 +2833,9 @@ var SyntrologieSDK = (() => {
|
|
|
2833
2833
|
}
|
|
2834
2834
|
});
|
|
2835
2835
|
|
|
2836
|
-
// node_modules/scheduler/cjs/scheduler.development.js
|
|
2836
|
+
// ../../node_modules/scheduler/cjs/scheduler.development.js
|
|
2837
2837
|
var require_scheduler_development = __commonJS({
|
|
2838
|
-
"node_modules/scheduler/cjs/scheduler.development.js"(exports) {
|
|
2838
|
+
"../../node_modules/scheduler/cjs/scheduler.development.js"(exports) {
|
|
2839
2839
|
"use strict";
|
|
2840
2840
|
if (true) {
|
|
2841
2841
|
(function() {
|
|
@@ -3283,9 +3283,9 @@ var SyntrologieSDK = (() => {
|
|
|
3283
3283
|
}
|
|
3284
3284
|
});
|
|
3285
3285
|
|
|
3286
|
-
// node_modules/scheduler/index.js
|
|
3286
|
+
// ../../node_modules/scheduler/index.js
|
|
3287
3287
|
var require_scheduler = __commonJS({
|
|
3288
|
-
"node_modules/scheduler/index.js"(exports, module) {
|
|
3288
|
+
"../../node_modules/scheduler/index.js"(exports, module) {
|
|
3289
3289
|
"use strict";
|
|
3290
3290
|
if (false) {
|
|
3291
3291
|
module.exports = null;
|
|
@@ -3295,9 +3295,9 @@ var SyntrologieSDK = (() => {
|
|
|
3295
3295
|
}
|
|
3296
3296
|
});
|
|
3297
3297
|
|
|
3298
|
-
// node_modules/react-dom/cjs/react-dom.development.js
|
|
3298
|
+
// ../../node_modules/react-dom/cjs/react-dom.development.js
|
|
3299
3299
|
var require_react_dom_development = __commonJS({
|
|
3300
|
-
"node_modules/react-dom/cjs/react-dom.development.js"(exports) {
|
|
3300
|
+
"../../node_modules/react-dom/cjs/react-dom.development.js"(exports) {
|
|
3301
3301
|
"use strict";
|
|
3302
3302
|
if (true) {
|
|
3303
3303
|
(function() {
|
|
@@ -24459,9 +24459,9 @@ var SyntrologieSDK = (() => {
|
|
|
24459
24459
|
}
|
|
24460
24460
|
});
|
|
24461
24461
|
|
|
24462
|
-
// node_modules/react-dom/index.js
|
|
24462
|
+
// ../../node_modules/react-dom/index.js
|
|
24463
24463
|
var require_react_dom = __commonJS({
|
|
24464
|
-
"node_modules/react-dom/index.js"(exports, module) {
|
|
24464
|
+
"../../node_modules/react-dom/index.js"(exports, module) {
|
|
24465
24465
|
"use strict";
|
|
24466
24466
|
if (false) {
|
|
24467
24467
|
checkDCE();
|
|
@@ -24633,7 +24633,7 @@ var SyntrologieSDK = (() => {
|
|
|
24633
24633
|
}
|
|
24634
24634
|
});
|
|
24635
24635
|
|
|
24636
|
-
// node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
24636
|
+
// ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
24637
24637
|
function clamp(start, value, end) {
|
|
24638
24638
|
return max(start, min(value, end));
|
|
24639
24639
|
}
|
|
@@ -24742,7 +24742,7 @@ var SyntrologieSDK = (() => {
|
|
|
24742
24742
|
}
|
|
24743
24743
|
var sides, min, max, round, floor, createCoords, oppositeSideMap, oppositeAlignmentMap, yAxisSides, lrPlacement, rlPlacement, tbPlacement, btPlacement;
|
|
24744
24744
|
var init_floating_ui_utils = __esm({
|
|
24745
|
-
"node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs"() {
|
|
24745
|
+
"../../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs"() {
|
|
24746
24746
|
sides = ["top", "right", "bottom", "left"];
|
|
24747
24747
|
min = Math.min;
|
|
24748
24748
|
max = Math.max;
|
|
@@ -24770,7 +24770,7 @@ var SyntrologieSDK = (() => {
|
|
|
24770
24770
|
}
|
|
24771
24771
|
});
|
|
24772
24772
|
|
|
24773
|
-
// node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
24773
|
+
// ../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
24774
24774
|
function computeCoordsFromPlacement(_ref, placement, rtl) {
|
|
24775
24775
|
let {
|
|
24776
24776
|
reference,
|
|
@@ -24932,7 +24932,7 @@ var SyntrologieSDK = (() => {
|
|
|
24932
24932
|
}
|
|
24933
24933
|
var computePosition, arrow, flip, hide, originSides, offset, shift;
|
|
24934
24934
|
var init_floating_ui_core = __esm({
|
|
24935
|
-
"node_modules/@floating-ui/core/dist/floating-ui.core.mjs"() {
|
|
24935
|
+
"../../node_modules/@floating-ui/core/dist/floating-ui.core.mjs"() {
|
|
24936
24936
|
init_floating_ui_utils();
|
|
24937
24937
|
init_floating_ui_utils();
|
|
24938
24938
|
computePosition = async (reference, floating, config) => {
|
|
@@ -25344,7 +25344,7 @@ var SyntrologieSDK = (() => {
|
|
|
25344
25344
|
}
|
|
25345
25345
|
});
|
|
25346
25346
|
|
|
25347
|
-
// node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
25347
|
+
// ../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
25348
25348
|
function hasWindow() {
|
|
25349
25349
|
return typeof window !== "undefined";
|
|
25350
25350
|
}
|
|
@@ -25491,7 +25491,7 @@ var SyntrologieSDK = (() => {
|
|
|
25491
25491
|
}
|
|
25492
25492
|
var invalidOverflowDisplayValues, tableElements, topLayerSelectors, transformProperties, willChangeValues, containValues, lastTraversableNodeNames;
|
|
25493
25493
|
var init_floating_ui_utils_dom = __esm({
|
|
25494
|
-
"node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs"() {
|
|
25494
|
+
"../../node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs"() {
|
|
25495
25495
|
invalidOverflowDisplayValues = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
25496
25496
|
tableElements = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
25497
25497
|
topLayerSelectors = [":popover-open", ":modal"];
|
|
@@ -26671,9 +26671,9 @@ var SyntrologieSDK = (() => {
|
|
|
26671
26671
|
}
|
|
26672
26672
|
});
|
|
26673
26673
|
|
|
26674
|
-
// node_modules/react-dom/client.js
|
|
26674
|
+
// ../../node_modules/react-dom/client.js
|
|
26675
26675
|
var require_client = __commonJS({
|
|
26676
|
-
"node_modules/react-dom/client.js"(exports) {
|
|
26676
|
+
"../../node_modules/react-dom/client.js"(exports) {
|
|
26677
26677
|
"use strict";
|
|
26678
26678
|
var m2 = require_react_dom();
|
|
26679
26679
|
if (false) {
|
|
@@ -26732,7 +26732,7 @@ var SyntrologieSDK = (() => {
|
|
|
26732
26732
|
validateRecipe: () => validateRecipe
|
|
26733
26733
|
});
|
|
26734
26734
|
|
|
26735
|
-
// node_modules/posthog-js/dist/module.js
|
|
26735
|
+
// ../../node_modules/posthog-js/dist/module.js
|
|
26736
26736
|
var t = "undefined" != typeof window ? window : void 0;
|
|
26737
26737
|
var i = "undefined" != typeof globalThis ? globalThis : t;
|
|
26738
26738
|
"undefined" == typeof self && (i.self = i), "undefined" == typeof File && (i.File = function() {
|
|
@@ -31267,7 +31267,7 @@ var SyntrologieSDK = (() => {
|
|
|
31267
31267
|
if (!this.client && typeof window !== "undefined" && options.apiKey) {
|
|
31268
31268
|
this.client = Uo;
|
|
31269
31269
|
this.client.init(options.apiKey, {
|
|
31270
|
-
api_host: options.apiHost ?? "https://
|
|
31270
|
+
api_host: options.apiHost ?? "https://posthog-dev.syntrologie.com",
|
|
31271
31271
|
// Full-page tracking - all ON by default
|
|
31272
31272
|
autocapture: options.autocapture ?? true,
|
|
31273
31273
|
capture_pageview: options.capturePageview ?? true,
|
|
@@ -31310,7 +31310,7 @@ var SyntrologieSDK = (() => {
|
|
|
31310
31310
|
return new PostHogAdapter(options);
|
|
31311
31311
|
}
|
|
31312
31312
|
|
|
31313
|
-
// node_modules/@growthbook/growthbook/dist/esm/util.mjs
|
|
31313
|
+
// ../../node_modules/@growthbook/growthbook/dist/esm/util.mjs
|
|
31314
31314
|
var polyfills = {
|
|
31315
31315
|
fetch: globalThis.fetch ? globalThis.fetch.bind(globalThis) : void 0,
|
|
31316
31316
|
SubtleCrypto: globalThis.crypto ? globalThis.crypto.subtle : void 0,
|
|
@@ -31578,7 +31578,7 @@ var SyntrologieSDK = (() => {
|
|
|
31578
31578
|
});
|
|
31579
31579
|
}
|
|
31580
31580
|
|
|
31581
|
-
// node_modules/@growthbook/growthbook/dist/esm/feature-repository.mjs
|
|
31581
|
+
// ../../node_modules/@growthbook/growthbook/dist/esm/feature-repository.mjs
|
|
31582
31582
|
var cacheSettings = {
|
|
31583
31583
|
// Consider a fetch stale after 1 minute
|
|
31584
31584
|
staleTTL: 1e3 * 60,
|
|
@@ -32006,7 +32006,7 @@ var SyntrologieSDK = (() => {
|
|
|
32006
32006
|
}
|
|
32007
32007
|
}
|
|
32008
32008
|
|
|
32009
|
-
// node_modules/dom-mutator/dist/dom-mutator.esm.js
|
|
32009
|
+
// ../../node_modules/dom-mutator/dist/dom-mutator.esm.js
|
|
32010
32010
|
var validAttributeName = /^[a-zA-Z:_][a-zA-Z0-9:_.-]*$/;
|
|
32011
32011
|
var nullController = {
|
|
32012
32012
|
revert: function revert() {
|
|
@@ -32425,7 +32425,7 @@ var SyntrologieSDK = (() => {
|
|
|
32425
32425
|
};
|
|
32426
32426
|
var dom_mutator_esm_default = index;
|
|
32427
32427
|
|
|
32428
|
-
// node_modules/@growthbook/growthbook/dist/esm/mongrule.mjs
|
|
32428
|
+
// ../../node_modules/@growthbook/growthbook/dist/esm/mongrule.mjs
|
|
32429
32429
|
var _regexCache = {};
|
|
32430
32430
|
function evalCondition(obj, condition, savedGroups) {
|
|
32431
32431
|
savedGroups = savedGroups || {};
|
|
@@ -32608,7 +32608,7 @@ var SyntrologieSDK = (() => {
|
|
|
32608
32608
|
return true;
|
|
32609
32609
|
}
|
|
32610
32610
|
|
|
32611
|
-
// node_modules/@growthbook/growthbook/dist/esm/core.mjs
|
|
32611
|
+
// ../../node_modules/@growthbook/growthbook/dist/esm/core.mjs
|
|
32612
32612
|
var EVENT_FEATURE_EVALUATED = "Feature Evaluated";
|
|
32613
32613
|
var EVENT_EXPERIMENT_VIEWED = "Experiment Viewed";
|
|
32614
32614
|
function getForcedFeatureValues(ctx) {
|
|
@@ -33391,7 +33391,7 @@ var SyntrologieSDK = (() => {
|
|
|
33391
33391
|
return result.hashAttribute + result.hashValue + experiment.key + result.variationId;
|
|
33392
33392
|
}
|
|
33393
33393
|
|
|
33394
|
-
// node_modules/@growthbook/growthbook/dist/esm/GrowthBook.mjs
|
|
33394
|
+
// ../../node_modules/@growthbook/growthbook/dist/esm/GrowthBook.mjs
|
|
33395
33395
|
var isBrowser = typeof window !== "undefined" && typeof document !== "undefined";
|
|
33396
33396
|
var SDK_VERSION = loadSDKVersion();
|
|
33397
33397
|
var GrowthBook = class {
|
|
@@ -34160,7 +34160,7 @@ var SyntrologieSDK = (() => {
|
|
|
34160
34160
|
}
|
|
34161
34161
|
};
|
|
34162
34162
|
|
|
34163
|
-
// node_modules/@growthbook/growthbook-react/dist/esm/index.js
|
|
34163
|
+
// ../../node_modules/@growthbook/growthbook-react/dist/esm/index.js
|
|
34164
34164
|
var React = __toESM(require_react());
|
|
34165
34165
|
function _extends() {
|
|
34166
34166
|
return _extends = Object.assign ? Object.assign.bind() : function(n2) {
|
|
@@ -35079,7 +35079,7 @@ var SyntrologieSDK = (() => {
|
|
|
35079
35079
|
// src/hooks/useCanvasOverlays.tsx
|
|
35080
35080
|
var import_react5 = __toESM(require_react(), 1);
|
|
35081
35081
|
|
|
35082
|
-
// node_modules/zod/v3/external.js
|
|
35082
|
+
// ../../node_modules/zod/v3/external.js
|
|
35083
35083
|
var external_exports = {};
|
|
35084
35084
|
__export(external_exports, {
|
|
35085
35085
|
BRAND: () => BRAND,
|
|
@@ -35191,7 +35191,7 @@ var SyntrologieSDK = (() => {
|
|
|
35191
35191
|
void: () => voidType
|
|
35192
35192
|
});
|
|
35193
35193
|
|
|
35194
|
-
// node_modules/zod/v3/helpers/util.js
|
|
35194
|
+
// ../../node_modules/zod/v3/helpers/util.js
|
|
35195
35195
|
var util;
|
|
35196
35196
|
(function(util2) {
|
|
35197
35197
|
util2.assertEqual = (_2) => {
|
|
@@ -35325,7 +35325,7 @@ var SyntrologieSDK = (() => {
|
|
|
35325
35325
|
}
|
|
35326
35326
|
};
|
|
35327
35327
|
|
|
35328
|
-
// node_modules/zod/v3/ZodError.js
|
|
35328
|
+
// ../../node_modules/zod/v3/ZodError.js
|
|
35329
35329
|
var ZodIssueCode = util.arrayToEnum([
|
|
35330
35330
|
"invalid_type",
|
|
35331
35331
|
"invalid_literal",
|
|
@@ -35443,7 +35443,7 @@ var SyntrologieSDK = (() => {
|
|
|
35443
35443
|
return error;
|
|
35444
35444
|
};
|
|
35445
35445
|
|
|
35446
|
-
// node_modules/zod/v3/locales/en.js
|
|
35446
|
+
// ../../node_modules/zod/v3/locales/en.js
|
|
35447
35447
|
var errorMap = (issue, _ctx) => {
|
|
35448
35448
|
let message;
|
|
35449
35449
|
switch (issue.code) {
|
|
@@ -35546,7 +35546,7 @@ var SyntrologieSDK = (() => {
|
|
|
35546
35546
|
};
|
|
35547
35547
|
var en_default = errorMap;
|
|
35548
35548
|
|
|
35549
|
-
// node_modules/zod/v3/errors.js
|
|
35549
|
+
// ../../node_modules/zod/v3/errors.js
|
|
35550
35550
|
var overrideErrorMap = en_default;
|
|
35551
35551
|
function setErrorMap(map) {
|
|
35552
35552
|
overrideErrorMap = map;
|
|
@@ -35555,7 +35555,7 @@ var SyntrologieSDK = (() => {
|
|
|
35555
35555
|
return overrideErrorMap;
|
|
35556
35556
|
}
|
|
35557
35557
|
|
|
35558
|
-
// node_modules/zod/v3/helpers/parseUtil.js
|
|
35558
|
+
// ../../node_modules/zod/v3/helpers/parseUtil.js
|
|
35559
35559
|
var makeIssue = (params) => {
|
|
35560
35560
|
const { data, path, errorMaps, issueData } = params;
|
|
35561
35561
|
const fullPath = [...path, ...issueData.path || []];
|
|
@@ -35665,14 +35665,14 @@ var SyntrologieSDK = (() => {
|
|
|
35665
35665
|
var isValid = (x2) => x2.status === "valid";
|
|
35666
35666
|
var isAsync = (x2) => typeof Promise !== "undefined" && x2 instanceof Promise;
|
|
35667
35667
|
|
|
35668
|
-
// node_modules/zod/v3/helpers/errorUtil.js
|
|
35668
|
+
// ../../node_modules/zod/v3/helpers/errorUtil.js
|
|
35669
35669
|
var errorUtil;
|
|
35670
35670
|
(function(errorUtil2) {
|
|
35671
35671
|
errorUtil2.errToObj = (message) => typeof message === "string" ? { message } : message || {};
|
|
35672
35672
|
errorUtil2.toString = (message) => typeof message === "string" ? message : message?.message;
|
|
35673
35673
|
})(errorUtil || (errorUtil = {}));
|
|
35674
35674
|
|
|
35675
|
-
// node_modules/zod/v3/types.js
|
|
35675
|
+
// ../../node_modules/zod/v3/types.js
|
|
35676
35676
|
var ParseInputLazyPath = class {
|
|
35677
35677
|
constructor(parent, value, path, key) {
|
|
35678
35678
|
this._cachedPath = [];
|