@pinegrow/iles-module 3.0.0-beta.108 → 3.0.0-beta.110
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 +16 -2
- package/dist/index.js +16 -2
- package/dist/live-designer-6F4BNNQY.cjs +7 -0
- package/dist/live-designer-6WHNERBU.js +7 -0
- package/package.json +5 -8
package/dist/index.cjs
CHANGED
|
@@ -7,8 +7,9 @@ async function getViteConfiguration(moduleOptions) {
|
|
|
7
7
|
var _a;
|
|
8
8
|
let vitePlugin;
|
|
9
9
|
try {
|
|
10
|
-
const { liveDesigner } = await Promise.resolve().then(() => require("./live-designer-
|
|
10
|
+
const { liveDesigner } = await Promise.resolve().then(() => require("./live-designer-6F4BNNQY.cjs"));
|
|
11
11
|
vitePlugin = liveDesigner({
|
|
12
|
+
/* mappingType: 'type3', */
|
|
12
13
|
tailwindcss: {
|
|
13
14
|
configPath: "tailwind.config.js",
|
|
14
15
|
cssPath: "@/assets/css/tailwind.css",
|
|
@@ -61,17 +62,24 @@ async function getViteConfiguration(moduleOptions) {
|
|
|
61
62
|
return mergeConfigRecursively(defaults || {}, overrides || {});
|
|
62
63
|
};
|
|
63
64
|
(_a = config.plugins) == null ? void 0 : _a.push(
|
|
65
|
+
// autoImportComponents(mergeConfig({}, moduleOptions.autoImportComponents)),
|
|
64
66
|
_vite2.default.call(void 0,
|
|
65
67
|
mergeConfig(
|
|
66
68
|
{
|
|
67
69
|
include: [
|
|
68
70
|
/\.[tj]sx?$/,
|
|
71
|
+
// .ts, .tsx, .js, .jsx
|
|
69
72
|
/\.vue$/,
|
|
70
73
|
/\.vue\?vue/,
|
|
74
|
+
// .vue
|
|
71
75
|
/\.md$/
|
|
76
|
+
// .md
|
|
72
77
|
],
|
|
73
78
|
imports: ["vue", "vue-router"],
|
|
74
|
-
dirs: [
|
|
79
|
+
dirs: [
|
|
80
|
+
// 'src/composables',
|
|
81
|
+
// 'src/stores',
|
|
82
|
+
],
|
|
75
83
|
vueTemplate: true,
|
|
76
84
|
cache: true
|
|
77
85
|
},
|
|
@@ -85,6 +93,7 @@ async function src_default(moduleOptions) {
|
|
|
85
93
|
return {
|
|
86
94
|
name: "@pinegrow/iles-module",
|
|
87
95
|
vite: await getViteConfiguration(moduleOptions),
|
|
96
|
+
// Just like in Vite plugins you can use this hook to extend the user config
|
|
88
97
|
config(config) {
|
|
89
98
|
return {
|
|
90
99
|
vue: {
|
|
@@ -98,14 +107,19 @@ async function src_default(moduleOptions) {
|
|
|
98
107
|
name: "pgia",
|
|
99
108
|
resources: [
|
|
100
109
|
{
|
|
110
|
+
// condition: 'interactions',
|
|
101
111
|
parentResource: `public/pgia`,
|
|
112
|
+
// relative to project root, must exists
|
|
113
|
+
// source: `<script src="pgia/index.js"></script>`,
|
|
102
114
|
injectTo: "head-append",
|
|
103
115
|
tag: "script",
|
|
104
116
|
children: `
|
|
105
117
|
/* 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);}})()`
|
|
106
118
|
},
|
|
107
119
|
{
|
|
120
|
+
// condition: 'interactions',
|
|
108
121
|
parentResource: `public/pgia`,
|
|
122
|
+
// relative to project root, must exists
|
|
109
123
|
injectTo: "body-append",
|
|
110
124
|
tag: "script",
|
|
111
125
|
attrs: { src: "/pgia/lib/index.js" }
|
package/dist/index.js
CHANGED
|
@@ -7,8 +7,9 @@ async function getViteConfiguration(moduleOptions) {
|
|
|
7
7
|
var _a;
|
|
8
8
|
let vitePlugin;
|
|
9
9
|
try {
|
|
10
|
-
const { liveDesigner } = await import("./live-designer-
|
|
10
|
+
const { liveDesigner } = await import("./live-designer-6WHNERBU.js");
|
|
11
11
|
vitePlugin = liveDesigner({
|
|
12
|
+
/* mappingType: 'type3', */
|
|
12
13
|
tailwindcss: {
|
|
13
14
|
configPath: "tailwind.config.js",
|
|
14
15
|
cssPath: "@/assets/css/tailwind.css",
|
|
@@ -61,17 +62,24 @@ async function getViteConfiguration(moduleOptions) {
|
|
|
61
62
|
return mergeConfigRecursively(defaults || {}, overrides || {});
|
|
62
63
|
};
|
|
63
64
|
(_a = config.plugins) == null ? void 0 : _a.push(
|
|
65
|
+
// autoImportComponents(mergeConfig({}, moduleOptions.autoImportComponents)),
|
|
64
66
|
autoImportAPIs(
|
|
65
67
|
mergeConfig(
|
|
66
68
|
{
|
|
67
69
|
include: [
|
|
68
70
|
/\.[tj]sx?$/,
|
|
71
|
+
// .ts, .tsx, .js, .jsx
|
|
69
72
|
/\.vue$/,
|
|
70
73
|
/\.vue\?vue/,
|
|
74
|
+
// .vue
|
|
71
75
|
/\.md$/
|
|
76
|
+
// .md
|
|
72
77
|
],
|
|
73
78
|
imports: ["vue", "vue-router"],
|
|
74
|
-
dirs: [
|
|
79
|
+
dirs: [
|
|
80
|
+
// 'src/composables',
|
|
81
|
+
// 'src/stores',
|
|
82
|
+
],
|
|
75
83
|
vueTemplate: true,
|
|
76
84
|
cache: true
|
|
77
85
|
},
|
|
@@ -85,6 +93,7 @@ async function src_default(moduleOptions) {
|
|
|
85
93
|
return {
|
|
86
94
|
name: "@pinegrow/iles-module",
|
|
87
95
|
vite: await getViteConfiguration(moduleOptions),
|
|
96
|
+
// Just like in Vite plugins you can use this hook to extend the user config
|
|
88
97
|
config(config) {
|
|
89
98
|
return {
|
|
90
99
|
vue: {
|
|
@@ -98,14 +107,19 @@ async function src_default(moduleOptions) {
|
|
|
98
107
|
name: "pgia",
|
|
99
108
|
resources: [
|
|
100
109
|
{
|
|
110
|
+
// condition: 'interactions',
|
|
101
111
|
parentResource: `public/pgia`,
|
|
112
|
+
// relative to project root, must exists
|
|
113
|
+
// source: `<script src="pgia/index.js"></script>`,
|
|
102
114
|
injectTo: "head-append",
|
|
103
115
|
tag: "script",
|
|
104
116
|
children: `
|
|
105
117
|
/* 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);}})()`
|
|
106
118
|
},
|
|
107
119
|
{
|
|
120
|
+
// condition: 'interactions',
|
|
108
121
|
parentResource: `public/pgia`,
|
|
122
|
+
// relative to project root, must exists
|
|
109
123
|
injectTo: "body-append",
|
|
110
124
|
tag: "script",
|
|
111
125
|
attrs: { src: "/pgia/lib/index.js" }
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }// src/live-designer.mjs
|
|
2
|
+
var _viteplugin = require('@pinegrow/vite-plugin'); var _viteplugin2 = _interopRequireDefault(_viteplugin);
|
|
3
|
+
var liveDesigner = _viteplugin2.default.liveDesigner;
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
exports.liveDesigner = liveDesigner;
|
|
7
|
+
/*! import { liveDesigner } from '@pinegrow/vite-plugin/dev' */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pinegrow/iles-module",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.110",
|
|
4
4
|
"description": "Pinegrow Iles Module",
|
|
5
5
|
"author": "Pinegrow (http://pinegrow.com/)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -31,16 +31,13 @@
|
|
|
31
31
|
"increment-beta-version": "npm version prerelease --preid=beta"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@pinegrow/vite-plugin": "3.0.0-beta.
|
|
34
|
+
"@pinegrow/vite-plugin": "3.0.0-beta.110",
|
|
35
35
|
"node-html-parser": "^6.1.5",
|
|
36
36
|
"unplugin-auto-import": "^0.15.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"iles": "^0.
|
|
40
|
-
"tsup": "^
|
|
41
|
-
"typescript": "^4.
|
|
42
|
-
},
|
|
43
|
-
"peerDependencies": {
|
|
44
|
-
"iles": "^0.5"
|
|
39
|
+
"iles": "^0.8",
|
|
40
|
+
"tsup": "^6.2",
|
|
41
|
+
"typescript": "^4.7"
|
|
45
42
|
}
|
|
46
43
|
}
|