prisma-php 0.0.4 → 0.0.5

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.
@@ -14,7 +14,7 @@ A component root is any element with `pp-component`.
14
14
 
15
15
  ## Component roots and scripts
16
16
 
17
- - Each component root may contain one inline `<script type="text/pp">` block for component logic.
17
+ - Each component root may contain one inline `<script>` block for component logic.
18
18
  - The script is plain JavaScript, not a module. Do not use `import` or `export` inside it.
19
19
  - Top-level bindings from the script are exported automatically to the template. Do not manually `return { ... }`.
20
20
  - Top-level `const`, `let`, `function`, and supported destructuring patterns become template bindings.
@@ -30,7 +30,7 @@ Example:
30
30
  <p>Count: {count}</p>
31
31
  <button onclick="setCount(count + 1)">Increment</button>
32
32
 
33
- <script type="text/pp">
33
+ <script>
34
34
  const { title } = pp.props;
35
35
  const [count, setCount] = pp.state(0);
36
36
  const doubled = count * 2;
@@ -74,7 +74,7 @@ Example:
74
74
  ```html
75
75
  <button pp-spread="{...buttonAttrs}" hidden="{isLoading}">Save</button>
76
76
 
77
- <script type="text/pp">
77
+ <script>
78
78
  const buttonAttrs = {
79
79
  class: "btn btn-primary",
80
80
  "aria-label": "save",
@@ -98,7 +98,7 @@ Example:
98
98
  <input pp-ref="nameInput" />
99
99
  <button onclick="nameInput.current?.focus()">Focus</button>
100
100
 
101
- <script type="text/pp">
101
+ <script>
102
102
  const nameInput = pp.ref(null);
103
103
  </script>
104
104
  </div>
@@ -125,7 +125,7 @@ Example:
125
125
  </template>
126
126
  </ul>
127
127
 
128
- <script type="text/pp">
128
+ <script>
129
129
  const [todos, setTodos] = pp.state([
130
130
  { id: 1, title: "First task" },
131
131
  { id: 2, title: "Second task" },
@@ -176,7 +176,7 @@ When the app is shipped as plain HTML plus a minified bundle:
176
176
 
177
177
  - Keep the component markup in the HTML.
178
178
  - Load the bundle with a script tag after the markup or with `defer`.
179
- - Keep component logic inside `<script type="text/pp">` blocks in the HTML.
179
+ - Keep component logic inside `<script>` blocks in the HTML.
180
180
  - Do not assume access to the TypeScript source at runtime.
181
181
 
182
182
  ## What to avoid
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prisma-php",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Prisma PHP tooling",
5
5
  "main": "index.js",
6
6
  "scripts": {