tinacms 1.6.3 → 1.6.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.
- package/dist/admin/api.d.ts +5 -0
- package/dist/index.js +311 -129
- package/dist/index.mjs +311 -129
- package/dist/toolkit/fields/components/password-field.d.ts +1 -1
- package/dist/toolkit/plugin-branch-switcher/plugin.d.ts +1 -1
- package/dist/toolkit/react-datetime/DateTime.d.ts +9 -0
- package/dist/toolkit/react-datetime/views/DaysView.d.ts +1 -0
- package/dist/toolkit/react-datetime/views/MonthsView.d.ts +1 -0
- package/dist/toolkit/react-datetime/views/TimeView.d.ts +9 -0
- package/dist/toolkit/react-datetime/views/YearsView.d.ts +1 -0
- package/package.json +13 -22
|
@@ -5,5 +5,5 @@ export interface PasswordFieldProps extends a {
|
|
|
5
5
|
ref?: any;
|
|
6
6
|
}
|
|
7
7
|
export declare const passwordFieldClasses = "shadow-inner focus:shadow-outline focus:border-blue-500 focus:outline-none block text-base placeholder:text-gray-300 px-3 py-2 text-gray-600 w-full bg-white border border-gray-200 transition-all ease-out duration-150 focus:text-gray-900 rounded-md";
|
|
8
|
-
export declare const BasePasswordField: React.ForwardRefExoticComponent<Pick<PasswordFieldProps, "key" | "value" | "error" | "type" | "form" | "slot" | "style" | "title" | "pattern" | "children" | "
|
|
8
|
+
export declare const BasePasswordField: React.ForwardRefExoticComponent<Pick<PasswordFieldProps, "key" | "value" | "error" | "type" | "form" | "slot" | "style" | "title" | "pattern" | "children" | "src" | "alt" | "name" | "dir" | "className" | "onClick" | "hidden" | "id" | "list" | "onChange" | "onSubmit" | "accept" | "autoComplete" | "autoFocus" | "capture" | "checked" | "crossOrigin" | "disabled" | "enterKeyHint" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "height" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "placeholder" | "readOnly" | "required" | "size" | "step" | "width" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLInputElement>>;
|
|
9
9
|
export {};
|
|
@@ -3,7 +3,7 @@ import { ScreenPlugin } from '../react-screens';
|
|
|
3
3
|
import { BranchSwitcherProps } from './types';
|
|
4
4
|
export declare class BranchSwitcherPlugin implements ScreenPlugin {
|
|
5
5
|
__type: "screen";
|
|
6
|
-
Icon: import("react-icons
|
|
6
|
+
Icon: import("react-icons").IconType;
|
|
7
7
|
name: string;
|
|
8
8
|
layout: "popup";
|
|
9
9
|
listBranches: BranchSwitcherProps['listBranches'];
|
|
@@ -57,6 +57,14 @@ export default class Datetime extends React.Component<any, any, any> {
|
|
|
57
57
|
};
|
|
58
58
|
static moment: typeof moment;
|
|
59
59
|
constructor(props: any);
|
|
60
|
+
state: {
|
|
61
|
+
open: boolean;
|
|
62
|
+
currentView: any;
|
|
63
|
+
viewDate: any;
|
|
64
|
+
selectedDate: any;
|
|
65
|
+
inputValue: any;
|
|
66
|
+
};
|
|
67
|
+
render(): JSX.Element;
|
|
60
68
|
renderInput(): JSX.Element;
|
|
61
69
|
renderView(): any;
|
|
62
70
|
_renderCalendar: () => JSX.Element;
|
|
@@ -99,6 +107,7 @@ export default class Datetime extends React.Component<any, any, any> {
|
|
|
99
107
|
localMoment(date: any, format: any, props: any): any;
|
|
100
108
|
checkTZ(): void;
|
|
101
109
|
tzWarning: boolean;
|
|
110
|
+
componentDidUpdate(prevProps: any): void;
|
|
102
111
|
regenerateDates(): void;
|
|
103
112
|
getSelectedDate(): any;
|
|
104
113
|
getInitialInputValue(selectedDate: any): any;
|
|
@@ -5,6 +5,7 @@ export default class DaysView extends React.Component<any, any, any> {
|
|
|
5
5
|
};
|
|
6
6
|
constructor(props: any);
|
|
7
7
|
constructor(props: any, context: any);
|
|
8
|
+
render(): JSX.Element;
|
|
8
9
|
renderNavigation(): JSX.Element;
|
|
9
10
|
renderDayHeaders(): JSX.Element;
|
|
10
11
|
renderDays(): JSX.Element[];
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
export default class TimeView extends React.Component<any, any, any> {
|
|
2
2
|
constructor(props: any);
|
|
3
3
|
constraints: {};
|
|
4
|
+
state: {
|
|
5
|
+
hours: string;
|
|
6
|
+
minutes: string;
|
|
7
|
+
seconds: string;
|
|
8
|
+
milliseconds: string;
|
|
9
|
+
ampm: string;
|
|
10
|
+
};
|
|
11
|
+
render(): JSX.Element;
|
|
4
12
|
renderCounter(type: any, value: any): JSX.Element;
|
|
5
13
|
renderHeader(): JSX.Element;
|
|
6
14
|
onStartClicking(e: any, action: any, type: any): void;
|
|
@@ -19,5 +27,6 @@ export default class TimeView extends React.Component<any, any, any> {
|
|
|
19
27
|
milliseconds: string;
|
|
20
28
|
ampm: string;
|
|
21
29
|
};
|
|
30
|
+
componentDidUpdate(prevProps: any): void;
|
|
22
31
|
}
|
|
23
32
|
import React from "react";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tinacms",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.5",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -57,28 +57,18 @@
|
|
|
57
57
|
"typings": "dist/index.d.ts",
|
|
58
58
|
"license": "Apache-2.0",
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@floating-ui/dom": "^1.
|
|
60
|
+
"@floating-ui/dom": "^1.6.6",
|
|
61
61
|
"@floating-ui/react-dom": "^2.0.1",
|
|
62
62
|
"@graphql-inspector/core": "^4.0.0",
|
|
63
63
|
"@headlessui/react": "^1.5.0",
|
|
64
64
|
"@heroicons/react": "^1.0.4",
|
|
65
65
|
"@monaco-editor/react": "4.4.5",
|
|
66
66
|
"@radix-ui/react-popover": "^1.0.6",
|
|
67
|
-
"@react-aria/i18n": "^3.3.4",
|
|
68
67
|
"@react-hook/window-size": "^3.0.7",
|
|
69
|
-
"@react-types/combobox": "^3.2.0",
|
|
70
|
-
"@react-types/shared": "^3.10.0",
|
|
71
|
-
"@sambego/storybook-styles": "^1.0.0",
|
|
72
|
-
"@tinacms/schema-tools": "1.4.15",
|
|
73
|
-
"@tinacms/search": "1.0.19",
|
|
74
|
-
"@tinacms/mdx": "1.3.24",
|
|
75
|
-
"@tinacms/sharedctx": "1.0.2",
|
|
76
68
|
"@udecode/plate-headless": "^21.4.0",
|
|
77
|
-
"atob": "2.1.2",
|
|
78
69
|
"color-string": "^1.5.3",
|
|
79
|
-
"crypto-js": "^4.
|
|
70
|
+
"crypto-js": "^4.1.1",
|
|
80
71
|
"date-fns": "2.30.0",
|
|
81
|
-
"encoding": "0.1.13",
|
|
82
72
|
"fetch-ponyfill": "^7.1.0",
|
|
83
73
|
"final-form": "4.20.10",
|
|
84
74
|
"final-form-arrays": "^3.0.1",
|
|
@@ -90,26 +80,27 @@
|
|
|
90
80
|
"lodash.set": "^4.3.2",
|
|
91
81
|
"moment": "2.29.4",
|
|
92
82
|
"monaco-editor": "0.31.0",
|
|
93
|
-
"prism-react-renderer": "^2.
|
|
94
|
-
"prismjs": "^1.28.0",
|
|
83
|
+
"prism-react-renderer": "^2.3.1",
|
|
95
84
|
"prop-types": "15.7.2",
|
|
96
85
|
"react-beautiful-dnd": "^13.1.0",
|
|
97
86
|
"react-color": "^2.17.3",
|
|
98
87
|
"react-datetime": "^2.16.3",
|
|
99
88
|
"react-dropzone": "14.2.3",
|
|
100
89
|
"react-final-form": "^6.3.0",
|
|
101
|
-
"react-icons": "^
|
|
90
|
+
"react-icons": "^5.2.1",
|
|
102
91
|
"react-onclickoutside": "^6.13.0",
|
|
103
92
|
"react-router-dom": "6.3.0",
|
|
104
|
-
"react-textarea-autosize": "8.5.2",
|
|
105
|
-
"scheduler": "0.19.0",
|
|
106
93
|
"slate": "^0.94.1",
|
|
107
94
|
"slate-history": "^0.93.0",
|
|
108
95
|
"slate-hyperscript": "^0.77.0",
|
|
109
96
|
"slate-react": "^0.97.1",
|
|
110
97
|
"webfontloader": "1.6.28",
|
|
111
98
|
"yup": "^0.32.0",
|
|
112
|
-
"zod": "^3.14.3"
|
|
99
|
+
"zod": "^3.14.3",
|
|
100
|
+
"@tinacms/mdx": "1.3.26",
|
|
101
|
+
"@tinacms/schema-tools": "1.4.17",
|
|
102
|
+
"@tinacms/search": "1.0.21",
|
|
103
|
+
"@tinacms/sharedctx": "1.0.3"
|
|
113
104
|
},
|
|
114
105
|
"devDependencies": {
|
|
115
106
|
"@graphql-tools/utils": "^8.6.1",
|
|
@@ -118,7 +109,6 @@
|
|
|
118
109
|
"@testing-library/react": "^12.0.0",
|
|
119
110
|
"@testing-library/react-hooks": "^7.0.2",
|
|
120
111
|
"@testing-library/user-event": "^12.7.0",
|
|
121
|
-
"@tinacms/scripts": "1.1.3",
|
|
122
112
|
"@types/atob": "^2.1.2",
|
|
123
113
|
"@types/codemirror": "^0.0.71",
|
|
124
114
|
"@types/color-string": "^1.5.0",
|
|
@@ -144,9 +134,10 @@
|
|
|
144
134
|
"react-is": "^17.0.2",
|
|
145
135
|
"tsc-alias": "^1.8.7",
|
|
146
136
|
"tslib": "^2.3.0",
|
|
147
|
-
"typescript": "4.
|
|
137
|
+
"typescript": "4.6.4",
|
|
148
138
|
"vite": "^4.3.9",
|
|
149
|
-
"vitest": "^0.32.2"
|
|
139
|
+
"vitest": "^0.32.2",
|
|
140
|
+
"@tinacms/scripts": "1.1.5"
|
|
150
141
|
},
|
|
151
142
|
"peerDependencies": {
|
|
152
143
|
"react": ">=16.14.0",
|