@pinegrow/astro-module 3.0.74 → 3.0.76-alpha.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/dist/index.cjs CHANGED
@@ -1,8 +1,9 @@
1
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; } }// src/index.ts
2
2
  async function getViteConfiguration(moduleOptions) {
3
+ var _a;
3
4
  let vitePlugin;
4
5
  try {
5
- const { liveDesigner } = await Promise.resolve().then(() => _interopRequireWildcard(require("./live-designer-PEHWBCFL.cjs")));
6
+ const { liveDesigner } = ((_a = moduleOptions == null ? void 0 : moduleOptions.liveDesigner) == null ? void 0 : _a.devSource) === true ? await Promise.resolve().then(() => _interopRequireWildcard(require("./live-designer.dev-TFTYQC6Q.cjs"))) : await Promise.resolve().then(() => _interopRequireWildcard(require("./live-designer-PEHWBCFL.cjs")));
6
7
  vitePlugin = liveDesigner({
7
8
  ...(moduleOptions == null ? void 0 : moduleOptions.liveDesigner) || {}
8
9
  });
package/dist/index.d.ts CHANGED
@@ -1,14 +1,21 @@
1
1
  import { AstroIntegration } from 'astro';
2
2
  import { LiveDesignerOptions } from '@pinegrow/vite-plugin';
3
3
 
4
+ interface PinegrowLiveDesignerOptions extends LiveDesignerOptions {
5
+ [key: string]: any;
6
+ /**
7
+ * Use @pinegrow/vite-plugin/dev so local development can import the
8
+ * Vite plugin source and dev-connector source without bundling them.
9
+ * Keep this false for packaged builds.
10
+ */
11
+ devSource?: boolean;
12
+ }
4
13
  interface PinegrowAstroModuleOptions {
5
14
  /**
6
15
  * Pinegrow Live Designer options
7
16
  * For details, check https://vuedesigner.com
8
17
  */
9
- liveDesigner?: {
10
- [key in string]?: any;
11
- } & LiveDesignerOptions;
18
+ liveDesigner?: PinegrowLiveDesignerOptions;
12
19
  }
13
20
  declare function createIntegration(moduleOptions: PinegrowAstroModuleOptions): AstroIntegration;
14
21
 
package/dist/index.js CHANGED
@@ -1,8 +1,9 @@
1
1
  // src/index.ts
2
2
  async function getViteConfiguration(moduleOptions) {
3
+ var _a;
3
4
  let vitePlugin;
4
5
  try {
5
- const { liveDesigner } = await import("./live-designer-TIVRM3WS.js");
6
+ const { liveDesigner } = ((_a = moduleOptions == null ? void 0 : moduleOptions.liveDesigner) == null ? void 0 : _a.devSource) === true ? await import("./live-designer.dev-RGVBS7YX.js") : await import("./live-designer-TIVRM3WS.js");
6
7
  vitePlugin = liveDesigner({
7
8
  ...(moduleOptions == null ? void 0 : moduleOptions.liveDesigner) || {}
8
9
  });
package/package.json CHANGED
@@ -1,53 +1,52 @@
1
- {
2
- "name": "@pinegrow/astro-module",
3
- "version": "3.0.74",
4
- "description": "Pinegrow Astro Module",
5
- "author": "Pinegrow (http://pinegrow.com/)",
6
- "license": "MIT",
7
- "type": "module",
1
+ {
2
+ "name": "@pinegrow/astro-module",
3
+ "version": "3.0.76-alpha.0",
4
+ "description": "Pinegrow Astro Module",
5
+ "author": "Pinegrow (http://pinegrow.com/)",
6
+ "license": "MIT",
7
+ "type": "module",
8
8
  "files": [
9
9
  "dist",
10
10
  "!dist/live-designer.dev-*"
11
11
  ],
12
- "types": "./dist/index.d.ts",
13
- "main": "./dist/index.cjs",
14
- "module": "./dist/index.cjs",
15
- "exports": {
16
- "./package.json": "./package.json",
17
- ".": {
18
- "types": "./dist/index.d.ts",
19
- "import": "./dist/index.js",
20
- "require": "./dist/index.cjs"
21
- }
22
- },
23
- "keywords": [
24
- "pinegrow",
25
- "vue designer",
26
- "vuedesigner",
27
- "vue-designer",
28
- "astro-module",
29
- "@pinegrow/astro-module"
30
- ],
31
- "scripts": {
32
- "dev": "npm run build -- --watch",
33
- "build": "tsup src/index.ts",
34
- "prepublishOnly": "npm run build",
35
- "release": "npx bumpp --commit --tag --push && npm publish --access public",
36
- "publish-beta": "npm run increment-beta-version && npm publish --tag beta",
37
- "increment-beta-version": "npm version prerelease --preid=beta",
38
- "publish-patch": "npm publish",
39
- "increment-version": "npm version patch"
40
- },
12
+ "types": "./dist/index.d.ts",
13
+ "main": "./dist/index.cjs",
14
+ "module": "./dist/index.cjs",
15
+ "exports": {
16
+ "./package.json": "./package.json",
17
+ ".": {
18
+ "types": "./dist/index.d.ts",
19
+ "import": "./dist/index.js",
20
+ "require": "./dist/index.cjs"
21
+ }
22
+ },
23
+ "keywords": [
24
+ "pinegrow",
25
+ "vue designer",
26
+ "vuedesigner",
27
+ "vue-designer",
28
+ "astro-module",
29
+ "@pinegrow/astro-module"
30
+ ],
31
+ "scripts": {
32
+ "dev": "npm run build -- --watch",
33
+ "build": "tsup src/index.ts",
34
+ "release": "npx bumpp --commit --tag --push && npm publish --access public",
35
+ "publish-beta": "npm run increment-beta-version && npm publish --tag beta",
36
+ "increment-beta-version": "npm version prerelease --preid=beta",
37
+ "publish-patch": "npm publish",
38
+ "increment-version": "npm version patch"
39
+ },
41
40
  "dependencies": {
42
- "@pinegrow/vite-plugin": "file:../vite-plugin"
41
+ "@pinegrow/vite-plugin": "3.0.76-alpha.0"
42
+ },
43
+ "devDependencies": {
44
+ "astro": "^3.0.0",
45
+ "tsup": "^5.5.0",
46
+ "typescript": "^4.4.4"
43
47
  },
44
- "devDependencies": {
45
- "astro": "^3.0.0",
46
- "tsup": "^5.5.0",
47
- "typescript": "^4.4.4"
48
- },
49
- "peerDependencies": {
50
- "@astrojs/vue": ">=2",
51
- "astro": ">=2"
52
- }
48
+ "peerDependencies": {
49
+ "@astrojs/vue": ">=2",
50
+ "astro": ">=2"
51
+ }
53
52
  }