@instructure/ui-editable 10.16.1-snapshot-0 → 10.16.1
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 +1 -1
- package/es/Editable/__new-tests__/Editable.test.js +28 -21
- package/es/InPlaceEdit/__new-tests__/InPlaceEdit.test.js +19 -16
- package/es/InPlaceEdit/index.js +27 -20
- package/lib/Editable/__new-tests__/Editable.test.js +50 -43
- package/lib/InPlaceEdit/__new-tests__/InPlaceEdit.test.js +31 -29
- package/lib/InPlaceEdit/index.js +26 -19
- package/package.json +14 -14
- package/src/Editable/__new-tests__/Editable.test.tsx +0 -1
- package/src/Editable/index.tsx +1 -1
- package/src/InPlaceEdit/__new-tests__/InPlaceEdit.test.tsx +0 -1
- package/src/InPlaceEdit/index.tsx +1 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Editable/__new-tests__/Editable.test.d.ts.map +1 -1
- package/types/Editable/index.d.ts +2 -2
- package/types/Editable/index.d.ts.map +1 -1
- package/types/InPlaceEdit/__new-tests__/InPlaceEdit.test.d.ts.map +1 -1
- package/types/InPlaceEdit/index.d.ts +4 -6
- package/types/InPlaceEdit/index.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Editable.test.d.ts","sourceRoot":"","sources":["../../../src/Editable/__new-tests__/Editable.test.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Editable.test.d.ts","sourceRoot":"","sources":["../../../src/Editable/__new-tests__/Editable.test.tsx"],"names":[],"mappings":"AA4BA,OAAO,2BAA2B,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Component } from 'react';
|
|
2
2
|
import { EditableState } from './props';
|
|
3
3
|
import type { EditableProps, GetContainerProps, GetEditButtonProps, GetEditorProps, GetViewerProps } from './props';
|
|
4
4
|
/**
|
|
@@ -54,7 +54,7 @@ declare class Editable extends Component<EditableProps> {
|
|
|
54
54
|
getViewerProps: GetViewerProps;
|
|
55
55
|
getEditorProps: GetEditorProps;
|
|
56
56
|
getEditButtonProps: GetEditButtonProps;
|
|
57
|
-
render():
|
|
57
|
+
render(): import("react").ReactNode;
|
|
58
58
|
}
|
|
59
59
|
export default Editable;
|
|
60
60
|
export { Editable };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Editable/index.tsx"],"names":[],"mappings":"AAuBA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Editable/index.tsx"],"names":[],"mappings":"AAuBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAMjC,OAAO,EAA2B,aAAa,EAAE,MAAM,SAAS,CAAA;AAChE,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACf,MAAM,SAAS,CAAA;AAEhB;;;;GAIG;AACH,cAAM,QAAS,SAAQ,SAAS,CAAC,aAAa,CAAC;IAC7C,MAAM,CAAC,SAAS;;;qEA6DZ,MAAI,SAAS;mEAMb,MAAK,SAAS;;;;;OAnEU;IAC5B,MAAM,CAAC,YAAY;;;qEA4Df,MAAI,SAAS;mEAMb,MAAK,SAAS;;;;;SAlEgB;IAClC,MAAM,CAAC,YAAY;;;MAGlB;IAED,KAAK,EAAE,aAAa,CAGnB;IAED,UAAU,EAAE,gBAAgB,GAAG,IAAI,CAAO;IAC1C,cAAc,EAAE,iBAAiB,GAAG,IAAI,CAAO;gBAEnC,KAAK,EAAE,aAAa;IAShC,iBAAiB;IAMjB,kBAAkB,CAAC,SAAS,EAAE,aAAa;IAkB3C,WAAW;IAUX,SAAS;IAOT,SAAS;IAST,aAAa,UAAW,KAAK,CAAC,aAAa,UAK1C;IAED,mBAAmB,UAAW,KAAK,CAAC,UAAU,UAM7C;IAED,kBAAkB,UAAW,KAAK,CAAC,UAAU,UAO5C;IAED,eAAe,UAAW,KAAK,CAAC,UAAU,UAMzC;IAED,cAAc,aAEb;IAED,qBAAqB,aAEpB;IAED,oBAAoB,aAEnB;IAED,qBAAqB,aAEpB;IAED,GAAG,EAAE,OAAO,GAAG,IAAI,CAAO;IAE1B,kBAAkB,OAAQ,OAAO,GAAG,IAAI,UAQvC;IAGD,iBAAiB,EAAE,iBAAiB,CAWnC;IAED,cAAc,EAAE,cAAc,CAM7B;IAED,cAAc,EAAE,cAAc,CAU7B;IAED,kBAAkB,EAAE,kBAAkB,CAYrC;IAED,MAAM;CAeP;AAED,eAAe,QAAQ,CAAA;AACvB,OAAO,EAAE,QAAQ,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InPlaceEdit.test.d.ts","sourceRoot":"","sources":["../../../src/InPlaceEdit/__new-tests__/InPlaceEdit.test.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InPlaceEdit.test.d.ts","sourceRoot":"","sources":["../../../src/InPlaceEdit/__new-tests__/InPlaceEdit.test.tsx"],"names":[],"mappings":"AA0BA,OAAO,2BAA2B,CAAA"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
1
|
import { Component } from 'react';
|
|
3
2
|
import type { IconButtonProps } from '@instructure/ui-buttons';
|
|
4
|
-
import { jsx } from '@instructure/emotion';
|
|
5
3
|
import type { InPlaceEditProps } from './props';
|
|
6
4
|
import type { EditableRenderProps } from '../Editable/props';
|
|
7
5
|
/**
|
|
@@ -70,16 +68,16 @@ declare class InPlaceEdit extends Component<InPlaceEditProps> {
|
|
|
70
68
|
componentDidMount(): void;
|
|
71
69
|
componentDidUpdate(): void;
|
|
72
70
|
handleEditButtonRef: (el: HTMLButtonElement) => void;
|
|
73
|
-
renderEditor({ mode, onBlur, editorRef, readOnly }: ReturnType<EditableRenderProps['getEditorProps']>): jsx.JSX.Element | null;
|
|
71
|
+
renderEditor({ mode, onBlur, editorRef, readOnly }: ReturnType<EditableRenderProps['getEditorProps']>): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
74
72
|
renderViewer({ readOnly, mode }: ReturnType<EditableRenderProps['getViewerProps']>): import("react").ReactNode;
|
|
75
73
|
renderEditButton({ buttonRef, ...rest }: ReturnType<EditableRenderProps['getEditButtonProps']>): import("react").ReactNode;
|
|
76
74
|
static renderDefaultEditButton: ({ isVisible, readOnly, label, ...buttonProps }: {
|
|
77
75
|
isVisible: boolean;
|
|
78
76
|
readOnly?: boolean;
|
|
79
77
|
label: string;
|
|
80
|
-
} & Partial<IconButtonProps>) => jsx.JSX.Element | null;
|
|
81
|
-
renderAll: ({ getContainerProps, getViewerProps, getEditorProps, getEditButtonProps }: EditableRenderProps) => jsx.JSX.Element;
|
|
82
|
-
render(): jsx.JSX.Element;
|
|
78
|
+
} & Partial<IconButtonProps>) => import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
79
|
+
renderAll: ({ getContainerProps, getViewerProps, getEditorProps, getEditButtonProps }: EditableRenderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
80
|
+
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
83
81
|
}
|
|
84
82
|
export default InPlaceEdit;
|
|
85
83
|
export { InPlaceEdit };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/InPlaceEdit/index.tsx"],"names":[],"mappings":"AAwBA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/InPlaceEdit/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAIjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAW9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAC/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE5D;;;;GAIG;A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