@knapsack/core 4.69.10--canary.4778.7061c3b.0 → 4.69.10--canary.4745.042d9e2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +0 -13
- package/dist/index.js +75 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +75 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
@@ -1,16 +1,3 @@
|
|
1
|
-
# v4.69.9 (Sat Sep 14 2024)
|
2
|
-
|
3
|
-
#### 🏠 Internal
|
4
|
-
|
5
|
-
- update template stage ui [#4763](https://github.com/knapsack-labs/app-monorepo/pull/4763) ([@GormanDesign](https://github.com/GormanDesign))
|
6
|
-
- add spacing under form feedback banner [#4747](https://github.com/knapsack-labs/app-monorepo/pull/4747) ([@GormanDesign](https://github.com/GormanDesign))
|
7
|
-
|
8
|
-
#### Authors: 1
|
9
|
-
|
10
|
-
- Matt Gorman ([@GormanDesign](https://github.com/GormanDesign))
|
11
|
-
|
12
|
-
---
|
13
|
-
|
14
1
|
# v4.69.7 (Wed Sep 11 2024)
|
15
2
|
|
16
3
|
#### 🐛 Bug Fix
|
package/dist/index.js
CHANGED
@@ -33,9 +33,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
33
33
|
));
|
34
34
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
35
35
|
|
36
|
-
// ../../node_modules/.pnpm/tsup@8.2.4_@microsoft+api-extractor@7.43.8_@types+node@20.16.5__@swc+core@1.3.57_@swc+
|
36
|
+
// ../../node_modules/.pnpm/tsup@8.2.4_@microsoft+api-extractor@7.43.8_@types+node@20.16.5__@swc+core@1.3.57_@swc+helpers_qww7lehrx3uuw4jfw345astxp4/node_modules/tsup/assets/cjs_shims.js
|
37
37
|
var init_cjs_shims = __esm({
|
38
|
-
"../../node_modules/.pnpm/tsup@8.2.4_@microsoft+api-extractor@7.43.8_@types+node@20.16.5__@swc+core@1.3.57_@swc+
|
38
|
+
"../../node_modules/.pnpm/tsup@8.2.4_@microsoft+api-extractor@7.43.8_@types+node@20.16.5__@swc+core@1.3.57_@swc+helpers_qww7lehrx3uuw4jfw345astxp4/node_modules/tsup/assets/cjs_shims.js"() {
|
39
39
|
}
|
40
40
|
});
|
41
41
|
|
@@ -1753,6 +1753,79 @@ var KsRemoteChangeRuntime = s3.type({
|
|
1753
1753
|
userId: s3.optional(s3.string())
|
1754
1754
|
});
|
1755
1755
|
var KsRemoteChangesStructRuntime = s3.array(KsRemoteChangeRuntime);
|
1756
|
+
function isKsJsImports(imports) {
|
1757
|
+
if (!Array.isArray(imports)) return false;
|
1758
|
+
if (imports.length === 0) return true;
|
1759
|
+
const [anImport] = imports;
|
1760
|
+
if (anImport.type === "pattern-template" && typeof anImport.patternId !== "string")
|
1761
|
+
return false;
|
1762
|
+
if (anImport.type === "pattern-template-demo" && typeof anImport.patternId !== "string")
|
1763
|
+
return false;
|
1764
|
+
if (anImport.type === "pattern-template-demo" && typeof anImport.templateId !== "string")
|
1765
|
+
return false;
|
1766
|
+
if (anImport.type === "pattern-template-demo" && typeof anImport.demoId !== "string")
|
1767
|
+
return false;
|
1768
|
+
if (anImport.type === "extra" && typeof anImport.importInfo !== "object")
|
1769
|
+
return false;
|
1770
|
+
if (anImport.type === "extra" && typeof anImport.importInfo.type !== "string")
|
1771
|
+
return false;
|
1772
|
+
if (anImport.type === "extra" && typeof anImport.importInfo.name !== "string")
|
1773
|
+
return false;
|
1774
|
+
if (anImport.type === "extra" && typeof anImport.importInfo.path !== "string")
|
1775
|
+
return false;
|
1776
|
+
if (anImport.type === "extra" && typeof anImport.importInfo.names !== "undefined") {
|
1777
|
+
if (!Array.isArray(anImport.importInfo.names)) return false;
|
1778
|
+
if (anImport.importInfo.names.some((name) => typeof name !== "string"))
|
1779
|
+
return false;
|
1780
|
+
}
|
1781
|
+
return true;
|
1782
|
+
}
|
1783
|
+
__name(isKsJsImports, "isKsJsImports");
|
1784
|
+
__name2(isKsJsImports, "isKsJsImports");
|
1785
|
+
function isKsRendererClientGlobalImportedModules(mods) {
|
1786
|
+
if (!(0, import_utils.isObject)(mods)) return false;
|
1787
|
+
for (const key in mods) {
|
1788
|
+
if (typeof mods[key] !== "function") return false;
|
1789
|
+
}
|
1790
|
+
return true;
|
1791
|
+
}
|
1792
|
+
__name(isKsRendererClientGlobalImportedModules, "isKsRendererClientGlobalImportedModules");
|
1793
|
+
__name2(isKsRendererClientGlobalImportedModules, "isKsRendererClientGlobalImportedModules");
|
1794
|
+
function isKsRendererClientGlobal(knapsack) {
|
1795
|
+
if (!(0, import_utils.isObject)(knapsack)) return false;
|
1796
|
+
if (knapsack.typeName !== "KsRendererClientGlobal") return false;
|
1797
|
+
if (typeof knapsack.getImport !== "function") return false;
|
1798
|
+
if (!Array.isArray(knapsack.allAvailableImports)) return false;
|
1799
|
+
if (!isKsRendererClientGlobalImportedModules(knapsack.importedModules)) {
|
1800
|
+
return false;
|
1801
|
+
}
|
1802
|
+
return isKsJsImports(knapsack.allAvailableImports);
|
1803
|
+
}
|
1804
|
+
__name(isKsRendererClientGlobal, "isKsRendererClientGlobal");
|
1805
|
+
__name2(isKsRendererClientGlobal, "isKsRendererClientGlobal");
|
1806
|
+
var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
|
1807
|
+
function getKsRendererClientGlobal() {
|
1808
|
+
if (!isBrowser) {
|
1809
|
+
throw new Error(
|
1810
|
+
"Cannot get KsRendererClientGlobal in a non-browser environment"
|
1811
|
+
);
|
1812
|
+
}
|
1813
|
+
const { knapsack } = window;
|
1814
|
+
if (!knapsack) {
|
1815
|
+
throw new Error(
|
1816
|
+
'Cannot get KsRendererClientGlobal: "knapsack" is not defined on the window'
|
1817
|
+
);
|
1818
|
+
}
|
1819
|
+
if (!isKsRendererClientGlobal(knapsack)) {
|
1820
|
+
console.log(`Object found at "window.knapsack":`, knapsack);
|
1821
|
+
throw new Error(
|
1822
|
+
`Cannot get KsRendererClientGlobal: knapsack is not the correct type`
|
1823
|
+
);
|
1824
|
+
}
|
1825
|
+
return knapsack;
|
1826
|
+
}
|
1827
|
+
__name(getKsRendererClientGlobal, "getKsRendererClientGlobal");
|
1828
|
+
__name2(getKsRendererClientGlobal, "getKsRendererClientGlobal");
|
1756
1829
|
var plugins_exports = {};
|
1757
1830
|
__export2(plugins_exports, {
|
1758
1831
|
ACTIONS: /* @__PURE__ */ __name(() => ACTIONS, "ACTIONS"),
|