@pinegrow/astro-module 3.0.71-alpha.8 → 3.0.72-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,10 +1,8 @@
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;
4
3
  let vitePlugin;
5
4
  try {
6
- const isDevelopmentBuild = typeof __DEVMODE__ !== "undefined" && __DEVMODE__;
7
- const { liveDesigner } = ((_a = moduleOptions.liveDesigner) == null ? void 0 : _a.devSource) === true || isDevelopmentBuild ? await Promise.resolve().then(() => _interopRequireWildcard(require("./live-designer.dev-TFTYQC6Q.cjs"))) : await Promise.resolve().then(() => _interopRequireWildcard(require("./live-designer-ZFVVYPVH.cjs")));
5
+ const { liveDesigner } = await Promise.resolve().then(() => _interopRequireWildcard(require("./live-designer-PEHWBCFL.cjs")));
8
6
  vitePlugin = liveDesigner({
9
7
  ...(moduleOptions == null ? void 0 : moduleOptions.liveDesigner) || {}
10
8
  });
package/dist/index.d.ts CHANGED
@@ -1,16 +1,14 @@
1
1
  import { AstroIntegration } from 'astro';
2
2
  import { LiveDesignerOptions } from '@pinegrow/vite-plugin';
3
3
 
4
- interface PinegrowAstroLiveDesignerOptions extends LiveDesignerOptions {
5
- [key: string]: any;
6
- devSource?: boolean;
7
- }
8
4
  interface PinegrowAstroModuleOptions {
9
5
  /**
10
6
  * Pinegrow Live Designer options
11
7
  * For details, check https://vuedesigner.com
12
8
  */
13
- liveDesigner?: PinegrowAstroLiveDesignerOptions;
9
+ liveDesigner?: {
10
+ [key in string]?: any;
11
+ } & LiveDesignerOptions;
14
12
  }
15
13
  declare function createIntegration(moduleOptions: PinegrowAstroModuleOptions): AstroIntegration;
16
14
 
package/dist/index.js CHANGED
@@ -1,10 +1,8 @@
1
1
  // src/index.ts
2
2
  async function getViteConfiguration(moduleOptions) {
3
- var _a;
4
3
  let vitePlugin;
5
4
  try {
6
- const isDevelopmentBuild = typeof __DEVMODE__ !== "undefined" && __DEVMODE__;
7
- const { liveDesigner } = ((_a = moduleOptions.liveDesigner) == null ? void 0 : _a.devSource) === true || isDevelopmentBuild ? await import("./live-designer.dev-RGVBS7YX.js") : await import("./live-designer-LATOGT4K.js");
5
+ const { liveDesigner } = await import("./live-designer-TIVRM3WS.js");
8
6
  vitePlugin = liveDesigner({
9
7
  ...(moduleOptions == null ? void 0 : moduleOptions.liveDesigner) || {}
10
8
  });
@@ -4,3 +4,4 @@ var liveDesigner = _viteplugin2.default.liveDesigner;
4
4
 
5
5
 
6
6
  exports.liveDesigner = liveDesigner;
7
+ /*! import { liveDesigner } from '@pinegrow/vite-plugin/dev' */
@@ -4,3 +4,4 @@ var liveDesigner = pkg.liveDesigner;
4
4
  export {
5
5
  liveDesigner
6
6
  };
7
+ /*! import { liveDesigner } from '@pinegrow/vite-plugin/dev' */
package/package.json CHANGED
@@ -1,53 +1,53 @@
1
- {
2
- "name": "@pinegrow/astro-module",
3
- "version": "3.0.71-alpha.8",
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.72-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
+ "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
+ },
41
41
  "dependencies": {
42
- "@pinegrow/vite-plugin": "3.0.71-alpha.8"
43
- },
44
- "devDependencies": {
45
- "astro": "^3.0.0",
46
- "tsup": "^5.5.0",
47
- "typescript": "^4.4.4"
42
+ "@pinegrow/vite-plugin": "3.0.72-alpha.0"
48
43
  },
49
- "peerDependencies": {
50
- "@astrojs/vue": ">=2",
51
- "astro": ">=2"
52
- }
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
+ }
53
53
  }