@pinegrow/astro-module 3.0.0-beta.98 → 3.0.0
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/README.md +71 -3
- package/dist/index.cjs +64 -30
- package/dist/index.d.ts +6 -8
- package/dist/index.js +63 -29
- package/dist/{live-designer-CPSOFW56.cjs → live-designer-PEHWBCFL.cjs} +2 -3
- package/dist/{live-designer-PTVJIKMO.js → live-designer-TIVRM3WS.js} +1 -5
- package/package.json +9 -5
- package/dist/chunk-4NKIVEY7.cjs +0 -7
- package/dist/chunk-FOBIONE4.js +0 -53
- package/dist/chunk-XPHVRMSY.cjs +0 -44
- package/dist/live-designer-ETMU6K4W.js +0 -5
- package/dist/live-designer-QTCHAEUL.cjs +0 -5
- package/dist/live-designer-VNRGZZN6.cjs +0 -11
package/README.md
CHANGED
|
@@ -1,6 +1,74 @@
|
|
|
1
|
-
|
|
1
|
+
<!-- [](https://tailwindcss.nuxtjs.org) -->
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# Pinegrow Astro Module
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[![npm version][npm-version-src]][npm-version-href]
|
|
6
|
+
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
7
|
+
[![License][license-src]][license-href]
|
|
8
|
+
|
|
9
|
+
[Astro](https://astro.build/) module for [Pinegrow](https://pinegrow.com) ⚡️
|
|
10
|
+
|
|
11
|
+
Pinegrow Astro Module enables connection and interaction between your Vite Dev-Server and Pinegrow apps (currently only Vue Designer).
|
|
12
|
+
|
|
13
|
+
- [ Learn more about Vue Designer](https://pinegrow.com/vue-designer)
|
|
14
|
+
|
|
15
|
+
## Features
|
|
16
|
+
|
|
17
|
+
- 🎨 Visually live-design your Vite-powered Astro apps (currently only Vue components are supported)
|
|
18
|
+
- ⚙️ Smartly integrates into your Astro workflow in dev-mode only
|
|
19
|
+
- ✨ Clean code 😃, No lock-in - You are in control of your projects and development workflow ❤️
|
|
20
|
+
|
|
21
|
+
## Quick Setup
|
|
22
|
+
|
|
23
|
+
1. Install: Add `@pinegrow/astro-module` to your project
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
# Using npm
|
|
27
|
+
npm install -D @pinegrow/astro-module
|
|
28
|
+
|
|
29
|
+
# Using pnpm
|
|
30
|
+
pnpm add -D @pinegrow/astro-module
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
2. Configure: Add `@pinegrow/astro-module` to your Astro Integrations array `astro.config.{mjs,ts}`
|
|
34
|
+
|
|
35
|
+
```js
|
|
36
|
+
//astro.config.mjs (or) astro.config.ts
|
|
37
|
+
|
|
38
|
+
import { defineConfig } from 'astro/config'
|
|
39
|
+
|
|
40
|
+
import vue from '@astrojs/vue'
|
|
41
|
+
import pinegrow from '@pinegrow/astro-module'
|
|
42
|
+
|
|
43
|
+
export default defineConfig({
|
|
44
|
+
integrations: [
|
|
45
|
+
vue(),
|
|
46
|
+
pinegrow({
|
|
47
|
+
liveDesigner: {
|
|
48
|
+
// For options, refer to https://www.npmjs.com/package/@pinegrow/vite-plugin
|
|
49
|
+
//...
|
|
50
|
+
},
|
|
51
|
+
}),
|
|
52
|
+
//...
|
|
53
|
+
],
|
|
54
|
+
//...
|
|
55
|
+
})
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Now, open your project in your Pinegrow app (currently only Vue Designer). ✨
|
|
59
|
+
|
|
60
|
+
## License
|
|
61
|
+
|
|
62
|
+
[MIT License](./LICENSE)
|
|
63
|
+
|
|
64
|
+
Copyright (c) Pinegrow
|
|
65
|
+
|
|
66
|
+
<!-- Badges -->
|
|
67
|
+
|
|
68
|
+
[npm-version-src]: https://img.shields.io/npm/v/@pinegrow/astro-module/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
69
|
+
[npm-version-href]: https://npmjs.com/package/@pinegrow/astro-module
|
|
70
|
+
[npm-downloads-src]: https://img.shields.io/npm/dm/@pinegrow/astro-module.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
71
|
+
[npm-downloads-href]: https://npmjs.com/package/@pinegrow/astro-module
|
|
72
|
+
[license-src]: https://img.shields.io/npm/l/@pinegrow/astro-module.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
73
|
+
[license-href]: https://npmjs.com/package/@pinegrow/astro-module
|
|
6
74
|
|
package/dist/index.cjs
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }// src/index.ts
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }// src/index.ts
|
|
2
2
|
var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
3
|
-
var _vite = require('unplugin-vue-components/vite'); var _vite2 = _interopRequireDefault(_vite);
|
|
4
|
-
var _vite3 = require('unplugin-auto-import/vite'); var _vite4 = _interopRequireDefault(_vite3);
|
|
5
3
|
async function getViteConfiguration(moduleOptions) {
|
|
6
|
-
var _a, _b, _c
|
|
4
|
+
var _a, _b, _c;
|
|
7
5
|
let vitePlugin;
|
|
8
6
|
try {
|
|
9
|
-
const { liveDesigner } = await Promise.resolve().then(() => require("./live-designer-
|
|
10
|
-
vitePlugin = liveDesigner({
|
|
7
|
+
const { liveDesigner } = await Promise.resolve().then(() => _interopRequireWildcard(require("./live-designer-PEHWBCFL.cjs")));
|
|
8
|
+
vitePlugin = liveDesigner({
|
|
9
|
+
tailwindcss: {
|
|
10
|
+
configPath: "tailwind.config.js",
|
|
11
|
+
cssPath: "@/assets/css/tailwind.css"
|
|
12
|
+
},
|
|
13
|
+
...(moduleOptions == null ? void 0 : moduleOptions.liveDesigner) || {}
|
|
14
|
+
});
|
|
11
15
|
} catch (err) {
|
|
12
16
|
console.log(err);
|
|
13
17
|
console.log("Pinegrow: @pinegrow/astro-module was unable to load @pinegrow/vite-plugin live-designer!");
|
|
@@ -51,28 +55,8 @@ async function getViteConfiguration(moduleOptions) {
|
|
|
51
55
|
const mergeConfig = (defaults, overrides) => {
|
|
52
56
|
return mergeConfigRecursively(defaults || {}, overrides || {});
|
|
53
57
|
};
|
|
54
|
-
(_a = config.plugins) == null ? void 0 : _a.push(
|
|
55
|
-
_vite2.default.call(void 0, mergeConfig({}, moduleOptions.autoImportComponents)),
|
|
56
|
-
_vite4.default.call(void 0,
|
|
57
|
-
mergeConfig(
|
|
58
|
-
{
|
|
59
|
-
include: [
|
|
60
|
-
/\.[tj]sx?$/,
|
|
61
|
-
/\.vue$/,
|
|
62
|
-
/\.vue\?vue/,
|
|
63
|
-
/\.md$/
|
|
64
|
-
],
|
|
65
|
-
imports: ["vue", "vue-router"],
|
|
66
|
-
dirs: [],
|
|
67
|
-
vueTemplate: true,
|
|
68
|
-
cache: true
|
|
69
|
-
},
|
|
70
|
-
moduleOptions.autoImportAPIs
|
|
71
|
-
)
|
|
72
|
-
)
|
|
73
|
-
);
|
|
74
58
|
const ignoreList = [
|
|
75
|
-
.../* @__PURE__ */ new Set([...((
|
|
59
|
+
.../* @__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"])
|
|
76
60
|
];
|
|
77
61
|
config = mergeConfig(config, {
|
|
78
62
|
server: {
|
|
@@ -81,12 +65,14 @@ async function getViteConfiguration(moduleOptions) {
|
|
|
81
65
|
}
|
|
82
66
|
}
|
|
83
67
|
});
|
|
84
|
-
const alias = (
|
|
68
|
+
const alias = (_c = config == null ? void 0 : config.resolve) == null ? void 0 : _c.alias;
|
|
85
69
|
if (!alias) {
|
|
86
70
|
config = mergeConfig(config, {
|
|
87
71
|
resolve: {
|
|
88
72
|
alias: {
|
|
89
|
-
"@": _path2.default.resolve(config.root || process.cwd(), "./src")
|
|
73
|
+
"@": _path2.default.resolve(config.root || process.cwd(), "./src"),
|
|
74
|
+
"~": _path2.default.resolve(config.root || process.cwd(), "./src"),
|
|
75
|
+
"~~": _path2.default.resolve(config.root || process.cwd(), "./")
|
|
90
76
|
}
|
|
91
77
|
}
|
|
92
78
|
});
|
|
@@ -97,10 +83,58 @@ function createIntegration(moduleOptions) {
|
|
|
97
83
|
return {
|
|
98
84
|
name: "@pinegrow/astro-module",
|
|
99
85
|
hooks: {
|
|
100
|
-
"astro:config:setup": async ({ updateConfig }) => {
|
|
86
|
+
"astro:config:setup": async ({ updateConfig, injectScript }) => {
|
|
101
87
|
updateConfig({
|
|
102
88
|
vite: await getViteConfiguration(moduleOptions)
|
|
103
89
|
});
|
|
90
|
+
const addons = [
|
|
91
|
+
{
|
|
92
|
+
name: "pgia",
|
|
93
|
+
resources: [
|
|
94
|
+
{
|
|
95
|
+
parentResource: "src/assets/pgia",
|
|
96
|
+
injectTo: "head-inline",
|
|
97
|
+
tag: "script",
|
|
98
|
+
children: `
|
|
99
|
+
/* Pinegrow Interactions, do not remove */ (function(){try{if(!document.documentElement.hasAttribute('data-pg-ia-disabled')) { window.pgia_small_mq=typeof pgia_small_mq=='string'?pgia_small_mq:'(max-width:767px)';window.pgia_large_mq=typeof pgia_large_mq=='string'?pgia_large_mq:'(min-width:768px)';var style = document.createElement('style');var pgcss='html:not(.pg-ia-no-preview) [data-pg-ia-hide=""] {opacity:0;visibility:hidden;}html:not(.pg-ia-no-preview) [data-pg-ia-show=""] {opacity:1;visibility:visible;display:block;}';if(document.documentElement.hasAttribute('data-pg-id') && document.documentElement.hasAttribute('data-pg-mobile')) {pgia_small_mq='(min-width:0)';pgia_large_mq='(min-width:99999px)'} pgcss+='@media ' + pgia_small_mq + '{ html:not(.pg-ia-no-preview) [data-pg-ia-hide="mobile"] {opacity:0;visibility:hidden;}html:not(.pg-ia-no-preview) [data-pg-ia-show="mobile"] {opacity:1;visibility:visible;display:block;}}';pgcss+='@media ' + pgia_large_mq + '{html:not(.pg-ia-no-preview) [data-pg-ia-hide="desktop"] {opacity:0;visibility:hidden;}html:not(.pg-ia-no-preview) [data-pg-ia-show="desktop"] {opacity:1;visibility:visible;display:block;}}';style.innerHTML=pgcss;document.querySelector('head').appendChild(style);}}catch(e){console&&console.log(e);}})()`
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
parentResource: "src/assets/pgia",
|
|
103
|
+
injectTo: "page",
|
|
104
|
+
tag: "script",
|
|
105
|
+
children: 'import "@/assets/pgia/lib/index.js"'
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
];
|
|
110
|
+
const injects = [];
|
|
111
|
+
addons.forEach((addon) => {
|
|
112
|
+
addon.resources.forEach((resource) => {
|
|
113
|
+
if (!resource.condition) {
|
|
114
|
+
try {
|
|
115
|
+
let parentResourceExists = true;
|
|
116
|
+
if (resource.parentResource) {
|
|
117
|
+
const projectRoot = process.cwd();
|
|
118
|
+
const resourcePath = _path2.default.resolve(projectRoot, resource.parentResource);
|
|
119
|
+
parentResourceExists = parentResourceExists && fs.existsSync(resourcePath);
|
|
120
|
+
}
|
|
121
|
+
if (parentResourceExists) {
|
|
122
|
+
injects.push({
|
|
123
|
+
injectTo: resource.injectTo,
|
|
124
|
+
tag: resource.tag,
|
|
125
|
+
attrs: resource.attrs,
|
|
126
|
+
children: resource.children
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
} catch (err) {
|
|
130
|
+
console.log(err);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
injects.filter((inject) => inject.tag === "script").forEach((inject) => {
|
|
136
|
+
injectScript(inject.injectTo, inject.children);
|
|
137
|
+
});
|
|
104
138
|
},
|
|
105
139
|
"astro:server:setup": ({ server }) => {
|
|
106
140
|
const liveDesignerPluginIndex = server.config.plugins.findIndex(
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { AstroIntegration } from 'astro';
|
|
2
|
-
import
|
|
3
|
-
import AutoImportAPIs from 'unplugin-auto-import/types';
|
|
2
|
+
import { PinegrowVitePlugin } from '@pinegrow/vite-plugin';
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}): AstroIntegration;
|
|
4
|
+
interface PinegrowAstroModuleOptions {
|
|
5
|
+
pinegrow: PinegrowVitePlugin;
|
|
6
|
+
}
|
|
7
|
+
declare function createIntegration(moduleOptions: PinegrowAstroModuleOptions): AstroIntegration;
|
|
10
8
|
|
|
11
|
-
export { createIntegration as default };
|
|
9
|
+
export { PinegrowAstroModuleOptions, createIntegration as default };
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
// src/index.ts
|
|
2
2
|
import path from "path";
|
|
3
|
-
import autoImportComponents from "unplugin-vue-components/vite";
|
|
4
|
-
import autoImportAPIs from "unplugin-auto-import/vite";
|
|
5
3
|
async function getViteConfiguration(moduleOptions) {
|
|
6
|
-
var _a, _b, _c
|
|
4
|
+
var _a, _b, _c;
|
|
7
5
|
let vitePlugin;
|
|
8
6
|
try {
|
|
9
|
-
const { liveDesigner } = await import("./live-designer-
|
|
10
|
-
vitePlugin = liveDesigner({
|
|
7
|
+
const { liveDesigner } = await import("./live-designer-TIVRM3WS.js");
|
|
8
|
+
vitePlugin = liveDesigner({
|
|
9
|
+
tailwindcss: {
|
|
10
|
+
configPath: "tailwind.config.js",
|
|
11
|
+
cssPath: "@/assets/css/tailwind.css"
|
|
12
|
+
},
|
|
13
|
+
...(moduleOptions == null ? void 0 : moduleOptions.liveDesigner) || {}
|
|
14
|
+
});
|
|
11
15
|
} catch (err) {
|
|
12
16
|
console.log(err);
|
|
13
17
|
console.log("Pinegrow: @pinegrow/astro-module was unable to load @pinegrow/vite-plugin live-designer!");
|
|
@@ -51,28 +55,8 @@ async function getViteConfiguration(moduleOptions) {
|
|
|
51
55
|
const mergeConfig = (defaults, overrides) => {
|
|
52
56
|
return mergeConfigRecursively(defaults || {}, overrides || {});
|
|
53
57
|
};
|
|
54
|
-
(_a = config.plugins) == null ? void 0 : _a.push(
|
|
55
|
-
autoImportComponents(mergeConfig({}, moduleOptions.autoImportComponents)),
|
|
56
|
-
autoImportAPIs(
|
|
57
|
-
mergeConfig(
|
|
58
|
-
{
|
|
59
|
-
include: [
|
|
60
|
-
/\.[tj]sx?$/,
|
|
61
|
-
/\.vue$/,
|
|
62
|
-
/\.vue\?vue/,
|
|
63
|
-
/\.md$/
|
|
64
|
-
],
|
|
65
|
-
imports: ["vue", "vue-router"],
|
|
66
|
-
dirs: [],
|
|
67
|
-
vueTemplate: true,
|
|
68
|
-
cache: true
|
|
69
|
-
},
|
|
70
|
-
moduleOptions.autoImportAPIs
|
|
71
|
-
)
|
|
72
|
-
)
|
|
73
|
-
);
|
|
74
58
|
const ignoreList = [
|
|
75
|
-
.../* @__PURE__ */ new Set([...((
|
|
59
|
+
.../* @__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"])
|
|
76
60
|
];
|
|
77
61
|
config = mergeConfig(config, {
|
|
78
62
|
server: {
|
|
@@ -81,12 +65,14 @@ async function getViteConfiguration(moduleOptions) {
|
|
|
81
65
|
}
|
|
82
66
|
}
|
|
83
67
|
});
|
|
84
|
-
const alias = (
|
|
68
|
+
const alias = (_c = config == null ? void 0 : config.resolve) == null ? void 0 : _c.alias;
|
|
85
69
|
if (!alias) {
|
|
86
70
|
config = mergeConfig(config, {
|
|
87
71
|
resolve: {
|
|
88
72
|
alias: {
|
|
89
|
-
"@": path.resolve(config.root || process.cwd(), "./src")
|
|
73
|
+
"@": path.resolve(config.root || process.cwd(), "./src"),
|
|
74
|
+
"~": path.resolve(config.root || process.cwd(), "./src"),
|
|
75
|
+
"~~": path.resolve(config.root || process.cwd(), "./")
|
|
90
76
|
}
|
|
91
77
|
}
|
|
92
78
|
});
|
|
@@ -97,10 +83,58 @@ function createIntegration(moduleOptions) {
|
|
|
97
83
|
return {
|
|
98
84
|
name: "@pinegrow/astro-module",
|
|
99
85
|
hooks: {
|
|
100
|
-
"astro:config:setup": async ({ updateConfig }) => {
|
|
86
|
+
"astro:config:setup": async ({ updateConfig, injectScript }) => {
|
|
101
87
|
updateConfig({
|
|
102
88
|
vite: await getViteConfiguration(moduleOptions)
|
|
103
89
|
});
|
|
90
|
+
const addons = [
|
|
91
|
+
{
|
|
92
|
+
name: "pgia",
|
|
93
|
+
resources: [
|
|
94
|
+
{
|
|
95
|
+
parentResource: "src/assets/pgia",
|
|
96
|
+
injectTo: "head-inline",
|
|
97
|
+
tag: "script",
|
|
98
|
+
children: `
|
|
99
|
+
/* Pinegrow Interactions, do not remove */ (function(){try{if(!document.documentElement.hasAttribute('data-pg-ia-disabled')) { window.pgia_small_mq=typeof pgia_small_mq=='string'?pgia_small_mq:'(max-width:767px)';window.pgia_large_mq=typeof pgia_large_mq=='string'?pgia_large_mq:'(min-width:768px)';var style = document.createElement('style');var pgcss='html:not(.pg-ia-no-preview) [data-pg-ia-hide=""] {opacity:0;visibility:hidden;}html:not(.pg-ia-no-preview) [data-pg-ia-show=""] {opacity:1;visibility:visible;display:block;}';if(document.documentElement.hasAttribute('data-pg-id') && document.documentElement.hasAttribute('data-pg-mobile')) {pgia_small_mq='(min-width:0)';pgia_large_mq='(min-width:99999px)'} pgcss+='@media ' + pgia_small_mq + '{ html:not(.pg-ia-no-preview) [data-pg-ia-hide="mobile"] {opacity:0;visibility:hidden;}html:not(.pg-ia-no-preview) [data-pg-ia-show="mobile"] {opacity:1;visibility:visible;display:block;}}';pgcss+='@media ' + pgia_large_mq + '{html:not(.pg-ia-no-preview) [data-pg-ia-hide="desktop"] {opacity:0;visibility:hidden;}html:not(.pg-ia-no-preview) [data-pg-ia-show="desktop"] {opacity:1;visibility:visible;display:block;}}';style.innerHTML=pgcss;document.querySelector('head').appendChild(style);}}catch(e){console&&console.log(e);}})()`
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
parentResource: "src/assets/pgia",
|
|
103
|
+
injectTo: "page",
|
|
104
|
+
tag: "script",
|
|
105
|
+
children: 'import "@/assets/pgia/lib/index.js"'
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
];
|
|
110
|
+
const injects = [];
|
|
111
|
+
addons.forEach((addon) => {
|
|
112
|
+
addon.resources.forEach((resource) => {
|
|
113
|
+
if (!resource.condition) {
|
|
114
|
+
try {
|
|
115
|
+
let parentResourceExists = true;
|
|
116
|
+
if (resource.parentResource) {
|
|
117
|
+
const projectRoot = process.cwd();
|
|
118
|
+
const resourcePath = path.resolve(projectRoot, resource.parentResource);
|
|
119
|
+
parentResourceExists = parentResourceExists && fs.existsSync(resourcePath);
|
|
120
|
+
}
|
|
121
|
+
if (parentResourceExists) {
|
|
122
|
+
injects.push({
|
|
123
|
+
injectTo: resource.injectTo,
|
|
124
|
+
tag: resource.tag,
|
|
125
|
+
attrs: resource.attrs,
|
|
126
|
+
children: resource.children
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
} catch (err) {
|
|
130
|
+
console.log(err);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
injects.filter((inject) => inject.tag === "script").forEach((inject) => {
|
|
136
|
+
injectScript(inject.injectTo, inject.children);
|
|
137
|
+
});
|
|
104
138
|
},
|
|
105
139
|
"astro:server:setup": ({ server }) => {
|
|
106
140
|
const liveDesignerPluginIndex = server.config.plugins.findIndex(
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
2
|
-
|
|
3
|
-
// src/live-designer.mjs
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }// src/live-designer.mjs
|
|
4
2
|
var _viteplugin = require('@pinegrow/vite-plugin'); var _viteplugin2 = _interopRequireDefault(_viteplugin);
|
|
5
3
|
var liveDesigner = _viteplugin2.default.liveDesigner;
|
|
6
4
|
|
|
7
5
|
|
|
8
6
|
exports.liveDesigner = liveDesigner;
|
|
7
|
+
/*! import { liveDesigner } from '@pinegrow/vite-plugin/dev' */
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
init_esm_shims
|
|
3
|
-
} from "./chunk-FOBIONE4.js";
|
|
4
|
-
|
|
5
1
|
// src/live-designer.mjs
|
|
6
|
-
init_esm_shims();
|
|
7
2
|
import pkg from "@pinegrow/vite-plugin";
|
|
8
3
|
var liveDesigner = pkg.liveDesigner;
|
|
9
4
|
export {
|
|
10
5
|
liveDesigner
|
|
11
6
|
};
|
|
7
|
+
/*! import { liveDesigner } from '@pinegrow/vite-plugin/dev' */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pinegrow/astro-module",
|
|
3
|
-
"version": "3.0.0
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Pinegrow Astro Module",
|
|
5
5
|
"author": "Pinegrow (http://pinegrow.com/)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -14,13 +14,18 @@
|
|
|
14
14
|
"exports": {
|
|
15
15
|
"./package.json": "./package.json",
|
|
16
16
|
".": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
17
18
|
"import": "./dist/index.js",
|
|
18
19
|
"require": "./dist/index.cjs"
|
|
19
20
|
}
|
|
20
21
|
},
|
|
21
22
|
"keywords": [
|
|
22
23
|
"pinegrow",
|
|
23
|
-
"
|
|
24
|
+
"vue designer",
|
|
25
|
+
"vuedesigner",
|
|
26
|
+
"vue-designer",
|
|
27
|
+
"astro-module",
|
|
28
|
+
"@pinegrow/astro-module"
|
|
24
29
|
],
|
|
25
30
|
"scripts": {
|
|
26
31
|
"dev": "npm run build -- --watch",
|
|
@@ -31,9 +36,7 @@
|
|
|
31
36
|
"increment-beta-version": "npm version prerelease --preid=beta"
|
|
32
37
|
},
|
|
33
38
|
"dependencies": {
|
|
34
|
-
"@pinegrow/vite-plugin": "3.0.0
|
|
35
|
-
"unplugin-vue-components": "^0.24.1",
|
|
36
|
-
"unplugin-auto-import": "^0.15.2"
|
|
39
|
+
"@pinegrow/vite-plugin": "3.0.0"
|
|
37
40
|
},
|
|
38
41
|
"devDependencies": {
|
|
39
42
|
"astro": "^2.1.5",
|
|
@@ -45,3 +48,4 @@
|
|
|
45
48
|
"astro": "^2.1.5"
|
|
46
49
|
}
|
|
47
50
|
}
|
|
51
|
+
|
package/dist/chunk-4NKIVEY7.cjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// ../../node_modules/tsup/assets/cjs_shims.js
|
|
2
|
-
var getImportMetaUrl = () => typeof document === "undefined" ? new URL("file:" + __filename).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
3
|
-
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
exports.importMetaUrl = importMetaUrl;
|
package/dist/chunk-FOBIONE4.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/chunk-XPHVRMSY.cjs
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
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;
|
|
@@ -1,11 +0,0 @@
|
|
|
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;
|