autumnnote 1.0.0 → 1.0.1
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 +1 -1
- package/dist/autumnnote.es.js +1 -1
- package/dist/autumnnote.es.js.map +1 -1
- package/dist/autumnnote.umd.js +24 -24
- package/dist/autumnnote.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/js/index.js +1 -1
- package/src/js/index.umd.js +12 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autumnnote",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "A modern, lightweight WYSIWYG editor — built with vanilla JavaScript, no jQuery required.",
|
|
5
5
|
"main": "dist/autumnnote.umd.js",
|
|
6
6
|
"module": "dist/autumnnote.es.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
],
|
|
14
14
|
"scripts": {
|
|
15
15
|
"dev": "vite",
|
|
16
|
-
"build": "vite build",
|
|
16
|
+
"build": "vite build && vite build --config vite.umd.config.js",
|
|
17
17
|
"build:demo": "vite build --config vite.demo.config.js",
|
|
18
18
|
"preview": "vite preview",
|
|
19
19
|
"prepublishOnly": "npm run build",
|
package/src/js/index.js
CHANGED
|
@@ -99,7 +99,7 @@ const AutumnNote = {
|
|
|
99
99
|
registerModule(name, ModuleClass) { _customModules.set(name, ModuleClass); },
|
|
100
100
|
|
|
101
101
|
/** Library version */
|
|
102
|
-
version: '1.0.
|
|
102
|
+
version: '1.0.1',
|
|
103
103
|
};
|
|
104
104
|
|
|
105
105
|
// ---------------------------------------------------------------------------
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* index.umd.js — UMD entry point for AutumnNote
|
|
3
|
+
*
|
|
4
|
+
* Re-exports only the default export so the UMD global is the factory object
|
|
5
|
+
* directly, enabling the script-tag usage documented in the README:
|
|
6
|
+
*
|
|
7
|
+
* <script src="dist/autumnnote.umd.js"></script>
|
|
8
|
+
* <script>
|
|
9
|
+
* const editor = AutumnNote.create('#my-editor');
|
|
10
|
+
* </script>
|
|
11
|
+
*/
|
|
12
|
+
export { default } from './index.js';
|