@bobfrankston/msgapidefs 0.1.0 → 0.1.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/msgapidefs.d.ts +0 -1
- package/msgapidefs.js +0 -1
- package/package.json +4 -1
- package/samples.html +5 -5
package/msgapidefs.d.ts
CHANGED
package/msgapidefs.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bobfrankston/msgapidefs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "TypeScript definitions for msgapi JavaScript API (msgview/msger)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./msgapidefs.js",
|
|
@@ -35,5 +35,8 @@
|
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"release": "git add -A && git commit -m \"Pre-release commit\" && npm version patch && git push && git push --tags && npm publish --quiet"
|
|
38
41
|
}
|
|
39
42
|
}
|
package/samples.html
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<html>
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
|
-
<title>
|
|
5
|
+
<title>msgapi Storage API Demo</title>
|
|
6
6
|
<style>
|
|
7
7
|
body {
|
|
8
8
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
</style>
|
|
76
76
|
</head>
|
|
77
77
|
<body>
|
|
78
|
-
<h1>
|
|
78
|
+
<h1>msgapi Storage API Demo</h1>
|
|
79
79
|
|
|
80
80
|
<div class="info">
|
|
81
81
|
<strong>✅ What Works:</strong> localStorage-based persistence API, F11 fullscreen toggle<br>
|
|
@@ -93,8 +93,8 @@
|
|
|
93
93
|
<!-- Data Storage -->
|
|
94
94
|
<div class="section">
|
|
95
95
|
<h2>Data Storage (Native localStorage)</h2>
|
|
96
|
-
<p><strong>Recommendation:</strong> Use native <code>localStorage</code> for compatibility. Works in any browser context, not just msger.</p>
|
|
97
|
-
<p>The
|
|
96
|
+
<p><strong>Recommendation:</strong> Use native <code>localStorage</code> for compatibility. Works in any browser context, not just msgview/msger.</p>
|
|
97
|
+
<p>The msgapi storage API is just a thin convenience wrapper around localStorage - native API is preferred.</p>
|
|
98
98
|
<input type="text" id="key" value="myData" placeholder="Storage key">
|
|
99
99
|
<textarea id="value" rows="3" placeholder="Enter text, JSON, numbers...">Hello from msger!</textarea>
|
|
100
100
|
<div>
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
<div class="section">
|
|
111
111
|
<h2>Manage Storage</h2>
|
|
112
112
|
<button onclick="listAll()">List All Saved Data</button>
|
|
113
|
-
<button onclick="clearAll()" class="secondary">Clear All
|
|
113
|
+
<button onclick="clearAll()" class="secondary">Clear All msgapi Data</button>
|
|
114
114
|
<div id="output3" class="output">Click to list or clear data</div>
|
|
115
115
|
</div>
|
|
116
116
|
|