@pinegrow/astro-module 3.0.0-beta.84 → 3.0.0-beta.85
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/chunk-FOBIONE4.js +53 -0
- package/dist/chunk-XPHVRMSY.cjs +44 -0
- package/dist/index.cjs +22 -2
- package/dist/index.js +22 -2
- package/dist/live-designer-PTVJIKMO.js +11 -0
- package/dist/live-designer-VNRGZZN6.cjs +11 -0
- package/package.json +2 -2
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
8
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
|
+
}) : x)(function(x) {
|
|
10
|
+
if (typeof require !== "undefined")
|
|
11
|
+
return require.apply(this, arguments);
|
|
12
|
+
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
+
});
|
|
14
|
+
var __esm = (fn, res) => function __init() {
|
|
15
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
16
|
+
};
|
|
17
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
18
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
19
|
+
};
|
|
20
|
+
var __copyProps = (to, from, except, desc) => {
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
+
for (let key of __getOwnPropNames(from))
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
29
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
30
|
+
mod
|
|
31
|
+
));
|
|
32
|
+
|
|
33
|
+
// ../../node_modules/tsup/assets/esm_shims.js
|
|
34
|
+
import { fileURLToPath } from "url";
|
|
35
|
+
import path from "path";
|
|
36
|
+
var getFilename, getDirname, __dirname, __filename;
|
|
37
|
+
var init_esm_shims = __esm({
|
|
38
|
+
"../../node_modules/tsup/assets/esm_shims.js"() {
|
|
39
|
+
getFilename = () => fileURLToPath(import.meta.url);
|
|
40
|
+
getDirname = () => path.dirname(getFilename());
|
|
41
|
+
__dirname = /* @__PURE__ */ getDirname();
|
|
42
|
+
__filename = /* @__PURE__ */ getFilename();
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
export {
|
|
47
|
+
__require,
|
|
48
|
+
__commonJS,
|
|
49
|
+
__toESM,
|
|
50
|
+
__dirname,
|
|
51
|
+
__filename,
|
|
52
|
+
init_esm_shims
|
|
53
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
8
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
9
|
+
}) : x)(function(x) {
|
|
10
|
+
if (typeof require !== "undefined")
|
|
11
|
+
return require.apply(this, arguments);
|
|
12
|
+
throw new Error('Dynamic require of "' + x + '" is not supported');
|
|
13
|
+
});
|
|
14
|
+
var __esm = (fn, res) => function __init() {
|
|
15
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
16
|
+
};
|
|
17
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
18
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
19
|
+
};
|
|
20
|
+
var __copyProps = (to, from, except, desc) => {
|
|
21
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
22
|
+
for (let key of __getOwnPropNames(from))
|
|
23
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
24
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
25
|
+
}
|
|
26
|
+
return to;
|
|
27
|
+
};
|
|
28
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
29
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
30
|
+
mod
|
|
31
|
+
));
|
|
32
|
+
|
|
33
|
+
// ../../node_modules/tsup/assets/cjs_shims.js
|
|
34
|
+
var init_cjs_shims = __esm({
|
|
35
|
+
"../../node_modules/tsup/assets/cjs_shims.js"() {
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
exports.__require = __require; exports.__commonJS = __commonJS; exports.__toESM = __toESM; exports.init_cjs_shims = init_cjs_shims;
|
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/index.ts
|
|
2
|
+
var _vite = require('vite');
|
|
2
3
|
async function getViteConfiguration(moduleOptions) {
|
|
4
|
+
var _a, _b;
|
|
3
5
|
let vitePlugin;
|
|
4
6
|
try {
|
|
5
7
|
const { liveDesigner } = await Promise.resolve().then(() => require("./live-designer-ZFVVYPVH.cjs"));
|
|
6
|
-
vitePlugin = liveDesigner(moduleOptions == null ? void 0 : moduleOptions.liveDesigner);
|
|
8
|
+
vitePlugin = liveDesigner({ ...(moduleOptions == null ? void 0 : moduleOptions.liveDesigner) || {}, mappingType: "type3" });
|
|
7
9
|
} catch (err) {
|
|
8
10
|
console.log(err);
|
|
9
11
|
console.log("Pinegrow: @pinegrow/astro-module was unable to load @pinegrow/vite-plugin live-designer!");
|
|
@@ -11,7 +13,16 @@ async function getViteConfiguration(moduleOptions) {
|
|
|
11
13
|
const config = {
|
|
12
14
|
plugins: vitePlugin ? [vitePlugin] : []
|
|
13
15
|
};
|
|
14
|
-
|
|
16
|
+
const ignoreList = [
|
|
17
|
+
.../* @__PURE__ */ new Set([...((_b = (_a = config == null ? void 0 : config.server) == null ? void 0 : _a.watch) == null ? void 0 : _b.ignored) || [], "**/_pgbackup/**", "**/_pginfo/**", "**/pinegrow.json"])
|
|
18
|
+
];
|
|
19
|
+
return _vite.mergeConfig.call(void 0, config, {
|
|
20
|
+
server: {
|
|
21
|
+
watch: {
|
|
22
|
+
ignored: ignoreList
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
});
|
|
15
26
|
}
|
|
16
27
|
function createIntegration(moduleOptions) {
|
|
17
28
|
return {
|
|
@@ -22,6 +33,15 @@ function createIntegration(moduleOptions) {
|
|
|
22
33
|
vite: await getViteConfiguration(moduleOptions)
|
|
23
34
|
});
|
|
24
35
|
},
|
|
36
|
+
"astro:server:setup": ({ server }) => {
|
|
37
|
+
const liveDesignerPluginIndex = server.config.plugins.findIndex(
|
|
38
|
+
(plugin) => plugin.name === "pinegrow:live-designer"
|
|
39
|
+
);
|
|
40
|
+
const liveDesignerPlugin = server.config.plugins[liveDesignerPluginIndex];
|
|
41
|
+
server.config.plugins.splice(liveDesignerPluginIndex, 1);
|
|
42
|
+
const astroBuildIndex = server.config.plugins.findIndex((plugin) => plugin.name === "astro:build");
|
|
43
|
+
server.config.plugins.splice(astroBuildIndex, 0, liveDesignerPlugin);
|
|
44
|
+
},
|
|
25
45
|
"astro:build:setup": ({ vite, pages, target }) => {
|
|
26
46
|
},
|
|
27
47
|
"astro:build:done": ({ dir, routes }) => {
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
|
+
import { mergeConfig } from "vite";
|
|
2
3
|
async function getViteConfiguration(moduleOptions) {
|
|
4
|
+
var _a, _b;
|
|
3
5
|
let vitePlugin;
|
|
4
6
|
try {
|
|
5
7
|
const { liveDesigner } = await import("./live-designer-LATOGT4K.js");
|
|
6
|
-
vitePlugin = liveDesigner(moduleOptions == null ? void 0 : moduleOptions.liveDesigner);
|
|
8
|
+
vitePlugin = liveDesigner({ ...(moduleOptions == null ? void 0 : moduleOptions.liveDesigner) || {}, mappingType: "type3" });
|
|
7
9
|
} catch (err) {
|
|
8
10
|
console.log(err);
|
|
9
11
|
console.log("Pinegrow: @pinegrow/astro-module was unable to load @pinegrow/vite-plugin live-designer!");
|
|
@@ -11,7 +13,16 @@ async function getViteConfiguration(moduleOptions) {
|
|
|
11
13
|
const config = {
|
|
12
14
|
plugins: vitePlugin ? [vitePlugin] : []
|
|
13
15
|
};
|
|
14
|
-
|
|
16
|
+
const ignoreList = [
|
|
17
|
+
.../* @__PURE__ */ new Set([...((_b = (_a = config == null ? void 0 : config.server) == null ? void 0 : _a.watch) == null ? void 0 : _b.ignored) || [], "**/_pgbackup/**", "**/_pginfo/**", "**/pinegrow.json"])
|
|
18
|
+
];
|
|
19
|
+
return mergeConfig(config, {
|
|
20
|
+
server: {
|
|
21
|
+
watch: {
|
|
22
|
+
ignored: ignoreList
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
});
|
|
15
26
|
}
|
|
16
27
|
function createIntegration(moduleOptions) {
|
|
17
28
|
return {
|
|
@@ -22,6 +33,15 @@ function createIntegration(moduleOptions) {
|
|
|
22
33
|
vite: await getViteConfiguration(moduleOptions)
|
|
23
34
|
});
|
|
24
35
|
},
|
|
36
|
+
"astro:server:setup": ({ server }) => {
|
|
37
|
+
const liveDesignerPluginIndex = server.config.plugins.findIndex(
|
|
38
|
+
(plugin) => plugin.name === "pinegrow:live-designer"
|
|
39
|
+
);
|
|
40
|
+
const liveDesignerPlugin = server.config.plugins[liveDesignerPluginIndex];
|
|
41
|
+
server.config.plugins.splice(liveDesignerPluginIndex, 1);
|
|
42
|
+
const astroBuildIndex = server.config.plugins.findIndex((plugin) => plugin.name === "astro:build");
|
|
43
|
+
server.config.plugins.splice(astroBuildIndex, 0, liveDesignerPlugin);
|
|
44
|
+
},
|
|
25
45
|
"astro:build:setup": ({ vite, pages, target }) => {
|
|
26
46
|
},
|
|
27
47
|
"astro:build:done": ({ dir, routes }) => {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
|
+
|
|
3
|
+
var _chunkXPHVRMSYcjs = require('./chunk-XPHVRMSY.cjs');
|
|
4
|
+
|
|
5
|
+
// src/live-designer.mjs
|
|
6
|
+
_chunkXPHVRMSYcjs.init_cjs_shims.call(void 0, );
|
|
7
|
+
var _viteplugin = require('@pinegrow/vite-plugin'); var _viteplugin2 = _interopRequireDefault(_viteplugin);
|
|
8
|
+
var liveDesigner = _viteplugin2.default.liveDesigner;
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
exports.liveDesigner = liveDesigner;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pinegrow/astro-module",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.85",
|
|
4
4
|
"description": "Pinegrow Astro Module",
|
|
5
5
|
"author": "Pinegrow (http://pinegrow.com/)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"increment-beta-version": "npm version prerelease --preid=beta"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@pinegrow/vite-plugin": "3.0.0-beta.
|
|
31
|
+
"@pinegrow/vite-plugin": "3.0.0-beta.85"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"astro": "^2.1.5",
|