cedro 0.1.14 → 0.1.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cedro",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "type": "module",
5
5
  "devDependencies": {
6
6
  "@types/node": "^20.4.4",
@@ -12,7 +12,6 @@
12
12
  "@types/react": "18.2.17",
13
13
  "color": "4.2.3",
14
14
  "glob": "^11.0.0",
15
- "html-entities": "^2.5.2",
16
15
  "material-icons": "1.13.12",
17
16
  "navigo": "8.11.1",
18
17
  "vite": "^5.0.8"
@@ -1,8 +1,7 @@
1
- //import { createWidget } from "src/ui/builder/widget.builder";
2
1
  import { Widget, WidgetAlignTypes } from "../ui";
3
2
  import { createWidget } from "../ui/widget.builder";
4
3
  import Application, { ApplicationProps } from "./application.core";
5
- import { decode } from "html-entities";
4
+ import { decode } from "./html.entities";
6
5
 
7
6
  function getApplicationProps(content: any): ApplicationProps {
8
7
  let props: ApplicationProps = {
@@ -0,0 +1,12 @@
1
+ const decode = (str: string): string => {
2
+ return str
3
+ .replaceAll("&", "&")
4
+ .replaceAll("&lt;", "<")
5
+ .replaceAll("&gt;", ">")
6
+ .replaceAll("&quot;", '"')
7
+ .replaceAll("&#x2F;", "/")
8
+ .replaceAll("&#45;", "-")
9
+ .replaceAll("&#39;", "'");
10
+ };
11
+
12
+ export { decode };
@@ -1,4 +1,4 @@
1
- import { OrientationTypes } from "src/types/orientation.type";
1
+ import { OrientationTypes } from "../types/orientation.type";
2
2
  import { IconButton } from "./IconButton.ui";
3
3
  import { ButonVariants, Button } from "./button.ui";
4
4
  import {
@@ -4,7 +4,7 @@ import { Widget, WidgetAlignTypes, WidgetTypes } from "./widget.ui";
4
4
  import { Scroll } from "./scroll.ui";
5
5
  import { normalizeWidget, WidgetEventProps, WidgetProps } from "./widget.builder";
6
6
  import { UID } from "../core/uid";
7
- import { decode } from "html-entities";
7
+ import { decode } from "../core/html.entities";
8
8
  import { Button } from "./button.ui";
9
9
  import { IconButton } from "./IconButton.ui";
10
10
  import { ProgressBar } from "./progressbar.ui";
@@ -1,4 +1,4 @@
1
- import { OrientationTypes } from "src/types/orientation.type";
1
+ import { OrientationTypes } from "../types/orientation.type";
2
2
  import "./styles/draggable.css";
3
3
  import { Widget, WidgetTypes } from "./widget.ui";
4
4
 
@@ -2,7 +2,7 @@ import { UID } from "../core/uid";
2
2
  import "./styles/image.css";
3
3
  import { normalizeWidget, WidgetProps } from "./widget.builder";
4
4
  import { Widget, WidgetTypes, connectWidgetCallback, getOnlyEventProps } from "./widget.ui";
5
- import { decode } from "html-entities";
5
+ import { decode } from "../core/html.entities";
6
6
 
7
7
  export class Image extends Widget {
8
8
  imageContainer: Widget;
@@ -1,4 +1,4 @@
1
- import { OrientationTypes } from "src/types/orientation.type";
1
+ import { OrientationTypes } from "../types/orientation.type";
2
2
  import "./styles/scroll.css";
3
3
  import { Widget, WidgetTypes } from "./widget.ui";
4
4
  import { Draggable } from "./draggable.ui";
@@ -1,6 +1,6 @@
1
1
  import "./styles/tabs.css";
2
2
 
3
- import { OrientationTypes } from "src/types/orientation.type";
3
+ import { OrientationTypes } from "../types/orientation.type";
4
4
  import { Widget, WidgetAlignTypes, WidgetTypes } from "./widget.ui";
5
5
  import { Toolbar } from "./toolbar.ui";
6
6
  import { Label } from "./label.ui";
@@ -1,8 +1,8 @@
1
1
  import "./styles/toolbar.css";
2
- import { IWidget } from "src/interfaces/widget.interface";
2
+ import { IWidget } from "../interfaces/widget.interface";
3
3
  import { Widget, WidgetAlignTypes, WidgetTypes } from "./widget.ui";
4
4
  import { IconButton } from "./IconButton.ui";
5
- import { OrientationTypes } from "src/types/orientation.type";
5
+ import { OrientationTypes } from "../types/orientation.type";
6
6
  import { WidgetProps, createWidget, normalizeWidget } from "./widget.builder";
7
7
  import { UID } from "../core/uid";
8
8
 
@@ -1,5 +1,5 @@
1
1
  import "./styles/valuebar.css";
2
- import { OrientationTypes } from "src/types/orientation.type";
2
+ import { OrientationTypes } from "../types/orientation.type";
3
3
  import { Widget, connectWidgetCallback, getOnlyEventProps } from "./widget.ui";
4
4
  import { Draggable } from "./draggable.ui";
5
5
  import { normalizeWidget, WidgetProps } from "./widget.builder";
@@ -4,7 +4,7 @@ import { addNewWidget } from "./widget.collection";
4
4
  import { createTextbox } from "./Textbox.ui";
5
5
  import { createButton } from "./button.ui";
6
6
  import { createLabel } from "./label.ui";
7
- import { OrientationTypes } from "src/types/orientation.type";
7
+ import { OrientationTypes } from "../types/orientation.type";
8
8
  import { createContainer } from "./container.ui";
9
9
  import { createIconButton } from "./IconButton.ui";
10
10
  import { createImage } from "./image.ui";
@@ -1,4 +1,4 @@
1
- import WApplication from "src/core/application.core";
1
+ import WApplication from "../core/application.core";
2
2
  import { IWidget, WUICallback } from "../interfaces/widget.interface";
3
3
 
4
4
  declare global {
package/tsconfig.json CHANGED
@@ -3,34 +3,31 @@
3
3
  "jsx": "preserve",
4
4
  "jsxFactory": "DOMcreateElement",
5
5
  "jsxFragmentFactory": "DOMcreateFragment",
6
-
6
+
7
7
  "target": "ES2020",
8
- "sourceMap": true,
9
8
 
10
9
  "useDefineForClassFields": true,
11
10
  "module": "ESNext",
12
- "lib": ["ES2020", "DOM", "DOM.Iterable"],
11
+ "lib": ["ES2021", "DOM", "DOM.Iterable"],
13
12
  "outDir": "dist",
14
- "declaration": true,
15
13
  "skipLibCheck": true,
16
14
 
17
15
  /* Bundler mode */
18
16
  "moduleResolution": "Node",
17
+ "allowImportingTsExtensions": true,
19
18
  "resolveJsonModule": true,
20
19
  "isolatedModules": true,
20
+ "noEmit": true,
21
21
 
22
22
  /* Linting */
23
23
  "strict": true,
24
- "esModuleInterop": true,
25
24
  "noUnusedLocals": true,
26
25
  "noUnusedParameters": true,
27
26
  "noFallthroughCasesInSwitch": true,
28
27
 
29
28
  "baseUrl": ".",
30
- "paths": {
31
- "@root/*": ["src/*"]
32
- }
29
+
33
30
  },
34
- "include": ["src"],
35
- "exclude": ["node_modules", "src/working"]
31
+ "include": ["src"]
32
+
36
33
  }