@plitzi/sdk-variables 0.32.0 → 0.32.2
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/CHANGELOG.md +16 -0
- package/dist/VariablesHelper.mjs +1 -1
- package/dist/components/SchemaVariables/SchemaVariable.d.ts +1 -1
- package/dist/components/SchemaVariables/SchemaVariables.d.ts +1 -1
- package/dist/components/SchemaVariables/VariableActions.d.ts +1 -1
- package/dist/components/SchemaVariables/VariableDetails.d.ts +1 -1
- package/dist/components/SchemaVariables/VariableValue.d.ts +1 -1
- package/dist/components/StyleVariables/StyleVariable.d.ts +1 -1
- package/dist/components/StyleVariables/StyleVariables.d.ts +1 -1
- package/dist/components/StyleVariables/VariableActions.d.ts +1 -1
- package/dist/components/StyleVariables/VariableDetails.d.ts +1 -1
- package/dist/components/StyleVariables/VariableGroup.d.ts +1 -1
- package/dist/components/StyleVariables/VariableList.d.ts +1 -1
- package/dist/components/StyleVariables/VariableValue.d.ts +1 -1
- package/dist/models/SchemaVariableForm/SchemaVariableForm.d.ts +1 -1
- package/dist/models/SchemaVariableForm/VariableSubValue.d.ts +1 -1
- package/dist/models/SchemaVariableForm/VariableSubValueActions.d.ts +1 -1
- package/dist/models/SchemaVariableForm/VariableValue.d.ts +1 -1
- package/dist/models/StyleVariableForm/StyleVariableForm.d.ts +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @plitzi/sdk-variables
|
|
2
2
|
|
|
3
|
+
## 0.32.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- v0.32.2
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- @plitzi/sdk-shared@0.32.2
|
|
10
|
+
|
|
11
|
+
## 0.32.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- v0.32.1
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
- @plitzi/sdk-shared@0.32.1
|
|
18
|
+
|
|
3
19
|
## 0.32.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
package/dist/VariablesHelper.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/VariablesHelper.ts
|
|
2
|
-
var e = /^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$/, t = /^rgba?\(\s*(\d{1,3}%?\s*,\s*){2,3}\d{1,3}%?\s*\)$/, n = /^hsla?\(\s*\d{1,3}(deg|rad|turn)?\s*,\s*\d{1,3}%\s*,\s*\d{1,3}%(\s*,\s*(0|0?\.\d+|1))?\s*\)$/, r = new Set([
|
|
2
|
+
var e = /^#([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{8})$/, t = /^rgba?\(\s*(\d{1,3}%?\s*,\s*){2,3}\d{1,3}%?\s*\)$/, n = /^hsla?\(\s*\d{1,3}(deg|rad|turn)?\s*,\s*\d{1,3}%\s*,\s*\d{1,3}%(\s*,\s*(0|0?\.\d+|1))?\s*\)$/, r = /* @__PURE__ */ new Set([
|
|
3
3
|
"black",
|
|
4
4
|
"white",
|
|
5
5
|
"red",
|
|
@@ -15,5 +15,5 @@ export type SchemaVariableProps = {
|
|
|
15
15
|
onRemove: (name: string) => void;
|
|
16
16
|
onParentRefresh?: (identifier: string, segment: object) => void;
|
|
17
17
|
};
|
|
18
|
-
declare const SchemaVariable: ({ name, value, type, category, subValues, whenData, onChange, onRemove }: SchemaVariableProps) => import("react
|
|
18
|
+
declare const SchemaVariable: ({ name, value, type, category, subValues, whenData, onChange, onRemove }: SchemaVariableProps) => import("react").JSX.Element;
|
|
19
19
|
export default SchemaVariable;
|
|
@@ -12,5 +12,5 @@ export type SchemaVariablesProps = {
|
|
|
12
12
|
onUpdate?: (variable: TSchemaVariable) => void;
|
|
13
13
|
onRemove?: (name: string) => void;
|
|
14
14
|
};
|
|
15
|
-
declare const SchemaVariables: ({ className, variables, whenData, onAdd, onUpdate, onRemove }: SchemaVariablesProps) => import("react
|
|
15
|
+
declare const SchemaVariables: ({ className, variables, whenData, onAdd, onUpdate, onRemove }: SchemaVariablesProps) => import("react").JSX.Element;
|
|
16
16
|
export default SchemaVariables;
|
|
@@ -4,5 +4,5 @@ export type VariableActionsProps = {
|
|
|
4
4
|
onRemove?: (e: MouseEvent) => void;
|
|
5
5
|
selected?: boolean;
|
|
6
6
|
};
|
|
7
|
-
declare const VariableActions: ({ onUpdate, onRemove, selected }: VariableActionsProps) => import("react
|
|
7
|
+
declare const VariableActions: ({ onUpdate, onRemove, selected }: VariableActionsProps) => import("react").JSX.Element;
|
|
8
8
|
export default VariableActions;
|
|
@@ -4,5 +4,5 @@ export type VariableDetailsProps = {
|
|
|
4
4
|
type?: SchemaVariable['type'];
|
|
5
5
|
subValues?: SchemaVariable['subValues'];
|
|
6
6
|
};
|
|
7
|
-
declare const VariableDetails: ({ name, subValues, type }: VariableDetailsProps) => import("react
|
|
7
|
+
declare const VariableDetails: ({ name, subValues, type }: VariableDetailsProps) => import("react").JSX.Element;
|
|
8
8
|
export default VariableDetails;
|
|
@@ -3,5 +3,5 @@ export type VariableValueProps = {
|
|
|
3
3
|
value?: string;
|
|
4
4
|
type?: string;
|
|
5
5
|
};
|
|
6
|
-
declare const VariableValue: ({ type, value }: VariableValueProps) => import("react
|
|
6
|
+
declare const VariableValue: ({ type, value }: VariableValueProps) => import("react").JSX.Element;
|
|
7
7
|
export default VariableValue;
|
|
@@ -7,5 +7,5 @@ export type StyleVariableProps = {
|
|
|
7
7
|
onUpdate?: (name: string, values: Omit<TStyleVariable, 'name'>) => void;
|
|
8
8
|
onRemove?: (category: StyleVariableCategory, name: string) => void;
|
|
9
9
|
};
|
|
10
|
-
declare const StyleVariable: ({ category, name, value, onUpdate, onRemove }: StyleVariableProps) => import("react
|
|
10
|
+
declare const StyleVariable: ({ category, name, value, onUpdate, onRemove }: StyleVariableProps) => import("react").JSX.Element;
|
|
11
11
|
export default StyleVariable;
|
|
@@ -11,5 +11,5 @@ export type StyleVariablesProps = {
|
|
|
11
11
|
onUpdate?: (variable: TStyleVariable) => void;
|
|
12
12
|
onRemove?: (category: StyleVariableCategory, name: string) => void;
|
|
13
13
|
};
|
|
14
|
-
declare const StyleVariables: ({ className, variables, onAdd, onUpdate, onRemove }: StyleVariablesProps) => import("react
|
|
14
|
+
declare const StyleVariables: ({ className, variables, onAdd, onUpdate, onRemove }: StyleVariablesProps) => import("react").JSX.Element;
|
|
15
15
|
export default StyleVariables;
|
|
@@ -4,5 +4,5 @@ export type VariableActionsProps = {
|
|
|
4
4
|
onRemove?: (e: MouseEvent) => void;
|
|
5
5
|
selected?: boolean;
|
|
6
6
|
};
|
|
7
|
-
declare const VariableActions: ({ onUpdate, onRemove, selected }: VariableActionsProps) => import("react
|
|
7
|
+
declare const VariableActions: ({ onUpdate, onRemove, selected }: VariableActionsProps) => import("react").JSX.Element;
|
|
8
8
|
export default VariableActions;
|
|
@@ -3,5 +3,5 @@ export type VariableDetailsProps = {
|
|
|
3
3
|
name?: SchemaVariable['name'];
|
|
4
4
|
type?: SchemaVariable['type'];
|
|
5
5
|
};
|
|
6
|
-
declare const VariableDetails: ({ name }: VariableDetailsProps) => import("react
|
|
6
|
+
declare const VariableDetails: ({ name }: VariableDetailsProps) => import("react").JSX.Element;
|
|
7
7
|
export default VariableDetails;
|
|
@@ -6,5 +6,5 @@ export type VariableGroupProps = {
|
|
|
6
6
|
onUpdate?: (name: string, values: Omit<TStyleVariable, 'name'>) => void;
|
|
7
7
|
onRemove?: (category: StyleVariableCategory, name: string) => void;
|
|
8
8
|
};
|
|
9
|
-
declare const VariableGroup: ({ category, variables, onUpdate, onRemove }: VariableGroupProps) => import("react
|
|
9
|
+
declare const VariableGroup: ({ category, variables, onUpdate, onRemove }: VariableGroupProps) => import("react").JSX.Element;
|
|
10
10
|
export default VariableGroup;
|
|
@@ -5,5 +5,5 @@ export type VariableListProps = {
|
|
|
5
5
|
onUpdate?: (name: string, values: Omit<TStyleVariable, 'name'>) => void;
|
|
6
6
|
onRemove?: (category: StyleVariableCategory, name: string) => void;
|
|
7
7
|
};
|
|
8
|
-
declare const VariableList: ({ variables, onUpdate, onRemove }: VariableListProps) => import("react
|
|
8
|
+
declare const VariableList: ({ variables, onUpdate, onRemove }: VariableListProps) => import("react").JSX.Element | undefined;
|
|
9
9
|
export default VariableList;
|
|
@@ -4,5 +4,5 @@ export type VariableValueProps = {
|
|
|
4
4
|
value?: StyleVariableValue;
|
|
5
5
|
type?: string;
|
|
6
6
|
};
|
|
7
|
-
declare const VariableValue: ({ type, value }: VariableValueProps) => import("react
|
|
7
|
+
declare const VariableValue: ({ type, value }: VariableValueProps) => import("react").JSX.Element;
|
|
8
8
|
export default VariableValue;
|
|
@@ -35,5 +35,5 @@ export type SchemaVariableFormProps = {
|
|
|
35
35
|
onClose?: (e?: MouseEvent) => void;
|
|
36
36
|
onSubmit?: (values: SchemaVariable) => void;
|
|
37
37
|
};
|
|
38
|
-
declare const SchemaVariableForm: ({ name, category, value, type, subValues, whenData, isNewRecord, onSubmit, onClose }: SchemaVariableFormProps) => import("react
|
|
38
|
+
declare const SchemaVariableForm: ({ name, category, value, type, subValues, whenData, isNewRecord, onSubmit, onClose }: SchemaVariableFormProps) => import("react").JSX.Element;
|
|
39
39
|
export default SchemaVariableForm;
|
|
@@ -13,5 +13,5 @@ export type VariableSubValueProps = {
|
|
|
13
13
|
onClickUp?: () => void;
|
|
14
14
|
onClickDown?: () => void;
|
|
15
15
|
};
|
|
16
|
-
declare const VariableSubValue: ({ index, valueType, whenData, indexLimit, onClickRemove, onClickUp, onClickDown }: VariableSubValueProps) => import("react
|
|
16
|
+
declare const VariableSubValue: ({ index, valueType, whenData, indexLimit, onClickRemove, onClickUp, onClickDown }: VariableSubValueProps) => import("react").JSX.Element;
|
|
17
17
|
export default VariableSubValue;
|
|
@@ -5,5 +5,5 @@ export type VariableSubValueActionsProps = {
|
|
|
5
5
|
onClickUp?: () => void;
|
|
6
6
|
onClickDown?: () => void;
|
|
7
7
|
};
|
|
8
|
-
declare const VariableSubValueActions: ({ indexLimit, index, onClickRemove, onClickUp, onClickDown }: VariableSubValueActionsProps) => import("react
|
|
8
|
+
declare const VariableSubValueActions: ({ indexLimit, index, onClickRemove, onClickUp, onClickDown }: VariableSubValueActionsProps) => import("react").JSX.Element;
|
|
9
9
|
export default VariableSubValueActions;
|
|
@@ -10,5 +10,5 @@ export type VariableValueProps = {
|
|
|
10
10
|
onClickUp?: () => void;
|
|
11
11
|
onClickDown?: () => void;
|
|
12
12
|
};
|
|
13
|
-
declare const VariableValue: ({ valueType, hasSubValues, name, index, indexLimit, isSubValue, onClickRemove, onClickUp, onClickDown }: VariableValueProps) => import("react
|
|
13
|
+
declare const VariableValue: ({ valueType, hasSubValues, name, index, indexLimit, isSubValue, onClickRemove, onClickUp, onClickDown }: VariableValueProps) => import("react").JSX.Element;
|
|
14
14
|
export default VariableValue;
|
|
@@ -30,5 +30,5 @@ export type StyleVariableFormProps = {
|
|
|
30
30
|
onClose?: (e: MouseEvent) => void;
|
|
31
31
|
onSubmit?: (values: z.infer<typeof styleVariableFormSchema>) => void;
|
|
32
32
|
};
|
|
33
|
-
declare const StyleVariableForm: ({ name, category, value, isNewRecord, onClose, onSubmit }: StyleVariableFormProps) => import("react
|
|
33
|
+
declare const StyleVariableForm: ({ name, category, value, isNewRecord, onClose, onSubmit }: StyleVariableFormProps) => import("react").JSX.Element;
|
|
34
34
|
export default StyleVariableForm;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plitzi/sdk-variables",
|
|
3
|
-
"version": "0.32.
|
|
3
|
+
"version": "0.32.2",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -149,8 +149,8 @@
|
|
|
149
149
|
"build:prod": "vite build && node ../sdk-shared/scripts/generate-exports.mjs"
|
|
150
150
|
},
|
|
151
151
|
"dependencies": {
|
|
152
|
-
"@plitzi/plitzi-ui": "^1.6.
|
|
153
|
-
"@plitzi/sdk-shared": "0.32.
|
|
152
|
+
"@plitzi/plitzi-ui": "^1.6.13",
|
|
153
|
+
"@plitzi/sdk-shared": "0.32.2",
|
|
154
154
|
"clsx": "^2.1.1",
|
|
155
155
|
"eslint": "^9.39.4",
|
|
156
156
|
"zod": "^4.4.3"
|
|
@@ -158,6 +158,6 @@
|
|
|
158
158
|
"devDependencies": {
|
|
159
159
|
"eslint": "^9.39.4",
|
|
160
160
|
"typescript": "^6.0.3",
|
|
161
|
-
"vite": "^8.0.
|
|
161
|
+
"vite": "^8.0.16"
|
|
162
162
|
}
|
|
163
163
|
}
|