hyperclayjs 1.5.0 → 1.6.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/LICENSE +0 -5
- package/README.md +6 -9
- package/core/savePage.js +2 -0
- package/hyperclay.js +1 -3
- package/module-dependency-graph.json +4 -24
- package/package.json +1 -1
- package/vendor/tailwind-base.css +0 -1471
- package/vendor/tailwind-play.js +0 -23
- package/vendor/tailwind-play.vendor.js +0 -169
package/vendor/tailwind-play.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Tailwind Play - Live Tailwind CSS editing in edit mode
|
|
3
|
-
|
|
4
|
-
This is a lightweight wrapper that conditionally loads the full Tailwind Play
|
|
5
|
-
script (~370KB) only when in edit mode. The script is injected with save-ignore
|
|
6
|
-
so it's stripped from the page before saving.
|
|
7
|
-
|
|
8
|
-
Usage: Just include this module - it auto-initializes if in edit mode.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
import { isEditMode } from "../core/isAdminOfCurrentResource.js";
|
|
12
|
-
import { loadVendorScript, getVendorUrl } from "../utilities/loadVendorScript.js";
|
|
13
|
-
|
|
14
|
-
function init() {
|
|
15
|
-
if (!isEditMode) return;
|
|
16
|
-
loadVendorScript(getVendorUrl(import.meta.url, 'tailwind-play.vendor.js'), { module: true });
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// Auto-init when module is imported
|
|
20
|
-
init();
|
|
21
|
-
|
|
22
|
-
export { init };
|
|
23
|
-
export default init;
|