touchable-templates 2026.2.1a0__py3-none-any.whl → 2026.2.3a0__py3-none-any.whl

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: touchable-templates
3
- Version: 2026.2.1a0
3
+ Version: 2026.2.3a0
4
4
  Summary: A dev tool that magically opens templates and partials in your IDE
5
5
  Author: Brady Whitby
6
6
  License-Expression: MIT
@@ -0,0 +1,4 @@
1
+ touchable_templates-2026.2.3a0.dist-info/METADATA,sha256=v19J3Ixvm2hFhxbhUeWrWNns9ikAQH6U6hzz2XZze0I,3557
2
+ touchable_templates-2026.2.3a0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
3
+ touchable_templates-2026.2.3a0.dist-info/licenses/LICENSE,sha256=5XdcGaWnUE-XZdjP6bSx-Ad0XTkc6heUI3KckeaRZng,1068
4
+ touchable_templates-2026.2.3a0.dist-info/RECORD,,
@@ -1,66 +0,0 @@
1
- let altToggled = false;
2
-
3
- // Append the element to the DOM, for example, to the body
4
- var elemDiv = document.createElement('div');
5
- elemDiv.id = 'floating-template-name';
6
- elemDiv.style.cssText = "display: none; position: absolute; background: white; border: 1px solid black; padding: 5px; z-index: 9999;"
7
- document.body.appendChild(elemDiv);
8
- const floatingElement = document.getElementById("floating-template-name");
9
-
10
- document.addEventListener("DOMContentLoaded", function(event) {
11
-
12
- document.addEventListener('keydown', function(event) {
13
- if (event.key === 'Alt') {
14
- altToggled = !altToggled;
15
- if (!altToggled) {
16
- floatingElement.style.display = 'none';
17
- }
18
- }
19
- });
20
-
21
- document.addEventListener('click', function(event) {
22
- if (altToggled) {
23
- let closestElement = event.target.closest('.touchable-templates');
24
- if (closestElement) {
25
- let templatePath = closestElement.getAttribute('data-template-path');
26
- if (templatePath) {
27
- window.open(templatePath, '_blank');
28
- event.stopPropagation();
29
- }
30
- }
31
- }
32
- }, true);
33
-
34
- document.addEventListener('mousemove', (e) => {
35
- if (!altToggled) return;
36
- const el = e.target.closest('.touchable-templates');
37
- if (!el) return floatingElement.style.display = 'none';
38
-
39
- const name = el.getAttribute('data-template-name');
40
- if (!name) return;
41
-
42
- floatingElement.textContent = name;
43
- floatingElement.style.display = 'block';
44
- const { pageX: x, pageY: y } = e;
45
- const { offsetWidth: w, offsetHeight: h } = floatingElement;
46
- const { innerWidth: vw, innerHeight: vh } = window;
47
- floatingElement.style.left = `${x + w + 20 > vw ? x - w - 5 : x + 10}px`;
48
- floatingElement.style.top = `${y + h + 20 > vh ? y - h - 5 : y + 10}px`;
49
- });
50
-
51
- document.addEventListener('mouseleave', () => {
52
- floatingElement.style.display = 'none';
53
- });
54
-
55
- document.addEventListener('mouseenter', (e) => {
56
- if (altToggled) {
57
- const el = e.target.closest('.touchable-templates');
58
- if (el) {
59
- const name = el.getAttribute('data-template-name');
60
- floatingElement.textContent = name;
61
- floatingElement.style.display = 'block';
62
- }
63
- }
64
- });
65
-
66
- });
@@ -1,5 +0,0 @@
1
- touchable_templates/static/js/touchable_templates.js,sha256=9vxxTAWqbN0V5l7UJqjCc5lkNZ00AGn3nYo35Vkr79c,2436
2
- touchable_templates-2026.2.1a0.dist-info/METADATA,sha256=KEf6CYd-0PDo-aTty_sf44kmVEexeJI87nXHtT-AXHw,3557
3
- touchable_templates-2026.2.1a0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
4
- touchable_templates-2026.2.1a0.dist-info/licenses/LICENSE,sha256=5XdcGaWnUE-XZdjP6bSx-Ad0XTkc6heUI3KckeaRZng,1068
5
- touchable_templates-2026.2.1a0.dist-info/RECORD,,