@riverflowpkg/riverflow 1.0.3 → 1.0.7

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 CHANGED
@@ -6,7 +6,19 @@ drop it in a `<script>` tag, and it wires itself up.
6
6
  ## Install
7
7
 
8
8
  ```
9
- npm install @riverflowpkg/riverflow
9
+ npm install @riverflowpkg/riverflow@1.0.6
10
+ ```
11
+
12
+ ## Linking
13
+
14
+ UNPKG
15
+ ```
16
+ https://unpkg.com/@riverflowpkg/riverflow@1.0.6/all.min.js
17
+ ```
18
+
19
+ JSDelivr
20
+ ```
21
+ https://cdn.jsdelivr.net/npm/@riverflowpkg/riverflow/all.min.js
10
22
  ```
11
23
 
12
24
  Files live in `node_modules/riverflow/`. Copy the ones you need into your
@@ -39,13 +51,33 @@ Optional config: `color`, `gradient`, `height`, `duration`.
39
51
  <script src="effects/underwater.js"></script>
40
52
  ```
41
53
 
54
+ ### Sunshine overlay (`effects/sunshine.js`)
55
+ ```html
56
+ <div class="effect-sunshine"></div>
57
+ <script src="effects/sunshine.js"></script>
58
+ ```
59
+
42
60
  ### Code editor (`editor/editor.js`)
43
61
  Syntax-highlighted code editor built on highlight.js (bundled as
44
62
  `editor/highlight.min.js`).
45
63
  ```html
64
+ <div class="editor editor-dark editor-number">
65
+ const hello = () => "world";
66
+ </div>
46
67
  <script src="editor/editor.js"></script>
47
68
  ```
48
69
 
70
+ ### Toast Notification (`toast/toast.js')
71
+ Toast message with different Themes, Modes, and animations.
72
+ ```html
73
+ <script src="toast/toast.js"></script>
74
+ <script>
75
+ toast("Hello world!");
76
+ toast("Something went wrong", { type: "error" });
77
+ toast("Update complete", { type: "success" });
78
+ </script>
79
+ ```
80
+
49
81
  ## License
50
82
 
51
83
  MIT