@cocreate/plugins 1.0.2
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/.github/FUNDING.yml +3 -0
- package/.github/workflows/automated.yml +44 -0
- package/.github/workflows/manual.yml +44 -0
- package/CHANGELOG.md +27 -0
- package/CONTRIBUTING.md +96 -0
- package/CoCreate.config.js +23 -0
- package/LICENSE +683 -0
- package/README.md +92 -0
- package/demo/index.html +12 -0
- package/docs/index.html +252 -0
- package/package.json +41 -0
- package/prettier.config.js +16 -0
- package/release.config.js +22 -0
- package/src/index.js +543 -0
- package/webpack.config.js +65 -0
package/README.md
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# CoCreate-plugins
|
|
2
|
+
|
|
3
|
+
CoCreate plugins Take it for a spin in our [playground!](https://cocreate.app/docs/plugins)
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+

|
|
7
|
+

|
|
8
|
+

|
|
9
|
+

|
|
10
|
+

|
|
11
|
+

|
|
12
|
+
|
|
13
|
+

|
|
14
|
+
|
|
15
|
+
## [Docs & Demo](https://cocreate.app/docs/plugins)
|
|
16
|
+
|
|
17
|
+
For a complete guide and working demo refer to the [doumentation](https://cocreate.app/docs/plugins)
|
|
18
|
+
|
|
19
|
+
## CDN
|
|
20
|
+
|
|
21
|
+
```html
|
|
22
|
+
<script src="https://cdn.cocreate.app/plugins/latest/CoCreate-plugins.min.js"></script>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
```html
|
|
26
|
+
<script src="https://cdn.cocreate.app/plugins/latest/CoCreate-plugins.min.css"></script>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## NPM
|
|
30
|
+
|
|
31
|
+
```shell
|
|
32
|
+
$ npm i @cocreate/plugins
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## yarn
|
|
36
|
+
|
|
37
|
+
```shell
|
|
38
|
+
$ yarn install @cocreate/plugins
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
# Table of Contents
|
|
42
|
+
|
|
43
|
+
- [Table of Contents](#table-of-contents)
|
|
44
|
+
- [Announcements](#announcements)
|
|
45
|
+
- [Roadmap](#roadmap)
|
|
46
|
+
- [How to Contribute](#how-to-contribute)
|
|
47
|
+
- [About](#about)
|
|
48
|
+
- [License](#license)
|
|
49
|
+
|
|
50
|
+
<a name="announcements"></a>
|
|
51
|
+
|
|
52
|
+
# Announcements
|
|
53
|
+
|
|
54
|
+
All updates to this library are documented in our [CHANGELOG](https://github.com/CoCreate-app/CoCreate-plugins/blob/master/CHANGELOG.md) and [releases](https://github.com/CoCreate-app/CoCreate-plugins/releases). You may also subscribe to email for releases and breaking changes.
|
|
55
|
+
|
|
56
|
+
<a name="roadmap"></a>
|
|
57
|
+
|
|
58
|
+
# Roadmap
|
|
59
|
+
|
|
60
|
+
If you are interested in the future direction of this project, please take a look at our open [issues](https://github.com/CoCreate-app/CoCreate-plugins/issues) and [pull requests](https://github.com/CoCreate-app/CoCreate-plugins/pulls). We would love to hear your feedback.
|
|
61
|
+
|
|
62
|
+
<a name="about"></a>
|
|
63
|
+
|
|
64
|
+
# About
|
|
65
|
+
|
|
66
|
+
CoCreate-plugins is guided and supported by the CoCreate Developer Experience Team.
|
|
67
|
+
|
|
68
|
+
Please Email the Developer Experience Team [here](mailto:develop@cocreate.app) in case of any queries.
|
|
69
|
+
|
|
70
|
+
CoCreate-plugins is maintained and funded by CoCreate. The names and logos for CoCreate are trademarks of CoCreate, LLC.
|
|
71
|
+
|
|
72
|
+
<a name="contribute"></a>
|
|
73
|
+
|
|
74
|
+
# How to Contribute
|
|
75
|
+
|
|
76
|
+
We encourage contribution to our libraries (you might even score some nifty swag), please see our [CONTRIBUTING](https://github.com/CoCreate-app/CoCreate-plugins/blob/master/CONTRIBUTING.md) guide for details.
|
|
77
|
+
|
|
78
|
+
We want this library to be community-driven, and CoCreate led. We need your help to realize this goal. To help make sure we are building the right things in the right order, we ask that you create [issues](https://github.com/CoCreate-app/CoCreate-plugins/issues) and [pull requests](https://github.com/CoCreate-app/CoCreate-plugins/pulls) or merely upvote or comment on existing issues or pull requests.
|
|
79
|
+
|
|
80
|
+
We appreciate your continued support, thank you!
|
|
81
|
+
|
|
82
|
+
<a name="license"></a>
|
|
83
|
+
|
|
84
|
+
# License
|
|
85
|
+
|
|
86
|
+
This software is dual-licensed under the GNU Affero General Public License version 3 (AGPLv3) and a commercial license.
|
|
87
|
+
|
|
88
|
+
- **Open Source Use**: For open-source projects and non-commercial use, this software is available under the AGPLv3. The AGPLv3 allows you to freely use, modify, and distribute this software, provided that all modifications and derivative works are also licensed under the AGPLv3. For the full license text, see the [LICENSE file](https://github.com/CoCreate-app/CoCreate-plugins/blob/master/LICENSE).
|
|
89
|
+
|
|
90
|
+
- **Commercial Use**: For-profit companies and individuals intending to use this software for commercial purposes must obtain a commercial license. The commercial license is available when you sign up for an API key on our [website](https://cocreate.app). This license permits proprietary use and modification of the software without the copyleft requirements of the AGPLv3. It is ideal for integrating this software into proprietary commercial products and applications.
|
|
91
|
+
|
|
92
|
+
If you have not purchased a commercial license and intend to use this software for commercial purposes, you are required to sign up for an API key on our website.
|
package/demo/index.html
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<title>plugins demo</title>
|
|
5
|
+
<link rel="manifest" href="/manifest.webmanifest" />
|
|
6
|
+
</head>
|
|
7
|
+
<body>
|
|
8
|
+
<!--<script src="../dist/CoCreate-plugins.js"></script>-->
|
|
9
|
+
<!-- <script src="https://CoCreate.app/dist/CoCreate.js" ></script> -->
|
|
10
|
+
<script src="https://CoCreate.app/dist/CoCreate.js"></script>
|
|
11
|
+
</body>
|
|
12
|
+
</html>
|
package/docs/index.html
ADDED
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
7
|
+
<title>CoCreate-plugins Documentation | CoCreateJS</title>
|
|
8
|
+
<link
|
|
9
|
+
rel="icon"
|
|
10
|
+
type="image/png"
|
|
11
|
+
sizes="32x32"
|
|
12
|
+
href="https://cocreate.app/images/favicon.ico" />
|
|
13
|
+
<meta
|
|
14
|
+
name="description"
|
|
15
|
+
content="A simple HTML5 and pure javascript component. Easy configuration using HTML5 attributes or Javscript api and highly styleable." />
|
|
16
|
+
<meta
|
|
17
|
+
name="keywords"
|
|
18
|
+
content="helper classes, utility classes, css framework, css library, inline style classes" />
|
|
19
|
+
<meta name="robots" content="index,follow" />
|
|
20
|
+
|
|
21
|
+
<link rel="manifest" href="/manifest.webmanifest" />
|
|
22
|
+
</head>
|
|
23
|
+
|
|
24
|
+
<body>
|
|
25
|
+
<!-- Navbar -->
|
|
26
|
+
<nav
|
|
27
|
+
class="width:100% display:flex align-items:center background:transparent padding-top:10px padding-bottom:10px"
|
|
28
|
+
content_id="content"
|
|
29
|
+
scroll="sticky-nav,"
|
|
30
|
+
scroll-up="5"
|
|
31
|
+
scroll-down="5"
|
|
32
|
+
path="../"
|
|
33
|
+
src="../components/navbar.html"></nav>
|
|
34
|
+
<sidenav
|
|
35
|
+
id="menuL"
|
|
36
|
+
class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl"
|
|
37
|
+
resizable
|
|
38
|
+
resize-query="[content_id='content']"
|
|
39
|
+
resize-property="margin-left"
|
|
40
|
+
resize-value="width">
|
|
41
|
+
<menu
|
|
42
|
+
array="files"
|
|
43
|
+
object="603717b07de7fb350ae9fec8"
|
|
44
|
+
key="src"></menu>
|
|
45
|
+
<div resize="right"></div>
|
|
46
|
+
</sidenav>
|
|
47
|
+
<main
|
|
48
|
+
class="padding-top:15px padding:15px@lg@xl"
|
|
49
|
+
content_id="content"
|
|
50
|
+
id="cocreate-plugins">
|
|
51
|
+
<div
|
|
52
|
+
class="display:flex flex-wrap:wrap justify-content:space-between margin:10px">
|
|
53
|
+
<div class="display:flex align-items:center">
|
|
54
|
+
<h2>CoCreate-plugins</h2>
|
|
55
|
+
</div>
|
|
56
|
+
<div
|
|
57
|
+
class="display:flex align-items:center font-size:20px"
|
|
58
|
+
share-height="600"
|
|
59
|
+
share-width="500"
|
|
60
|
+
share-media="https://via.placeholder.com/300/09f/fff.png">
|
|
61
|
+
<a
|
|
62
|
+
href="https://github.com/CoCreate-app/CoCreate-plugins"
|
|
63
|
+
target="_blank"
|
|
64
|
+
class="margin-right:15px"
|
|
65
|
+
><i src="/assets/svg/github.svg"></i
|
|
66
|
+
></a>
|
|
67
|
+
<a
|
|
68
|
+
class="margin-right:15px share"
|
|
69
|
+
share-network="twitter"
|
|
70
|
+
title="Share on twitter"
|
|
71
|
+
><i src="/assets/svg/twitter.svg"></i
|
|
72
|
+
></a>
|
|
73
|
+
<a
|
|
74
|
+
class="margin-right:15px share"
|
|
75
|
+
share-network="facebook"
|
|
76
|
+
title="Share on Facebook"
|
|
77
|
+
><i src="/assets/svg/facebook.svg"></i
|
|
78
|
+
></a>
|
|
79
|
+
<a
|
|
80
|
+
class="margin-right:15px share"
|
|
81
|
+
share-network="instagram"
|
|
82
|
+
title="Share on instagram"
|
|
83
|
+
><i src="/assets/svg/instagram.svg"></i
|
|
84
|
+
></a>
|
|
85
|
+
<a
|
|
86
|
+
class="margin-right:15px share"
|
|
87
|
+
share-network="share"
|
|
88
|
+
title="Share on share"
|
|
89
|
+
><i src="/assets/svg/share-alt.svg"></i
|
|
90
|
+
></a>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
<p class="max-width:500px margin:20px_10px">
|
|
94
|
+
A headless vinilla javascript micro component. Easy
|
|
95
|
+
configuration using HTML5 attributes or Javscript api.
|
|
96
|
+
</p>
|
|
97
|
+
<div id="plugins-section" class="display:flex flex-wrap:wrap">
|
|
98
|
+
<div class="flex-grow:1 width:300px padding:20px_10px">
|
|
99
|
+
<h2
|
|
100
|
+
class="border-bottom:1px_solid_lightgrey padding:5px_0px">
|
|
101
|
+
Install
|
|
102
|
+
</h2>
|
|
103
|
+
<pre
|
|
104
|
+
class="margin-top:15px"><code class="language-javascript">npm install cocreate-plugins</code></pre>
|
|
105
|
+
<p class="padding:10px_0px">Or you can use cdn link:</p>
|
|
106
|
+
<pre><code class="language-javascript">https://cdn.cocreate.app/js/CoCreate-plugins.min.js</code></pre>
|
|
107
|
+
|
|
108
|
+
<h2
|
|
109
|
+
class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">
|
|
110
|
+
Usage
|
|
111
|
+
</h2>
|
|
112
|
+
<p class="padding:10px_0px">plugins usage content</p>
|
|
113
|
+
<pre><code class="language-html"><div></div></code></pre>
|
|
114
|
+
|
|
115
|
+
<h2
|
|
116
|
+
class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">
|
|
117
|
+
Reference
|
|
118
|
+
</h2>
|
|
119
|
+
<p class="padding:10px_0px">
|
|
120
|
+
This is plugins reference content
|
|
121
|
+
</p>
|
|
122
|
+
<pre><code class="language-javascript"><div></div></code></pre>
|
|
123
|
+
<p class="padding:10px_0px">
|
|
124
|
+
This is plugins reference content
|
|
125
|
+
</p>
|
|
126
|
+
|
|
127
|
+
<h2
|
|
128
|
+
class="border-bottom:1px_solid_lightgrey margin-top:20px padding:5px_0px">
|
|
129
|
+
Attributes
|
|
130
|
+
</h2>
|
|
131
|
+
<ul class="list-style-type:none">
|
|
132
|
+
<li
|
|
133
|
+
class="padding:15px_0px border-bottom:1px_solid_lightgrey">
|
|
134
|
+
<h4>
|
|
135
|
+
<span>plugins</span>
|
|
136
|
+
<span class="cocreate-badge success"
|
|
137
|
+
>string</span
|
|
138
|
+
>
|
|
139
|
+
<span class="cocreate-badge warning"
|
|
140
|
+
>optional</span
|
|
141
|
+
>
|
|
142
|
+
</h4>
|
|
143
|
+
<p>plugins-attribute</p>
|
|
144
|
+
</li>
|
|
145
|
+
<li
|
|
146
|
+
class="padding:15px_0px border-bottom:1px_solid_lightgrey">
|
|
147
|
+
<h4>
|
|
148
|
+
<span>plugins</span>
|
|
149
|
+
<span class="cocreate-badge success"
|
|
150
|
+
>string</span
|
|
151
|
+
>
|
|
152
|
+
<span class="cocreate-badge warning"
|
|
153
|
+
>optional</span
|
|
154
|
+
>
|
|
155
|
+
</h4>
|
|
156
|
+
<p>plugins-attribute</p>
|
|
157
|
+
</li>
|
|
158
|
+
</ul>
|
|
159
|
+
</div>
|
|
160
|
+
|
|
161
|
+
<div
|
|
162
|
+
class="flex-grow:1 width:300px padding:0px_10px margin:20px_0px border-bottom:1px_solid_lightgrey">
|
|
163
|
+
<!-- SandBox -->
|
|
164
|
+
<h2
|
|
165
|
+
class="border-bottom:1px_solid_lightgrey padding:5px_0px">
|
|
166
|
+
Demo
|
|
167
|
+
</h2>
|
|
168
|
+
<div
|
|
169
|
+
class="position:sticky top:0 padding:10px_0px height:100vh">
|
|
170
|
+
<!-- SandBox -->
|
|
171
|
+
<div
|
|
172
|
+
class="display:flex flex-direction:column position:relative overflow:hidden card border-radius:2px width:auto height:600px margin-top:20px"
|
|
173
|
+
id="playground">
|
|
174
|
+
<div
|
|
175
|
+
id="demo-code"
|
|
176
|
+
resizable
|
|
177
|
+
class="position:relative height:50%">
|
|
178
|
+
<textarea
|
|
179
|
+
type="code"
|
|
180
|
+
lang="html"
|
|
181
|
+
array="demos"
|
|
182
|
+
object=""
|
|
183
|
+
key="demo"
|
|
184
|
+
save="false"
|
|
185
|
+
id="demo"
|
|
186
|
+
class="height:100% width:100% outline:none border:none resize:none padding:5px"></textarea>
|
|
187
|
+
<div
|
|
188
|
+
resize="bottom"
|
|
189
|
+
class="background:lightgrey"></div>
|
|
190
|
+
</div>
|
|
191
|
+
|
|
192
|
+
<div
|
|
193
|
+
id="demo-preview"
|
|
194
|
+
class="position:relative overflow:auto background-color:white">
|
|
195
|
+
<div class="demopreview padding:20px"></div>
|
|
196
|
+
</div>
|
|
197
|
+
|
|
198
|
+
<div
|
|
199
|
+
class="font-size:20px position:absolute top:10px right:10px opacity:0.6">
|
|
200
|
+
<a
|
|
201
|
+
class="margin-right:10px"
|
|
202
|
+
id="eye"
|
|
203
|
+
show="#eye-slash"
|
|
204
|
+
hide="#eye, #demo-preview"
|
|
205
|
+
toggle="code-height"
|
|
206
|
+
toggle-query="#demo-code"
|
|
207
|
+
><i
|
|
208
|
+
class="height:18px"
|
|
209
|
+
src="/assets/svg/eye.svg"></i
|
|
210
|
+
></a>
|
|
211
|
+
<a
|
|
212
|
+
class="margin-right:10px"
|
|
213
|
+
hidden
|
|
214
|
+
id="eye-slash"
|
|
215
|
+
show="#eye, #demo-preview"
|
|
216
|
+
hide="#eye-slash"
|
|
217
|
+
toggle="code-height"
|
|
218
|
+
toggle-query="#demo-code"
|
|
219
|
+
><i src="/assets/svg/eye-slash.svg"></i
|
|
220
|
+
></a>
|
|
221
|
+
<a
|
|
222
|
+
class="margin-right:10px"
|
|
223
|
+
id="code"
|
|
224
|
+
show="#code-slash"
|
|
225
|
+
hide="#code, #demo-code"
|
|
226
|
+
><i src="/assets/svg/code.svg"></i
|
|
227
|
+
></a>
|
|
228
|
+
<a
|
|
229
|
+
class="margin-right:10px"
|
|
230
|
+
hidden
|
|
231
|
+
id="code-slash"
|
|
232
|
+
show="#code, #demo-code"
|
|
233
|
+
hide="#code-slash"
|
|
234
|
+
><i
|
|
235
|
+
class="height:18px"
|
|
236
|
+
src="/assets/svg/code.svg"></i
|
|
237
|
+
></a>
|
|
238
|
+
<a
|
|
239
|
+
class="margin-right:5px"
|
|
240
|
+
fullscreen
|
|
241
|
+
fullscreen-query="#playground"></a>
|
|
242
|
+
</div>
|
|
243
|
+
</div>
|
|
244
|
+
<!-- End SandBox -->
|
|
245
|
+
</div>
|
|
246
|
+
</div>
|
|
247
|
+
</div>
|
|
248
|
+
</main>
|
|
249
|
+
|
|
250
|
+
<script src="https://CoCreate.app/dist/CoCreate.js"></script>
|
|
251
|
+
</body>
|
|
252
|
+
</html>
|
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cocreate/plugins",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "CoCreate plugins",
|
|
5
|
+
"author": "CoCreate LLC",
|
|
6
|
+
"license": "AGPL-3.0",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"start": "npx webpack --config webpack.config.js",
|
|
12
|
+
"build": "npx webpack --mode=production --config webpack.config.js",
|
|
13
|
+
"dev": "npx webpack --config webpack.config.js --watch",
|
|
14
|
+
"postinstall": "node -e \"const { execSync } = require('child_process'); try { execSync('coc --version', { stdio: 'ignore' }); } catch (error) { try { execSync('npm install -g @cocreate/cli', { stdio: 'inherit' }); console.log('Installed \"@cocreate/cli\" globally.'); } catch (error) { console.error('Failed to install \"@cocreate/cli\" globally:', error); } }\""
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/CoCreate-app/CoCreate-plugins.git"
|
|
19
|
+
},
|
|
20
|
+
"bugs": {
|
|
21
|
+
"url": "https://github.com/CoCreate-app/CoCreate-plugins/issues"
|
|
22
|
+
},
|
|
23
|
+
"homepage": "https://cocreate.app/docs/plugins",
|
|
24
|
+
"funding": {
|
|
25
|
+
"type": "GitHub Sponsors ❤",
|
|
26
|
+
"url": "https://github.com/sponsors/CoCreate-app"
|
|
27
|
+
},
|
|
28
|
+
"main": "./src/index.js",
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"css-loader": "^5.1.3",
|
|
31
|
+
"esbuild": "^0.25.2",
|
|
32
|
+
"esbuild-loader": "^4.3.0",
|
|
33
|
+
"mini-css-extract-plugin": "^1.5.0",
|
|
34
|
+
"webpack": "^5.24.4",
|
|
35
|
+
"webpack-cli": "^4.5.0",
|
|
36
|
+
"webpack-log": "^3.0.1"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@cocreate/observer": "^1.18.3"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
dryRun: false,
|
|
3
|
+
branches: ["master"],
|
|
4
|
+
plugins: [
|
|
5
|
+
"@semantic-release/commit-analyzer",
|
|
6
|
+
"@semantic-release/release-notes-generator",
|
|
7
|
+
[
|
|
8
|
+
"@semantic-release/changelog",
|
|
9
|
+
{
|
|
10
|
+
changelogFile: "CHANGELOG.md",
|
|
11
|
+
},
|
|
12
|
+
],
|
|
13
|
+
"@semantic-release/npm",
|
|
14
|
+
"@semantic-release/github",
|
|
15
|
+
[
|
|
16
|
+
"@semantic-release/git",
|
|
17
|
+
{
|
|
18
|
+
assets: ["CHANGELOG.md", "package.json"],
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
],
|
|
22
|
+
};
|